Add WhereColumns(Dictionary<string, object> columns);

This commit is contained in:
sunkaixuan 2022-07-05 01:42:14 +08:00
parent 3049c4880b
commit c82b3a0e40
2 changed files with 5 additions and 0 deletions

View File

@ -419,6 +419,10 @@ namespace SqlSugar
}
return this;
}
public ISugarQueryable<T> WhereColumns(Dictionary<string, object> dictionary)
{
return WhereColumns(new List<Dictionary<string, object>> { dictionary });
}
public ISugarQueryable<T> WhereColumns(List<Dictionary<string, object>> list)
{
List<IConditionalModel> conditionalModels = new List<IConditionalModel>();

View File

@ -54,6 +54,7 @@ namespace SqlSugar
ISugarQueryable<T> WhereClassByPrimaryKey(List<T> list);
ISugarQueryable<T> WhereClassByPrimaryKey(T data) ;
ISugarQueryable<T> WhereColumns(List<Dictionary<string, object>> columns);
ISugarQueryable<T> WhereColumns(Dictionary<string, object> columns);
ISugarQueryable<T> TranLock(DbLockType LockType = DbLockType.Wait);
ISugarQueryable<T> Where(Expression<Func<T, bool>> expression);
ISugarQueryable<T> Where(string whereString, object parameters = null);