EntityInfo.cs 852 B

123456789101112131415161718192021222324
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Reflection;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace SqlSugar
  8. {
  9. public class EntityInfo
  10. {
  11. private string _DbTableName;
  12. public string EntityName { get; set; }
  13. public string DbTableName { get { return _DbTableName == null ? EntityName : _DbTableName; } set { _DbTableName = value; } }
  14. public string TableDescription { get; set; }
  15. public Type Type { get; set; }
  16. public List<EntityColumnInfo> Columns { get; set; }
  17. public bool IsDisabledDelete { get; set; }
  18. public bool IsDisabledUpdateAll { get; set; }
  19. public List<SugarIndexAttribute> Indexs { get; set; }
  20. public bool IsCreateTableFiledSort { get; set; }
  21. public string Discrimator { get; set; }
  22. }
  23. }