© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
2 replies
barcode

❔ EFCore migrations

Hello, I'm having issues applying configurations with ApplyConfigurationsFromAssembly and have to manually apply configurations

// automatic
modelBuilder.ApplyConfigurationsFromAssembly(typeof(MyDbContext).Assembly);
modelBuilder.ApplyConfigurationsFromAssembly(typeof(MyDbContext).Assembly);




//manual

        new CategoryConfiguration().Configure(modelBuilder.Entity<Category>());
      ...
        new CenterConfiguration().Configure(modelBuilder.Entity<Center>());
        new CategoryConfiguration().Configure(modelBuilder.Entity<Category>());
      ...
        new CenterConfiguration().Configure(modelBuilder.Entity<Center>());


This occurs due to having a CenterCategory many to many table that I handle inside center configuration
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ EFCore SQLITE Migrations on Server
C#CC# / help
3y ago
❔ EFCore migrations from existent database
C#CC# / help
3y ago
How does EFCore Migrations work for actual deployment?
C#CC# / help
4y ago
Trying to generate Migrations with EFCore using Clean Architecture
C#CC# / help
3y ago