Class SaasDbContext
Implements
IInfrastructure<IServiceProvider>
IDbContextDependencies
IDbSetCache
IDbContextPoolable
IResettableService
Inherited Members
Namespace: Volo.Saas.EntityFrameworkCore
Assembly: Volo.Saas.EntityFrameworkCore.dll
Syntax
[IgnoreMultiTenancy]
[ConnectionStringName("Saas")]
public class SaasDbContext : AbpDbContext<SaasDbContext>, IAbpEfCoreDbContext, IAbpEfCoreDbFunctionContext, ITransientDependency, ISaasDbContext, IEfCoreDbContext, IDisposable, IInfrastructure<IServiceProvider>, IDbContextDependencies, IDbSetCache, IDbContextPoolable, IResettableService, IAsyncDisposable
Constructors
SaasDbContext(DbContextOptions<SaasDbContext>)
Declaration
public SaasDbContext(DbContextOptions<SaasDbContext> options)
Parameters
Type | Name | Description |
---|---|---|
DbContextOptions<SaasDbContext> | options |
Properties
Editions
Declaration
public DbSet<Edition> Editions { get; set; }
Property Value
Type | Description |
---|---|
DbSet<Edition> |
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.Saas.EntityFrameworkCore.SaasDbContext>.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