locked
Getting going with RIA and Linq To Sql RRS feed

  • Question

  • Hi,

    Near as I can tell, I should be able to use Linq To Sql with RIA Services.

    I add my DBML and compile and then try to add a domain service.

    Now, according to the screen shot in this article:

    http://www.c-sharpcorner.com/UploadFile/nipuntomar/958/Default.aspx

    I should see something like the following where it lists the classes in my dbml.

    Silverlight4LinqToSqlRia10.gif

     

    However, what I am seeing in the drop down is "<empty domain service class>" and nothing is listed below it. I can't figure out how to get my dbml's context listed here. Can anyone point me in the right direction? This is driving me crazy.
    Thanks ... Ed

     

    Monday, October 25, 2010 11:15 AM

Answers

  • Ha! It was a versioning issue. I uninstalled the version I had and installed the version you pointed me to and then everything works!

    Thanks so much.

     

    Monday, October 25, 2010 12:26 PM

All replies

  • Hi. Did you install the RIA Services toolkit? The Linq2Sql domain service is not part of the core installation and needs to be added by installing the toolkit, which can be found here

    Monday, October 25, 2010 11:50 AM
  • Hi I checked control panel and I have:

    WCF RIA Services Toolkit version 4.0.50404.0
    And
    WCF RIA Services V1.0 for Visual Studio 2010 version 4.0.50506.0

    Should I be having both?

    Thanks ... Ed

     

    Monday, October 25, 2010 12:02 PM
  • Ha! It was a versioning issue. I uninstalled the version I had and installed the version you pointed me to and then everything works!

    Thanks so much.

     

    Monday, October 25, 2010 12:26 PM