Generating code and mapping with fluent nhibernate template

Discussion of open issues, suggestions and bugs regarding Entity Developer - ORM modeling and code generation tool
Post Reply
srr
Posts: 1
Joined: Wed 23 Jan 2013 09:34

Generating code and mapping with fluent nhibernate template

Post by srr » Wed 23 Jan 2013 09:41

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

Shalex
Devart Team
Posts: 8034
Joined: Thu 14 Aug 2008 12:44

Re: Generating code and mapping with fluent nhibernate template

Post by Shalex » Thu 24 Jan 2013 15:32

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.

Shalex
Devart Team
Posts: 8034
Joined: Thu 14 Aug 2008 12:44

Re: Generating code and mapping with fluent nhibernate template

Post by Shalex » Thu 24 Jan 2013 16:56

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).

Post Reply