views:

106

answers:

1

Hello,

I'm creating a silverlight 4 application (using the Business Application template). I generated Linq to SQL classes for my tables in the .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 isn't available to choose.

According to the documentation creating the Linq to SQL classes and building the project is all that is required. This works if I try using Entity Framework classes but not Linq to SQL. There are several examples available using Linq to SQL and none mention any other requirements.

I have tried several projects, VB, C#, different computers, the result has been the same.

Thanks for any advice on how to get this working!

+2  A: 

I found the answer, you must install the RIA Services Toolkit as a separate install. The standard Silverlight and RIA Services installation does not include the LinqToSql Domain Context, which the Toolkit adds.

http://www.microsoft.com/downloads/details.aspx?familyid=C4F02797-5F9E-4ACF-A7DC-C5DED53960A6&displaylang=en

rlcraven