public UnitOfWork() { _context = new MyVolunteerAppContext(); _context.Database.EnsureCreated(); UserRepository = new UserRepository(_context); GuildRepository = new GuildRepository(_context); }
public UserRepository(MyVolunteerAppContext context) { _context = context; }
public GuildRepository(MyVolunteerAppContext context) { _context = context; }