ModelBuilder' does not contain a definition for 'ApplyAllConfigurations'?

asp.net-core dbcontext ef-fluent-api ef-model-builder entity-framework-core

Question

It is ASP.Net Core architecture utilizing EntityFramework Core at time 34:05 in the video I'm watching. They are demonstrating an extension method.

    modelBuilder.ApplyAllConfigurations();

It gives the following problem when I try this in my code: No available extension method taking a first parameter of type "ModelBuilder" and no definition for "ApplyAllConfigurations" in the class "ModelBuilder" could be located. (Are you missing a using directive or an assembly reference?

Do I need another reference? Otherwise, how can I include this into my project?

1
0
1/4/2019 6:42:03 AM

Accepted Answer

ZZZ_tmp
0
1/4/2019 6:44:42 AM


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow