vileruby
❔ Repository pattern
Creating a tutorial App and I have a EF Core DbContext injected in a a generic Repostitory<T> class. The problem i'm having is I want to be able to save multiple entities at once, but currently due to the Repository pattern it seems I am limited to saving one entity at a time. Am I using the wrong pattern? Is there an established way of handling this scenario?
21 replies