mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-19 20:38:16 +08:00
- 修复 GlobalFilter.ApplyIf + Repository.DataFilter.DisableAll 可能不生效的问题;
This commit is contained in:
@ -85,5 +85,6 @@ namespace FreeSql.Internal
|
||||
public void Remove(string name) => _filters.TryRemove(name ?? throw new ArgumentNullException(nameof(name)), out var _);
|
||||
|
||||
public List<Item> GetFilters() => _filters.Values.Where(a => a.Condition?.Invoke() != false).OrderBy(a => a.Id).ToList();
|
||||
public List<Item> GetAllFilters() => _filters.Values.OrderBy(a => a.Id).ToList();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user