Please re-read my previous email. "you can use BuildConfiguration", that
method will do what you ask. If you don't have that method, you need to get
the latest source.

2009/3/14 Rub <ruboard....@gmail.com>

>
> I don't want to pass my instance to Fluently. I want to get
> NHibernate.Configuration from Fluently object.
>
> I'll be very hapy ) if in addtion to Fluently.BuildSessionFactory()
> will be method returning NHibernate.Configuration object, for example,
> Fluently.GetRawConfiguration()
>
> The Fluently.GetRawConfiguration method must return
> NHibernate.Configuration
> for example:
>
> NHibernate.Configuration = Fluently.Configure()
>  .Database(SQLiteConfiguration.Standard.InMemory)
>  .Mappings(m =>
>  {
>    m.HbmMappings
>      .AddFromAssemblyOf<YourEntity>();
>
>    m.FluentMappings
>      .AddFromAssemblyOf<YourEntity>();
>  })
>  .GetRawConfiguration();
>
> Is it posible?
> May I get ready NHibernate.Configuration object from some Fluent
> NHibernate classes?
>
> On 15 мар, 00:01, James Gregory <jagregory....@gmail.com> wrote:
> > You can either pass an existing instance into the Fluently.Configure
> method,
> > or you can use BuildConfiguration.
> >
> > 2009/3/14 Rub <ruboard....@gmail.com>
> >
> >
> >
> >
> >
> > > How can I get NHibernate.Configuration object from Fluently object?
> > > I use my multi factory configuration provider and I don't want
> > > BuildSessionFactory(), simple, I just need NHibernate.Configuration.
> >
> > > On 14 мар, 21:55, James Gregory <jagregory....@gmail.com> wrote:
> > > > Read the wiki:
> http://wiki.fluentnhibernate.org/show/FluentConfiguration
> >
> > > > 2009/3/14 Rub <ruboard....@gmail.com>
> >
> > > > > How can I work with fluent nhibernate class maps and hbm (embedded
> > > > > resource files) together in FH?
> >
> > > > > On 14 мар, 21:02, James Gregory <jagregory....@gmail.com> wrote:
> > > > > > You can't currently. Either use hbm.xml or traditional sql.
> >
> > > > > > On Sat, Mar 14, 2009 at 3:30 PM, Rub <ruboard....@gmail.com>
> wrote:
> >
> > > > > > > What about support auxiliary database objects?
> > > > > > > This official nhibernate documentation: 5.6
> >
> > >http://www.hibernate.org/hib_docs/nhibernate/1.2/reference/en/html/ma.
> > > > > ..
> >
> > > > > > > I want to use some server's views in my application.
> > > > > > > I have the immutable classes mapping for this views, and I have
> > > create
> > > > > > > view ddl script, like this:
> > > > > > > <nhibernate-mapping>
> > > > > > >    ...
> > > > > > >    <database-object>
> > > > > > >        <create>CREATE VIEW my_view ...</create>
> > > > > > >        <drop>DROP VIEW my_view</drop>
> > > > > > >    </database-object>
> > > > > > > </nhibernate-mapping>
> >
> > > > > > > How I can work with "database-object" in fluent nhibernate?
> > > > > > > I want to generate create ddl schema script before
> configuration
> > > > > > > nhibernate.
> >
>

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

Reply via email to