Last post Mar 06, 2017 08:33 AM by AngelinaJolie
Mar 04, 2017 09:15 PM|Staniel|LINK
I have added a Class Library to my solution so that I can use Work Authentication on my ASP.Net Core site. I have been able to add a migration and update database from the PM console. However i am unable to use dotnet -ef. Upon running the site I am greeted
when an unhandled exception occurred and when researching the issue there is very little to be found, in order to solve it.
Any advice in order to remedy the situation would be much appreciated, I am happy to give extra detail, as I'm not sure whether the detail that I have give is sufficient.
Mar 06, 2017 08:33 AM|AngelinaJolie|LINK
I guess that you may not register ApplicationDbContext at startup.cs like this:
public void ConfigureServices(IServiceCollection services)
// Add framework services.
if not, maybe something wrong in ApplicationDbContext;