mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-23 04:23:47 +08:00
Update ConfigQuery
This commit is contained in:
@@ -9,7 +9,7 @@ namespace SqlSugar
|
|||||||
public class ConfigQuery
|
public class ConfigQuery
|
||||||
{
|
{
|
||||||
public SqlSugarProvider Context { get; set; }
|
public SqlSugarProvider Context { get; set; }
|
||||||
public void SetTable<T>(Expression<Func<T, object>> keyExpression, Expression<Func<T, object>> valueTextExpression, string uniqueCode = null, Expression<Func<T, object>> whereExpression=null)
|
public void SetTable<T>(Expression<Func<T, object>> keyExpression, Expression<Func<T, object>> valueTextExpression, string uniqueCode = null, Expression<Func<T, object>> whereExpression=null,string asTableName=null)
|
||||||
{
|
{
|
||||||
lock (SqlFuncExtendsion.TableInfos)
|
lock (SqlFuncExtendsion.TableInfos)
|
||||||
{
|
{
|
||||||
@@ -29,7 +29,7 @@ namespace SqlSugar
|
|||||||
SqlFuncExtendsion.TableInfos.Add(new ConfigTableInfo()
|
SqlFuncExtendsion.TableInfos.Add(new ConfigTableInfo()
|
||||||
{
|
{
|
||||||
Type = typeof(T),
|
Type = typeof(T),
|
||||||
TableName = entity.DbTableName,
|
TableName =asTableName??entity.DbTableName,
|
||||||
Key = keyValue,
|
Key = keyValue,
|
||||||
Value = ValueValue,
|
Value = ValueValue,
|
||||||
Where = where,
|
Where = where,
|
||||||
|
Reference in New Issue
Block a user