How to instantiate your DbContext outside your Data project?

This post was most recently updated on November 13th, 2019.When you’re in your .NET Core project, it’s always easy: you just register your DbContext in ConfigureServices, and then inject it into whichever Page, View or Controller you might need it in. However, when you have another project or solution you’re working on and you’d still like to use the same DbContext and your entity classes in it, you have to find another way to do it! What should we do, then? Description Table of Contents … Continue reading How to instantiate your DbContext outside your Data project?