如何读取Fluent NHibernate API生成的映射Xml文件?
答案 0 :(得分:2)
配置FluentNhibernate后
Configuration config = new Configuration();
config.Configure();
PersistenceModel persistenceModel = new PersistenceModel ();
persistenceModel.Configure (config);
您可以使用
persistenceModel.WriteMappingsTo (path);