Closed thorstenalpers closed 9 months ago
Hi @thorstenalpers
Yea we may add it. Do you want to give it a try? @ardalis do you have any objections?
Yeah, I would try it out, I could also create a PR with UnitTests.
No objections, go for it @thorstenalpers !
@ardalis I have created a fork and created a branch "feature/delete-range-by-spec" and created a PR in my repository.
PR: https://github.com/ardalis/Specification/pull/369
I have implemented it for both EF6 and EfCore. EF6 doesn't delete referenced entities automatically, therefore I added some specifications for entities without referenced entities.
If you want some more tests or explanations then feel free to contact me.
Resolved by PR #369
Hi, Ardalis Specification is a really great project that I use extensively as Nuget. I have an additional feature request. I have implemented in my own EfRepository, but would like to see in your project. It is about deleting entities per specification.
The existing way is to list entities and then delete them.
I could also create a PR with unittests.