Тёмный

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

Data Vids (Data Vids)
Подписаться 3,3 тыс.
Просмотров 4,1 тыс.
50% 1

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.

Опубликовано:

 

15 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 6   
@krishravela
@krishravela Месяц назад
Thanks for the video!
@maksadnahibhoolna-wc2ef
@maksadnahibhoolna-wc2ef Год назад
Keep making insightful videos on Entity Framework 🙏🙏
@PIMARINE
@PIMARINE Год назад
Hey man, thanks for the vid. I can tell by this comment section You ain't getting enough Love. 😁✌🏿♥️
@DataVids
@DataVids Год назад
Truth! Love you brother, next one will have more of a buzz for sure.
@Bill-s6j2w
@Bill-s6j2w 10 месяцев назад
You mentioned a "generic constructor" several times and what you were actually talking about is a "default constructor"
@joseptempra3207
@joseptempra3207 7 месяцев назад
Hello Data Vids for this great video... I need your help, I am doing a minimal API that, in case of one URL parameter (ex. DBid), works with a Database or another one. I need to inject the appropiate DbContext in each EndPoint to work with the correcte Database. Could you tell me how to modify your program to do it. Thanks a lot!!!
Далее
How to use Dapper in DotNet  [Dotnet 7] [C#]
20:30
Просмотров 6 тыс.
Million jamoasi - Amerikaga sayohat
12:37
Просмотров 350 тыс.
Move appSettings.json values to User Secrets
19:03
Просмотров 2,4 тыс.
Windows EventLogs in DotNet (easy logging setup)
12:49
Просмотров 2,5 тыс.
If Your Tech Job is Comfortable, You're in Danger
20:57
PERFECT CHESS by Hans Niemann
23:49
Просмотров 29 тыс.
Million jamoasi - Amerikaga sayohat
12:37
Просмотров 350 тыс.