Пример #1
0
 public CabRepository(DispatchingDbContext context,
                      IMapToPersistenceModel <Cab, PersistenceModel.Cab> domainModelMapper,
                      IMapToDomainModel <PersistenceModel.Cab, Cab> persistenceModelMapper) : base(context, domainModelMapper, persistenceModelMapper)
 {
     _context = context;
     _persistenceModelMapper = persistenceModelMapper;
 }
Пример #2
0
 protected Repository(DispatchingDbContext context,
                      IMapToPersistenceModel <TDomainModel, TData> domainModelMapper,
                      IMapToDomainModel <TData, TDomainModel> persistenceModelMapper)
 {
     _context                = context ?? throw new ArgumentNullException(nameof(context));
     _domainModelMapper      = domainModelMapper ?? throw new ArgumentNullException(nameof(domainModelMapper));
     _persistenceModelMapper = persistenceModelMapper ?? throw new ArgumentNullException(nameof(persistenceModelMapper));
 }
 public LocationRepository(DispatchingDbContext context,
                           IMapToDomainModel <PersistenceModel.Location, Location> persistenceModelMapper)
 {
     _context = context ?? throw new ArgumentNullException(nameof(context));
     _persistenceModelMapper = persistenceModelMapper ?? throw new ArgumentNullException(nameof(context));
 }