Browse Source
Merge pull request #3693 from cnAbp/docs
Update multi-tenancy document
pull/3702/head
maliming
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
6 additions and
6 deletions
-
docs/en/Multi-Tenancy.md
-
docs/zh-Hans/Multi-Tenancy.md
|
|
@ -172,11 +172,11 @@ namespace MyCompany.MyProject |
|
|
{ |
|
|
{ |
|
|
options.Tenants = new[] |
|
|
options.Tenants = new[] |
|
|
{ |
|
|
{ |
|
|
new TenantInformation( |
|
|
new TenantConfiguration( |
|
|
Guid.Parse("446a5211-3d72-4339-9adc-845151f8ada0"), //Id |
|
|
Guid.Parse("446a5211-3d72-4339-9adc-845151f8ada0"), //Id |
|
|
"tenant1" //Name |
|
|
"tenant1" //Name |
|
|
), |
|
|
), |
|
|
new TenantInformation( |
|
|
new TenantConfiguration( |
|
|
Guid.Parse("25388015-ef1c-4355-9c18-f6b6ddbaf89d"), //Id |
|
|
Guid.Parse("25388015-ef1c-4355-9c18-f6b6ddbaf89d"), //Id |
|
|
"tenant2" //Name |
|
|
"tenant2" //Name |
|
|
) |
|
|
) |
|
|
@ -252,7 +252,7 @@ TODO: This package implements ITenantStore using a real database... |
|
|
|
|
|
|
|
|
#### Tenant Information |
|
|
#### Tenant Information |
|
|
|
|
|
|
|
|
ITenantStore works with **TenantInformation** class that has several properties for a tenant: |
|
|
ITenantStore works with **TenantConfiguration** class that has several properties for a tenant: |
|
|
|
|
|
|
|
|
* **Id**: Unique Id of the tenant. |
|
|
* **Id**: Unique Id of the tenant. |
|
|
* **Name**: Unique name of the tenant. |
|
|
* **Name**: Unique name of the tenant. |
|
|
|
|
|
@ -172,11 +172,11 @@ namespace MyCompany.MyProject |
|
|
{ |
|
|
{ |
|
|
options.Tenants = new[] |
|
|
options.Tenants = new[] |
|
|
{ |
|
|
{ |
|
|
new TenantInformation( |
|
|
new TenantConfiguration( |
|
|
Guid.Parse("446a5211-3d72-4339-9adc-845151f8ada0"), //Id |
|
|
Guid.Parse("446a5211-3d72-4339-9adc-845151f8ada0"), //Id |
|
|
"tenant1" //Name |
|
|
"tenant1" //Name |
|
|
), |
|
|
), |
|
|
new TenantInformation( |
|
|
new TenantConfiguration( |
|
|
Guid.Parse("25388015-ef1c-4355-9c18-f6b6ddbaf89d"), //Id |
|
|
Guid.Parse("25388015-ef1c-4355-9c18-f6b6ddbaf89d"), //Id |
|
|
"tenant2" //Name |
|
|
"tenant2" //Name |
|
|
) |
|
|
) |
|
|
@ -252,7 +252,7 @@ TODO: This package implements ITenantStore using a real database... |
|
|
|
|
|
|
|
|
#### 租户信息 |
|
|
#### 租户信息 |
|
|
|
|
|
|
|
|
ITenantStore跟 **TenantInformation**类一起工作,并且包含了几个租户属性: |
|
|
ITenantStore跟 **TenantConfiguration**类一起工作,并且包含了几个租户属性: |
|
|
|
|
|
|
|
|
* **Id**:租户的唯一Id. |
|
|
* **Id**:租户的唯一Id. |
|
|
* **Name**: 租户的唯一名称. |
|
|
* **Name**: 租户的唯一名称. |
|
|
|