MachineChangeDetail.cs 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. using Cksoft.Unity;
  2. using System;
  3. namespace DllEapEntity
  4. {
  5. [Table("machinechangedetail")]
  6. public class MachineChangeDetail:BaseEntity
  7. {
  8. ////自动产生代码开始&&此行不能删除
  9. #region 自动产生代码
  10. public MachineChangeDetail()
  11. {
  12. base.EntityStatusID = 1;
  13. }
  14. [ColDetail(10,"主键",1,1,100,1,"a.Id","",1,1)]
  15. [Key]
  16. [Identity]
  17. public int Id { get; set; }
  18. [ColDetail(20,"主表ID",1,1,100,1,"a.MstId","",1,1)]
  19. public int MstId { get; set; }
  20. [ColDetail(30,"操作类型(1 改机开始 -1 改机结束)",1,1,100,1,"a.Type","",1,1)]
  21. public int Type { get; set; }
  22. [ColDetail(40,"机种",1,1,100,1,"a.Recipe","",1,1)]
  23. public string Recipe { get; set; }
  24. [ColDetail(50,"操作时间",1,1,100,1,"a.Date","",1,1)]
  25. public DateTime Date { get; set; }
  26. public override string GetSelectSql()
  27. {
  28. return string.Format($"select { GetQueryColSql()} from { GetQueryTabSql()}");
  29. }
  30. public override string GetQueryColSql()
  31. {
  32. string sqlstr = "a.Id Id,a.MstId MstId,a.Type Type,a.Recipe Recipe,a.Date Date,0 EntityStatusID";
  33. return sqlstr;
  34. }
  35. public override string GetQueryTabSql()
  36. {
  37. string sqlstr=" machinechangedetail a ";
  38. return sqlstr;
  39. }
  40. public override string GetQuerySortSql()
  41. {
  42. return "";
  43. }
  44. #endregion
  45. ////自动产生代码结束&&此行不能删除
  46. }
  47. }