| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- using Castle.ActiveRecord;
- using System;
- using System.Text;
- namespace BizCom
- {
- [ActiveRecord("CE_ErpNoticeCell")]
- public class CeErpNoticeCell : ComBase<CeErpNoticeCell>
- {
- /// <summary>
- ///
- /// </summary>
- [PrimaryKey(PrimaryKeyType.Native)]
- public int ID { get; set; }
- private int _nid = 0;
- /// <summary>
- ///
- /// </summary>
- [Property]
- public int nid
- {
- get { return _nid; }
- set { _nid = value; }
- }
- private int _isRead = 0;
- /// <summary>
- ///
- /// </summary>
- [Property]
- public int IsRead
- {
- get { return _isRead; }
- set { _isRead = value; }
- }
- /// <summary>
- ///
- /// </summary>
- [Property]
- public DateTime? ReadTime { get; set; }
- private int _uid = 0;
- /// <summary>
- ///
- /// </summary>
- [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());
- }
- }
- }
|