Yawnder
✅ EF Best way to do UPDATE on entity
This logic should generally be implemented at the service/logic level, since it's at that point that you know how to handle what.
If you want, you can let some exceptions through, like the DbUpdateConcurrency exception, and have these handled by a middleware.
24 replies
✅ EF Best way to do UPDATE on entity
With repositories on top of EFC's repository (yes, EF/EFC already implement the Unit of Work and the Repositories), you lose key abilities like projection and dynamic filtering, unless you add in tons and tons of pass-through that you have to add in, with all the boilerplate that goes with it.
24 replies