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

EF6 missmatch version with EF5 throws HasAlternateKey method does not exist #87

Open
nehio opened this issue Feb 4, 2022 · 4 comments

Comments

@nehio
Copy link
Contributor

nehio commented Feb 4, 2022

Hi,

We were trying to update our app to net6.0 and noticed that due to our app having EF 6.0 and your package beeing on 5.0 it causes an error to be thrown on the SqlStringLocalizerFactory.cs line 113.

As i understand it, simply having the packages to the same version should fix this issue. Could you provide a release for net6.0 ?

Thank you in advance

@damienbod
Copy link
Owner

@nehio sounds good, I'll do an update

@daniel-jann
Copy link

daniel-jann commented Mar 8, 2022

Updating our app to net6.0, we also get an exception on the HasAlternateKey, but on the OnModelCreating method:

System.MissingMethodException: Method not found: 'Microsoft.EntityFrameworkCore.Metadata.Builders.KeyBuilder Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder`1.HasAlternateKey(System.Linq.Expressions.Expression`1<System.Func\`2<!0,System.Object>>)'. at Localization.SqlLocalizer.DbStringLocalizer.LocalizationModelContext.OnModelCreating(ModelBuilder builder)

@damienbod
Copy link
Owner

I will test and release with .NET 6 and the latest EF Core

Thanks for reporting

@nehio
Copy link
Contributor Author

nehio commented Jun 16, 2022

HI there ! Any news on a timeline for an update for .net 6.0 ? Thank you in advance.

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