Skip to content

Commit

Permalink
fix: doc type
Browse files Browse the repository at this point in the history
  • Loading branch information
mphill authored Jan 31, 2020
1 parent b9ba161 commit 0d36766
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/Identity.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ See the Identity data isolation sample projects in the [GitHub repository](https
## Configuration
Configuring an Identity db context to be multitenant is identical to that of a regular db context as described in [Data Isolation With Entity Framework Core](EFCore) with a few extra specifics to keep in mind.

The simplest approach is to derive a db context from `MultiTenantIdentitybContext` (which itself derives from `IdentityDbContext`) and configure Identity to use the derived context.
The simplest approach is to derive a db context from `MultiTenantIdentityDbContext` (which itself derives from `IdentityDbContext`) and configure Identity to use the derived context.

When customizing the Identity data model, for example deriving a user entity type class from `IdenityUser`, to designate the customized entity type as multitenant either:
- Add the `[MultiTenant]` data attribute to the entity type class, or
Expand Down Expand Up @@ -53,4 +53,4 @@ Deriving from `MultiTenantIdentityDbContext<TUser, TRole, TKey>` will use the pr

Deriving from `MultiTenantIdentityDbContext<TUser, TRole, TKey, TUserClaim, TUserRole, TUserLogin, TRoleClaim, TUserToken>` will only use provided parameters. No entity types will be configured as multitenant, and it is up to the programmer to do so as desribed above if desired.

When providing non-default parameters it is recommended that the provided entity types have the `[MultiTenant]` attribute or call the `IsMultiTenant` builder extension method for each type in `OnModelCreating` **after** calling the base class `OnModelCreating`.
When providing non-default parameters it is recommended that the provided entity types have the `[MultiTenant]` attribute or call the `IsMultiTenant` builder extension method for each type in `OnModelCreating` **after** calling the base class `OnModelCreating`.

0 comments on commit 0d36766

Please sign in to comment.