Class IdentityDirectoryModelBuilderExtensions
- Namespace
- Stratara.Identity.EntityFrameworkCore
- Assembly
- Stratara.Identity.EntityFrameworkCore.dll
Adds the Stratara identity-directory tables (tenant_membership, active_tenant,
setting_entry, api_key) to an EF Core model. Call it from any DbContext's
OnModelCreating — typically the consumer's existing ASP.NET Identity context, so the
directory tables share that context's connection and migration lineage — or use
IdentityDirectoryDbContext<TContext> for a standalone context.
public static class IdentityDirectoryModelBuilderExtensions
- Inheritance
-
IdentityDirectoryModelBuilderExtensions
- Inherited Members
Methods
ApplyIdentityDirectoryModel(ModelBuilder)
Applies the identity-directory entity configurations to the model.
public static ModelBuilder ApplyIdentityDirectoryModel(this ModelBuilder builder)
Parameters
builderModelBuilderThe model builder of the hosting DbContext.
Returns
- ModelBuilder
The same builder for chaining.