3 ms·
Abstracting the persistence layer is important, but also unique to your application. ORMs come with some nice features however relying on a full ORM feature set
by xupybd 5y ago
Abstracting the persistence layer is important, but also unique to your application. ORMs come with some nice features however relying on a full ORM feature set can lead to leaky abstraction. Not to mention you have to learn another DSL to use most ORMs. Why not just use SQL. A nice custom wrapper around binding query parameters is all I need most of the time.
If you use an Onion or Clean Architecture you'll push the SQL into its own layer and you don't need an ORM.