DEV Community

Discussion on: ORM-less Data Access in .Net Core

Collapse
 
aerosoul profile image
Daniel Liuzzi

Portability is always the first reason that comes up for using an ORM, and I wonder how often switching DB vendors actually happens in the real world.

Also, when using Dapper you really don't need those DECLAREs as it infers them from the values you pass in.

Lastly, your own example shows the cost of the ORM convenience. For instance, say you only need ID and Name for populating a drop-down list, an ORM will select each and every column in the table, whereas in SQL you can SELECT ID, Name.