1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- using Cksoft.Unity;
- using System;
- namespace DllEapEntity
- {
- [Table("attachment")]
- public class Attachment:BaseEntity
- {
- ////自动产生代码开始&&此行不能删除
- #region 自动产生代码
- public Attachment()
- {
- base.EntityStatusID = 1;
- }
- [ColDetail(20,"Id",1,1,100,1,"a.Id","",1,1)]
- [Key]
- [Identity]
- public int Id { get; set; }
- [ColDetail(30,"PreId",1,1,100,1,"a.PreId","",1,1)]
- public int PreId { get; set; }
- [ColDetail(40,"FilePath",1,1,100,1,"a.FilePath","",1,1)]
- public string FilePath { get; set; }
- [ColDetail(60,"FileName",1,1,100,1,"a.FileName","",1,1)]
- public string FileName { get; set; }
- public override string GetSelectSql()
- {
- return string.Format($"select { GetQueryColSql()} from { GetQueryTabSql()}");
- }
- public override string GetQueryColSql()
- {
- string sqlstr = "a.Id Id,a.PreId PreId,a.FilePath FilePath,a.FileName FileName,0 EntityStatusID";
- return sqlstr;
- }
- public override string GetQueryTabSql()
- {
- string sqlstr=" attachment a ";
- return sqlstr;
- }
- public override string GetQuerySortSql()
- {
- return "";
- }
- #endregion
- ////自动产生代码结束&&此行不能删除
- }
- }
|