Class BloggingDbContext
Implements
ITransientDependency
IDisposable
IInfrastructure<IServiceProvider>
IDbContextDependencies
IDbSetCache
IDbContextPoolable
Inherited Members
Volo.Abp.EntityFrameworkCore.AbpDbContext<Volo.Blogging.EntityFrameworkCore.BloggingDbContext>.CombineExpressions<T>(Expression<>, Expression<>)
Namespace: Volo.Blogging.EntityFrameworkCore
Assembly: Volo.Blogging.EntityFrameworkCore.dll
Syntax
public class BloggingDbContext : AbpDbContext<BloggingDbContext>, IAbpEfCoreDbContext, ITransientDependency, IBloggingDbContext, IEfCoreDbContext, IDisposable, IInfrastructure<IServiceProvider>, IDbContextDependencies, IDbSetCache, IDbContextPoolable
Constructors
BloggingDbContext(DbContextOptions<BloggingDbContext>)
Declaration
public BloggingDbContext(DbContextOptions<BloggingDbContext> options)
Parameters
Type | Name | Description |
---|---|---|
DbContextOptions<BloggingDbContext> | options |
Properties
Blogs
Declaration
public DbSet<Blog> Blogs { get; set; }
Property Value
Type | Description |
---|---|
DbSet<Blog> |
Comments
Declaration
public DbSet<Comment> Comments { get; set; }
Property Value
Type | Description |
---|---|
DbSet<Comment> |
Posts
Declaration
public DbSet<Post> Posts { get; set; }
Property Value
Type | Description |
---|---|
DbSet<Post> |
PostTags
Declaration
public DbSet<PostTag> PostTags { get; set; }
Property Value
Type | Description |
---|---|
DbSet<PostTag> |
Tags
Declaration
public DbSet<Tag> Tags { get; set; }
Property Value
Type | Description |
---|---|
DbSet<Tag> |
Users
Declaration
public DbSet<BlogUser> Users { get; set; }
Property Value
Type | Description |
---|---|
DbSet<BlogUser> |
Methods
OnModelCreating(ModelBuilder)
Declaration
protected override void OnModelCreating(ModelBuilder builder)
Parameters
Type | Name | Description |
---|---|---|
ModelBuilder | builder |
Implements
ITransientDependency
IDisposable
IInfrastructure<>
IDbContextDependencies
IDbSetCache
IDbContextPoolable