EFCore 7 Context Factory, multiple contexts that can connect at runtime (Dotnet Core / Dotnet 7)

Published: 20 June 2023
on channel: Data Vids
4K
4

Connect to one (or more!) context's at runtime using a context factory instead of a regular DBContext. Learn how and what to scaffold, what needs to be overridden, and where to apply scope. Its easy, and it won't take long to learn! You can even pick your connection string at runtime too. This example is in a dotnet 7 EFCore ASP.Net Razor pages project, but it would work (and you can follow along) using any console application or other web application template as well.


Watch video EFCore 7 Context Factory, multiple contexts that can connect at runtime (Dotnet Core / Dotnet 7) online without registration, duration 32 minute 35 second in high hd quality. This video was added by user Data Vids 20 June 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 4 thousand once and liked it 4 people.