Reputation: 373
How can I read mapping Xml file generated by Fluent NHibernate API?
Upvotes: 3
Views: 693
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