chore: removed everything related to instructions
This commit is contained in:
@@ -18,12 +18,6 @@ public class ApplicationContext : IdentityDbContext<ApplicationUser, Application
|
||||
public DbSet<UserRole> UserRoles { get; set; }
|
||||
public DbSet<RoleRight> RoleRights { get; set; }
|
||||
public DbSet<UserProfile> UserProfiles { get; set; }
|
||||
public DbSet<Instruction> Instructions { get; set; }
|
||||
public DbSet<InstructionCategory> InstructionCategories { get; set; }
|
||||
public DbSet<InstructionParagraph> InstructionParagraphs { get; set; }
|
||||
public DbSet<InstructionTest> InstructionTests { get; set; }
|
||||
public DbSet<InstructionTestQuestion> InstructionTestQuestions { get; set; }
|
||||
public DbSet<InstructionTestResult> InstructionTestResults { get; set; }
|
||||
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
@@ -34,17 +28,5 @@ public class ApplicationContext : IdentityDbContext<ApplicationUser, Application
|
||||
|
||||
modelBuilder.Entity<RoleRight>()
|
||||
.HasKey(rr => new { rr.RoleId, rr.RightId });
|
||||
|
||||
modelBuilder.Entity<InstructionTest>()
|
||||
.HasMany(itq => itq.Questions);
|
||||
|
||||
modelBuilder.Entity<InstructionTestResult>()
|
||||
.HasOne(itr => itr.InstructionTest);
|
||||
|
||||
modelBuilder.Entity<Instruction>()
|
||||
.HasOne(i => i.Category);
|
||||
|
||||
modelBuilder.Entity<Instruction>()
|
||||
.HasMany(i => i.Paragraphs);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user