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

Exception when upgrading to .NET 6 and ef core 6 #121

Open
jjxtra opened this issue Jan 5, 2022 · 0 comments
Open

Exception when upgrading to .NET 6 and ef core 6 #121

jjxtra opened this issue Jan 5, 2022 · 0 comments

Comments

@jjxtra
Copy link

jjxtra commented Jan 5, 2022

Seeing this in my logs, looks like something broke with the .NET 6 or entity framework core 6 upgrade... I'm using nuget 6.0.1. No compile errors.

Perhaps IModel FindEntityType was removed or linked inproperly?

I built from and included the source instead of the nuget and it worked fine.

 System.MissingMethodException: Method not found: 'Microsoft.EntityFrameworkCore.Metadata.IEntityType Microsoft.EntityFrameworkCore.ModelExtensions.FindEntityType(Microsoft.EntityFrameworkCore.Metadata.IModel, System.Type)'.'.
   at FlexLabs.EntityFrameworkCore.Upsert.UpsertCommandBuilder`1..ctor(DbContext dbContext, ICollection`1 entities)
   at Microsoft.EntityFrameworkCore.UpsertExtensions.UpsertRange[TEntity](DbContext dbContext, IEnumerable`1 entities) in /_/src/FlexLabs.EntityFrameworkCore.Upsert/UpsertExtensions.cs:line 73
   at Microsoft.EntityFrameworkCore.UpsertExtensions.UpsertRange[TEntity](DbSet`1 dbSet, IEnumerable`1 entities) in /_/src/FlexLabs.EntityFrameworkCore.Upsert/UpsertExtensions.cs:line 130
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant