Map Multiple Databases with FluentNhibernate

0

I'm having trouble mapping multiple databases with FluentNhibernate.

I used the following methodology (remembering that the databases are different).

I created 3 FluentSessionFactory for each bank with its particular connection.

Later I created a single object to represent each table, placing all the necessary attributes there.

I have implemented a ClassMap for each bank referencing the same object.

In this step this is my problem, when I try to make a connection, nhibernate ends up being lost, even creating the correct session, it uses the wrong mapping and fails to perform the queries.

Does anyone know if this methodology is correct?

Is there any more interesting way of mapping multiple databases at the same time?

    
asked by anonymous 03.07.2018 / 19:36

0 answers