Exemplo n.º 1
0
 public UnitOfWork(BankingContext context)
 {
     _context      = context;
     Customers     = new CustomerRepository(_context);
     BankAccounts  = new BankAccountRepository(_context);
     IdentityUsers = new IdentityUserRepository(_context);
 }
 public DbInitializer(BankingContext context)
 {
     _context = context;
     _context.Database.EnsureCreated();
 }