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