Skip to content

Commit

Permalink
Finetune attachment version number
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander van Delft committed Feb 2, 2024
1 parent 3438cc1 commit 60c9f73
Show file tree
Hide file tree
Showing 125 changed files with 1,009 additions and 940 deletions.
38 changes: 19 additions & 19 deletions CDP4Common/AutoGenEquatable/ArrayParameterTypeEquatable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,23 +34,23 @@
| 1 | revisionNumber | int | 1..1 | 1.0.0 |
| -------------------------------------------- | ---------------------------- | ----------- | ------- |
| 2 | alias | Guid | 0..* | 1.0.0 |
| 3 | attachment | Guid | 0..* | 1.0.0 |
| 4 | category | Guid | 0..* | 1.0.0 |
| 5 | component | Guid | 1..* | 1.0.0 |
| 6 | definition | Guid | 0..* | 1.0.0 |
| 7 | dimension | int | 1..* | 1.0.0 |
| 8 | hyperLink | Guid | 0..* | 1.0.0 |
| 9 | isDeprecated | bool | 1..1 | 1.0.0 |
| 10 | isFinalized | bool | 1..1 | 1.0.0 |
| 11 | isTensor | bool | 1..1 | 1.0.0 |
| 12 | name | string | 1..1 | 1.0.0 |
| 13 | shortName | string | 1..1 | 1.0.0 |
| 14 | symbol | string | 1..1 | 1.0.0 |
| 15 | excludedDomain | Guid | 0..* | 1.1.0 |
| 16 | excludedPerson | Guid | 0..* | 1.1.0 |
| 17 | modifiedOn | DateTime | 1..1 | 1.1.0 |
| 18 | thingPreference | string | 0..1 | 1.2.0 |
| 19 | actor | Guid | 0..1 | 1.3.0 |
| 3 | category | Guid | 0..* | 1.0.0 |
| 4 | component | Guid | 1..* | 1.0.0 |
| 5 | definition | Guid | 0..* | 1.0.0 |
| 6 | dimension | int | 1..* | 1.0.0 |
| 7 | hyperLink | Guid | 0..* | 1.0.0 |
| 8 | isDeprecated | bool | 1..1 | 1.0.0 |
| 9 | isFinalized | bool | 1..1 | 1.0.0 |
| 10 | isTensor | bool | 1..1 | 1.0.0 |
| 11 | name | string | 1..1 | 1.0.0 |
| 12 | shortName | string | 1..1 | 1.0.0 |
| 13 | symbol | string | 1..1 | 1.0.0 |
| 14 | excludedDomain | Guid | 0..* | 1.1.0 |
| 15 | excludedPerson | Guid | 0..* | 1.1.0 |
| 16 | modifiedOn | DateTime | 1..1 | 1.1.0 |
| 17 | thingPreference | string | 0..1 | 1.2.0 |
| 18 | actor | Guid | 0..1 | 1.3.0 |
| 19 | attachment | Guid | 0..* | 1.4.0 |
* -------------------------------------------- | ---------------------------- | ----------- | ------- */

