I work in an ASP.net/ SQL Server development environment. If my only concern is speed should I go with parametrized queries or should I use an ORM such as nHibernate or LINQ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
All things being equal, ORMs add overhead, so they start at a disadvantage.
On the other hand, an ORM might generate more efficient SQL than you and many of them come with built-in caching features that you don’t have to write yourself (and if they suit your purposes, the improvements you gain from that caching might be greater than what you lose to additional overhead).