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

MissingMethodException when run against latest EFCore RC2 build #155

Closed
mmesdag opened this issue Sep 3, 2022 · 1 comment
Closed

MissingMethodException when run against latest EFCore RC2 build #155

mmesdag opened this issue Sep 3, 2022 · 1 comment

Comments

@mmesdag
Copy link

mmesdag commented Sep 3, 2022

I pulled down the daily EFCore builds, and it seems like the changes to conventions there (PR 28601) have broken these, at least the .UseSnakeCaseNamingConvention() in my case.

Whenever it's triggered (app startup, creating a migration), this error pops up:

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.MissingMethodException: Method not found: 'System.Collections.Generic.IList`1<Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeAddedConvention> Microsoft.EntityFrameworkCore.Metadata.Conventions.ConventionSet.get_EntityTypeAddedConventions()'. at EFCore.NamingConventions.Internal.NamingConventionSetPlugin.ModifyConventions(ConventionSet conventionSet) at Microsoft.EntityFrameworkCore.Metadata.Conventions.Internal.RuntimeConventionSetBuilder.CreateConventionSet() at Microsoft.EntityFrameworkCore.Infrastructure.ModelSource.CreateModel(DbContext context, IConventionSetBuilder conventionSetBuilder, ModelDependencies modelDependencies) at Microsoft.EntityFrameworkCore.Infrastructure.ModelSource.GetModel(DbContext context, ModelCreationDependencies modelCreationDependencies, Boolean designTime) at Microsoft.EntityFrameworkCore.Internal.DbContextServices.CreateModel(Boolean designTime) at Microsoft.EntityFrameworkCore.Internal.DbContextServices.get_Model() at Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkServicesBuilder.<>c.<TryAddCoreServices>b__8_4(IServiceProvider p)

@roji
Copy link
Member

roji commented Sep 4, 2022

You cannot mix versions by using the 6.0 version of EFCore.NamingConventions with a 7.0 prerelease version of EF Core. You'll have to wait until a 7.0 version of EFCore.NamingConventions is released.

@roji roji closed this as not planned Won't fix, can't repro, duplicate, stale Sep 4, 2022
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

2 participants