You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
freesql.GlobalFilter.Apply<IEntitySoftDelete>("SoftDelete", a => a.IsDel == 0);
搜索过滤测试
var item1 = _fsql.GetGuidRepository<BillItem>().Where(m => m.BillNo.Equals(BillNo)).ToList();
var rep = _fsql.GetGuidRepository<BillItem>();
using (rep.DataFilter.Disable("SoftDelete"))
{
//在这段中,repo1 之 test 过滤器失效
var item2= rep.Where(m => m.BillNo.Equals(BillNo)).ToSql();
}
//
var item3 = rep.Where(m => m.BillNo.Equals(BillNo)).ToList();
问题描述及重现步骤:
程序启动时启用了全局软删除过滤器
搜索过滤测试
其中item1 item2 item3 搜索出来的结果一样均是一条记录,理论过滤器失效,item2 会搜索出两条记录
请问 是我的用法有问题吗?
数据库的具体版本
安装的包
.net framework/. net core? 及具体版本
The text was updated successfully, but these errors were encountered: