X_Log_Dispatch.cs 1.1 KB

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