2 ms·
ORMs are great for simple stuff, but there's nothing stopping you from switching to raw SQL for more complex stuff. Why can't you do both? I do it all the time
by mattmanser 8y ago
ORMs are great for simple stuff, but there's nothing stopping you from switching to raw SQL for more complex stuff.
Why can't you do both? I do it all the time.
- thymanl23 8y agoIn an ORM, the returned objects from even raw SQL is still ORM objects (database-aware objects). I prefer keeping the business logic layer distinct from the data access layer, so I prefer for the return objects to be pure business objects. Maybe I'm being too anal and forcing a distinction where there doesn't need one?