ASP.NET Multi-Tenant SaaS App | Multiple Databases - 20 Minute Tutorial + GitHub (Part 2)

preview_player
Показать описание
A continuation of Learn how to build a Multi-Tenant SaaS App using ASP.NET and Entity Framework Core. We extend our multi-tenant .NET application to support database per-tenant and hybrid multi-tenancy strategies. Step by step tutorial on how to save each tenant's data on their own database and handle migrations across multiple databases.

In this 20 minute lesson, gain a better understanding of multi-tenant architecture. Multi-tenant architecture is essential for any SaaS or modern web application.

VIDEO PART 1:

VIDEO PART 3 (deploy to Azure):

TUTORIAL / SAMPLE CODE :

NANO ASP.NET BOILERPLATE:

VIDEO TOUR:

0:00 - Intro
0:42 - Core changes
2:43 - Migration strategy
3:25 - Managing two DbContexts
5:48 - Create tenant service
9:48 - Run and test the app
12:52 - Extension method to handle migrations
15:50 - Test multiple database extension method
17:23 - Handle scaffolding issue with TenantDbContextFactory interface
Рекомендации по теме
Комментарии
Автор

you saved my work life really bro ty so much

mahmoudkhaled
Автор

I’ve just been playing around with C#. But I’m confused with with c#. I’m come from php world. My question is: what do you recommend some learning resources in C#, like interfaces …traits… etc. what I’ve seen so far is confusing. Tks in advance. Carlo

csilipo