Hacker News new | ask | show | jobs
by DarkNova6 660 days ago
Depends on what you are doing. A good ORM lets you create entities from tables, or creates tables from entities.

Good ORMs make sure your data model is always aligned with the DB, and there is no way in hell a runtime error can occur. What's more, it automates the mindless data class/table matching for 99% of your use-cases.

Once you got a more sophisticated query, please use SQL. But for simple stuff, use ORM.