Esempio n. 1
0
        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
                }
            }
        }
Esempio n. 2
0
 public IndexModel(RazorPagesStageManagerSupinfo.Models.RazorPagesStageContext context)
 {
     _context = context;
 }
Esempio n. 3
0
 public DetailsModel(RazorPagesStageManagerSupinfo.Models.RazorPagesStageContext context)
 {
     _context = context;
 }