Exemplo n.º 1
0
 public UnitOfWork()
 {
     _context = new MyVolunteerAppContext();
     _context.Database.EnsureCreated();
     UserRepository  = new UserRepository(_context);
     GuildRepository = new GuildRepository(_context);
 }
Exemplo n.º 2
0
 public UserRepository(MyVolunteerAppContext context)
 {
     _context = context;
 }
Exemplo n.º 3
0
 public GuildRepository(MyVolunteerAppContext context)
 {
     _context = context;
 }