public MyMediaService(MediaDbContext context)
 {
     this.context = context;
 }
예제 #2
0
 public static void Initialize(MediaDbContext context)
 {
     context.Database.EnsureCreated();
     context.SaveChanges();
 }