예제 #1
0
 public UnitOfWork(BunningsProductCatalogContext context, IRepositoryProvider repositoryProvider)
 {
     Context = context;
     repositoryProvider.DbContext = Context;
     RepositoryProvider           = repositoryProvider;
 }
예제 #2
0
 public static void Initialize(BunningsProductCatalogContext context)
 {
     context.Database.Migrate();
 }