You can pass a Configuration instance into Configure, or you can use ExposeConfiguration.
On 3/2/09, christianacca <[email protected]> wrote: > > I am trying to integrate FNH with the Session management functionality > implemented in the uNhAddins project. > > It seems like I cannot "get at" the NH Configuration object without > building the NH SessionFactory. Please correct me if that is not the > case. > > Assuming I am correct, I would like to arrange responsibilities such > that: > 1) FNH is responsible for building up the NH Configuration object > 2) the session management classes in uNhAddins create the > ISessionFactory > > This would seem to be a good split of reponsibilities. > > To do this however, I need FNH to split out the responsibility of > building up the Configuration object from the existing > FluentConfiguration.BuildSessionFactory method. And to then "surface" > the Configuration object without having to call > FluentConfiguration.BuildSessionFactory. > > Thinking of possible solutions to how to "surface" the Configuration > object, either: > 1) create a method named PeekConfiguration that returns a configured > Configuration object directly > 2) define an implicit converstion operator that would "cast" an > instance of FluentConfiguration to an instance of Configuration. > > The second solution seems to be more in keeping with the "Fluent" > interface. > > What's your thoughts? > > I am happy to supply a patch for this. > > Thanks > Christian > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
