我正在使用我的Asp.Net MVC3应用程序的实体框架4.我的问题是我正在使用Entity Framework对我的数据库执行操作,这是正常的.为了其他目的,我还使用sql Connection来存储和检索数据库中的数据.我正进入(状态
[Keyword not supported: 'Metadata']
连接我的数据库时出错.
这是我的网络配置
<add name="VibrantEntities" connectionString="Metadata=res://*/Vibrant.csdl|res://*/Vibrant.ssdl|res://*/Vibrant.msl;provider=System.Data.sqlClient;provider connection string="data source=KAPS-PC\KAPSSERVER;initial catalog=vibrant;integrated security=True;multipleactiveresultsets=True;App=EntityFramework"" providerName="System.Data.EntityClient" />
我正在使用类库,所以这是我的App Config.
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection,EntityFramework,Version=4.3.0.0,Culture=neutral,PublicKeyToken=b77a5c561934e089" /> <add name="VibrantEntities" connectionString="Metadata=res://*/Vibrant.csdl|res://*/Vibrant.ssdl|res://*/Vibrant.msl;provider=System.Data.sqlClient;provider connection string="data source=KAPS-PC\KAPSSERVER;initial catalog=vibrant;integrated security=True;multipleactiveresultsets=True;App=EntityFramework"" providerName="System.Data.EntityClient" />
解决方法
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。