如何将Fluent nHibernate 1.1 HBM XML配置保存到文件中? [英] How to save to a file the Fluent nHibernate 1.1 HBM XML configuration?

查看:117
本文介绍了如何将Fluent nHibernate 1.1 HBM XML配置保存到文件中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到了问题,如下所述:



有人指出,我需要看到HBM的XML配置,以帮助调试。

我有一个配置FluentConfiguration配置对象工作:

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

如何将文件保存到Fluent nHibernate 1.1 HBM XML配置中?$ b $我找到了一个方法:

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


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?

解决方案

I found a way:

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

这篇关于如何将Fluent nHibernate 1.1 HBM XML配置保存到文件中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