更新过滤器更改

This commit is contained in:
2022-04-01 10:53:08 +08:00
parent 099d76a53c
commit 7664a92e7e
4 changed files with 12 additions and 8 deletions
@@ -250,7 +250,7 @@ namespace IRaCIS.Core.Infra.EFCore
public async Task<bool> UpdateFromQueryAsync(Expression<Func<TEntity, bool>> where, Expression<Func<TEntity, TEntity>> updateFactory)
{
return await _dbSet.Where(where).UpdateFromQueryAsync(updateFactory) > 0;
return await _dbSet.IgnoreQueryFilters().Where(where).UpdateFromQueryAsync(updateFactory) > 0;
}
#endregion