Silverlight app + Multiples services RRS feed

  • Question

  • Hi all

    We develop a Silverlight Multi Tenant application that will be deployed on MS AZURE, using SQL Azure, Ria Services, Prism and Silverlight.
    The size limit of SQL databases Azure forces us to split our databases in 2 + n databases.
    N for users’s data (with a same structure), 1 to identify users and connect them to the proper database, 1 for localization of the labels and other common stuff.

    So we have three WCF Ria Services Class Library pointing to each database (for user data the connection string is changed according to the identification of the user to point to the proper database)

    Our Silverlight modules need access to at least two services.
    Our problem is that we can link only one service to a Silverlight project (not three !).

    So what is the best way to allow access to the three Services in a single Silverlight App.

    Thank you for the assistance.

    Thursday, March 11, 2010 2:45 PM


  • If you created WCF Ria Services Class Library for each service, you should have 3 RIA Web projects which contains your Service code and 3 RIA Silverlight Projects which contains generated code for each service.  Leave the RIA Silverlight project alone, do not add any custom code in these project. They only serve as class Library. But you could also have many other Silverlight projects that uses these services. 

    On Silverlight project that needs to use your RIA services, do not add RIA link, just add as many RIA Silverlight projects reference to your project. Now you can call any of the RIA service you want.

    You should also have one main Web project. Add all 3 WCF RIA service dll reference to this main Web project.

    Thursday, March 11, 2010 3:31 PM