EntityFramework Core – Add an implementation of IDesignTimeDbContextFactory – Multiple DbContext’s

added by DotNetKicks
9/22/2017 1:34:06 PM

2 Kicks, 169 Views

We already talked about problem when Entity Framework Core tooling requires you to implement IDesignTimeDbContextFactory - check out this post. It gets interesting when you have more than one DbContext in your application and you want to add another implementation of IDesignTimeDbContextFactory, without repeating the code and making sure that EF Core tooling picks the right one.