public static void Initialize(IServiceProvider serviceProvider) { using (var context = new RazorPagesStageContext( serviceProvider.GetRequiredService < DbContextOptions <RazorPagesStageContext> >())) { // Look for any movies. if (context.Stage.Any()) { return; // DB has been seeded } } }
public IndexModel(RazorPagesStageManagerSupinfo.Models.RazorPagesStageContext context) { _context = context; }
public DetailsModel(RazorPagesStageManagerSupinfo.Models.RazorPagesStageContext context) { _context = context; }