namespace CDP4Common.DTO.Equatable
Expand Down Expand Up @@ -92,8 +92,6 @@ public static bool ArePropertiesEqual(this ArrayParameterType me, ArrayParameter

if (!me.Alias.OrderBy(x => x).SequenceEqual(other.Alias.OrderBy(x => x))) return false;

if (!me.Attachment.OrderBy(x => x).SequenceEqual(other.Attachment.OrderBy(x => x))) return false;

if (!me.Category.OrderBy(x => x).SequenceEqual(other.Category.OrderBy(x => x))) return false;

if (!me.Component.OrderBy(x => x.K).Select(x => x.K).SequenceEqual(other.Component.OrderBy(x => x.K).Select(x => x.K))) return false;
Expand Down Expand Up @@ -133,6 +131,8 @@ public static bool ArePropertiesEqual(this ArrayParameterType me, ArrayParameter
if (me.Actor.HasValue != other.Actor.HasValue) return false;
if (!me.Actor.Equals(other.Actor)) return false;

if (!me.Attachment.OrderBy(x => x).SequenceEqual(other.Attachment.OrderBy(x => x))) return false;

return true;
}
}
Expand Down
36 changes: 18 additions & 18 deletions CDP4Common/AutoGenEquatable/BinaryRelationshipRuleEquatable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,22 +34,22 @@
| 1 | revisionNumber | int | 1..1 | 1.0.0 |
| -------------------------------------------- | ---------------------------- | ----------- | ------- |
| 2 | alias | Guid | 0..* | 1.0.0 |
| 3 | attachment | Guid | 0..* | 1.0.0 |
| 4 | definition | Guid | 0..* | 1.0.0 |
| 5 | forwardRelationshipName | string | 1..1 | 1.0.0 |
| 6 | hyperLink | Guid | 0..* | 1.0.0 |
| 7 | inverseRelationshipName | string | 1..1 | 1.0.0 |
| 8 | isDeprecated | bool | 1..1 | 1.0.0 |
| 9 | name | string | 1..1 | 1.0.0 |
| 10 | relationshipCategory | Guid | 1..1 | 1.0.0 |
| 11 | shortName | string | 1..1 | 1.0.0 |
| 12 | sourceCategory | Guid | 1..1 | 1.0.0 |
| 13 | targetCategory | Guid | 1..1 | 1.0.0 |
| 14 | excludedDomain | Guid | 0..* | 1.1.0 |
| 15 | excludedPerson | Guid | 0..* | 1.1.0 |
| 16 | modifiedOn | DateTime | 1..1 | 1.1.0 |
| 17 | thingPreference | string | 0..1 | 1.2.0 |
| 18 | actor | Guid | 0..1 | 1.3.0 |
| 3 | definition | Guid | 0..* | 1.0.0 |
| 4 | forwardRelationshipName | string | 1..1 | 1.0.0 |
| 5 | hyperLink | Guid | 0..* | 1.0.0 |
| 6 | inverseRelationshipName | string | 1..1 | 1.0.0 |
| 7 | isDeprecated | bool | 1..1 | 1.0.0 |
| 8 | name | string | 1..1 | 1.0.0 |
| 9 | relationshipCategory | Guid | 1..1 | 1.0.0 |
| 10 | shortName | string | 1..1 | 1.0.0 |
| 11 | sourceCategory | Guid | 1..1 | 1.0.0 |
| 12 | targetCategory | Guid | 1..1 | 1.0.0 |
| 13 | excludedDomain | Guid | 0..* | 1.1.0 |
| 14 | excludedPerson | Guid | 0..* | 1.1.0 |
| 15 | modifiedOn | DateTime | 1..1 | 1.1.0 |
| 16 | thingPreference | string | 0..1 | 1.2.0 |
| 17 | actor | Guid | 0..1 | 1.3.0 |
| 18 | attachment | Guid | 0..* | 1.4.0 |
* -------------------------------------------- | ---------------------------- | ----------- | ------- */

namespace CDP4Common.DTO.Equatable
Expand Down Expand Up @@ -91,8 +91,6 @@ public static bool ArePropertiesEqual(this BinaryRelationshipRule me, BinaryRela

if (!me.Alias.OrderBy(x => x).SequenceEqual(other.Alias.OrderBy(x => x))) return false;

if (!me.Attachment.OrderBy(x => x).SequenceEqual(other.Attachment.OrderBy(x => x))) return false;

if (!me.Definition.OrderBy(x => x).SequenceEqual(other.Definition.OrderBy(x => x))) return false;

if (me.ForwardRelationshipName == null && other.ForwardRelationshipName != null) return false;
Expand Down Expand Up @@ -129,6 +127,8 @@ public static bool ArePropertiesEqual(this BinaryRelationshipRule me, BinaryRela
if (me.Actor.HasValue != other.Actor.HasValue) return false;
if (!me.Actor.Equals(other.Actor)) return false;

if (!me.Attachment.OrderBy(x => x).SequenceEqual(other.Attachment.OrderBy(x => x))) return false;

return true;
}
}
Expand Down
30 changes: 15 additions & 15 deletions CDP4Common/AutoGenEquatable/BooleanParameterTypeEquatable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,19 @@
| 1 | revisionNumber | int | 1..1 | 1.0.0 |
| -------------------------------------------- | ---------------------------- | ----------- | ------- |
| 2 | alias | Guid | 0..* | 1.0.0 |
| 3 | attachment | Guid | 0..* | 1.0.0 |
| 4 | category | Guid | 0..* | 1.0.0 |
| 5 | definition | Guid | 0..* | 1.0.0 |
| 6 | hyperLink | Guid | 0..* | 1.0.0 |
| 7 | isDeprecated | bool | 1..1 | 1.0.0 |
| 8 | name | string | 1..1 | 1.0.0 |
| 9 | shortName | string | 1..1 | 1.0.0 |
| 10 | symbol | string | 1..1 | 1.0.0 |
| 11 | excludedDomain | Guid | 0..* | 1.1.0 |
| 12 | excludedPerson | Guid | 0..* | 1.1.0 |
| 13 | modifiedOn | DateTime | 1..1 | 1.1.0 |
| 14 | thingPreference | string | 0..1 | 1.2.0 |
| 15 | actor | Guid | 0..1 | 1.3.0 |
| 3 | category | Guid | 0..* | 1.0.0 |
| 4 | definition | Guid | 0..* | 1.0.0 |
| 5 | hyperLink | Guid | 0..* | 1.0.0 |
| 6 | isDeprecated | bool | 1..1 | 1.0.0 |
| 7 | name | string | 1..1 | 1.0.0 |
| 8 | shortName | string | 1..1 | 1.0.0 |
| 9 | symbol | string | 1..1 | 1.0.0 |
| 10 | excludedDomain | Guid | 0..* | 1.1.0 |
| 11 | excludedPerson | Guid | 0..* | 1.1.0 |
| 12 | modifiedOn | DateTime | 1..1 | 1.1.0 |
| 13 | thingPreference | string | 0..1 | 1.2.0 |
| 14 | actor | Guid | 0..1 | 1.3.0 |
| 15 | attachment | Guid | 0..* | 1.4.0 |
* -------------------------------------------- | ---------------------------- | ----------- | ------- */

