Linq to sql domain context does not appear in domain service class

I am creating a silverlight 4 application (using a business application template). I created Linq classes for SQL for my tables in a .web project and want to use RIA services. When I add the domain service class to the .web project, the data context for the Linq to SQL classes is not available.

According to the documentation creating the Linq to SQL classes, and all that is required is required to create a project. This works if I try to use Entity Framework classes, but not Linq to SQL. There are several examples available using Linq to SQL, and no one mentions other requirements.

I tried several projects, VB, C #, different computers, the result was the same.

Thanks for any tips on how to do this!

+3
source share
1 answer

I found the answer, you should install the RIA Services Toolkit as a separate installation. The standard installation of Silverlight and RIA Services does not include the domain context LinqToSqlthat Toolkit adds. See the WCF RIA Services Toolkit Guide .

+6
source

Source: https://habr.com/ru/post/1755795/


All Articles