protected override void Seed(Models.SchoolContext context) { // This method will be called after migrating to the latest version. AddStudentsAndCourses(context); AddTreeItems(context); context.SaveChanges(); base.Seed(context); }
#pragma warning disable IDE0044 // Add readonly modifier public EditModel(Models.SchoolContext context) { _context = context ?? throw new ArgumentNullException(nameof(context)); }
public CreateModel(Models.SchoolContext context) { _context = context; }