CeErpBagShopGoods.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. using System;
  2. using Castle.ActiveRecord;
  3. using System.Text;
  4. namespace BizCom
  5. {
  6. [ActiveRecord("CE_ErpBagShopGoods")]
  7. public class CeErpBagShopGoods : ComBase<CeErpBagShopGoods>
  8. {
  9. /// <summary>
  10. ///
  11. /// </summary>
  12. [PrimaryKey(PrimaryKeyType.Native)]
  13. public int ID { get; set; }
  14. private string _bcount="";
  15. /// <summary>
  16. ///
  17. /// </summary>
  18. [Property]
  19. public string bcount
  20. {
  21. get{ return _bcount; }
  22. set{ _bcount=value; }
  23. }
  24. private string _bsize="";
  25. /// <summary>
  26. ///
  27. /// </summary>
  28. [Property]
  29. public string bsize
  30. {
  31. get{ return _bsize; }
  32. set{ _bsize=value; }
  33. }
  34. private string _bname="";
  35. /// <summary>
  36. ///
  37. /// </summary>
  38. [Property]
  39. public string bname
  40. {
  41. get{ return _bname; }
  42. set{ _bname=value; }
  43. }
  44. public static void Del(object id)
  45. {
  46. StringBuilder sql = new StringBuilder();
  47. sql.AppendFormat("delete from CE_ErpBagShopGoods where id=" + id);
  48. ExecuteNonQuery(sql.ToString());
  49. }
  50. }
  51. }