This post was most recently updated on October 29th, 2020.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 Let’s first take … Continue reading How to instantiate your DbContext outside your Data project?
Copy and paste this URL into your WordPress site to embed
Copy and paste this code into your site to embed