Page 1 of 1
Generating code and mapping with fluent nhibernate template
Posted: Wed 23 Jan 2013 09:41
by srr
Hi,
I've just downloaded the last version of entity developer.
Now, I want to generate the code and mapping of my model with fluent nhibernate template.
Could you tell me how to do that ?
Thanks.
SRR
Re: Generating code and mapping with fluent nhibernate template
Posted: Thu 24 Jan 2013 15:32
by Shalex
Please create the NHibernate Model, add the Fluent NHibernate template, save the model, and generate the code. For more information, refer to
http://www.devart.com/entitydeveloper/e ... eloper.chm.
If you need any further assistance, feel free to
contact us.
Re: Generating code and mapping with fluent nhibernate template
Posted: Thu 24 Jan 2013 16:56
by Shalex
Additional information:
When adding the Fluent NHibernate template to the model, the predefined NHibernate template will be added automatically, because the Fluent NHibernate template is only an addition template and generates mapping code only. Code of the entity classes is still generated by the NHibernate template.
You should set the Xml Mapping Action property of the NHibernate template to Do Not Generate Mapping Files to turn off generation of the XML mapping (since you will use fluent mapping).