|
|
|
@ -1,6 +1,7 @@ |
|
|
|
using Microsoft.EntityFrameworkCore; |
|
|
|
using Volo.Abp.Data; |
|
|
|
using Volo.Abp.EntityFrameworkCore; |
|
|
|
using Volo.Abp.MultiTenancy; |
|
|
|
using Volo.Blogging.Blogs; |
|
|
|
using Volo.Blogging.Comments; |
|
|
|
using Volo.Blogging.Posts; |
|
|
|
@ -9,6 +10,7 @@ using Volo.Blogging.Users; |
|
|
|
|
|
|
|
namespace Volo.Blogging.EntityFrameworkCore |
|
|
|
{ |
|
|
|
[IgnoreMultiTenancy] |
|
|
|
[ConnectionStringName(BloggingDbProperties.ConnectionStringName)] |
|
|
|
public class BloggingDbContext : AbpDbContext<BloggingDbContext>, IBloggingDbContext |
|
|
|
{ |
|
|
|
@ -23,7 +25,7 @@ namespace Volo.Blogging.EntityFrameworkCore |
|
|
|
public DbSet<PostTag> PostTags { get; set; } |
|
|
|
|
|
|
|
public DbSet<Comment> Comments { get; set; } |
|
|
|
|
|
|
|
|
|
|
|
public BloggingDbContext(DbContextOptions<BloggingDbContext> options) |
|
|
|
: base(options) |
|
|
|
{ |
|
|
|
@ -37,4 +39,4 @@ namespace Volo.Blogging.EntityFrameworkCore |
|
|
|
builder.ConfigureBlogging(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|