Generate From Domain?

Jan 30, 2013 at 8:11 PM


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

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.