c# - 在 App.Config 文件中找不到名为“Inventory_ManagementEntities”的连接字符串”
问题描述
我在打开我的应用程序主页设计器时遇到了这个错误。在 app.config 文件中,我可以看到名为“Inventory_ManagementEntities”的实体。 问题快照
这是我的 app.config 文件的代码
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=4.4.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
</configSections>
<connectionStrings>
<add name="Inventory_ManagementEntities" connectionString="metadata=res://*/Base_Table.csdl|res://*/Base_Table.ssdl|res://*/Base_Table.msl;provider=System.Data.SqlClient;provider connection string="data source=MOHSINALVI\TESTSERVER;initial catalog=Inventory_Management;user id=sa;password=telco_123;MultipleActiveResultSets=True;App=EntityFramework"" providerName="System.Data.EntityClient" />
</connectionStrings>
<entityFramework>
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
<parameters>
<parameter value="v13.0" />
</parameters>
</defaultConnectionFactory>
</entityFramework>
</configuration>
解决方案
推荐阅读
- android - Android - 询问写入 SD 卡权限对话框
- python - 唯一列出字典中的值
- windows - Windows SDK 10 中的 Return Flow Guard 实施
- c# - 打开带有键/值的文本文件到组合框winforms
- javascript - 多选下拉菜单 - 检查 optgroup 时折叠
- sql-server - SQL Server、SCSU 以及如何判断字符串何时未压缩?
- reporting-services - 具有设置行和列的 SSRS 图例
- java - 如何让 PMD 也检查我的测试代码?
- python - 在线程或进程之间共享 cx_Oracle 游标
- ibm-cloud-private - IBM 私有云社区版无法与 powerVC 集成