【问题标题】:How to save to a file the Fluent nHibernate 1.1 HBM XML configuration?如何将 Fluent nHibernate 1.1 HBM XML 配置保存到文件中?
【发布时间】:2011-02-17 23:32:19
【问题描述】:

我遇到了一个问题,如下所述: Fluent NHibernate 1.1: when multiple column name mappings are used on different classes

正如有人指出的那样,我需要查看 HBM XML 配置来帮助调试。

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

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

如何将 Fluent nHibernate 1.1 HBM XML 配置保存到文件中?

【问题讨论】:

    标签: fluent-nhibernate


    【解决方案1】:

    我找到了办法:

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

    【讨论】:

      猜你喜欢
      • 2010-10-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-09-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多