示例#1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="GenericTargetConvertStrategy{TSource, TTarget, TIntention, TSourceInterface, TCriterion}"/> class.
        /// </summary>
        public GenericTargetConvertStrategy(
            IConvert <TSourceInterface, TCriterion, TIntention> converter)
        {
            converter.NotNull(nameof(converter));

            this.converter = converter;
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="CreateTargetImplConvertTargetHelper{TSource,TTarget,TTargetImpl,TReverseRelation,TConvertIntention}" /> class.
        /// </summary>
        public CreateTargetImplConvertTargetHelper(
            IInstanceCreator <TTarget, TTargetImpl> instanceCreator,
            IConvert <TSource, TTarget, TConvertIntention> convert)
        {
            instanceCreator.NotNull(nameof(instanceCreator));
            convert.NotNull(nameof(convert));

            this.instanceCreator = instanceCreator;
            this.convert         = convert;
        }
示例#3
0
        /// <summary>
        /// Initializes a new instance of the <see cref="CreateConvertStrategy{TSource, TConcreteSource, TTarget, TConcreteTarget, TConcreteTargetImpl, TIntention}"/> class.
        /// </summary>
        public CreateConvertStrategy(
            IInstanceCreator <TConcreteTarget, TConcreteTargetImpl> creator,
            IConvert <TConcreteSource, TConcreteTarget, TIntention> converter)
        {
            creator.NotNull(nameof(creator));
            converter.NotNull(nameof(converter));

            this.creator   = creator;
            this.converter = converter;
        }
示例#4
0
        /// <summary>
        /// Initializes a new instance of the <see cref="OperationConvertToMany{TSource,TTarget,TSourceValue,TTargetValue,TConvertIntention}" /> class.
        /// </summary>
        public OperationConvertToMany(
            IConvert <TSourceValue, TTargetValue, TConvertIntention> convert,
            IConvertHelper convertHelper)
        {
            convert.NotNull(nameof(convert));
            convertHelper.NotNull(nameof(convertHelper));

            this.convert       = convert;
            this.convertHelper = convertHelper;
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="OperationCopyFromHist{TSource, TTarget, TSourceValue, TTemporalDataType, TConvertIntention}"/> class.
        /// </summary>
        public OperationCopyFromHist(
            IConvert <TSourceValue, TTarget, TConvertIntention> convert,
            IConvertHelper convertHelper,
            ITemporalDataHandler <TTemporalDataType> sourceValueTemporalDataHandler)
        {
            convert.NotNull(nameof(convert));
            convertHelper.NotNull(nameof(convertHelper));

            this.convert       = convert;
            this.convertHelper = convertHelper;
            this.sourceValueTemporalDataHandler = sourceValueTemporalDataHandler;
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="OperationConvertFromTargetOnDifferentLevels{TSource,TTarget,TSourceValue,TConvertIntention}" /> class.
 /// </summary>
 public OperationConvertFromTargetOnDifferentLevels(
     IConvert<TSourceValue, TTarget, TConvertIntention> convert)
 {
     convert.NotNull(nameof(convert));
     this.convert = convert;
 }
示例#7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="OperationSourceSubConvert{TSource,TTarget,TSourceValue,TConvertIntention}" /> class.
 /// </summary>
 public OperationSourceSubConvert(
     IConvert <TSourceValue, TTarget, TConvertIntention> convert)
 {
     convert.NotNull(nameof(convert));
     this.convert = convert;
 }