Compatibility issue when you use RIA Services V1.0 SP2 together with Entity Framework 5
Artikkeli
This article helps you resolve the compatibility problem that occurs when you use Windows Communication Foundation (WCF) Rich Internet Applications (RIA) Services V1.0 SP2 and Entity Framework (EF) 5 together in an application.
Original product version: Entity Framework 4.1 Original KB number: 2975356
Symptoms
When you use WCF RIA Services V1.0 SP2 and EF 5 together in an application, the application may meet unpredictable behavior.
Cause
This issue occurs because of metadata compatibility issues between RIA Services in Microsoft Visual Studio and versions of Entity Framework later than 4.1.
Workaround
To work around this issue, when you select a Silverlight Business Application template in Microsoft Visual Studio 2010, Visual Studio 2012 or Visual Studio 2013, use RIA V1.0 SP2 together with Entity Framework 4.1, which comes as a default choice. To use later versions of Entity Framework, you have to use the publicly available NuGet packages.
Methods to add RIA Services to a Silverlight project
There are two ways to add RIA Services functionality to a Microsoft Silverlight project:
Add RIA Services functionality that is included with Visual Studio.
This method requires Entity Framework 4.1 and is supported by Microsoft.
Add RIA Services functionality that is available as a NuGet package.
This method is recommended when you use the later versions of Entity Framework. However, it's not supported by Microsoft.
The third-party products that this article discusses are manufactured by companies that are independent of Microsoft. Microsoft makes no warranty, implied or otherwise, about the performance or reliability of these products.
Tämä moduuli opastaa sinua tietojen käyttöprojektin luonnin vaiheissa. Muodostat yhteyden relaatiotietokantaan ja muodostat luonti-, luku-, päivitys- ja poistokyselyjä (CRUD) Entity Framework Coren (EF Core) avulla.