Using NHibernate with Codesmith to generate ORM?

You can use code templates, but this still creates a pain IMHO. The best way is to use Fluent nHibernate . They have a new auto-mapper feature, that uses configuration by convention.

No mapping files nothing...it just makes assumptions that you use simillar names and can define rules of how to convert an entity name to a table name.

Code generation can fill that gap really well, I started using CodeSmith, but then they made that a pay item so I moved to MyGeneration. My approach is to attack the DB first, code gen the Mapping files, and gen classes if they don't already exist. That gets something going really quickly, great for a prototype and creating test data.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions