/// <summary> /// See <see cref="IConvertRegistrations{TSource, TTarget, TConvertIntention}.DoRegistrations"/>. /// </summary> public void DoRegistrations(IConvertRegistration <SourceTree, TargetRoot> registrations) { registrations.NotNull(nameof(registrations)); registrations .RegisterCopyAttribute(x => x.Id, x => x.OriginTreeId); }
/// <summary> /// See <see cref="IConvertRegistrations{TSource, TTarget, TConvertIntention}.DoRegistrations"/>. /// </summary> public void DoRegistrations(IConvertRegistration <SourceTreeLeaf, TargetTreeLeafChild> registrations) { registrations.NotNull(nameof(registrations)); registrations .RegisterCopyAttribute(x => x.Id, x => x.OriginId); }
/// <summary> /// See <see cref="IConvertRegistrations{TSource, TTarget, TConvertIntention}.DoRegistrations"/>. /// </summary> public void DoRegistrations(IConvertRegistration <MasterData, TargetTreeLeaf> aRegistrations) { aRegistrations.NotNull(nameof(aRegistrations)); aRegistrations .RegisterCopyAttribute(x => x.Id, x => x.MasterDataId); }
/// <summary> /// See <see cref="IConvertRegistrations{TSource, TTarget, TConvertIntention}.DoRegistrations"/>. /// </summary> public void DoRegistrations(IConvertRegistration <MasterData, TargetRoot> registrations) { registrations.NotNull(nameof(registrations)); registrations .RegisterCopyAttribute(x => x.Id, x => x.FilteredMasterDataId); }
/// <summary> /// See <see cref="IConvertRegistrations{TSource, TTarget, TConvertIntention}.DoRegistrations"/>. /// </summary> public void DoRegistrations(IConvertRegistration <SourceTreeHistLeaf, TargetTreeHistLeaf> aRegistrations) { aRegistrations.NotNull(nameof(aRegistrations)); aRegistrations .RegisterCopyAttribute(x => x.TreeHistLeafId, x => x.OriginTreeHistLeafId); }
/// <summary> /// See <see cref="IConvertRegistrations{TSource, TTarget, TConvertIntention}.DoRegistrations"/>. /// </summary> public void DoRegistrations(IConvertRegistration <SourceRoot, TargetRoot> registrations) { registrations.NotNull(nameof(registrations)); registrations .RegisterCopyAttribute(x => x, x => x.OriginRoot) .RegisterCopyAttribute(x => x.Name, x => x.Name) .RegisterCopyAttributeIfSourceNotDefault(x => x.NumberSourceDefault, x => x.NumberSourceDefault) .RegisterCopyAttributeIfSourceNotDefault(x => x.NumberSourceNotDefault, x => x.NumberSourceNotDefault) .RegisterCopyAttributeIfTargetIsDefault(x => x.NumberTargetDefault, x => x.NumberTargetDefault) .RegisterCopyAttributeIfTargetIsDefault(x => x.NumberTargetNotDefault, x => x.NumberTargetNotDefault) .RegisterCopyAttributeWithLookUp(x => x.NumberSourceDefault, x => x.NumberSourceNotDefault, x => x.NumberSourceLookedUp) .RegisterCopyAttributeWithLookUp(x => x.NumberSourceNotDefault, x => x.NumberSourceDefault, x => x.NumberSourceNotLookedUp) .RegisterCopyAttributeWithUpperLimit(x => x.NumberSourceNotDefault, x => 10, x => x.NumberLimitApplied) .RegisterCopyAttributeWithUpperLimit(x => x.NumberSourceDefault, x => 10, x => x.NumberLimitNotApplied) .RegisterCopyAttributeWithMapping(x => x.EnumValue.Source, x => x.EnumValue) .RegisterCopyAttribute((x, y) => GetLeafPerReferenceDate(x.Tree.Hists, y.ReferenceDate), x => x.FilteredHist) .RegisterCreateToOneWithReverseRelation(x => x.Tree, x => x.TargetTree, this.treeConvertHelperFactory.GetConvertHelper(x => x.TargetRoot)) .RegisterSubConvert <RootBase, IForTest>() .RegisterSubConvert <RootBase, RootBase, IForTest>() .RegisterTargetSubConvert <RootBase, IForTest>() .RegisterConvertFromTargetOnDifferentLevels <TargetTree, IForTest>(x => x.TargetTree) .RegisterConvertFromSourceOnDifferentLevels <SourceTree, IForTest>(x => x.Tree) .RegisterConvertFromSourceOnDifferentLevels <SourceTree, RootBase, IForTest>(x => x.Tree) .RegisterCreateToOneFromGenericStrategyWithReverseRelation <SourceBaseLeaf, TargetBaseLeaf, IForTest>( x => x.Leaf, x => x.TargetLeaf, x => x.TargetRoot) .RegisterCreateToOne(x => x.ExpectedFilteredMasterData, x => x.TargetMasterData, this.masterDataConvertHelperFactory.GetConvertHelper()) .RegisterCopyFromMany <MasterData, IForTest>(x => x.MasterDatasToFilter); }
/// <summary> /// See <see cref="IConvertRegistrations{TSource, TTarget, TConvertIntention}.DoRegistrations"/>. /// </summary> public void DoRegistrations(IConvertRegistration <SourceDerivedLeaf, TargetDerivedLeaf> aRegistrations) { aRegistrations.NotNull(nameof(aRegistrations)); aRegistrations .RegisterCopyAttribute(x => x.Id, x => x.OriginId); }
/// <summary> /// See <see cref="IConvertRegistrations{TSource, TTarget, TConvertIntention}.DoRegistrations"/>. /// </summary> public void DoRegistrations(IConvertRegistration <SourceTree, RootBase> registrations) { registrations.NotNull(nameof(registrations)); registrations .RegisterCopyAttribute(x => x.Id, x => x.TreeId); }
/// <summary> /// See <see cref="IConvertRegistrations{TSource, TTarget, TConvertIntention}.DoRegistrations"/>. /// </summary> public void DoRegistrations(IConvertRegistration <SourceTree, TargetTree> registrations) { registrations.NotNull(nameof(registrations)); registrations .RegisterCopyAttribute(x => x.TreeName, x => x.TreeName) .RegisterCopyAttribute((x, y) => y.MasterDataId, x => x.TemporalDataOriginId); }
/// <summary> /// See <see cref="IConvertRegistrations{TSource, TTarget, TConvertIntention}.DoRegistrations"/>. /// </summary> public void DoRegistrations(IConvertRegistration <IdDto, TargetTree> registrations) { registrations.NotNull(nameof(registrations)); registrations.RegisterCopyAttribute( x => x.Id, x => x.TemporalDataOriginId); }
/// <summary> /// See <see cref="IConvertRegistrations{TSource, TTarget, TConvertIntention}.DoRegistrations"/>. /// </summary> public void DoRegistrations(IConvertRegistration <MasterData, TargetMasterData> aRegistrations) { aRegistrations.NotNull(nameof(aRegistrations)); aRegistrations .RegisterCopyAttribute(x => x.Id, x => x.OriginId) .RegisterCopyAttribute(x => x.IsDefault, x => x.IsDefault); }
/// <summary> /// See <see cref="IConvertRegistrations{TSource, TTarget, TConvertIntention}.DoRegistrations"/>. /// </summary> public void DoRegistrations(IConvertRegistration <SourceTreeHist, TargetTree> aRegistrations) { aRegistrations.NotNull(nameof(aRegistrations)); aRegistrations .RegisterCopyAttribute(x => x.Id, x => x.TemporalDataOriginId) .RegisterConvertToMany <SourceTreeHistLeaf, TargetTreeLeaf, IForTest>( x => x.TreeHistLeafs, x => x.TargetLeafs, (x, y) => x.Leaf == y.OriginLeaf); }
/// <summary> /// See <see cref="IConvertRegistrations{TSource, TTarget, TConvertIntention}.DoRegistrations"/>. /// </summary> public void DoRegistrations(IConvertRegistration <SourceTree, TargetTree> registrations) { registrations.NotNull(nameof(registrations)); registrations.RegisterCreateToManyWithReverseRelation( x => x.Leafs, x => x.TargetLeafs, this.convertHelperFactory.GetConvertHelper(x => x.TargetTree)); }
/// <summary> /// See <see cref="IConvertRegistrations{TSource, TTarget, TConvertIntention}.DoRegistrations"/>. /// </summary> public void DoRegistrations(IConvertRegistration <SourceRoot, TargetRoot> registrations) { registrations.NotNull(nameof(registrations)); registrations.RegisterCreateToManyWithReverseRelation( x => x.Leafs, x => x.TargetLeafs, this.createConvertHelper); }
/// <summary> /// See <see cref="IConvertRegistrations{TSource, TTarget, TConvertIntention}.DoRegistrations"/>. /// </summary> public void DoRegistrations(IConvertRegistration <SourceRoot, TargetRoot> registrations) { registrations.NotNull(nameof(registrations)); registrations.RegisterCreateToManyFromGenericStrategyWithReverseRelation <SourceBaseLeaf, TargetBaseLeaf, IForTest>( x => x.Leafs, x => x.TargetLeafs, x => x.TargetRoot); }
/// <summary> /// See <see cref="IConvertRegistrations{TSource, TTarget, TConvertIntention}.DoRegistrations"/>. /// </summary> public void DoRegistrations(IConvertRegistration <SourceTreeHist, TargetTreeHist> registrations) { registrations.NotNull(nameof(registrations)); registrations .RegisterCopyAttribute(x => x.Id, x => x.OriginId) .RegisterCopyAttribute(x => x.From, x => x.From) .RegisterCopyAttribute(x => x.To, x => x.To); }
/// <summary> /// See <see cref="IConvertRegistrations{TSource, TTarget, TConvertIntention}.DoRegistrations"/>. /// </summary> public void DoRegistrations(IConvertRegistration <SourceRoot, TargetRoot> registrations) { registrations.NotNull(nameof(registrations)); registrations.RegisterCreateToOneWithRelation( x => x.Tree, x => x.TargetTree, (x, y) => y.RelationOnTarget, this.convertHelperFactory.GetConvertHelper(x => x.RelationOnTarget)); }
/// <summary> /// See <see cref="IConvertRegistrations{TSource, TTarget, TConvertIntention}.DoRegistrations"/>. /// </summary> public void DoRegistrations(IConvertRegistration <SourceTree, TargetTree> registrations) { registrations.NotNull(nameof(registrations)); registrations.RegisterCreateToManyWithRelation( (x, y) => CreateSourceTreeLeafDtos(x, y), x => x.TargetLeafs, (x, y) => y.RelationOnTarget, this.convertHelperFactory.GetConvertHelper(x => x.RelationOnTarget)); }
/// <summary> /// See <see cref="IConvertRegistrations{TSource, TTarget, TConvertIntention}.DoRegistrations"/>. /// </summary> public void DoRegistrations(IConvertRegistration <SourceTree, TargetTree> registrations) { registrations.NotNull(nameof(registrations)); registrations.RegisterCreateToOneHistWithCondition <SourceTreeHist, TargetTreeHist, TargetTreeHist, TargetTree, ITemporalData, IForTest>( (x, y) => x.Hists, x => x.TargetHists, (x, y) => true, (x, y) => y.TargetRoot.ReferenceDate, this.convertHelperFactory.GetConvertHelper(x => x.TargetTree)); }
/// <summary> /// See <see cref="IConvertRegistrations{TSource, TTarget, TConvertIntention}.DoRegistrations"/>. /// </summary> public void DoRegistrations(IConvertRegistration<SourceTreeLeaf, TargetTreeLeaf> registrations) { registrations.NotNull(nameof(registrations)); registrations .RegisterCopyAttribute(x => x, x => x.OriginLeaf) .RegisterCopyAttribute(x => x.Id, x => x.OriginId) .RegisterCopyAttribute(x => x.LeafName, x => x.LeafName) .RegisterConvertFromSourceOnDifferentLevels<MasterData, TargetTreeLeaf, IForTest>( x => x.MasterDatas.Single(y => y.IsDefault)) .RegisterCreateFromSourceWithReverseRelation( x => x.Child, this.convertHelperFactory.GetConvertHelper(x => x.TargetTreeLeaf)); }
/// <summary> /// See <see cref="IConvertRegistrations{TSource, TTarget, TConvertIntention}.DoRegistrations"/>. /// </summary> public void DoRegistrations(IConvertRegistration <SourceTree, TargetTree> registrations) { registrations.NotNull(nameof(registrations)); registrations .RegisterCopyAttribute(x => x, x => x.OriginTree) .RegisterCopyAttribute(x => x.TreeName, x => x.TreeName) .RegisterConvertFromSourceOnDifferentLevels <MasterData, TargetTree, IForTest>(x => x.MasterData) .RegisterCreateToManyWithReverseRelation( x => x.Leafs, x => x.TargetLeafs, this.treeLeafConvertHelperFactory.GetConvertHelper(x => x.TargetTree)) .RegisterCopyFromHist <SourceTreeHist, SourceTreeHist, IForTest>( x => x.Hists, (source, target) => target.TargetRoot.ReferenceDate) .RegisterSubCopy <ICopy <BaseData> >() .RegisterMergeLevel( x => x.Hists, x => x.TreeHistLeafs, x => x.TargetHistLeafs, this.treeHistLeafConvertHelperFactory.GetConvertHelper(x => x.TargetTree)); }
/// <summary> /// See <see cref="IConvertRegistrations{TSource, TTarget, TConvertIntention}.DoRegistrations"/>. /// </summary> public void DoRegistrations(IConvertRegistration <SourceRoot, RootBase> aRegistrations) { aRegistrations.NotNull(nameof(aRegistrations)); aRegistrations.RegisterCopyAttribute(x => x.Id, x => x.TargetId); }
/// <summary> /// See <see cref="IConvertRegistrations{TSource, TTarget, TConvertIntention}.DoRegistrations"/>. /// </summary> public void DoRegistrations(IConvertRegistration <RootBase, TargetRoot> registrations) { registrations.NotNull(nameof(registrations)); registrations.RegisterCopyAttribute(x => x.Id, x => x.RootId); }