0
我使用EntityFramework 5.0.0和我的数据库是oracle11g客户端12c Oracle数据库(ODP.NET,托管驱动程序)版本12.1.My数据库已存在,所以我打电话给现有的表和我连接我的数据库使用EDMX其连接好,但我没有在我的实际应用程序中使用EDMX,所以我编码1实体和它的配置手动,现在它不能连接我认为我的连接字符串是错误的我的web.config代码是你可以看到下面的连接字符串发行EntityFramework 5.0.0连接与oracle 11g
<configSections>
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
</configSections>
<connectionStrings>
<add name="dbContext" connectionString="metadata=res://*/Model1.csdl|res://*/Model1.ssdl|res://*/Model1.msl;provider=Oracle.ManagedDataAccess.Client;provider connection string="DATA SOURCE=xxx;PASSWORD=aaa;PERSIST SECURITY INFO=True;USER ID=aaaa"" providerName="System.Data.EntityClient" />
</connectionStrings>
请告诉我解决方法。
谢谢