Thanks Fabio, have created a blog regarding this:-

http://puredotnetcoder.blogspot.com/2011/07/view-xml-generated-when-mapping-
by-code.html

 

Rippo

 

From: [email protected]
[mailto:[email protected]] On Behalf Of Fabio Maulo
Sent: 22 July 2011 22:04
To: [email protected]
Subject: Re: [nhibernate-development] Get HbmMapping from
NHibernate.Cfg.Configuration

 

you don't need something to save to file because we gave a cooked extensions
(in the same place where is AsString)

On Fri, Jul 22, 2011 at 5:11 PM, Richard Wilde <[email protected]>
wrote:

Something like

 

var mapping = mapper.CompileMappingForAllExplicitlyAddedEntities();

var mappingXml = mapping.AsString(); //you can now save this to file

 

Rippo




-- 
Fabio Maulo

Reply via email to