public UnitOfWork(LocationMasterContext context) { _context = context; Locations = new LocationsRepository(_context); Users = new UserRepository(_context); Attraction = new AttractionRepository(_context); Ticket = new BuyedTicketRepository(_context); Category = new CategoryRepository(_context); Photo = new PhotoRepository(_context); Review = new ReviewRepository(_context); }
public UserService(LocationMasterContext locationMasterContext) { _unitOfWork = new UnitOfWork(locationMasterContext); }
public UserRepository(LocationMasterContext context) : base(context) { _dbEntities = context; }
public PlaceWithImageService(LocationMasterContext context) { _unitOfWork = new UnitOfWork(context); }
public PhotoRepository(LocationMasterContext context) : base(context) { _context = context; }
public AttractionRepository(LocationMasterContext dbEntities) : base(dbEntities) { _dbEntities = dbEntities; }
public CategoryRepository(LocationMasterContext context) : base(context) { _context = context; }
public AttractionsService(LocationMasterContext context) { _unitOfWork = new UnitOfWork(context); }
public Repository(LocationMasterContext context) { _entities = context.Set <T>(); }
public ReviewRepository(LocationMasterContext context) : base(context) { _context = context; }
public BuyedTicketRepository(LocationMasterContext context) : base(context) { _context = context; }