CeColumns.cs 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. using System;
  2. using Castle.ActiveRecord;
  3. using System.Text;
  4. namespace BizCom
  5. {
  6. [ActiveRecord("CE_Columns")]
  7. public class CeColumns : ComBase<CeColumns>
  8. {
  9. private string _name="";
  10. /// <summary>
  11. ///
  12. /// </summary>
  13. [Property]
  14. public string Name
  15. {
  16. get{ return _name; }
  17. set{ _name=value; }
  18. }
  19. private int _userID=0;
  20. /// <summary>
  21. ///
  22. /// </summary>
  23. [Property]
  24. public int UserID
  25. {
  26. get{ return _userID; }
  27. set{ _userID=value; }
  28. }
  29. private string _con="";
  30. /// <summary>
  31. ///
  32. /// </summary>
  33. [Property]
  34. public string Con
  35. {
  36. get{ return _con; }
  37. set{ _con=value; }
  38. }
  39. private string _cpath="";
  40. /// <summary>
  41. ///
  42. /// </summary>
  43. [Property]
  44. public string cpath
  45. {
  46. get{ return _cpath; }
  47. set{ _cpath=value; }
  48. }
  49. private bool _issys=false;
  50. /// <summary>
  51. ///
  52. /// </summary>
  53. [Property]
  54. public bool issys
  55. {
  56. get{ return _issys; }
  57. set{ _issys=value; }
  58. }
  59. public static void Del(object id)
  60. {
  61. StringBuilder sql = new StringBuilder();
  62. sql.AppendFormat("delete from CE_Columns where id=" + id);
  63. ExecuteNonQuery(sql.ToString());
  64. }
  65. }
  66. }