user27052
user27052

Reputation: 373

Read Mapping Xml file generated by FluentNHibernate API

How can I read mapping Xml file generated by Fluent NHibernate API?

Upvotes: 3

Views: 693

Answers (1)

sirrocco
sirrocco

Reputation: 8055

After you configure FluentNhibernate

Configuration config = new Configuration();
config.Configure();
PersistenceModel persistenceModel = new PersistenceModel ();
persistenceModel.Configure (config);

You can use

persistenceModel.WriteMappingsTo (path);

Upvotes: 2

Related Questions