protected RestSharpRepository(ISearchResultsBuilder resultsBuilder, IAbstractContextFactory contextFactory, IMapperRegistry mapperRegistry, IRestRequestBuilder <TTargetEntity, TTargetEntityId> restRequestBuilder) : base(resultsBuilder, contextFactory, mapperRegistry, restRequestBuilder) { }
/// <summary> /// Initializes a new instance of the <see cref="EFSearchRepositoryBase{TEntity, TSummery, TCriteria}" /> class. /// </summary> /// <param name="resultsBuilder">The results builder.</param> /// <param name="queryBuilder">The query builder.</param> /// <param name="abstractContextFactory">The abstract context factory.</param> public EFCoreSearchRepositoryBase( ISearchResultsBuilder resultsBuilder, ISearchQueryBuilder queryBuilder, IAbstractContextFactory abstractContextFactory) : base(abstractContextFactory) { _resultsBuilder = resultsBuilder; _queryBuilder = queryBuilder; }
/// <summary> /// Initializes a new instance of the <see cref="RestRepositoryBase{TEntity, TTargetEntity, TEntityId, TTargetEntityId}"/> class. /// </summary> /// <param name="resultsBuilder">The results builder.</param> /// <param name="contextFactory">The context factory.</param> /// <param name="mapperRegistry">The mapper registry.</param> /// <param name="restRequestBuilder">The rest request builder.</param> protected RestRepositoryBase(ISearchResultsBuilder resultsBuilder, IAbstractContextFactory contextFactory, IMapperRegistry mapperRegistry, IRestRequestBuilder <TTargetEntity, TTargetEntityId> restRequestBuilder) { Context = contextFactory.Create <IRestContext>(typeof(TTargetEntity)); _resultsBuilder = resultsBuilder; MapperRegistry = mapperRegistry; RestRequestBuilder = restRequestBuilder; }
public OrganisationRepository(ISearchResultsBuilder resultsBuilder, ISearchQueryBuilder queryBuilder, IAbstractContextFactory abstractContextFactory) : base(resultsBuilder, queryBuilder, abstractContextFactory) { }