Show / Hide Table of Contents

Class SaasDbContext

Inheritance
object
SaasDbContext
Implements
ISaasDbContext
IEfCoreDbContext
IDisposable
IInfrastructure<IServiceProvider>
IDbContextDependencies
IDbSetCache
IDbContextPoolable
IResettableService
IAsyncDisposable
Namespace: Volo.Saas.EntityFrameworkCore
Assembly: Volo.Saas.EntityFrameworkCore.dll
Syntax
public class SaasDbContext : AbpDbContext<SaasDbContext>, 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

Implements

ISaasDbContext
Volo.Abp.EntityFrameworkCore.IEfCoreDbContext
IDisposable
Microsoft.EntityFrameworkCore.Infrastructure.IInfrastructure<>
Microsoft.EntityFrameworkCore.Internal.IDbContextDependencies
Microsoft.EntityFrameworkCore.Internal.IDbSetCache
Microsoft.EntityFrameworkCore.Internal.IDbContextPoolable
Microsoft.EntityFrameworkCore.Infrastructure.IResettableService
IAsyncDisposable
In this article
Back to top Powered by Volosoft