This commit is contained in:
sunkaixuan
2019-05-08 16:49:06 +08:00
parent 39783f2934
commit 6562e9ab58
3 changed files with 15 additions and 2 deletions

View File

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

View File

@@ -22,6 +22,18 @@ namespace SqlSugar
_Context = value;
}
}
internal SqlSugarEngine ContextAsync
{
get
{
_ContextAsync = this;
return _ContextAsync;
}
set
{
_ContextAsync = value;
}
}
public ConnectionConfig CurrentConnectionConfig { get; set; }
public Dictionary<string, object> TempItems { get { if (_TempItems == null) { _TempItems = new Dictionary<string, object>(); } return _TempItems; } set=>_TempItems=value; }
@@ -41,6 +53,7 @@ namespace SqlSugar
public QueueList _Queues;
protected ISqlBuilder _SqlBuilder;
protected ISqlSugarClient _Context { get; set; }
protected SqlSugarEngine _ContextAsync { get; set; }
protected EntityMaintenance _EntityProvider;
protected IAdo _Ado;
protected ILambdaExpressions _LambdaExpressions;

View File

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