|  |  |  | @ -1,12 +1,28 @@ | 
			
		
	
		
			
				
					|  |  |  |  | using Microsoft.EntityFrameworkCore; | 
			
		
	
		
			
				
					|  |  |  |  | using Volo.Abp.Data; | 
			
		
	
		
			
				
					|  |  |  |  | using Volo.Abp.EntityFrameworkCore; | 
			
		
	
		
			
				
					|  |  |  |  | using Volo.CmsKit.Comments; | 
			
		
	
		
			
				
					|  |  |  |  | using Volo.CmsKit.Contents; | 
			
		
	
		
			
				
					|  |  |  |  | using Volo.CmsKit.Pages; | 
			
		
	
		
			
				
					|  |  |  |  | using Volo.CmsKit.Ratings; | 
			
		
	
		
			
				
					|  |  |  |  | using Volo.CmsKit.Reactions; | 
			
		
	
		
			
				
					|  |  |  |  | using Volo.CmsKit.Tags; | 
			
		
	
		
			
				
					|  |  |  |  | using Volo.CmsKit.Users; | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | namespace Volo.CmsKit.EntityFrameworkCore | 
			
		
	
		
			
				
					|  |  |  |  | { | 
			
		
	
		
			
				
					|  |  |  |  |     [ConnectionStringName(CmsKitDbProperties.ConnectionStringName)] | 
			
		
	
		
			
				
					|  |  |  |  |     public class CmsKitDbContext : AbpDbContext<CmsKitDbContext>, ICmsKitDbContext | 
			
		
	
		
			
				
					|  |  |  |  |     { | 
			
		
	
		
			
				
					|  |  |  |  |         public DbSet<Content> Contents { get; set; } | 
			
		
	
		
			
				
					|  |  |  |  |         public DbSet<Comment> Comments { get; set; } | 
			
		
	
		
			
				
					|  |  |  |  |         public DbSet<CmsUser> User { get; set; } | 
			
		
	
		
			
				
					|  |  |  |  |         public DbSet<UserReaction> Reactions { get; set; } | 
			
		
	
		
			
				
					|  |  |  |  |         public DbSet<Rating> Ratings { get; set; } | 
			
		
	
		
			
				
					|  |  |  |  |         public DbSet<Tag> Tags { get; set; } | 
			
		
	
		
			
				
					|  |  |  |  |         public DbSet<EntityTag> EntityTags { get; set; } | 
			
		
	
		
			
				
					|  |  |  |  |         public DbSet<Page> Pages { get; set; } | 
			
		
	
		
			
				
					|  |  |  |  |          | 
			
		
	
		
			
				
					|  |  |  |  |         public CmsKitDbContext(DbContextOptions<CmsKitDbContext> options) | 
			
		
	
		
			
				
					|  |  |  |  |             : base(options) | 
			
		
	
		
			
				
					|  |  |  |  |         { | 
			
		
	
	
		
			
				
					|  |  |  | @ -16,7 +32,6 @@ namespace Volo.CmsKit.EntityFrameworkCore | 
			
		
	
		
			
				
					|  |  |  |  |         protected override void OnModelCreating(ModelBuilder builder) | 
			
		
	
		
			
				
					|  |  |  |  |         { | 
			
		
	
		
			
				
					|  |  |  |  |             base.OnModelCreating(builder); | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |             builder.ConfigureCmsKit(); | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |  |     } | 
			
		
	
	
		
			
				
					|  |  |  | 
 |