Class OrganisationDbContextExtensions
Contains extension methods for OrganisationDbContext<TOrganisation, TPerson>
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: IRM.AspNetCore.Identity.EntityFrameworkCore
Assembly: IRM.AspNetCore.Identity.EntityFrameworkCore.dll
Syntax
public static class OrganisationDbContextExtensions
Methods
SeedIrm<TOrganisation, TPerson>(OrganisationDbContext<TOrganisation, TPerson>, MultitenantIdentityDbContext, Guid)
Adds an organisation for IRM with correctly Azure AD confiugration.
Declaration
public static void SeedIrm<TOrganisation, TPerson>(this OrganisationDbContext<TOrganisation, TPerson> organisationDbContext, MultitenantIdentityDbContext identityContext, Guid irmTenantId)
where TOrganisation : class, IOrganisation, new()
where TPerson : class, IPerson
Parameters
OrganisationDbContext<TOrganisation, TPerson>
organisationDbContext
|
MultitenantIdentityDbContext
identityContext
|
System.Guid
irmTenantId
|
Type Parameters
TOrganisation
|
TPerson
|
SeedPrivatePersons<TOrganisation, TPerson>(OrganisationDbContext<TOrganisation, TPerson>, MultitenantIdentityDbContext)
Adds an organisation for private persons (not belonging to any organisation).
Declaration
public static void SeedPrivatePersons<TOrganisation, TPerson>(this OrganisationDbContext<TOrganisation, TPerson> organisationDbContext, MultitenantIdentityDbContext identityContext)
where TOrganisation : class, IOrganisation, new()
where TPerson : class, IPerson
Parameters
OrganisationDbContext<TOrganisation, TPerson>
organisationDbContext
|
MultitenantIdentityDbContext
identityContext
|
Type Parameters
TOrganisation
|
TPerson
|