Are these databases reside in one server or in multiple servers?

If it's one server following is the solution
http://mikehadlow.blogspot.com/2008/10/mapping-entities-to-multiple-databases.html


-
Sathish


On Thu, Mar 5, 2009 at 12:48 PM, graphicsxp <[email protected]>wrote:

>
> Hi,
>
> I've got two business entities which are linked with a one to many
> association :
>
> class Article
> {
>  Publication p;
> }
>
> class Publication
> {
> }
>
> An article belongs to one publication only and a publication can
> contais 0 to n articles.
>
> Now in my relational model this translates as :
>
> [Article] {articleId, PublicationId}
>
> [Publication {PublicationId}
>
> This is pretty classic (I guess...), and it should be easy for
> nHibernate to persist the entities to my database. However, here is
> the catch : The two tables. [Article] and [Publication] are NOT in the
> same database, hence a different connection string, hence a diffrent
> NH mapping file....
>
> How can I workaround this ? Is there something that can be done ?
>
> Thanks
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nhusers" 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/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to