From: Rand R. (JIRA) <tr...@fi...> - 2013-10-21 13:23:16
|
DbProviderServices ------------------ Key: DNET-525 URL: http://tracker.firebirdsql.org/browse/DNET-525 Project: .NET Data provider Issue Type: Bug Components: ADO.NET Provider Affects Versions: 3.2.0.0 Environment: Win7 - EF 6 - .Net Provider 3.2.0.0 - Firbird 2.5 - Visual Studio 2013 Reporter: Rand Random Assignee: Jiri Cincura I am getting following error message: The 'Instance' member of the Entity Framework provider type 'FirebirdSql.Data.FirebirdClient.FirebirdClientFactory, FirebirdSql.Data.FirebirdClient, Version=3.2.0.0, Culture=neutral, PublicKeyToken=3750abcc3150b00c' did not return an object that inherits from 'System.Data.Entity.Core.Common.DbProviderServices'. Entity Framework providers must inherit from this class and the 'Instance' member must return the singleton instance of the provider. This may be because the provider does not support Entity Framework 6 or later; see http://go.microsoft.com/fwlink/?LinkId=260882 for more information. I probably did something wrong but dont know what... I am currently trying to update my VS 2012 + EF 5 Solution to the latest VS 2013 and EF 6.0.0.1 Versions, everything went smoothly and I am able to build the solution. During the update I noticed that the .Net Provider is also availabe in a NuGet package, and got my latest version for EF 6 from there. (Yeah I noticed that there are 2 different NuGet packages and picked the one saying "Firebird ADO.NET Data provider (Entity Framework 6). When I tried to run the application a very simple linq query resulted to an exception telling me that the provider isnt configured in the app.config. So I extended the default config from <entityFramework> <defaultConnectionFactory type="System.Data.Entity.Infrastructure.SqlConnectionFactory, EntityFramework" /> <providers> <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" /> </providers> </entityFramework> to <entityFramework> <defaultConnectionFactory type="System.Data.Entity.Infrastructure.SqlConnectionFactory, EntityFramework" /> <providers> <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" /> <provider invariantName="FirebirdSql.Data.FirebirdClient" type="FirebirdSql.Data.FirebirdClient.FirebirdClientFactory, FirebirdSql.Data.FirebirdClient" /> </providers> </entityFramework> After this the excpetion was gone and a new one appeard - the one mentioned at the very top. So what am I doing wrong and how can I tell my solution to use the DLL for EF 6? -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://tracker.firebirdsql.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |