-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: NHibernate with multiple databases using SQL ce
PostPosted: Wed Sep 16, 2009 4:55 am 
Newbie

Joined: Mon Aug 11, 2008 5:45 am
Posts: 15
We are using NHibernate to access multiple databases on a single SQL Server using a single session factory. We used technique specified in the following post viewtopic.php?f=25&t=962161.
Basically, we fully qualify the schema name to access different databases on same server. For example: If DomainObj1 exists on DB1 then in the mapping file we specify Schema="DB1.dbo" and if DomainObj2 exists on DB2 we specify Schema="DB2.dbo". It works fine on SQL server.

The problem is for component testing we use SQLCE instead of SQL server and I don't know how to use multiple SQLCE databases using single Session Factory (if it is possible at all). Can anyone suggest a solution for this problem. Any help is appreciated.

Thank you.
Syed


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.