6

I am trying to debug my fluent application and would like to see what the generated files look like.

What are the ways to view them?

Is there a way to export them?

Nick Josevski
  • 4,156
  • 3
  • 43
  • 63
Nick
  • 19,198
  • 51
  • 185
  • 312

2 Answers2

6

Nevermind!

.Mappings(m => m.FluentMappings.ExportTo("path"))

Nick
  • 19,198
  • 51
  • 185
  • 312
  • 1
    If you are using any user-defined conventions, the current version of FluentNHibernate (version 1.2) will not apply those conventions when using the .ExportTo() method which means you will end up with invalid mapping files. You can find a workaround here: http://stackoverflow.com/a/8481967/670028 – Randy Burden Feb 26 '12 at 02:02
1

Also

.Mappings(m => m.AutoMappings.ExportTo("path"))

:)

Julian Birch
  • 2,605
  • 1
  • 21
  • 36