You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This code snippet produces the exported hbm without any error, even i can execute the sql prom schemaexport.
The only thing that is not working and without any complain is the Diagnostics whereas it should produce output like: https://gist.github.com/592679
I have tried changing the OutputToConsole which should register a listener. And its taking any invalid path to OutputToFile and does not produce any exception. Just not working.
varcfg=newNHibernate.Cfg.Configuration();//nhibernate config from config filecfg.Configure(dataConfig.NHibConfigPath);FluentConfigurationfConfig=Fluently.Configure(cfg).Mappings(m =>{//get default persistent model generatorvarmodel=newAutoPersistenceModelGenerator(overrideAssembly){AutoMappingAssemblies=autoMappingAssemblies};if(config.ExportHbm){varhbmExportPath=dataConfig.HbmExportPath;m.AutoMappings.Add(model.Generate).ExportTo(hbmExportPath);}});//this line does not provide any outputfConfig.Diagnostics(x =>x.Enable().OutputToFile("D:/tmp/fluentNHibernate_log.txt"));Configuration=fConfig.BuildConfiguration();Factory=Configuration.BuildSessionFactory();
The text was updated successfully, but these errors were encountered:
This code snippet produces the exported hbm without any error, even i can execute the sql prom schemaexport.
The only thing that is not working and without any complain is the Diagnostics whereas it should produce output like:
https://gist.github.com/592679
I have tried changing the OutputToConsole which should register a listener. And its taking any invalid path to OutputToFile and does not produce any exception. Just not working.
The text was updated successfully, but these errors were encountered: