| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- using Castle.ActiveRecord;
- using System;
- using System.Text;
- namespace BizCom
- {
- [ActiveRecord("SupplierLog")]
- public class SupplierLog : ComBase<SupplierLog>
- {
- /// <summary>
- ///
- /// </summary>
- [PrimaryKey(PrimaryKeyType.Native)]
- public int ID { get; set; }
- private int _userID = 0;
- /// <summary>
- ///用户id
- /// </summary>
- [Property]
- public int UserID
- {
- get { return _userID; }
- set { _userID = value; }
- }
- private string _userName = "";
- /// <summary>
- ///用户名称
- /// </summary>
- [Property]
- public string UserName
- {
- get { return _userName; }
- set { _userName = value; }
- }
- private string _oldContent = "";
- /// <summary>
- ///修改前内容
- /// </summary>
- [Property]
- public string OldContent
- {
- get { return _oldContent; }
- set { _oldContent = value; }
- }
- private string _newContent = "";
- /// <summary>
- ///修改后内容
- /// </summary>
- [Property]
- public string NewContent
- {
- get { return _newContent; }
- set { _newContent = value; }
- }
- /// <summary>
- ///修改时间
- /// </summary>
- [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());
- }
- }
- }
|