Any mapping tool for NHibernate ?
-
Hi all, [color=darkred]I had database and coded class. I just want mapping xml to use NHibernate. [/color] MyGeneration generates code from database. If I use it, I'll have to merge my old file with new generated class. It's too risk. Am I wrong ? (maybe I don't know enough about MyGeneration) ActiveRecord is the same. I'm reading about codesmith [^] , maybe it's good. Are there any other tool ? Thanks imagic
imagic
-
Hi all, [color=darkred]I had database and coded class. I just want mapping xml to use NHibernate. [/color] MyGeneration generates code from database. If I use it, I'll have to merge my old file with new generated class. It's too risk. Am I wrong ? (maybe I don't know enough about MyGeneration) ActiveRecord is the same. I'm reading about codesmith [^] , maybe it's good. Are there any other tool ? Thanks imagic
imagic
If you want to build your app using a roboust framework that does automatic codegeneration of your data layer then NHibernate is a good choice. One of the frameworks I'm looking at is spring framework that uses NHibernate to generate all the data access layer as well as generating code based on proven design patterns for your application. http://www.springframework.net/[^] The other ORM tools are : LLBLGen http://www.llblgen.com/defaultgeneric.aspx[^] .NetTiershttp://nettiers.com/[^] CSLA http://www.lhotka.net/cslanet/[^]
-
Hi all, [color=darkred]I had database and coded class. I just want mapping xml to use NHibernate. [/color] MyGeneration generates code from database. If I use it, I'll have to merge my old file with new generated class. It's too risk. Am I wrong ? (maybe I don't know enough about MyGeneration) ActiveRecord is the same. I'm reading about codesmith [^] , maybe it's good. Are there any other tool ? Thanks imagic
imagic
I advise you to steer away from any tool that does code-generation. They tend to get you 90% of the way there quickly - but the other 10% can be very difficult. How much code is in your existing classes? If your code is well segregated - you have taken care with "seperation of concerns" - then you should be about to drop in a new data layer solution. Our ORM tool Diamond Binding[^] is highly suited for creating and maintaining the business object definitions from an existing database, and providing a fully featured API for handling business objects. It also is powered by NHibernate.
Mark Churchill Director Dunn & Churchill Diamond Binding: Zero to Data Layer in 3 mins