using Castle.ActiveRecord; using System; using System.Text; namespace BizCom { [ActiveRecord("CE_ErpNoticeCell")] public class CeErpNoticeCell : ComBase { /// /// /// [PrimaryKey(PrimaryKeyType.Native)] public int ID { get; set; } private int _nid = 0; /// /// /// [Property] public int nid { get { return _nid; } set { _nid = value; } } private int _isRead = 0; /// /// /// [Property] public int IsRead { get { return _isRead; } set { _isRead = value; } } /// /// /// [Property] public DateTime? ReadTime { get; set; } private int _uid = 0; /// /// /// [Property] public int uid { get { return _uid; } set { _uid = value; } } public static void DelByNid(object id) { StringBuilder sql = new StringBuilder(); sql.AppendFormat("delete from CE_ErpNoticeCell where nid=" + id); ExecuteNonQuery(sql.ToString()); } public static void Del(object id) { StringBuilder sql = new StringBuilder(); sql.AppendFormat("delete from CE_ErpNoticeCell where id=" + id); ExecuteNonQuery(sql.ToString()); } } }