安装Entity Framework 6.0.1后,我不断收到错误
MAXModel.ssdl(2,2) : error 0152: No Entity Framework provider found for the ADO.NET provider with invariant name 'Oracle.ManagedDataAccess.Client'. Make sure the provider is registered in the 'entityFramework' section of the application config file. See http://go.microsoft.com/fwlink/?LinkId=260882 for more information. (见下图)

在我安装它之前,它很好.
我正在使用MVC 4.
谢谢.Robotron游戏
public class Connection
{
public static string GetConecction()
{
return ConfigurationManager.ConnectionStrings["DCAssetEntities"].ConnectionString;
}
}
Run Code Online (Sandbox Code Playgroud)
我有一个"连接"类来配置我的Web与实体框架模型实体
public class ConnectionDAL
{
private DCAssetEntities db;
public ConnectionDAL()
{
db = new DCAssetEntities(Connection.GetConecction());
}
}
Run Code Online (Sandbox Code Playgroud)
然后我在"ConnectionDAL"类构造函数中初始化我的数据库,它在Visusal Studio 2010中工作得很好,但在因访问工作室2012中显示错误"DC_Asset_Maintenance.DAL.DCAssetEntities'不包含带有1个参数的构造函数"