using Castle.ActiveRecord; using System; using System.Text; namespace BizCom { [ActiveRecord("CE_ErpNotice")] public class CeErpNotice : ComBase { /// /// /// [PrimaryKey(PrimaryKeyType.Native)] public int ID { get; set; } private string _title = ""; /// /// /// [Property] public string Title { get { return _title; } set { _title = value; } } private string _con = ""; /// /// /// [Property] public string Con { get { return _con; } set { _con = value; } } private string _receiver = ""; /// /// /// [Property] public string Receiver { get { return _receiver; } set { _receiver = value; } } /// /// /// [Property] public DateTime? CreatedTime { get; set; } /// /// /// [Property] public DateTime? NoticeTime { get; set; } private int _readedCount = 0; /// /// /// [Property] public int ReadedCount { get { return _readedCount; } set { _readedCount = value; } } private int _senderId = 0; /// /// /// [Property] public int senderId { get { return _senderId; } set { _senderId = value; } } private string _receiverStr = ""; /// /// /// [Property] public string ReceiverStr { get { return _receiverStr; } set { _receiverStr = value; } } private string _noticeType = ""; /// /// /// [Property] public string NoticeType { get { return _noticeType; } set { _noticeType = value; } } public static void Del(object id) { StringBuilder sql = new StringBuilder(); sql.AppendFormat("delete from CE_ErpNotice where id=" + id); ExecuteNonQuery(sql.ToString()); } } }