CeErpTmcLog.cs 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. using Castle.ActiveRecord;
  2. using System;
  3. using System.Text;
  4. namespace BizCom
  5. {
  6. [ActiveRecord("CE_ErpTmcLog")]
  7. public class CeErpTmcLog : ComBase<CeErpTmcLog>
  8. {
  9. /// <summary>
  10. ///
  11. /// </summary>
  12. [PrimaryKey(PrimaryKeyType.Native)]
  13. public int ID { get; set; }
  14. /// <summary>
  15. ///记录时间
  16. /// </summary>
  17. [Property]
  18. public DateTime? tmctime { get; set; }
  19. private string _tmctype = "";
  20. /// <summary>
  21. ///推送类型
  22. /// </summary>
  23. [Property]
  24. public string tmctype
  25. {
  26. get { return _tmctype; }
  27. set { _tmctype = value; }
  28. }
  29. private string _tmccon = "";
  30. /// <summary>
  31. ///推送内容
  32. /// </summary>
  33. [Property]
  34. public string tmccon
  35. {
  36. get { return _tmccon; }
  37. set { _tmccon = value; }
  38. }
  39. public static void Del(object id)
  40. {
  41. StringBuilder sql = new StringBuilder();
  42. sql.AppendFormat("delete from CE_ErpTmcLog where id=" + id);
  43. ExecuteNonQuery(sql.ToString());
  44. }
  45. }
  46. }