123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- using Cksoft.Unity;
- using System;
- namespace DllEapEntity.RA
- {
- [Table("statusinfo")]
- public class StatusInfo:BaseEntity
- {
- ////自动产生代码开始&&此行不能删除
- #region 自动产生代码
- public StatusInfo()
- {
- base.EntityStatusID = 1;
- }
- [ColDetail(10,"ID",1,1,100,1,"a.ID","",1,1)]
- [Key]
- [Identity]
- public int ID { get; set; }
- [ColDetail(20,"machine主键",1,1,100,1,"a.MacID","",1,1)]
- public int MacID { get; set; }
- [ColDetail(30,"状态 0=停机,1=运转,2=预约",1,1,100,1,"a.Status","",1,1)]
- public string Status { get; set; }
- [ColDetail(40,"开始时间",1,1,100,1,"a.StartTime","",1,1)]
- public DateTime StartTime { get; set; }
- [ColDetail(50,"结束时间",1,1,100,1,"a.EndTime","",1,1)]
- public DateTime EndTime { get; set; }
- [ColDetail(60,"创建人信息",1,1,100,1,"a.RecCode","",1,1)]
- public string RecCode { get; set; }
- [ColDetail(70,"创建时间",1,1,100,1,"a.RecTime","",1,1)]
- public DateTime RecTime { get; set; }
- [ColDetail(80,"修改人信息",1,1,100,1,"a.ModeCode","",1,1)]
- public string ModeCode { get; set; }
- [ColDetail(90,"修改时间",1,1,100,1,"a.ModeTime","",1,1)]
- public DateTime ModeTime { get; set; }
- [ColDetail(100,"状态持续时间(小时)",1,1,100,1,"a.Duration","",1,1)]
- public string Duration { get; set; }
- public override string GetSelectSql()
- {
- return string.Format($"select { GetQueryColSql()} from { GetQueryTabSql()}");
- }
- public override string GetQueryColSql()
- {
- string sqlstr = "a.ID ID,a.MacID MacID,a.Status Status,a.StartTime StartTime,a.EndTime EndTime,a.RecCode RecCode,a.RecTime RecTime,a.ModeCode ModeCode";
- sqlstr += ",a.ModeTime ModeTime,a.Duration Duration,0 EntityStatusID";
- return sqlstr;
- }
- public override string GetQueryTabSql()
- {
- string sqlstr=" statusinfo a ";
- return sqlstr;
- }
- public override string GetQuerySortSql()
- {
- return "";
- }
- #endregion
- ////自动产生代码结束&&此行不能删除
- }
- }
|