Codelink.cs 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. using Cksoft.Unity;
  2. using System;
  3. namespace DllEapEntity
  4. {
  5. [Table("codelink")]
  6. public class Codelink:BaseEntity
  7. {
  8. ////自动产生代码开始&&此行不能删除
  9. #region 自动产生代码
  10. public Codelink()
  11. {
  12. base.EntityStatusID = 1;
  13. }
  14. [ColDetail(10,"ID",1,1,100,1,"a.ID","",1,1)]
  15. [Key]
  16. [Identity]
  17. public int ID { get; set; }
  18. [ColDetail(20,"lineCode",1,1,100,1,"a.lineCode","",1,1)]
  19. public string lineCode { get; set; }
  20. [ColDetail(30,"backCode",1,1,100,1,"a.backCode","",1,1)]
  21. public string backCode { get; set; }
  22. [ColDetail(40,"machineCode",1,1,100,1,"a.machineCode","",1,1)]
  23. public string machineCode { get; set; }
  24. [ColDetail(50,"machineName",1,1,100,1,"a.machineName","",1,1)]
  25. public string machineName { get; set; }
  26. [ColDetail(60,"posCode",1,1,100,1,"a.posCode","",1,1)]
  27. public string posCode { get; set; }
  28. [ColDetail(70,"updateTime",1,1,100,1,"a.updateTime","",1,1)]
  29. public DateTime updateTime { get; set; }
  30. public override string GetSelectSql()
  31. {
  32. return string.Format($"select { GetQueryColSql()} from { GetQueryTabSql()}");
  33. }
  34. public override string GetQueryColSql()
  35. {
  36. string sqlstr = "a.ID ID,a.lineCode lineCode,a.backCode backCode,a.machineCode machineCode,a.machineName machineName,a.posCode posCode,a.updateTime updateTime";
  37. sqlstr += ",0 EntityStatusID";
  38. return sqlstr;
  39. }
  40. public override string GetQueryTabSql()
  41. {
  42. string sqlstr=" codelink a ";
  43. return sqlstr;
  44. }
  45. public override string GetQuerySortSql()
  46. {
  47. return "";
  48. }
  49. #endregion
  50. ////自动产生代码结束&&此行不能删除
  51. }
  52. }