using Cksoft.Unity; using System; namespace DllEapEntity { [Table("codelink")] public class Codelink:BaseEntity { ////自动产生代码开始&&此行不能删除 #region 自动产生代码 public Codelink() { base.EntityStatusID = 1; } [ColDetail(10,"ID",1,1,100,1,"a.ID","",1,1)] [Key] [Identity] public int ID { get; set; } [ColDetail(20,"lineCode",1,1,100,1,"a.lineCode","",1,1)] public string lineCode { get; set; } [ColDetail(30,"backCode",1,1,100,1,"a.backCode","",1,1)] public string backCode { get; set; } [ColDetail(40,"machineCode",1,1,100,1,"a.machineCode","",1,1)] public string machineCode { get; set; } [ColDetail(50,"machineName",1,1,100,1,"a.machineName","",1,1)] public string machineName { get; set; } [ColDetail(60,"posCode",1,1,100,1,"a.posCode","",1,1)] public string posCode { get; set; } [ColDetail(70,"updateTime",1,1,100,1,"a.updateTime","",1,1)] public DateTime updateTime { get; set; } public override string GetSelectSql() { return string.Format($"select { GetQueryColSql()} from { GetQueryTabSql()}"); } public override string GetQueryColSql() { string sqlstr = "a.ID ID,a.lineCode lineCode,a.backCode backCode,a.machineCode machineCode,a.machineName machineName,a.posCode posCode,a.updateTime updateTime"; sqlstr += ",0 EntityStatusID"; return sqlstr; } public override string GetQueryTabSql() { string sqlstr=" codelink a "; return sqlstr; } public override string GetQuerySortSql() { return ""; } #endregion ////自动产生代码结束&&此行不能删除 } }