无法确定类型的提供程序工厂的提供程序名称 'System.Data.EntityClient.EntityProviderFactory'。确保 ADO.NET提供程序已在应用程序配置中安装或注册。
我正在尝试对数据库进行简单查询:
var log =
_logDb
.Logs
.Where(l => l.CustomerId == item.CustomerId)
.FirstOrDefault();
连接字符串:http://pastebin.com/ngqB9Q6L
事情就是当我快速观察基础上下文(值)时,没有数据库。它是空的(如果需要,我会很快得到照片)。
Web.config:http://pastebin.com/xp4iKnta