/// <summary> /// Creates a new QueryableRelatedResourceDocumentMaterializer /// </summary> protected QueryableToManyRelatedResourceDocumentMaterializer( IQueryableResourceCollectionDocumentBuilder queryableResourceCollectionDocumentBuilder, ISortExpressionExtractor sortExpressionExtractor) { _queryableResourceCollectionDocumentBuilder = queryableResourceCollectionDocumentBuilder; _sortExpressionExtractor = sortExpressionExtractor; }
public StarshipOfficersRelatedResourceMaterializer(ResourceTypeRelationship relationship, DbContext dbContext, IQueryableResourceCollectionDocumentBuilder queryableResourceCollectionDocumentBuilder, ISortExpressionExtractor sortExpressionExtractor, IResourceTypeRegistration primaryTypeRegistration) : base(relationship, dbContext, queryableResourceCollectionDocumentBuilder, sortExpressionExtractor, primaryTypeRegistration) { _dbContext = dbContext; }
public StarshipDocumentMaterializer( TestDbContext dbContext, IQueryableResourceCollectionDocumentBuilder queryableResourceCollectionDocumentBuilder, IBaseUrlService baseUrlService, ISingleResourceDocumentBuilder singleResourceDocumentBuilder, ISortExpressionExtractor sortExpressionExtractor, IQueryableEnumerationTransformer queryableEnumerationTransformer, IResourceTypeRegistry resourceTypeRegistry) : base( queryableResourceCollectionDocumentBuilder, baseUrlService, singleResourceDocumentBuilder, queryableEnumerationTransformer, sortExpressionExtractor, resourceTypeRegistry) { _dbContext = dbContext; }
/// <summary> /// Builds a new EntityFrameworkToManyRelatedResourceDocumentMaterializer. /// </summary> public EntityFrameworkToManyRelatedResourceDocumentMaterializer( ResourceTypeRelationship relationship, DbContext dbContext, IQueryableResourceCollectionDocumentBuilder queryableResourceCollectionDocumentBuilder, ISortExpressionExtractor sortExpressionExtractor, IResourceTypeRegistration primaryTypeRegistration) : base(queryableResourceCollectionDocumentBuilder, sortExpressionExtractor) { _relationship = relationship; _dbContext = dbContext; _primaryTypeRegistration = primaryTypeRegistration; }
/// <summary> /// Creates a new MappedDocumentMaterializer /// </summary> protected MappedDocumentMaterializer( IQueryableResourceCollectionDocumentBuilder queryableResourceCollectionDocumentBuilder, IBaseUrlService baseUrlService, ISingleResourceDocumentBuilder singleResourceDocumentBuilder, IQueryableEnumerationTransformer queryableEnumerationTransformer, ISortExpressionExtractor sortExpressionExtractor, IResourceTypeRegistry resourceTypeRegistry) { _queryableResourceCollectionDocumentBuilder = queryableResourceCollectionDocumentBuilder; _baseUrlService = baseUrlService; _singleResourceDocumentBuilder = singleResourceDocumentBuilder; _queryableEnumerationTransformer = queryableEnumerationTransformer; _sortExpressionExtractor = sortExpressionExtractor; _resourceTypeRegistry = resourceTypeRegistry; }
/// <summary> /// Creates a new EntityFrameworkDocumentMaterializer /// </summary> public EntityFrameworkDocumentMaterializer( DbContext dbContext, IResourceTypeRegistration resourceTypeRegistration, IQueryableResourceCollectionDocumentBuilder queryableResourceCollectionDocumentBuilder, ISingleResourceDocumentBuilder singleResourceDocumentBuilder, IEntityFrameworkResourceObjectMaterializer entityFrameworkResourceObjectMaterializer, ISortExpressionExtractor sortExpressionExtractor, IBaseUrlService baseUrlService) { _dbContext = dbContext; _resourceTypeRegistration = resourceTypeRegistration; _queryableResourceCollectionDocumentBuilder = queryableResourceCollectionDocumentBuilder; _singleResourceDocumentBuilder = singleResourceDocumentBuilder; _entityFrameworkResourceObjectMaterializer = entityFrameworkResourceObjectMaterializer; _sortExpressionExtractor = sortExpressionExtractor; _baseUrlService = baseUrlService; }
/// <summary> /// Creates a new FallbackDocumentBuilder /// </summary> public FallbackDocumentBuilder(ISingleResourceDocumentBuilder singleResourceDocumentBuilder, IQueryableResourceCollectionDocumentBuilder queryableResourceCollectionDocumentBuilder, IResourceCollectionDocumentBuilder resourceCollectionDocumentBuilder, IBaseUrlService baseUrlService) { _singleResourceDocumentBuilder = singleResourceDocumentBuilder; _queryableResourceCollectionDocumentBuilder = queryableResourceCollectionDocumentBuilder; _resourceCollectionDocumentBuilder = resourceCollectionDocumentBuilder; _baseUrlService = baseUrlService; _openBuildDocumentFromQueryableMethod = new Lazy<MethodInfo>( () => _queryableResourceCollectionDocumentBuilder.GetType() .GetMethod("BuildDocument", BindingFlags.Instance | BindingFlags.Public)); _openBuildDocumentFromEnumerableMethod = new Lazy<MethodInfo>( () => _resourceCollectionDocumentBuilder.GetType() .GetMethod("BuildDocument", BindingFlags.Instance | BindingFlags.Public)); }
/// <summary> /// Creates a new FallbackDocumentBuilder /// </summary> public FallbackDocumentBuilder(ISingleResourceDocumentBuilder singleResourceDocumentBuilder, IQueryableResourceCollectionDocumentBuilder queryableResourceCollectionDocumentBuilder, IResourceCollectionDocumentBuilder resourceCollectionDocumentBuilder, ISortExpressionExtractor sortExpressionExtractor, IBaseUrlService baseUrlService) { _singleResourceDocumentBuilder = singleResourceDocumentBuilder; _queryableResourceCollectionDocumentBuilder = queryableResourceCollectionDocumentBuilder; _resourceCollectionDocumentBuilder = resourceCollectionDocumentBuilder; _sortExpressionExtractor = sortExpressionExtractor; _baseUrlService = baseUrlService; _openBuildDocumentFromQueryableMethod = new Lazy <MethodInfo>( () => _queryableResourceCollectionDocumentBuilder.GetType() .GetMethod("BuildDocument", BindingFlags.Instance | BindingFlags.Public)); _openBuildDocumentFromEnumerableMethod = new Lazy <MethodInfo>( () => _resourceCollectionDocumentBuilder.GetType() .GetMethod("BuildDocument", BindingFlags.Instance | BindingFlags.Public)); }