OfAppletlog.cs 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. using Cksoft.Unity;
  2. using System;
  3. namespace DllEapEntity
  4. {
  5. [Table("ofappletlog")]
  6. public class OfAppletlog:BaseEntity
  7. {
  8. ////自动产生代码开始&&此行不能删除
  9. #region 自动产生代码
  10. public OfAppletlog()
  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,"macCode",1,1,100,1,"a.macCode","",1,1)]
  19. public string macCode { get; set; }
  20. [ColDetail(30,"AppletV",1,1,100,1,"a.AppletV","",1,1)]
  21. public string AppletV { get; set; }
  22. [ColDetail(40,"AppletS",1,1,100,1,"a.AppletS","",1,1)]
  23. public int AppletS { get; set; }
  24. [ColDetail(50,"RecTime",1,1,100,1,"a.RecTime","",1,1)]
  25. public DateTime RecTime { 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.macCode macCode,a.AppletV AppletV,a.AppletS AppletS,a.RecTime RecTime,0 EntityStatusID";
  33. return sqlstr;
  34. }
  35. public override string GetQueryTabSql()
  36. {
  37. string sqlstr=" ofappletlog a ";
  38. return sqlstr;
  39. }
  40. public override string GetQuerySortSql()
  41. {
  42. return "";
  43. }
  44. #endregion
  45. ////自动产生代码结束&&此行不能删除
  46. }
  47. }