Re:The many approaches to Entity Framework
by jchannon on Monday March 04, 2013 @11:28AM
(#5318938)
Thanks for your comment! Did I have a choice about what ORM I used? No
I agree about your approach regarding a service in a larger app but in a smaller app I have come to the conclusion today that IDBContext injected into a controller would be better than a repo, as you say you arent going to change ORMs in reality and it exposes the native functionality of your ORM.
I agree about your approach regarding a service in a larger app but in a smaller app I have come to the conclusion today that IDBContext injected into a controller would be better than a repo, as you say you arent going to change ORMs in reality and it exposes the native functionality of your ORM.