Closed shainegordon closed 1 year ago
Hi @shainegordon,
Many thanks for the PR, we can certainly add synchronous equivalents for all the current asynchronous operations, but just behind a an application setting.
Our of interest, why not use FluentValidation's MustAsync
in this case?
Hi @shainegordon I have published a pre-release module which addresses this issue. If you install Intent.EntityFrameworkCore.Repositories v4.2.10-pre.0
I have added a Database setting (see below) which when turned on adds synchronous versions of the repository methods to the repository.
What problem are you trying to solve?
Somes it is easier to use the synchronous methods of EF Core e.g. inside a Fluent Validation
.Must
function.RepositoryBase
already has the.Any
method, it just needs to be added to the interface, so that it is accessible on the domain-specific repositoriesDescribe the solution you'd like
add the following line to
IEFRepository
-bool Any(Expression<Func<TPersistence, bool>> filterExpression);