public UnitOfWork(DbContextOptions <VWFContext> options) { var context = new VWFContext(options); _repository = new Repository(context); _user = new UserRepository(context); _message = new MessageRepository(context); _room = new RoomRepository(context); }
public UserRepository(VWFContext context) { _context = context; }
public MessageRepository(VWFContext context) { _context = context; }
public RoomRepository(VWFContext context) { _context = context; }