using Castle.ActiveRecord; using System; using System.Text; namespace BizCom { [ActiveRecord("CE_ErpTmcLog")] public class CeErpTmcLog : ComBase { /// /// /// [PrimaryKey(PrimaryKeyType.Native)] public int ID { get; set; } /// ///记录时间 /// [Property] public DateTime? tmctime { get; set; } private string _tmctype = ""; /// ///推送类型 /// [Property] public string tmctype { get { return _tmctype; } set { _tmctype = value; } } private string _tmccon = ""; /// ///推送内容 /// [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()); } } }