| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- using Castle.ActiveRecord;
- using System;
- using System.Text;
- namespace BizCom
- {
- [ActiveRecord("CE_ErpTmcLog")]
- public class CeErpTmcLog : ComBase<CeErpTmcLog>
- {
- /// <summary>
- ///
- /// </summary>
- [PrimaryKey(PrimaryKeyType.Native)]
- public int ID { get; set; }
- /// <summary>
- ///记录时间
- /// </summary>
- [Property]
- public DateTime? tmctime { get; set; }
- private string _tmctype = "";
- /// <summary>
- ///推送类型
- /// </summary>
- [Property]
- public string tmctype
- {
- get { return _tmctype; }
- set { _tmctype = value; }
- }
- private string _tmccon = "";
- /// <summary>
- ///推送内容
- /// </summary>
- [Property]
- public string tmccon
- {
- get { return _tmccon; }
- set { _tmccon = value; }
- }
- public static void Del(object id)
- {
- StringBuilder sql = new StringBuilder();
- sql.AppendFormat("delete from CE_ErpTmcLog where id=" + id);
- ExecuteNonQuery(sql.ToString());
- }
- }
- }
|