Whats your favorite ORM?

KB

Diamond Member
Nov 8, 1999
5,402
386
126


I have begun again to look at using ORMs for my .Net development. Whenever I do, there is always some key flaw that makes me pass on them. What are the best ones you use.
 

imported_Dhaval00

Senior member
Jul 23, 2004
573
0
0
Most of the time I build my own ORM's and try to document them well. This gives me the flexibility of thinking outside the box and I don't get too much caught up trying to figure out why a specific ORM-provider isn't working.

If you're inclined on using .NET, and have heard about .NET 3.5, check out the LINQ library. It is kick ass.
 

Thyme

Platinum Member
Nov 30, 2000
2,330
0
0
I like Hibernate for Java. I suspect NHibernate is just as good for .net. It keeps my layers separated well. Tools are also good enough to let me code and debug nearly completely in OO mode and not DB mode.
 

KB

Diamond Member
Nov 8, 1999
5,402
386
126
Originally posted by: Dhaval00
Most of the time I build my own ORM's and try to document them well. This gives me the flexibility of thinking outside the box and I don't get too much caught up trying to figure out why a specific ORM-provider isn't working.

If you're inclined on using .NET, and have heard about .NET 3.5, check out the LINQ library. It is kick ass.

Thats exactly why I have been avoiding ORMs. It is a pain to figure out why its not working because it is so black-boxed.

I looked at LINQ and don't like it at all. It doesn't work well in a webservices/wcf environment since the changes to the data have to occur with an open DataContext (of course there are workarounds but I shouldn't have to workaround it). Most applications today are disconnected like web applications.

So far the project that I like the most has been an ORM/ code generator called subsonic. It is the closest thing to what I was originally doing in my DAL and it uses the Enterprise Library. Plus when I get errors I can insert debug code into the generated code to see whats going on.

Thanks for the responses so far.
 

Argo

Lifer
Apr 8, 2000
10,045
0
0
I use Hibernate and find it fairly easy to use provided you read the documentation. Especially with annotation and JPA support that it now has.
 

Markbnj

Elite Member <br>Moderator Emeritus
Moderator
Sep 16, 2005
15,682
14
81
www.markbetz.net
I don't like them, and never have. The database is not just a byproduct of the class design. The database is a discrete component of the system with its own standards and performance tools. It will probably be around, and be relevant, long after the application code has been relegated to an archive tape somewhere.

In a good design there is a strong correspondence between the entities in the DB and the classes in the app at runtime, but I believe in layers, and think each tier ought to be as decoupled from the others as practical. My favorite approach is to have a thin layer of data adapter classes that call stored procedures. This is a nice approach in terms of decoupling, permissions granularity, and performance.
 

Brett

Senior member
Oct 15, 1999
377
0
76
I agree with Markbnj here,

I've used hibernate, and on more than one occasion we had to change a database design because hibernate would not easily handle our design. We had to use designs that were less desirable because the alternatives were spending days working around hibernate.
 

Thyme

Platinum Member
Nov 30, 2000
2,330
0
0
Hibernate or ORM in general isn't the tool for every project. Still, it's a good tool for a large variety of projects. If your use of ORM makes it _harder_ to change your design, then you are probably using it incorrectly.
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |