コード例 #1
0
 public static void Initialize(IServiceProvider serviceProvider)
 {
     using (var context = new MS_Learn_ScoreboardContext(
                serviceProvider.GetRequiredService <DbContextOptions <MS_Learn_ScoreboardContext> >()))
     {
         context.SaveChanges();
     }
 }
コード例 #2
0
 public DebugsController(MS_Learn_ScoreboardContext context)
 {
     _context = context;
 }
コード例 #3
0
 public StudentsController(MS_Learn_ScoreboardContext context)
 {
     _context = context;
 }