QueryableProperties.cs 1.3 KB

123456789101112131415161718192021222324252627282930313233
  1. using System;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. using System.Data;
  5. using System.Linq;
  6. using System.Linq.Expressions;
  7. using System.Text;
  8. using System.Text.RegularExpressions;
  9. using System.Reflection;
  10. using System.Dynamic;
  11. using System.Threading.Tasks;
  12. namespace SqlSugar
  13. {
  14. public partial class QueryableProvider<T> : QueryableAccessory, ISugarQueryable<T>
  15. {
  16. public SqlSugarProvider Context { get; set; }
  17. public IAdo Db { get { return Context.Ado; } }
  18. public IDbBind Bind { get { return this.Db.DbBind; } }
  19. public ISqlBuilder SqlBuilder { get; set; }
  20. public MappingTableList OldMappingTableList { get; set; }
  21. public MappingTableList QueryableMappingTableList { get; set; }
  22. public List<Action<T>> MapperAction { get; set; }
  23. public Action<T, MapperCache<T>> MapperActionWithCache { get; set; }
  24. public List<Action<List<T>>> Mappers { get; set; }
  25. public bool IsCache { get; set; }
  26. public int CacheTime { get; set; }
  27. public string CacheKey { get; set; }
  28. public bool IsAs { get; set; }
  29. public QueryBuilder QueryBuilder { get{ return this.SqlBuilder.QueryBuilder;} set{ this.SqlBuilder.QueryBuilder = value;}}
  30. public EntityInfo EntityInfo{get{ return this.Context.EntityMaintenance.GetEntityInfo<T>();}}
  31. }
  32. }