|
|
@ -11,8 +11,23 @@ namespace SqlSugar |
|
|
|
{ |
|
|
|
//this.context = context;
|
|
|
|
this.sqlBuilder = InstanceFactory.GetSqlbuilder(context.CurrentConnectionConfig); |
|
|
|
if (context is SqlSugarProvider) |
|
|
|
{ |
|
|
|
this.sqlBuilder.Context = context as SqlSugarProvider; |
|
|
|
} |
|
|
|
else if (context is SqlSugarScopeProvider) |
|
|
|
{ |
|
|
|
this.sqlBuilder.Context = (context as SqlSugarScopeProvider).conn; |
|
|
|
} |
|
|
|
else if(context is SqlSugarScope) |
|
|
|
{ |
|
|
|
this.sqlBuilder.Context = (context as SqlSugarScope).GetConnection(context.CurrentConnectionConfig.ConfigId); |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
this.sqlBuilder.Context = (context as SqlSugarClient).Context; |
|
|
|
} |
|
|
|
} |
|
|
|
//public ISqlSugarClient context { get; set; }
|
|
|
|
public ISqlBuilder sqlBuilder { get; set; } |
|
|
|
public JsonTableNameInfo GetTableName(JToken item) |
|
|
|