I was asked by Jiri Cincura to write my question here on the list, so here am I 
now:

(From here on its a copy from my initial issue on the tracker from firebird - 
notice that the link to the tracker doesnt work because the related issue got 
deleteb by Jiri)

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?
                                          
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk
_______________________________________________
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider

Reply via email to