相关疑难解决方法(0)

找不到具有不变名称"Oracle.ManagedDataAccess.Client"的ADO.NET提供程序的实体框架提供程序

安装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游戏

.net c# oracle entity-framework asp.net-mvc-4

9
推荐指数
1
解决办法
2万
查看次数

实体'不包含带有1个参数的构造函数

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个参数的构造函数"

c# linq asp.net entity-framework

1
推荐指数
1
解决办法
6126
查看次数

标签 统计

c# ×2

entity-framework ×2

.net ×1

asp.net ×1

asp.net-mvc-4 ×1

linq ×1

oracle ×1