using System; using Castle.ActiveRecord; using System.Text; namespace BizCom { [ActiveRecord("CE_ErpBagShopGoods")] public class CeErpBagShopGoods : ComBase { /// /// /// [PrimaryKey(PrimaryKeyType.Native)] public int ID { get; set; } private string _bcount=""; /// /// /// [Property] public string bcount { get{ return _bcount; } set{ _bcount=value; } } private string _bsize=""; /// /// /// [Property] public string bsize { get{ return _bsize; } set{ _bsize=value; } } private string _bname=""; /// /// /// [Property] public string bname { get{ return _bname; } set{ _bname=value; } } public static void Del(object id) { StringBuilder sql = new StringBuilder(); sql.AppendFormat("delete from CE_ErpBagShopGoods where id=" + id); ExecuteNonQuery(sql.ToString()); } } }