Article ID: 2745294 - View products that this article applies to.
When adding a new Domain Service Class to an ASP.NET web application in Visual Studio 2012, the 'Add New Domain Service Class' wizard shows the following message:
Some Entity Framework context classes may have been excluded.
More information can be found in the knowledge base.
The 'Available context classes' list excludes Entity Framework models that were expected to be available.
With Visual Studio 2012, Entity Framework now creates 'DbContext' based context classes by default, but WCF RIA Services does not support 'DbContext' based context classes. The 'Add New Domain Service Class' wizard detects when a 'DbContext' class has been created in your project and displays the message.
Because of the incompatibility, you will not be able to select your 'DbContext' based context class in the 'Available context classes' list.
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:
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.
Steps to Reproduce the Behavior
(http://go.microsoft.com/fwlink/?LinkId=151500)for other considerations.