Class TenantManagementDbContext
Implements
IInfrastructure<IServiceProvider>
IDbContextDependencies
IDbSetCache
IDbContextPoolable
IResettableService
Inherited Members
Namespace: Volo.Abp.TenantManagement.EntityFrameworkCore
Assembly: Volo.Abp.TenantManagement.EntityFrameworkCore.dll
Syntax
[IgnoreMultiTenancy]
[ConnectionStringName("AbpTenantManagement")]
public class TenantManagementDbContext : AbpDbContext<TenantManagementDbContext>, IAbpEfCoreDbContext, IAbpEfCoreDbFunctionContext, ITransientDependency, ITenantManagementDbContext, IEfCoreDbContext, IDisposable, IInfrastructure<IServiceProvider>, IDbContextDependencies, IDbSetCache, IDbContextPoolable, IResettableService, IAsyncDisposable
Constructors
TenantManagementDbContext(DbContextOptions<TenantManagementDbContext>)
Declaration
public TenantManagementDbContext(DbContextOptions<TenantManagementDbContext> options)
Parameters
Type | Name | Description |
---|---|---|
DbContextOptions<TenantManagementDbContext> | options |
Properties
TenantConnectionStrings
Declaration
public DbSet<TenantConnectionString> TenantConnectionStrings { get; set; }
Property Value
Type | Description |
---|---|
DbSet<TenantConnectionString> |
Tenants
Declaration
public DbSet<Tenant> Tenants { get; set; }
Property Value
Type | Description |
---|---|
DbSet<Tenant> |
Methods
OnModelCreating(ModelBuilder)
Declaration
protected override void OnModelCreating(ModelBuilder builder)
Parameters
Type | Name | Description |
---|---|---|
ModelBuilder | builder |
Overrides
Volo.Abp.EntityFrameworkCore.AbpDbContext<Volo.Abp.TenantManagement.EntityFrameworkCore.TenantManagementDbContext>.OnModelCreating(Microsoft.EntityFrameworkCore.ModelBuilder)
Implements
Microsoft.EntityFrameworkCore.Infrastructure.IInfrastructure<>
Microsoft.EntityFrameworkCore.Internal.IDbContextDependencies
Microsoft.EntityFrameworkCore.Internal.IDbSetCache
Microsoft.EntityFrameworkCore.Internal.IDbContextPoolable
Microsoft.EntityFrameworkCore.Infrastructure.IResettableService