NHibernate??
-
Does anyone have experience using this? Just wanting to get an overall feel of how people feel about this before I jump in head first and end up regretting it. Any feedback would be greatly appreciated.
-
Does anyone have experience using this? Just wanting to get an overall feel of how people feel about this before I jump in head first and end up regretting it. Any feedback would be greatly appreciated.
Object Relational Mapping [^]is rough so you probably will regret it but the other options are no better. Also look at the Castle Project's[^] Active Record which uses NHibernate Also if .NET 3.5 is in your future I see people here on CodeProject seem to like LINQ so you might check that out, there is a forum for it
LINQ and .NET 3.5
led mike
-
Does anyone have experience using this? Just wanting to get an overall feel of how people feel about this before I jump in head first and end up regretting it. Any feedback would be greatly appreciated.
NHibernate have a huge userbase and is a very competent mapper. As a mapper it is _far_ supperior to LinqToSql. However, the tool support and nice linq support in LinqToSql is way better. (The NH team is working on their Linq support, so it will come eventually) So if you want some RAD with a very basic DB, then go LinqToSql. If you have a serious system with a complex db , then use NHibernate. Also, the mindset of using an ORM is way different from "the other ways" When using an ORM, your Domain Model is the core of your app. The DB is pretty much just a persistent store for your objects to sleep in when not used. (thus "Hibernate") The whole idea is to be able to work with objects in an object oriented language. Which probably was the main reason you started to use an object oriented language from the start. It also tend to be a somewhat heated debate, some will claim that working with objects is madness and not very good at all when performing business operations etc. (some might even pull data out of their db and transform it via some (mapping info/declaration) into a new (persistent) structure and apply dirty tracking and other infrastructural features on this structure and claim that they are NOT doing ORM and that ORM is bad ;-))
Blog: http://www.rogeralsing.com Projects: http://www.puzzleframework.com
modified on Wednesday, April 9, 2008 4:07 PM
-
Does anyone have experience using this? Just wanting to get an overall feel of how people feel about this before I jump in head first and end up regretting it. Any feedback would be greatly appreciated.
NHibernate is an excellent library and is very robust and flexible. We use it as the core of our data layer toolkit for these reasons. It can be a bit intimidating for a new user though. If you decide to go with vanilla NHibernate you should fix whether you are going with 1.x or 2.x - as the new 2.0 beta has introduced quite a few breaking changes to the API - especially with queries.
Mark Churchill Director Dunn & Churchill Free Download:
Diamond Binding: The simple, powerful, reliable, and effective data layer toolkit for Visual Studio. -
Does anyone have experience using this? Just wanting to get an overall feel of how people feel about this before I jump in head first and end up regretting it. Any feedback would be greatly appreciated.
You can also try out SubSonic at http://subsonicproject.com/[^]