修改多租户文档
This commit is contained in:
parent
2cba3041d9
commit
0aa4ae7ab4
@ -60,7 +60,6 @@ private void MultiTenancyTracking(DbContext dbContext)
|
||||
|
||||
多数据库多租户设计是指为每个租户创建一个独立的数据库,通过数据库连接字符串来区分不同租户的数据。
|
||||
|
||||
|
||||
```csharp
|
||||
|
||||
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
|
||||
@ -76,6 +75,8 @@ protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
|
||||
}
|
||||
```
|
||||
|
||||
[ZeroFramework TenantDbConnectionInterceptor](https://github.com/bit365/zeroframework/blob/master/Services/DeviceCenter/ZeroFramework.DeviceCenter.Infrastructure/ConnectionStrings/TenantDbConnectionInterceptor.cs)
|
||||
|
||||
## 基于 Schema 的多租户设计
|
||||
|
||||
基于 Schema 的多租户设计是指为每个租户创建一个独立的 Schema,通过 Schema 来区分不同租户的数据。
|
||||
|
Loading…
Reference in New Issue
Block a user