Synchronization code

This commit is contained in:
sunkaixuan
2023-07-17 19:18:14 +08:00
parent 07b74b187e
commit 0fbe8237b1
4 changed files with 40 additions and 0 deletions

View File

@@ -901,6 +901,17 @@ namespace SqlSugar
if (list == null) return default(T);
else return list.SingleOrDefault();
}
public ISugarQueryable<T> InIF<TParamter>(bool isIn,string fieldName, params TParamter[] pkValues)
{
if (isIn)
{
return In(fieldName, pkValues);
}
else
{
return this;
}
}
public ISugarQueryable<T> InIF<TParamter>(bool isIn, params TParamter[] pkValues)
{
if (isIn)