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 <[email protected]> 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 <[email protected]> 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 <[email protected]> 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
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to