Ejemplo n.º 1
0
 public BaseRepository(DbContext dbContext)
 {
     this.CreateRepository = new CreateRepository <T>(dbContext);
     this.UpdateRepository = new UpdateRepository <T>(dbContext);
     this.DeleteRepository = new DeleteRepository <T>(dbContext);
     this.ReadRepository   = new ReadRepository <T>(dbContext);
 }
Ejemplo n.º 2
0
 public ClienteRepository(
     ISelectRepository <Cliente> selectRepository,
     IInsertRepository <Cliente> insertRepository,
     IUpdateRepository <Cliente> updateRepository,
     IDeleteRepository <Cliente> deleteRepository) : base(selectRepository, insertRepository, updateRepository, deleteRepository)
 {
 }
Ejemplo n.º 3
0
 public HomeController(
     ICreateRepository <Contract> createRepo,
     IReadRepository <Contract> readRepo,
     IUpdateRepository <Contract> updateRepo,
     IDeleteRepository <Contract> deleteRepo) : base(createRepo, readRepo, updateRepo, deleteRepo)
 {
 }
 public ClientsController(ICreateRepository <Client> createRepo, IReadRepository <Client> readRepo,
                          IUpdateRepository <Client> updateRepo, IDeleteRepository <Client> deleteRepo)
 {
     mCreateRepository = createRepo;
     mReadRepository   = readRepo;
     mUpdateRepository = updateRepo;
     mDeleteRepository = deleteRepo;
 }
Ejemplo n.º 5
0
 public ProfileService(IUnitOfWork unitOfWork, IUserRepository userRepository)
 {
     this.userRepository               = userRepository;
     companiesRepository               = unitOfWork.BuildCompaniesRepository();
     candidateInterestRepository       = unitOfWork.BuildCandidateInterestRepository();
     candidatesRepository              = unitOfWork.BuildCandidateRepository();
     candidateInterestReadRepository   = unitOfWork.BuildCandidateInterestReadRepository();
     candidateInterestDeleteRepository = unitOfWork.BuildCandidateInterestDeleteRepository();
 }
Ejemplo n.º 6
0
        public SkillsService(IUserRepository userRepository, IUnitOfWork unitOfWork)
        {
            this.userRepository = userRepository;

            candidateRepository            = unitOfWork.BuildCandidateRepository();
            candidateSkillReadRepository   = unitOfWork.BuildCandidateSkillReadRepository();
            candidateSkillRepository       = unitOfWork.BuildCandidateSkillRepository();
            candidateSkillDeleteRepository = unitOfWork.BuildCandidateSkillDeleteRepository();
        }
Ejemplo n.º 7
0
 public BaseController(ICreateRepository <IEntity> createRepo,
                       IReadRepository <IEntity> readRepo,
                       IUpdateRepository <IEntity> updateRepo,
                       IDeleteRepository <IEntity> deleteRepo)
 {
     mCreateRepository = createRepo;
     mReadRepository   = readRepo;
     mUpdateRepository = updateRepo;
     mDeleteRepository = deleteRepo;
 }
Ejemplo n.º 8
0
 public RepositoryBase(
     ISelectRepository <T> selectRepository
     , IInsertRepository <T> insertRepository
     , IUpdateRepository <T> updateRepository
     , IDeleteRepository <T> deleteRepository)
 {
     this.deleteRepository = deleteRepository;
     this.selectRepository = selectRepository;
     this.updateRepository = updateRepository;
     this.insertRepository = insertRepository;
 }
        public GamePointerService()
        {
            var repo = new WatchedExecutionRepository(new UwpDbPath());

            _repo       = repo;
            _addRepo    = repo;
            _updateRepo = repo;
            _deleteRepo = repo;

            _watcher.ApplicationFocusChanged += ApplicationFocusWatcher_ApplicationFocusChanged;
            _watchedExecutions = new ObservableCollection <WatchedExecution>(_repo.GetAll());
        }
Ejemplo n.º 10
0
        public static IDeleteRepository <T> BuildAndGetDeleteRepository <T>(Tech tech, IConfiguration configuration)
        {
            IDeleteRepository <T> deleteRepository = null;

            switch (tech)
            {
            case Tech.Mongodb:
                deleteRepository = new MongodbDeleteRepository <T>(GetMongoDatabase(configuration));
                break;
            }

            return(deleteRepository);
        }
Ejemplo n.º 11
0
        public FilesController(
            ILogger logger,
            IResolver resolver,
            IFileContentProvider contentProvider,
            IReadRepository <File, ulong> readFileRepo,
            IUpdateRepository <File, ulong> updateFileRepo,
            ICreateRepository <File, ulong> createFileRepo,
            IRemoveRepository <File, ulong> removeFileRepo,
            IDeleteRepository <File, ulong> deleteFileRepo) : base(logger, resolver)
        {
            mReadFileRepo   = readFileRepo;
            mUpdateFileRepo = updateFileRepo;
            mCreateFileRepo = createFileRepo;
            mRemoveFileRepo = removeFileRepo;
            mDeleteFileRepo = deleteFileRepo;

            mContentProvider = contentProvider;
        }
Ejemplo n.º 12
0
 public StudentifyEventsRepository(StudentifyDbContext context,
                                   ISelectRepository <StudentifyEvent> selectRepository,
                                   IDeleteRepository <StudentifyEvent> deleteRepository) : base(context, selectRepository)
 {
     Delete = deleteRepository;
 }
Ejemplo n.º 13
0
 public ProxyService(IConfiguration configuration)
 {
     this._getRepository    = RepositoryFactory.BuildAndGetGetRepository <Proxy>(RepositoryFactory.Tech.Mongodb, configuration);
     this._deleteRepository = RepositoryFactory.BuildAndGetDeleteRepository <Proxy>(RepositoryFactory.Tech.Mongodb, configuration);
 }