我将使用“Entity Framework Code First”进行编程,
我的连接字符串在配置文件中:
当我尝试访问数据时(应该会创建数据库),出现以下错误信息:
连接字符串“ApplicationServices”在应用程序配置文件中不包含所需的providerName属性。
我错过了什么吗?
我的连接字符串在配置文件中:
<connectionStrings>
<clear/>
<add name="ApplicationServices" connectionString="Data Source=PC-X;Initial Catalog=MYdb;Integrated Security=True"/>
</connectionStrings>
当我尝试访问数据时(应该会创建数据库),出现以下错误信息:
连接字符串“ApplicationServices”在应用程序配置文件中不包含所需的providerName属性。
我错过了什么吗?
providerName="System.Data.EntityClient"
。 (注:这是提供程序名称的配置,用于指定 Entity Framework 数据提供程序。) - Dr1Ku