“Instead, you should have a separate repository per domain class, like OrderRepository, ShippingRepository and ProductRepository.”
Hi Mosh,
Do you mind to share your thought about Generic Repository pattern? What do you think about it?
Thanks.
Do you mind to share your thought about Generic Repository pattern? What do you think about it?
Thanks.
Generic repository is good as long as your methods don’t method IQueryable. Otherwise, it’s like you’re wrapping DbSet with another class with the same interface. No point in doing that!
It’s useful when you wanna get simple objects (like reference data) without having to create a separate repository for each entity.
No comments:
Post a Comment