4 ms·
Unfortunately EF doesn't provide a interface. Unlikely I know but what if you swapped your ORM, wouldn't that mean a lot of refactoring?
by jchannon 14y ago
Unfortunately EF doesn't provide a interface. Unlikely I know but what if you swapped your ORM, wouldn't that mean a lot of refactoring?
- joshka 14y agoIDbSet<T> is enough. If you swap your ORM, you're swapping mindset more than just methods, unless you're mapping ORM entities to POCOs in your repository object.
- PommeDeTerre 14y agoThere's going to be a lot of refactoring either way, whether there are custom abstraction layers in place, and whether there aren't. The abstraction layers that were originally intended to ease a transition between ORMs or DBs often end up making such a transition far more difficult. They just end up being another huge amount of code that needs some type of refactoring.
- dodyg 14y agoORM swapping is YAGNI.