WCF Ria doamin service in VS 2012




In VS – 2012 we can’t see the EDMX table for creating a domain service in Silverlight application.

In order to utilize your Entity Framework model with WCF RIA Services, you must convert it to an 'ObjectContext' based model. This can be done using the following steps:
  1. Open your entity model in the designer
  2. (If needed, click in the "white space" of the designer to ensure no objects within the model are selected)
  3. In the Properties window, change the "Code Generation Strategy" from "None" to "Default"
  4. Delete the two ".tt" files that are adjacent to the model, with the assumption that you have not modified these files beyond their original state when the entity model was created. If you have modified these files, then customizations to your entity model will be lost.
  5. Rebuild the project

After following those steps, you will be able to select your entity model's context class in the 'Available context classes' list. The side-effect of this procedure is that you have now converted your entity model from an Entity Framework DbContext-based model to an ObjectContext-based model.
For More Information Please see : http://support.microsoft.com/kb/2745294

Popular posts from this blog

mvc razor textboxfor change event change another textboxfor value

WPF Crystal Report Viewer Using SAP

ASP.NET MVC razor SAP Crystal report