|
As a developer ORMs can be a real benefit, they can speed up development time significantly, and they offer a proven, standardised structure to your data access layer, if used well you can even write code that is database agnostic. But in some ways these are also the problems. Developers no longer have to worry about what is going on at the database level, and I hear a lot of DBAs complaining about the use of ORMs, how they aren't good for the database and make a DBAs life harder. I feel I have a fairly good understanding of what some of the problems are (query plans etc.) but what I'd really like to know is: Is there is a way of using an ORM so that I don't make the DBA's life a nightmare?
(comments are locked)
|
|
I have no issues with ORM tools when they are used as defined, Object to Relational Mapping. The issue I have is when the tools are used as Object to Object Mapping inside of a relational engine. That causes no end of trouble. Unfortunately, that's how most developers seem to see the tools. I agree with Grant. In my opinion you use the ORM to create your classes and then use stored procedures in the data layer to populate your classes.
Oct 28 '09 at 12:14 PM
Jack Corbett
(comments are locked)
|
|
Can't we just teach developers to write SQL :) Are you trying to do yourself out of a job?!
Oct 28 '09 at 12:23 PM
thatismatt ♦♦
I think most developers already "know" SQL. That's the problem. SELECT * FROM a INNER JOIN b INNER JOIN c ...
Nov 13 '09 at 02:09 PM
Tom Staab
(comments are locked)
|
|
Matt Lee Here is an ORM that works with SQL Server https://www.kellermansoftware.com/p-47-net-data-access-layer.aspx
(comments are locked)
|
|
There are a couple of complications with ORMs:
In many cases, they are still well worth using, but the trade offs must be examined realistically first.
(comments are locked)
|


Many of the answers will probably overlap for content with http://ask.sqlservercentral.com/questions/283/stored-procedures-vs-a-business-logic-layer-in-code