예제 #1
0
 public UnitOfWork(UsedVehiclePartsContext context, IMapper mapper)
 {
     _context = context;
     _mapper  = mapper;
 }
예제 #2
0
 public Repository(UsedVehiclePartsContext context, IMapper mapper)
 {
     _mapper = mapper;
     _dbSet  = context.Set <TEntity>();
 }