예제 #1
0
 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);
 }
예제 #2
0
 public UserService(LocationMasterContext locationMasterContext)
 {
     _unitOfWork = new UnitOfWork(locationMasterContext);
 }
예제 #3
0
 public UserRepository(LocationMasterContext context) : base(context)
 {
     _dbEntities = context;
 }
예제 #4
0
 public PlaceWithImageService(LocationMasterContext context)
 {
     _unitOfWork = new UnitOfWork(context);
 }
예제 #5
0
 public PhotoRepository(LocationMasterContext context) : base(context)
 {
     _context = context;
 }
예제 #6
0
 public AttractionRepository(LocationMasterContext dbEntities) : base(dbEntities)
 {
     _dbEntities = dbEntities;
 }
예제 #7
0
 public CategoryRepository(LocationMasterContext context) : base(context)
 {
     _context = context;
 }
예제 #8
0
 public AttractionsService(LocationMasterContext context)
 {
     _unitOfWork = new UnitOfWork(context);
 }
예제 #9
0
 public Repository(LocationMasterContext context)
 {
     _entities = context.Set <T>();
 }
예제 #10
0
 public ReviewRepository(LocationMasterContext context) : base(context)
 {
     _context = context;
 }
예제 #11
0
 public BuyedTicketRepository(LocationMasterContext context) : base(context)
 {
     _context = context;
 }