Why can't you use the ExposeConfiguration method? Some explanation would help.
On Tue, Feb 17, 2009 at 7:33 AM, Karron Qiu <karron...@gmail.com> wrote: > > Thank you. > > On Tue, Feb 17, 2009 at 3:28 PM, Tuna Toksoz <tehl...@gmail.com> wrote: > > Configuration cfg; > > var fconfig=Fluently.Configure().ExposeConfiguration(x => cfg > = > > x); > > PlayWithCfgHere > > var sf = fconfig.BuildSessionFactory(); > > > > > > Or simple call ExposeConfiguration(Action<NHConfig>) to modify/dowhatever > > using a delegate. > > > > Tuna Toksöz > > http://tunatoksoz.com > > http://turkiyealt.net > > http://twitter.com/tehlike > > > > Typos included to enhance the readers attention! > > > > > > > > On Tue, Feb 17, 2009 at 9:22 AM, Karron Qiu <karron...@gmail.com> wrote: > >> > >> I just want to get the Configuration object from Fluently.Configure(). > >> Or can I pass a Configuration object to Fluently.Configure() ? > >> > >> Thanks > >> > >> On Tue, Feb 17, 2009 at 3:15 PM, Tuna Toksoz <tehl...@gmail.com> wrote: > >> > Fluently.Configure() > >> > .Database(/* your database settings */) > >> > .Mappings(/* your mappings */) > >> > .ExposeConfiguration(/* alter Configuration */) // optional > >> > .BuildSessionFactory(); > >> > > >> > says the post on James blog? > >> > > >> > Tuna Toksöz > >> > http://tunatoksoz.com > >> > http://turkiyealt.net > >> > http://twitter.com/tehlike > >> > > >> > Typos included to enhance the readers attention! > >> > > >> > > >> > > >> > On Tue, Feb 17, 2009 at 9:11 AM, Karron Qiu <karron...@gmail.com> > wrote: > >> >> > >> >> There is a property in FluentConfiguration, but it is internal... I > >> >> want to hold the Configuration in my application because of some > >> >> reasons. I can't use the ExposeConfiguration method. > >> >> > >> >> -- > >> >> Regards, > >> >> Karron > >> >> > >> >> > >> > > >> > > >> > > > >> > > >> > >> > >> > >> -- > >> Regards, > >> Karron > >> > >> > > > > > > > > > > > > > -- > Regards, > Karron > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Fluent NHibernate" group. To post to this group, send email to fluent-nhibernate@googlegroups.com To unsubscribe from this group, send email to fluent-nhibernate+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/fluent-nhibernate?hl=en -~----------~----~----~----~------~----~------~--~---