Class TestAppDbContext
Inheritance
TestAppDbContext
Implements
IDbContextDependencies
IDbSetCache
IDbContextPoolable
IResettableService
Assembly: Volo.Abp.EntityFrameworkCore.Tests.dll
Syntax
[ReplaceDbContext(new Type[] { typeof(IFourthDbContext) })]
public class TestAppDbContext : AbpDbContext<TestAppDbContext>, IAbpEfCoreDbContext, IAbpEfCoreDbFunctionContext, ITransientDependency, IThirdDbContext, IFourthDbContext, IEfCoreDbContext, IDisposable, IInfrastructure<IServiceProvider>, IDbContextDependencies, IDbSetCache, IDbContextPoolable, IResettableService, IAsyncDisposable
Constructors
TestAppDbContext(DbContextOptions<TestAppDbContext>)
Declaration
public TestAppDbContext(DbContextOptions<TestAppDbContext> options)
Parameters
Properties
AppEntityWithNavigations
Declaration
public DbSet<AppEntityWithNavigations> AppEntityWithNavigations { get; set; }
Property Value
AppEntityWithNavigationsForeign
Declaration
public DbSet<AppEntityWithNavigationsForeign> AppEntityWithNavigationsForeign { get; set; }
Property Value
Author
Declaration
public DbSet<Author> Author { get; set; }
Property Value
Type |
Description |
DbSet<Author> |
|
Categories
Declaration
public DbSet<Category> Categories { get; set; }
Property Value
Cities
Declaration
public DbSet<City> Cities { get; set; }
Property Value
Type |
Description |
DbSet<City> |
|
DummyEntities
Declaration
public DbSet<ThirdDbContextDummyEntity> DummyEntities { get; set; }
Property Value
EntityWithIntPks
Declaration
public DbSet<EntityWithIntPk> EntityWithIntPks { get; set; }
Property Value
FourthDummyEntities
Declaration
public DbSet<FourthDbContextDummyEntity> FourthDummyEntities { get; set; }
Property Value
People
Declaration
public DbSet<Person> People { get; set; }
Property Value
Type |
Description |
DbSet<Person> |
|
PersonView
Declaration
public DbSet<PersonView> PersonView { get; set; }
Property Value
Products
Declaration
public DbSet<Product> Products { get; set; }
Property Value
Methods
OnConfiguring(DbContextOptionsBuilder)
Declaration
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
Parameters
Type |
Name |
Description |
DbContextOptionsBuilder |
optionsBuilder |
|
Overrides
Volo.Abp.EntityFrameworkCore.AbpDbContext<Volo.Abp.TestApp.EntityFrameworkCore.TestAppDbContext>.OnConfiguring(Microsoft.EntityFrameworkCore.DbContextOptionsBuilder)
OnModelCreating(ModelBuilder)
Declaration
protected override void OnModelCreating(ModelBuilder modelBuilder)
Parameters
Type |
Name |
Description |
ModelBuilder |
modelBuilder |
|
Overrides
Volo.Abp.EntityFrameworkCore.AbpDbContext<Volo.Abp.TestApp.EntityFrameworkCore.TestAppDbContext>.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
Extension Methods