mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-06-28 13:34:32 +08:00
Update ConfigQuery
This commit is contained in:
parent
84d91cdcf5
commit
8c1e1b0a4c
@ -9,7 +9,7 @@ namespace SqlSugar
|
||||
public class ConfigQuery
|
||||
{
|
||||
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)
|
||||
{
|
||||
@ -29,13 +29,13 @@ namespace SqlSugar
|
||||
SqlFuncExtendsion.TableInfos.Add(new ConfigTableInfo()
|
||||
{
|
||||
Type = typeof(T),
|
||||
TableName = entity.DbTableName,
|
||||
TableName =asTableName??entity.DbTableName,
|
||||
Key = keyValue,
|
||||
Value = ValueValue,
|
||||
Where = where,
|
||||
Parameter = query.Parameters,
|
||||
Code = uniqueCode
|
||||
});
|
||||
});
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user