Class SecondDbContext
Implements
IInfrastructure<IServiceProvider>
IDbContextDependencies
IDbSetCache
IDbContextPoolable
IResettableService
Inherited Members
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
Microsoft.EntityFrameworkCore.Infrastructure.IInfrastructure<>
Microsoft.EntityFrameworkCore.Internal.IDbContextDependencies
Microsoft.EntityFrameworkCore.Internal.IDbSetCache
Microsoft.EntityFrameworkCore.Internal.IDbContextPoolable
Microsoft.EntityFrameworkCore.Infrastructure.IResettableService