using Castle.ActiveRecord; using System; using System.Text; namespace BizCom { [ActiveRecord("CE_ErpDesignerBillLog")] public class CeErpDesignerBillLog : ComBase { /// /// /// [PrimaryKey(PrimaryKeyType.Native)] public int ID { get; set; } private string _tid = ""; /// ///订单编号 /// [Property] public string tid { get { return _tid; } set { _tid = value; } } private int _orderState = 0; /// ///订单状态 /// [Property] public int orderState { get { return _orderState; } set { _orderState = value; } } /// ///操作时间 /// [Property] public DateTime? create_time { get; set; } private string _cont = ""; /// ///操作内容 /// [Property] public string cont { get { return _cont; } set { _cont = value; } } private int _uId = 0; /// ///用户id /// [Property] public int uId { get { return _uId; } set { _uId = value; } } private string _userName = ""; /// ///用户名称 /// [Property] public string userName { get { return _userName; } set { _userName = value; } } public static void Del(object id) { StringBuilder sql = new StringBuilder(); sql.AppendFormat("delete from CE_ErpDesignerBillLog where id=" + id); ExecuteNonQuery(sql.ToString()); } } }