Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failing to connect to Firebird from EF Core 3 [DNET902] #829

Closed
firebird-automations opened this issue Oct 1, 2019 · 12 comments
Closed

Comments

@firebird-automations
Copy link

Submitted by: John Greco (jfgreco)

Trying to utilize: services.AddDbContext<SheaDbContext>(options => options.UseFirebird(connectionString));

Raises an exception:

"Method 'get_Info' in type 'FirebirdSql.EntityFrameworkCore.Firebird.Infrastructure.Internal.FbOptionsExtension' from assembly 'FirebirdSql.EntityFrameworkCore.Firebird, Version=7.1.1.0, Culture=neutral, PublicKeyToken=7a73ef09980c56c9' does not have an implementation." string

@firebird-automations
Copy link
Author

Modified by: @cincuranet

Component: http://ADO.NET Provider [ 10041 ] =>

Component: NuGet packages [ 10150 ] =>

@firebird-automations
Copy link
Author

Commented by: @cincuranet

Please provide a small reproducible test-case and/or exact versions you're using.

@firebird-automations
Copy link
Author

Commented by: Gerdus van Zyl (angelblaze)

This is the error you get when running on EntityFrameworkCore version 3.0; while the firebird provider supports currently 2.2

@firebird-automations
Copy link
Author

Commented by: John Greco (jfgreco)

Correct. Any application in .net Core 3 that tries to connect to Firebird has this error.

@firebird-automations
Copy link
Author

Commented by: @cincuranet

Thanks Gerdus, that was my guess, so I asked for the versions.

The EFCore 3 support is tracked in DNET903, so I'll close this.

@firebird-automations
Copy link
Author

Modified by: @cincuranet

status: Open [ 1 ] => Closed [ 6 ]

resolution: Incomplete [ 4 ]

@firebird-automations
Copy link
Author

Modified by: @cincuranet

status: Closed [ 6 ] => Reopened [ 4 ]

resolution: Incomplete [ 4 ] =>

@firebird-automations
Copy link
Author

Modified by: @cincuranet

summary: Failing to connect to Firebird => Failing to connect to Firebird from EF Core 3

@firebird-automations
Copy link
Author

Modified by: @cincuranet

status: Reopened [ 4 ] => Closed [ 6 ]

resolution: Incomplete [ 4 ]

@firebird-automations
Copy link
Author

Commented by: Valdir Stiebe Junior (ogecrom)

As a workaround, we made it work with entity framework core 3.1 removing the following PackageReference from our project.csproj.

<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="3.1.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="3.1.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="3.1.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>

@janhenk
Copy link

janhenk commented Jun 8, 2021

I'm having this same issue with:
'Method 'get_Info' in type 'EntityFrameworkCore.FirebirdSql.Infrastructure.Internal.FbOptionsExtension' from assembly 'EntityFrameworkCore.FirebirdSql, Version=2.1.2.2, Culture=neutral, PublicKeyToken=590af85568ed71f5' does not have an implementation.'
tested on all versions
EntityFrameworkCore.FirebirdSql 2.0.1 => 2.1.2.2

Application .Net 5.0 Console Application

@cincuranet
Copy link
Member

Assembly EntityFrameworkCore.FirebirdSql is not this provider.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants