Generate From Domain?

Jan 30, 2013 at 8:11 PM

Hi

I am wondering if it is possible to generate the nhibernate mapping from just domain files?

Developer
Feb 22, 2013 at 9:04 PM
Its not possible since a map is there to link a table and its columns to a property.
If you only have the domain there is no way to get the field name and constraints if different.

If you domain model matches your tables and fields then you can map by convention.
Please use the following link to get more detail.
Http://fabiomaulo.blogspot.co.uk/2011/04/nhibernate-32-mapping-by-code_13.html?m=1