namespace CDP4Common.DTO.Equatable
Expand Down Expand Up @@ -88,8 +88,6 @@ public static bool ArePropertiesEqual(this BooleanParameterType me, BooleanParam

if (!me.Alias.OrderBy(x => x).SequenceEqual(other.Alias.OrderBy(x => x))) return false;

if (!me.Attachment.OrderBy(x => x).SequenceEqual(other.Attachment.OrderBy(x => x))) return false;

if (!me.Category.OrderBy(x => x).SequenceEqual(other.Category.OrderBy(x => x))) return false;

if (!me.Definition.OrderBy(x => x).SequenceEqual(other.Definition.OrderBy(x => x))) return false;
Expand Down Expand Up @@ -119,6 +117,8 @@ public static bool ArePropertiesEqual(this BooleanParameterType me, BooleanParam
if (me.Actor.HasValue != other.Actor.HasValue) return false;
if (!me.Actor.Equals(other.Actor)) return false;

if (!me.Attachment.OrderBy(x => x).SequenceEqual(other.Attachment.OrderBy(x => x))) return false;

return true;
}
}
Expand Down
32 changes: 16 additions & 16 deletions CDP4Common/AutoGenEquatable/CategoryEquatable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,20 +34,20 @@
| 1 | revisionNumber | int | 1..1 | 1.0.0 |
| -------------------------------------------- | ---------------------------- | ----------- | ------- |
| 2 | alias | Guid | 0..* | 1.0.0 |
| 3 | attachment | Guid | 0..* | 1.0.0 |
| 4 | definition | Guid | 0..* | 1.0.0 |
| 5 | hyperLink | Guid | 0..* | 1.0.0 |
| 6 | isAbstract | bool | 1..1 | 1.0.0 |
| 7 | isDeprecated | bool | 1..1 | 1.0.0 |
| 8 | name | string | 1..1 | 1.0.0 |
| 9 | permissibleClass | ClassKind | 1..* | 1.0.0 |
| 10 | shortName | string | 1..1 | 1.0.0 |
| 11 | superCategory | Guid | 0..* | 1.0.0 |
| 12 | excludedDomain | Guid | 0..* | 1.1.0 |
| 13 | excludedPerson | Guid | 0..* | 1.1.0 |
| 14 | modifiedOn | DateTime | 1..1 | 1.1.0 |
| 15 | thingPreference | string | 0..1 | 1.2.0 |
| 16 | actor | Guid | 0..1 | 1.3.0 |
| 3 | definition | Guid | 0..* | 1.0.0 |
| 4 | hyperLink | Guid | 0..* | 1.0.0 |
| 5 | isAbstract | bool | 1..1 | 1.0.0 |
| 6 | isDeprecated | bool | 1..1 | 1.0.0 |
| 7 | name | string | 1..1 | 1.0.0 |
| 8 | permissibleClass | ClassKind | 1..* | 1.0.0 |
| 9 | shortName | string | 1..1 | 1.0.0 |
| 10 | superCategory | Guid | 0..* | 1.0.0 |
| 11 | excludedDomain | Guid | 0..* | 1.1.0 |
| 12 | excludedPerson | Guid | 0..* | 1.1.0 |
| 13 | modifiedOn | DateTime | 1..1 | 1.1.0 |
| 14 | thingPreference | string | 0..1 | 1.2.0 |
| 15 | actor | Guid | 0..1 | 1.3.0 |
| 16 | attachment | Guid | 0..* | 1.4.0 |
* -------------------------------------------- | ---------------------------- | ----------- | ------- */

namespace CDP4Common.DTO.Equatable
Expand Down Expand Up @@ -89,8 +89,6 @@ public static bool ArePropertiesEqual(this Category me, Category other)

if (!me.Alias.OrderBy(x => x).SequenceEqual(other.Alias.OrderBy(x => x))) return false;

if (!me.Attachment.OrderBy(x => x).SequenceEqual(other.Attachment.OrderBy(x => x))) return false;

if (!me.Definition.OrderBy(x => x).SequenceEqual(other.Definition.OrderBy(x => x))) return false;

if (!me.HyperLink.OrderBy(x => x).SequenceEqual(other.HyperLink.OrderBy(x => x))) return false;
Expand Down Expand Up @@ -121,6 +119,8 @@ public static bool ArePropertiesEqual(this Category me, Category other)
if (me.Actor.HasValue != other.Actor.HasValue) return false;
if (!me.Actor.Equals(other.Actor)) return false;

if (!me.Attachment.OrderBy(x => x).SequenceEqual(other.Attachment.OrderBy(x => x))) return false;

return true;
}
}
Expand Down
Loading

0 comments on commit 60c9f73

Please sign in to comment.