-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Registration interface improved. - RegisterPostProcessings removed - Naming unified (RegisterCopyAttributeWithSourceFilter renamed to RegisterCopyAttribute, RegisterCreateToManyGeneric renamed to RegisterCreateToMany) - Overloads for RegisterCreateToOneWithRelation and RegisterCreateToManyWithRelation with target argument in SourveValue Function. - RegisterCreateToManyWithSourceFilterAndReverseRelation removed (RegisterCreateToManyWithRelation can be used instead). Co-authored-by: Stefan Lindegger <lis@bbtsoftware.ch>
- Loading branch information
1 parent
8155c54
commit d05fa61
Showing
31 changed files
with
602 additions
and
232 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
src/BBT.StructureTools.Tests/Convert/Registrations/CopyIdDtoToTargetTreeLeafRegistrations.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// Copyright © BBT Software AG. All rights reserved. | ||
|
||
namespace BBT.StructureTools.Tests.Convert.Registrations | ||
{ | ||
using BBT.StructureTools.Convert; | ||
using BBT.StructureTools.Extension; | ||
using BBT.StructureTools.Tests.Convert.TestData; | ||
|
||
/// <summary> | ||
/// Registrations for test purposes. | ||
/// </summary> | ||
public class CopyIdDtoToTargetTreeLeafRegistrations : IConvertRegistrations<IdDto, TargetTreeLeaf, IForTest> | ||
{ | ||
/// <summary> | ||
/// See <see cref="IConvertRegistrations{TSource, TTarget, TConvertIntention}.DoRegistrations"/>. | ||
/// </summary> | ||
public void DoRegistrations(IConvertRegistration<IdDto, TargetTreeLeaf> registrations) | ||
{ | ||
registrations.NotNull(nameof(registrations)); | ||
|
||
registrations.RegisterCopyAttribute( | ||
x => x.Id, | ||
x => x.OriginId); | ||
} | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
src/BBT.StructureTools.Tests/Convert/Registrations/CopyIdDtoToTargetTreeRegistrations.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// Copyright © BBT Software AG. All rights reserved. | ||
|
||
namespace BBT.StructureTools.Tests.Convert.Registrations | ||
{ | ||
using BBT.StructureTools.Convert; | ||
using BBT.StructureTools.Extension; | ||
using BBT.StructureTools.Tests.Convert.TestData; | ||
|
||
/// <summary> | ||
/// Registrations for test purposes. | ||
/// </summary> | ||
public class CopyIdDtoToTargetTreeRegistrations : IConvertRegistrations<IdDto, TargetTree, IForTest> | ||
{ | ||
/// <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); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.