Show / Hide Table of Contents

Class SaasDbContext

Inheritance
object
AbpDbContext<SaasDbContext>
SaasDbContext
Implements
IAbpEfCoreDbContext
IAbpEfCoreDbFunctionContext
ITransientDependency
ISaasDbContext
IEfCoreDbContext
IDisposable
IInfrastructure<IServiceProvider>
IDbContextDependencies
IDbSetCache
IDbContextPoolable
IResettableService
IAsyncDisposable
Inherited Members
AbpDbContext<SaasDbContext>.DbContextOptions
AbpDbContext<SaasDbContext>.OnConfiguring(DbContextOptionsBuilder)
AbpDbContext<SaasDbContext>.ConfigureConventions(ModelConfigurationBuilder)
AbpDbContext<SaasDbContext>.TrySetDatabaseProvider(ModelBuilder)
AbpDbContext<SaasDbContext>.GetDatabaseProviderOrNull(ModelBuilder)
AbpDbContext<SaasDbContext>.SaveChangesAsync(bool, CancellationToken)
AbpDbContext<SaasDbContext>.PublishEntityEvents(EntityEventReport)
AbpDbContext<SaasDbContext>.SaveChangesOnDbContextAsync(bool, CancellationToken)
AbpDbContext<SaasDbContext>.Initialize(AbpEfCoreDbContextInitializationContext)
AbpDbContext<SaasDbContext>.ChangeTracker_Tracked(object, EntityTrackedEventArgs)
AbpDbContext<SaasDbContext>.ChangeTracker_StateChanged(object, EntityStateChangedEventArgs)
AbpDbContext<SaasDbContext>.FillExtraPropertiesForTrackedEntities(EntityTrackedEventArgs)
AbpDbContext<SaasDbContext>.PublishEventsForTrackedEntity(EntityEntry)
AbpDbContext<SaasDbContext>.HandlePropertiesBeforeSave()
AbpDbContext<SaasDbContext>.CreateEventReport()
AbpDbContext<SaasDbContext>.HandleExtraPropertiesOnSave(EntityEntry)
AbpDbContext<SaasDbContext>.ApplyAbpConceptsForAddedEntity(EntityEntry)
AbpDbContext<SaasDbContext>.ApplyAbpConceptsForModifiedEntity(EntityEntry, bool)
AbpDbContext<SaasDbContext>.ApplyAbpConceptsForDeletedEntity(EntityEntry)
AbpDbContext<SaasDbContext>.IsHardDeleted(EntityEntry)
AbpDbContext<SaasDbContext>.UpdateConcurrencyStamp(EntityEntry)
AbpDbContext<SaasDbContext>.SetConcurrencyStampIfNull(EntityEntry)
AbpDbContext<SaasDbContext>.CheckAndSetId(EntityEntry)
AbpDbContext<SaasDbContext>.TrySetGuidId(EntityEntry, IEntity<Guid>)
AbpDbContext<SaasDbContext>.SetCreationAuditProperties(EntityEntry)
AbpDbContext<SaasDbContext>.SetModificationAuditProperties(EntityEntry)
AbpDbContext<SaasDbContext>.SetDeletionAuditProperties(EntityEntry)
AbpDbContext<SaasDbContext>.IncrementEntityVersionProperty(EntityEntry)
AbpDbContext<SaasDbContext>.ConfigureBaseProperties<TEntity>(ModelBuilder, IMutableEntityType)
AbpDbContext<SaasDbContext>.ConfigureGlobalFilters<TEntity>(ModelBuilder, IMutableEntityType)
AbpDbContext<SaasDbContext>.ConfigureValueConverter<TEntity>(ModelBuilder, IMutableEntityType)
AbpDbContext<SaasDbContext>.ConfigureValueGenerated<TEntity>(ModelBuilder, IMutableEntityType)
AbpDbContext<SaasDbContext>.ShouldFilterEntity<TEntity>(IMutableEntityType)
AbpDbContext<SaasDbContext>.CreateFilterExpression<TEntity>(ModelBuilder)
AbpDbContext<SaasDbContext>.UseDbFunction()
AbpDbContext<SaasDbContext>.GetCompiledQueryCacheKey()
AbpDbContext<SaasDbContext>.LazyServiceProvider
AbpDbContext<SaasDbContext>.CurrentTenantId
AbpDbContext<SaasDbContext>.IsMultiTenantFilterEnabled
AbpDbContext<SaasDbContext>.IsSoftDeleteFilterEnabled
AbpDbContext<SaasDbContext>.CurrentTenant
AbpDbContext<SaasDbContext>.GuidGenerator
AbpDbContext<SaasDbContext>.DataFilter
AbpDbContext<SaasDbContext>.EntityChangeEventHelper
AbpDbContext<SaasDbContext>.EntityChangeOptions
AbpDbContext<SaasDbContext>.AuditPropertySetter
AbpDbContext<SaasDbContext>.EntityHistoryHelper
AbpDbContext<SaasDbContext>.AuditingManager
AbpDbContext<SaasDbContext>.UnitOfWorkManager
AbpDbContext<SaasDbContext>.Clock
AbpDbContext<SaasDbContext>.DistributedEventBus
AbpDbContext<SaasDbContext>.LocalEventBus
AbpDbContext<SaasDbContext>.Logger
AbpDbContext<SaasDbContext>.AbpEfCoreNavigationHelper
AbpDbContext<SaasDbContext>.Options
AbpDbContext<SaasDbContext>.GlobalFilterOptions
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

IAbpEfCoreDbContext
IAbpEfCoreDbFunctionContext
ITransientDependency
ISaasDbContext
IEfCoreDbContext
IDisposable
Microsoft.EntityFrameworkCore.Infrastructure.IInfrastructure<>
Microsoft.EntityFrameworkCore.Internal.IDbContextDependencies
Microsoft.EntityFrameworkCore.Internal.IDbSetCache
Microsoft.EntityFrameworkCore.Internal.IDbContextPoolable
Microsoft.EntityFrameworkCore.Infrastructure.IResettableService
IAsyncDisposable

Extension Methods

AbpObjectExtensions.As<T>(object)
AbpObjectExtensions.To<T>(object)
LockExtensions.Locking(object, Action)
LockExtensions.Locking<TResult>(object, Func<TResult>)
AbpObjectExtensions.If<T>(T, bool, Action<T>)
AbpObjectExtensions.If<T>(T, bool, Func<T, T>)
AbpObjectExtensions.IsIn<T>(T, IEnumerable<T>)
AbpObjectExtensions.IsIn<T>(T, params T[])
AbpQueryableExtensions.OrderByIf<T, TQueryable>(TQueryable, bool, string)
AbpQueryableExtensions.PageBy<T, TQueryable>(TQueryable, int, int)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, bool>>)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, int, bool>>)
AbpOpenIddictQueryableExtensions.SkipIf<T, TQueryable>(TQueryable, bool, int?)
AbpOpenIddictQueryableExtensions.TakeIf<T, TQueryable>(TQueryable, bool, int?)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
In this article
Back to top Powered by ABP.IO Platform