C#C
C#3y ago
barcode

❔ EFCore migrations

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

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




//manual

        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
Was this page helpful?