I have a class library project migrated from beta 3 to beta 4. In beta 3 I was able to call
k ef migration add <migration name> -c <dbcontextname>
from a command line as I provide a Startup class in my class Library project with a ConfigureServices method which configure the dbcontext .
With beta 4 I got this exception:
System.InvalidOperationException: No data stores are configured. Configure a data store by overriding OnConfiguring in your DbContext class or in the AddDbContext method when setting up services.
I look at the code source for ContextTool class but it's not very clear how the Startup class is used or why it would fail.
Any idea ?