Hi Paulo,

  I have something close to your case, I have filter definitions
stored in the database witch I have to load before I do
BuildSessionFactory. I'm currently building a *small* session factory
witch is used just to open one session to get connected to the
database and get all the filter definitions I need, then I build the
real session factory I'll use for the rest of my program's life with
all the filter definitions set.

  Best regards,
  Daniel Mirapalheta
  Fortaleza - Brasil

On Mar 13, 2:17 am, Esqueleto <aboimpi...@gmail.com> wrote:
> Hello to all
>
> I'm new using NHibernate and FluentHibernate and I'm evaluating this
> tool to use in the software house that I work.
>
> We have a simple requirement that I can't match with FluentHibernate.
> We want to use the AutoMap or FluentMapping feature but when the
> application start we don't know what objects need to be mapped.
> Our application work with modules and we only know what modules will
> be loaded after consult the database (for that we need database
> connection working).
> Each module is responsible for their own data and have their own
> Domain classes. If they need to access any other data, they must use
> the Business Layer responsible for the data. Each module is a self-
> contain class library to be integrated in any other application like
> Web, WPF, Win32, etc.
>
> As you can see, in the begin of the application we don't know all the
> entity classes to be load. Of couse we can use the HBN files, but for
> that we need to force the module developers to generate that and for
> now it's not an alternative. Would be an alternative if we can
> configure per module a mapping folder insted of all mapping files
> going to the same folder in the root of the application.
>
> After saying all this, how can I add mapping rules after calling the
> BuildSessionFactory method? If this is not possible how can I resolve
> this problem? How can I instruct the FluentHibernate to load a new
> configuration?
>
> Hope you can help me!
> I can do this with EntityFramework and will be a long cut back if I
> couldn't do with NHibernate / Fluent
>
> Regards
> Paulo Aboim Pinto
> Odivelas - Portugal

-- 
You received this message because you are subscribed to the Google Groups 
"Fluent NHibernate" group.
To post to this group, send email to fluent-nhibern...@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