mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-23 22:11:36 +08:00
Update ConfigQuery
This commit is contained in:
parent
4cb5bfa326
commit
c990d44d64
@ -10,6 +10,8 @@ namespace SqlSugar
|
||||
{
|
||||
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)
|
||||
{
|
||||
lock (SqlFuncExtendsion.TableInfos)
|
||||
{
|
||||
var entity = this.Context.EntityMaintenance.GetEntityInfo<T>();
|
||||
ExpressionContext context = new ExpressionContext();
|
||||
@ -40,6 +42,7 @@ namespace SqlSugar
|
||||
Check.Exception(true, "SetKeyValue error , entity & uniqueCode already exist");
|
||||
}
|
||||
}
|
||||
}
|
||||
public void SetTable<T>(Expression<Func<T, object>> key, Expression<Func<T, object>> value)
|
||||
{
|
||||
SetTable<T>(key,value, null,null);
|
||||
|
Loading…
Reference in New Issue
Block a user