开发者

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

开发者 https://www.devze.com 2023-02-11 22:37 出处:网络
I am havin开发者_运维知识库g a issue with it as described here: Fluent NHibernate 1.1: when multiple column name mappings are used on different classes

I am havin开发者_运维知识库g 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?


I found a way:

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

精彩评论

暂无评论...
验证码 换一张
取 消