using Castle.ActiveRecord; using System; using System.Text; namespace BizCom { [ActiveRecord("SupplierLog")] public class SupplierLog : ComBase { /// /// /// [PrimaryKey(PrimaryKeyType.Native)] public int ID { get; set; } private int _userID = 0; /// ///用户id /// [Property] public int UserID { get { return _userID; } set { _userID = value; } } private string _userName = ""; /// ///用户名称 /// [Property] public string UserName { get { return _userName; } set { _userName = value; } } private string _oldContent = ""; /// ///修改前内容 /// [Property] public string OldContent { get { return _oldContent; } set { _oldContent = value; } } private string _newContent = ""; /// ///修改后内容 /// [Property] public string NewContent { get { return _newContent; } set { _newContent = value; } } /// ///修改时间 /// [Property] public DateTime? ModifyTime { get; set; } public static void Del(object id) { StringBuilder sql = new StringBuilder(); sql.AppendFormat("delete from SupplierLog where id=" + id); ExecuteNonQuery(sql.ToString()); } } }