views:

199

answers:

2

I'm using a Silverlight 4 WCF RIA Services demo application that uses LinqToSql, that works well.

  1. I add a new database table, move the new table to the LinqToSql designer and build the project

  2. I add a new DomainService class

I get a dialog with the only option to create an empty DomainService and no DataContext classes are available.

What am I missed?

Thanks in advance

Gabriel

A: 

For generation domainservice for LinqToSql we have to install the WCF RIA Service Toolkit.

http://www.microsoft.com/downloads/details.aspx?FamilyID=c4f02797-5f9e-4acf-a7dc-c5ded53960a6&displaylang=en

Thanks

Gabriel

Gabriel
A: 

I have The problem with a twist, I installed the WCF RIA Service Toolkit, created the domain sevice class with two of my tables. Everything worked fine. I decided to add another table, and When I try to add a new DomainService calls the datacontext that was available in dialog has only option to create an empty DomainService??????

1) toolkit installed 2) Created a domain service class with two tables 3) modified LINQ dbml (drag another table) 4) rebuild - No new object in the DataSource 5) Clean/build still no new object in the datasource

Any Ideas???

Ken

Ken
You should post this as a [separate question](http://stackoverflow.com/questions/ask), it's not an answer to this question
Michael Mrozek
Did You reference the Microsoft.ServiceModel.DomainServices.LinqToSql in Your Solution's Web Project? It is in the following place: C:\Program Files (x86)\Microsoft SDKs\RIA Services\v1.0\Toolkit\Libraries\Server\Microsoft.ServiceModel.DomainServices.LinqToSql.dll.Microsoft moved this dll to the Toolkit that You already installed, but maybe You referenced the dll on the old place?
Gabriel
I confirm that I have the CORRECT reference in my Project! BUT, What did do is; I removed the reference and then ADDED it back again, did a re-build and then it worked! We should spread the word on this one...Ken
Ken