DatabaseProvisioningOptions<TContext> class
Namespace: Tenantry.Pro.EfCore · Package: Tenantry.Pro.EfCore · API reference
How tenant provisioning creates each tenant's database. Set with pro.AddDatabaseProvisioning<TContext>(o => …).
public sealed class DatabaseProvisioningOptions<TContext> where TContext : DbContextType parameters
TContext: The context whose database is created.
Properties
CreateContext
Creates the context the database is created through, from the tenant's scope, where the tenant is current. Use it to connect with credentials allowed to create databases, when the application's own are not; the step disposes the context. When not set, the context comes from the application's registration: its IDbContextFactory<TContext>, if it has one, otherwise TContext from the tenant's scope.
public Func<IServiceProvider, TContext>? CreateContext { get; set; }Value: Func<IServiceProvider, TContext>
AuditTiming enum
When audit logging passes a save's entries to IAuditStoretenantry-pro-efcore-iauditstore.md.
IAuditContextProvider interface
Says who made the changes a save records, and what ties them to the request or job that made them: the AuditEntry.Actortenantry-pro-efcore-auditentry.md, AuditEntry.CorrelationIdtenantry-pro-efcore-auditentry.md and AuditEntry.Datatenantry-pro-efcore-auditentry.md of each entry.