I am trying to use Entity Framework data migrations as described in this post .
However, when I try to complete the Enable-Migrations step, I get the following error in the Package Manager console:
The target context 'MyDataContext' is not constructible. Add a default constructor or provide an implementation of IDbContextFactory
So, I created a factory class that implements IDbContextFactory in a project that contains my DbContext class, but data migration does not seem to recognize it.
Is there something I should explicitly do to instruct data migration to use this factory class?
entity-framework data-migration
Tim Coulter Jul 09 2018-12-12T00: 00Z
source share