mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-05-16 21:19:34 +08:00
Json 2 sql
This commit is contained in:
parent
4c2e48529d
commit
fca301b195
@ -82,7 +82,12 @@ namespace SqlSugar
|
||||
this.QueryableObj = method.Invoke(QueryableObj, new object[] { groupBySql });
|
||||
return this;
|
||||
}
|
||||
|
||||
public QueryMethodInfo Where(string expShortName, FormattableString expressionString)
|
||||
{
|
||||
var method = QueryableObj.GetType().GetMyMethod("Where", 2, typeof(string),typeof(FormattableString));
|
||||
this.QueryableObj = method.Invoke(QueryableObj, new object[] { expShortName, expressionString });
|
||||
return this;
|
||||
}
|
||||
public QueryMethodInfo Where(List<IConditionalModel> conditionalModels)
|
||||
{
|
||||
var method = QueryableObj.GetType().GetMyMethod("Where", 1, typeof(List<IConditionalModel>));
|
||||
|
@ -917,6 +917,12 @@ namespace SqlSugar
|
||||
}
|
||||
return this;
|
||||
}
|
||||
public virtual ISugarQueryable<T> Where(string expShortName, FormattableString expressionString)
|
||||
{
|
||||
var exp = DynamicCoreHelper.GetWhere<T>(expShortName, expressionString);
|
||||
_Where(exp);
|
||||
return this;
|
||||
}
|
||||
public virtual ISugarQueryable<T> Where(Expression<Func<T, bool>> expression)
|
||||
{
|
||||
this._Where(expression);
|
||||
|
@ -84,6 +84,7 @@ namespace SqlSugar
|
||||
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 expShortName, FormattableString expressionString);
|
||||
ISugarQueryable<T> Where(string whereString, object parameters = null);
|
||||
ISugarQueryable<T> Where(IFuncModel funcModel);
|
||||
ISugarQueryable<T> Where(List<IConditionalModel> conditionalModels);
|
||||
|
Loading…
Reference in New Issue
Block a user