Two DomainContext or data sources with WCF RIA - Silverlight page
- by Mayur Kotlikar
I am writting a Silverlight Business Application with WCF RIA link.
I have 2 databases on same SQL server, Public and Private.
The Public database contains a table which is mostly for public access level, like "user" table which has basic user information
The Private database contains a table which has "private" information, user bank transactions etc
I created 2 ADO.Net entity models, one each for Private and Public database and selected the tables.
I also created 2 different domain context services
On on Silverlight page, I need to get information from the tables that are across 2 databases, Private and Public as described above.
How do I achieve this? I am thinking of some kind of a wrapper that internally gets data from domain services.
Whats the best approach?