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