public ImportStatisticsMetadataBuilder <T, TDto> HasSource <TStatisticsDto>(IMapSpecification <TDto, IReadOnlyCollection <T> > mapSpecification) where TStatisticsDto : IDataTransferObject { _statisticsDtoType = typeof(TStatisticsDto); _mapSpecification = mapSpecification; return(this); }
public ImportDocumentFeature( Func <TDto, FindSpecification <TFact> > findSpecificationProvider, IMapSpecification <TDto, IReadOnlyCollection <TFact> > mapSpecification) { FindSpecificationProvider = findSpecificationProvider; MapSpecification = mapSpecification; }
public ImportStatisticsMetadata( Type statisticsDtoType, Func <TDto, FindSpecification <T> > findSpecificationProvider, IMapSpecification <TDto, IReadOnlyCollection <T> > mapSpecification, IEnumerable <IMetadataFeature> features) : base(features) { _identity = new Uri(statisticsDtoType.Name, UriKind.Relative).AsIdentity(); _findSpecificationProvider = findSpecificationProvider; _mapSpecification = mapSpecification; }
/// <summary> /// Add data import description from document to fact table. /// </summary> /// <typeparam name="TFact"></typeparam> /// <param name="findSpecificationProvider">Defines facts to be removed</param> /// <param name="mapSpecification">Defines facts to be created</param> /// <returns></returns> public ImportDocumentMetadataBuilder <TDto> ImportToFacts <TFact>( Func <TDto, FindSpecification <TFact> > findSpecificationProvider, IMapSpecification <TDto, IReadOnlyCollection <TFact> > mapSpecification) { return(this.WithFeatures(new ImportDocumentFeature <TDto, TFact>(findSpecificationProvider, mapSpecification))); }