mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-22 20:13:41 +08:00
-
This commit is contained in:
@@ -16,7 +16,7 @@ namespace SqlSugar
|
|||||||
#region T1
|
#region T1
|
||||||
public partial class QueryableProvider<T> : QueryableAccessory, ISugarQueryable<T>
|
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 IAdo Db { get { return Context.Ado; } }
|
||||||
public IDbBind Bind { get { return this.Db.DbBind; } }
|
public IDbBind Bind { get { return this.Db.DbBind; } }
|
||||||
public ISqlBuilder SqlBuilder { get; set; }
|
public ISqlBuilder SqlBuilder { get; set; }
|
||||||
|
@@ -22,6 +22,18 @@ namespace SqlSugar
|
|||||||
_Context = value;
|
_Context = value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
internal SqlSugarEngine ContextAsync
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
_ContextAsync = this;
|
||||||
|
return _ContextAsync;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
_ContextAsync = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public ConnectionConfig CurrentConnectionConfig { get; set; }
|
public ConnectionConfig CurrentConnectionConfig { get; set; }
|
||||||
public Dictionary<string, object> TempItems { get { if (_TempItems == null) { _TempItems = new Dictionary<string, object>(); } return _TempItems; } set=>_TempItems=value; }
|
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;
|
public QueueList _Queues;
|
||||||
protected ISqlBuilder _SqlBuilder;
|
protected ISqlBuilder _SqlBuilder;
|
||||||
protected ISqlSugarClient _Context { get; set; }
|
protected ISqlSugarClient _Context { get; set; }
|
||||||
|
protected SqlSugarEngine _ContextAsync { get; set; }
|
||||||
protected EntityMaintenance _EntityProvider;
|
protected EntityMaintenance _EntityProvider;
|
||||||
protected IAdo _Ado;
|
protected IAdo _Ado;
|
||||||
protected ILambdaExpressions _LambdaExpressions;
|
protected ILambdaExpressions _LambdaExpressions;
|
||||||
|
@@ -11,7 +11,7 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
public partial interface ISugarQueryable<T>
|
public partial interface ISugarQueryable<T>
|
||||||
{
|
{
|
||||||
ISqlSugarClient Context { get; set; }
|
SqlSugarEngine Context { get; set; }
|
||||||
ISqlBuilder SqlBuilder { get; set; }
|
ISqlBuilder SqlBuilder { get; set; }
|
||||||
QueryBuilder QueryBuilder { get; set; }
|
QueryBuilder QueryBuilder { get; set; }
|
||||||
ISugarQueryable<T> Clone();
|
ISugarQueryable<T> Clone();
|
||||||
|
Reference in New Issue
Block a user