mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-24 18:04:52 +08:00
Update EnableQueryFilter
This commit is contained in:
parent
4141c1cc37
commit
7783e7ea23
@ -306,7 +306,11 @@ namespace SqlSugar
|
||||
var queryable = this.Context.Queryable<T>();
|
||||
queryable.QueryBuilder.LambdaExpressions.ParameterIndex= 1000;
|
||||
var sqlable= queryable.ToSql();
|
||||
this.Where(Regex.Split(sqlable.Key," Where ",RegexOptions.IgnoreCase).Last(), sqlable.Value);
|
||||
var whereInfos = Regex.Split(sqlable.Key, " Where ", RegexOptions.IgnoreCase);
|
||||
if (whereInfos.Length > 1)
|
||||
{
|
||||
this.Where(whereInfos.Last(), sqlable.Value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
public SplitTableDeleteProvider<T> SplitTable(Func<List<SplitTableInfo>, IEnumerable<SplitTableInfo>> getTableNamesFunc)
|
||||
|
Loading…
Reference in New Issue
Block a user