How to save to a file the Fluent nHibernate 1.1 HBM XML configuration?

旧时模样 提交于 2019-12-25 11:45:12

问题


I am having a issue with it as described here: Fluent NHibernate 1.1: when multiple column name mappings are used on different classes

As someone pointed, I need to see the HBM XML configuration to help to debug.

I have a config FluentConfiguration config object working:

config.Mappings(m => m.FluentMappings.AddFromAssembly(Assembly.GetExecutingAssembly()));

How to save to a file the Fluent nHibernate 1.1 HBM XML configuration?


回答1:


I found a way:

config.Mappings(m => m.FluentMappings.ExportTo(@"C:\temp\mappings"));


来源:https://stackoverflow.com/questions/5030932/how-to-save-to-a-file-the-fluent-nhibernate-1-1-hbm-xml-configuration

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!