So if you've got that specified in your hibernate.config.xml file, as if you were using NHibernate without FNH, you'd build your configuration object like you would without FNH. Then pass that to: Fluently.Configure(nhibernateConfig).etc();
and when you call .BuildSessionFactory() it should pick up on that. You could also do a .ExposeConfiguration(x=>x.AddProperties(yourProps)) as well I believe, but I personally find it easier to go with the passing in a NHibernate Configuration (which picks up on the hibernate.config.xml automatically) to the Fluent configure. There might also be another way to do this that I'm not aware of :) On Fri, Jul 10, 2009 at 9:36 PM, Mikael Henriksson <[email protected]>wrote: > I tried both of them. Where is this sent from Fluent to NHibernate? I'll > just hardcode it for now. > > 2009/7/11 Hudson Akridge <[email protected]> > >> If you rebuilt FNH with the latest version of NHibernate, you may need to >> include a hibernate.cfg.xml file with your application that has the >> proxyfactory.factory_class registered with either castle or LinFu (doesn't >> really matter which), then pass that to the fluent configuration before you >> attempt to build a session factory. >> >> >> On Fri, Jul 10, 2009 at 9:16 PM, Mikael Henriksson >> <[email protected]>wrote: >> >>> Hi, >>> >>> I was because of need to use NHibernate Validator updating the NHibernate >>> version to the latest 2.1.3 or something like that. Now I get an exception >>> saying: >>> >>> >>> NHibernate.Bytecode.ProxyFactoryFactoryNotConfiguredException: The >>> ProxyFactoryFactory was not configured. >>> >>> Initialize 'proxyfactory.factory_class' property of the session-factory >>> configuration section with one of the available NHibernate.ByteCode >>> providers. >>> Example: >>> >>> <property >>> name='proxyfactory.factory_class'>NHibernate.ByteCode.LinFu.ProxyFactoryFactory, >>> NHibernate.ByteCode.LinFu</property> >>> Example: >>> >>> <property >>> name='proxyfactory.factory_class'>NHibernate.ByteCode.Castle.ProxyFactoryFactory, >>> NHibernate.ByteCode.Castle</property> >>> >>> What do I need to do to make it work? >>> >>> Cheers! :) >>> >>> >>> >> >> >> -- >> - Hudson >> http://www.bestguesstheory.com >> http://twitter.com/HudsonAkridge >> >> >> > > > > -- - Hudson http://www.bestguesstheory.com http://twitter.com/HudsonAkridge --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Fluent NHibernate" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/fluent-nhibernate?hl=en -~----------~----~----~----~------~----~------~--~---
