FirebirdSQL / NETProvider

Firebird ADO.NET Data Provider
https://www.firebirdsql.org/en/net-provider/
Other
152 stars 63 forks source link

.NET 7 EF core support #1077

Closed PhilPJL closed 1 year ago

PhilPJL commented 1 year ago

Hi,

I just tried creating a test app using .NET 6 + EF 6 core + FirebirdSql.EFCore.Firebird 9.0.2, which works fine.

When updating to .NET 6 (or .NET 7 RC2) + EF 7 RC2 I get one of these exceptions depending on which combination of RC2 packages I have

with Microsoft.EntityFrameworkCore.Relational 6

Method 'get_QueryProvider' in type 'Microsoft.EntityFrameworkCore.Storage.Internal.RelationalDatabaseFacadeDependencies' from assembly 'Microsoft.EntityFrameworkCore.Relational, Version=6.0.2.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' does not have an implementation.

or Microsoft.EntityFrameworkCore.Relational 7

Method not found: 'System.Collections.Generic.IList`1 Microsoft.EntityFrameworkCore.Metadata.Conventions.ConventionSet.get_ModelInitializedConventions()'.

Known issue?

cincuranet commented 1 year ago

Yes, that's expected. You can't mix and match EF Core versions with provider.

PhilPJL commented 1 year ago

Hi,

the first exception was because I was mixing versions, so probably expected. The second one is using: image

and image

Is that still expected? In which case I need to wait for an update?

cincuranet commented 1 year ago

Still. You'd need provider that is EFCore7 compatible (and that's not 9.0.2, it's not available yet).