Show / Hide Table of Contents

Class SecondDbContext

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

Constructors

SecondDbContext(DbContextOptions<SecondDbContext>)

Declaration
public SecondDbContext(DbContextOptions<SecondDbContext> options)
Parameters
Type Name Description
DbContextOptions<SecondDbContext> options

Properties

Books

Declaration
public DbSet<BookInSecondDbContext> Books { get; set; }
Property Value
Type Description
DbSet<BookInSecondDbContext>

Phones

Declaration
public DbSet<PhoneInSecondDbContext> Phones { get; set; }
Property Value
Type Description
DbSet<PhoneInSecondDbContext>

Methods

OnModelCreating(ModelBuilder)

Declaration
protected override void OnModelCreating(ModelBuilder modelBuilder)
Parameters
Type Name Description
ModelBuilder modelBuilder
Overrides
Volo.Abp.EntityFrameworkCore.AbpDbContext<Volo.Abp.EntityFrameworkCore.TestApp.SecondContext.SecondDbContext>.OnModelCreating(Microsoft.EntityFrameworkCore.ModelBuilder)

Implements

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

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