Browse Source

-

pull/12/MERGE
sunkaixuan 6 years ago
parent
commit
0abc60ec2b
  1. 2
      Src/Asp.Net/SqlSugar/Abstract/QueryableProvider/QueryableProvider.cs
  2. 2
      Src/Asp.Net/SqlSugar/CacheScheme/CacheKeyBuider.cs
  3. 2
      Src/Asp.Net/SqlSugar/CacheScheme/CacheSchemeMain.cs
  4. 2
      Src/Asp.Net/SqlSugar/Interface/IQueryable.cs
  5. 2
      Src/Asp.Net/SqlSugar/Interface/ISqlSugarClient.cs
  6. 2
      Src/Asp.Net/SqlSugar/SqlSugarClient.cs

2
Src/Asp.Net/SqlSugar/Abstract/QueryableProvider/QueryableProvider.cs

@ -16,7 +16,7 @@ namespace SqlSugar
#region T1
public partial class QueryableProvider<T> : QueryableAccessory, ISugarQueryable<T>
{
public ISqlSugarClient Context { get; set; }
public SqlSugarProvider Context { get; set; }
public IAdo Db { get { return Context.Ado; } }
public IDbBind Bind { get { return this.Db.DbBind; } }
public ISqlBuilder SqlBuilder { get; set; }

2
Src/Asp.Net/SqlSugar/CacheScheme/CacheKeyBuider.cs

@ -7,7 +7,7 @@ namespace SqlSugar
{
internal class CacheKeyBuider
{
public static CacheKey GetKey(ISqlSugarClient context, QueryBuilder queryBuilder)
public static CacheKey GetKey(SqlSugarProvider context, QueryBuilder queryBuilder)
{
CacheKey result = new CacheKey();
result.Database = context.Context.Ado.Connection.Database;

2
Src/Asp.Net/SqlSugar/CacheScheme/CacheSchemeMain.cs

@ -7,7 +7,7 @@ namespace SqlSugar
{
internal class CacheSchemeMain
{
public static T GetOrCreate<T>(ICacheService cacheService, QueryBuilder queryBuilder, Func<T> getData, int cacheDurationInSeconds, ISqlSugarClient context)
public static T GetOrCreate<T>(ICacheService cacheService, QueryBuilder queryBuilder, Func<T> getData, int cacheDurationInSeconds, SqlSugarProvider context)
{
CacheKey key = CacheKeyBuider.GetKey(context, queryBuilder);
string keyString = key.ToString();

2
Src/Asp.Net/SqlSugar/Interface/IQueryable.cs

@ -11,7 +11,7 @@ namespace SqlSugar
{
public partial interface ISugarQueryable<T>
{
ISqlSugarClient Context { get; set; }
SqlSugarProvider Context { get; set; }
ISqlBuilder SqlBuilder { get; set; }
QueryBuilder QueryBuilder { get; set; }
ISugarQueryable<T> Clone();

2
Src/Asp.Net/SqlSugar/Interface/ISqlSugarClient.cs

@ -23,7 +23,7 @@ namespace SqlSugar
IAdo Ado { get; }
AopProvider Aop { get; }
ICodeFirst CodeFirst { get; }
SqlSugarProvider Context { get; set; }
IDbFirst DbFirst { get; }
IDbMaintenance DbMaintenance { get; }

2
Src/Asp.Net/SqlSugar/SqlSugarClient.cs

@ -45,7 +45,7 @@ namespace SqlSugar
#endregion
#region Global variable
public SqlSugarProvider Context { get => GetContext(); set => _Context = value; }
public SqlSugarProvider Context { get => GetContext();}
public bool IsSystemTablesConfig => this.Context.IsSystemTablesConfig;
public ConnectionConfig CurrentConnectionConfig { get => _CurrentConnectionConfig; set => _CurrentConnectionConfig = value; }
public Guid ContextID { get => this.Context.ContextID; set => this.Context.ContextID = value; }

Loading…
Cancel
Save