Exemplo n.º 1
0
 public UnitOfWork()
 {
     _context = new WingsAppContext();
     _context.Database.EnsureCreated();
     UserEventRepository   = new UserEventRepository(_context);
     UserProfileRepository = new UserProfileRepository(_context);
 }
Exemplo n.º 2
0
 public UserProfileRepository(WingsAppContext context)
 {
     _context = context;
 }
Exemplo n.º 3
0
 public UserEventRepository(WingsAppContext context)
 {
     _context = context;
 }