You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was playing with the Extensions recently and noticed this error:
"A default DbContext context must exist, or a context factory must be provided"
I found out that I need to setup a context factory like so:
EntityFrameworkManager.ContextFactory = context => new ApplicationDbContext();
This is all well and good if the app only has one context.. but we have multiple databases, so there's multiple contexts. So you can see that EntityFrameworkManager.ContextFactory being static is a problem.