diff --git a/.editorconfig b/.editorconfig
new file mode 100644
index 000000000..20935edd6
--- /dev/null
+++ b/.editorconfig
@@ -0,0 +1,9 @@
+[*.cs]
+# Disable S3776: Cognitive Complexity Warning
+dotnet_diagnostic.S3776.severity = none
+
+[**/AutoGen*/*.cs]
+# Disable CS1570/CS1584/CS1658 for all codegen
+dotnet_diagnostic.CS1570.severity = none
+dotnet_diagnostic.CS1584.severity = none
+dotnet_diagnostic.CS1658.severity = none
\ No newline at end of file
diff --git a/.github/workflows/CodeQuality.yml b/.github/workflows/CodeQuality.yml
index 74853e805..caf487da0 100644
--- a/.github/workflows/CodeQuality.yml
+++ b/.github/workflows/CodeQuality.yml
@@ -4,7 +4,11 @@ on:
push:
pull_request:
types: [opened, synchronize, reopened]
-
+
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
+ cancel-in-progress: true
+
jobs:
build:
name: Build
@@ -26,22 +30,25 @@ jobs:
- name: Restore dependencies
run: dotnet restore SysML2.NET.sln
-
+
- name: Sonarqube Begin
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
+ SONAR_SCANNER_OPTS: "-Xmx4096m"
run: |
dotnet tool install --global dotnet-sonarscanner
- dotnet sonarscanner begin /k:"STARIONGROUP_SysML2.NET" /o:"stariongroup" /d:sonar.token="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.cs.opencover.reportsPaths="./CoverageResults/coverage.opencover.xml"
+ dotnet tool install --global dotnet-coverage
+ dotnet sonarscanner begin /k:"STARIONGROUP_SysML2.NET" /o:"stariongroup" /d:sonar.token="$SONAR_TOKEN" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.cs.vscoveragexml.reportsPaths=coverage.xml
- name: Build
- run: dotnet build --no-restore /p:ContinuousIntegrationBuild=true
+ run: dotnet build --no-restore --no-incremental /p:ContinuousIntegrationBuild=true
- name: Run Tests and Compute Coverage
- run: dotnet test SysML2.NET.sln --filter Category!="Expected" --no-restore --no-build --verbosity normal /p:CollectCoverage=true /p:CoverletOutput="../CoverageResults/" /p:MergeWith="../CoverageResults/coverage.json" /p:CoverletOutputFormat=\"opencover,json\"
+ run: dotnet-coverage collect "dotnet test SysML2.NET.sln --no-restore --no-build --verbosity normal" -f xml -o "coverage.xml"
- name: Sonarqube end
- run: dotnet sonarscanner end /d:sonar.token="${{ secrets.SONAR_TOKEN }}"
env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
\ No newline at end of file
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
+ run: dotnet sonarscanner end /d:sonar.token="$SONAR_TOKEN"
diff --git a/SySML2.NET.REST.Tests/RestClientTestFixture.cs b/SySML2.NET.REST.Tests/RestClientTestFixture.cs
index 9e1cddc72..fc74cbfd3 100644
--- a/SySML2.NET.REST.Tests/RestClientTestFixture.cs
+++ b/SySML2.NET.REST.Tests/RestClientTestFixture.cs
@@ -32,6 +32,7 @@ namespace SySML2.NET.REST.Tests
///
/// Suite of tests for the class
///
+ [TestFixture]
public class RestClientTestFixture
{
private string baseUri;
diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/AnnotatingElementDeSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/AnnotatingElementDeSerializer.cs
index 92a4ff810..67998a82d 100644
--- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/AnnotatingElementDeSerializer.cs
+++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/AnnotatingElementDeSerializer.cs
@@ -129,7 +129,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the aliasIds Json property was not found in the AnnotatingElement: { Id }", dtoInstance.Id);
+ logger.LogDebug("the aliasIds Json property was not found in the AnnotatingElement: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("annotatedElement"u8, out var annotatedElementProperty))
@@ -149,7 +149,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the annotatedElement Json property was not found in the AnnotatingElement: { Id }", dtoInstance.Id);
+ logger.LogDebug("the annotatedElement Json property was not found in the AnnotatingElement: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("annotation"u8, out var annotationProperty))
@@ -169,7 +169,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the annotation Json property was not found in the AnnotatingElement: { Id }", dtoInstance.Id);
+ logger.LogDebug("the annotation Json property was not found in the AnnotatingElement: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty))
@@ -178,7 +178,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the declaredName Json property was not found in the AnnotatingElement: { Id }", dtoInstance.Id);
+ logger.LogDebug("the declaredName Json property was not found in the AnnotatingElement: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty))
@@ -187,7 +187,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the declaredShortName Json property was not found in the AnnotatingElement: { Id }", dtoInstance.Id);
+ logger.LogDebug("the declaredShortName Json property was not found in the AnnotatingElement: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty))
@@ -207,7 +207,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the documentation Json property was not found in the AnnotatingElement: { Id }", dtoInstance.Id);
+ logger.LogDebug("the documentation Json property was not found in the AnnotatingElement: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty))
@@ -221,7 +221,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the elementId Json property was not found in the AnnotatingElement: { Id }", dtoInstance.Id);
+ logger.LogDebug("the elementId Json property was not found in the AnnotatingElement: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty))
@@ -233,7 +233,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isImpliedIncluded Json property was not found in the AnnotatingElement: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isImpliedIncluded Json property was not found in the AnnotatingElement: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty))
@@ -245,7 +245,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isLibraryElement Json property was not found in the AnnotatingElement: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isLibraryElement Json property was not found in the AnnotatingElement: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("name"u8, out var nameProperty))
@@ -254,7 +254,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the name Json property was not found in the AnnotatingElement: { Id }", dtoInstance.Id);
+ logger.LogDebug("the name Json property was not found in the AnnotatingElement: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedAnnotatingRelationship"u8, out var ownedAnnotatingRelationshipProperty))
@@ -274,7 +274,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedAnnotatingRelationship Json property was not found in the AnnotatingElement: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedAnnotatingRelationship Json property was not found in the AnnotatingElement: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty))
@@ -294,7 +294,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedAnnotation Json property was not found in the AnnotatingElement: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedAnnotation Json property was not found in the AnnotatingElement: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty))
@@ -314,7 +314,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedElement Json property was not found in the AnnotatingElement: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedElement Json property was not found in the AnnotatingElement: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty))
@@ -334,7 +334,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedRelationship Json property was not found in the AnnotatingElement: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedRelationship Json property was not found in the AnnotatingElement: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty))
@@ -358,7 +358,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owner Json property was not found in the AnnotatingElement: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owner Json property was not found in the AnnotatingElement: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningAnnotatingRelationship"u8, out var owningAnnotatingRelationshipProperty))
@@ -382,7 +382,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningAnnotatingRelationship Json property was not found in the AnnotatingElement: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningAnnotatingRelationship Json property was not found in the AnnotatingElement: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty))
@@ -406,7 +406,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningMembership Json property was not found in the AnnotatingElement: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningMembership Json property was not found in the AnnotatingElement: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty))
@@ -430,7 +430,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningNamespace Json property was not found in the AnnotatingElement: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningNamespace Json property was not found in the AnnotatingElement: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty))
@@ -454,7 +454,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningRelationship Json property was not found in the AnnotatingElement: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningRelationship Json property was not found in the AnnotatingElement: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty))
@@ -463,7 +463,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the qualifiedName Json property was not found in the AnnotatingElement: { Id }", dtoInstance.Id);
+ logger.LogDebug("the qualifiedName Json property was not found in the AnnotatingElement: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty))
@@ -472,7 +472,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the shortName Json property was not found in the AnnotatingElement: { Id }", dtoInstance.Id);
+ logger.LogDebug("the shortName Json property was not found in the AnnotatingElement: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty))
@@ -492,7 +492,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the textualRepresentation Json property was not found in the AnnotatingElement: { Id }", dtoInstance.Id);
+ logger.LogDebug("the textualRepresentation Json property was not found in the AnnotatingElement: {Id}", dtoInstance.Id);
}
}
@@ -526,7 +526,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the aliasIds Json property was not found in the AnnotatingElement: { Id }", dtoInstance.Id);
+ logger.LogDebug("the aliasIds Json property was not found in the AnnotatingElement: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty))
@@ -535,7 +535,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the declaredName Json property was not found in the AnnotatingElement: { Id }", dtoInstance.Id);
+ logger.LogDebug("the declaredName Json property was not found in the AnnotatingElement: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty))
@@ -544,7 +544,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the declaredShortName Json property was not found in the AnnotatingElement: { Id }", dtoInstance.Id);
+ logger.LogDebug("the declaredShortName Json property was not found in the AnnotatingElement: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty))
@@ -558,7 +558,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the elementId Json property was not found in the AnnotatingElement: { Id }", dtoInstance.Id);
+ logger.LogDebug("the elementId Json property was not found in the AnnotatingElement: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty))
@@ -570,7 +570,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isImpliedIncluded Json property was not found in the AnnotatingElement: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isImpliedIncluded Json property was not found in the AnnotatingElement: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty))
@@ -590,7 +590,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedRelationship Json property was not found in the AnnotatingElement: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedRelationship Json property was not found in the AnnotatingElement: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty))
@@ -614,7 +614,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningRelationship Json property was not found in the AnnotatingElement: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningRelationship Json property was not found in the AnnotatingElement: {Id}", dtoInstance.Id);
}
}
diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/AssociationDeSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/AssociationDeSerializer.cs
index ec742265c..1796bf29a 100644
--- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/AssociationDeSerializer.cs
+++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/AssociationDeSerializer.cs
@@ -129,7 +129,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the aliasIds Json property was not found in the Association: { Id }", dtoInstance.Id);
+ logger.LogDebug("the aliasIds Json property was not found in the Association: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("associationEnd"u8, out var associationEndProperty))
@@ -149,7 +149,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the associationEnd Json property was not found in the Association: { Id }", dtoInstance.Id);
+ logger.LogDebug("the associationEnd Json property was not found in the Association: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty))
@@ -158,7 +158,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the declaredName Json property was not found in the Association: { Id }", dtoInstance.Id);
+ logger.LogDebug("the declaredName Json property was not found in the Association: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty))
@@ -167,7 +167,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the declaredShortName Json property was not found in the Association: { Id }", dtoInstance.Id);
+ logger.LogDebug("the declaredShortName Json property was not found in the Association: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty))
@@ -187,7 +187,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the differencingType Json property was not found in the Association: { Id }", dtoInstance.Id);
+ logger.LogDebug("the differencingType Json property was not found in the Association: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty))
@@ -207,7 +207,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the directedFeature Json property was not found in the Association: { Id }", dtoInstance.Id);
+ logger.LogDebug("the directedFeature Json property was not found in the Association: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty))
@@ -227,7 +227,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the documentation Json property was not found in the Association: { Id }", dtoInstance.Id);
+ logger.LogDebug("the documentation Json property was not found in the Association: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty))
@@ -241,7 +241,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the elementId Json property was not found in the Association: { Id }", dtoInstance.Id);
+ logger.LogDebug("the elementId Json property was not found in the Association: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("feature"u8, out var featureProperty))
@@ -261,7 +261,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the feature Json property was not found in the Association: { Id }", dtoInstance.Id);
+ logger.LogDebug("the feature Json property was not found in the Association: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty))
@@ -281,7 +281,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the featureMembership Json property was not found in the Association: { Id }", dtoInstance.Id);
+ logger.LogDebug("the featureMembership Json property was not found in the Association: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty))
@@ -301,7 +301,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the importedMembership Json property was not found in the Association: { Id }", dtoInstance.Id);
+ logger.LogDebug("the importedMembership Json property was not found in the Association: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty))
@@ -321,7 +321,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the inheritedFeature Json property was not found in the Association: { Id }", dtoInstance.Id);
+ logger.LogDebug("the inheritedFeature Json property was not found in the Association: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty))
@@ -341,7 +341,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the inheritedMembership Json property was not found in the Association: { Id }", dtoInstance.Id);
+ logger.LogDebug("the inheritedMembership Json property was not found in the Association: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("input"u8, out var inputProperty))
@@ -361,7 +361,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the input Json property was not found in the Association: { Id }", dtoInstance.Id);
+ logger.LogDebug("the input Json property was not found in the Association: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty))
@@ -381,7 +381,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the intersectingType Json property was not found in the Association: { Id }", dtoInstance.Id);
+ logger.LogDebug("the intersectingType Json property was not found in the Association: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty))
@@ -393,7 +393,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isAbstract Json property was not found in the Association: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isAbstract Json property was not found in the Association: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty))
@@ -405,7 +405,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isConjugated Json property was not found in the Association: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isConjugated Json property was not found in the Association: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isImplied"u8, out var isImpliedProperty))
@@ -417,7 +417,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isImplied Json property was not found in the Association: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isImplied Json property was not found in the Association: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty))
@@ -429,7 +429,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isImpliedIncluded Json property was not found in the Association: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isImpliedIncluded Json property was not found in the Association: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty))
@@ -441,7 +441,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isLibraryElement Json property was not found in the Association: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isLibraryElement Json property was not found in the Association: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty))
@@ -453,7 +453,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isSufficient Json property was not found in the Association: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isSufficient Json property was not found in the Association: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("member"u8, out var memberProperty))
@@ -473,7 +473,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the member Json property was not found in the Association: { Id }", dtoInstance.Id);
+ logger.LogDebug("the member Json property was not found in the Association: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty))
@@ -493,7 +493,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the membership Json property was not found in the Association: { Id }", dtoInstance.Id);
+ logger.LogDebug("the membership Json property was not found in the Association: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty))
@@ -517,7 +517,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the multiplicity Json property was not found in the Association: { Id }", dtoInstance.Id);
+ logger.LogDebug("the multiplicity Json property was not found in the Association: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("name"u8, out var nameProperty))
@@ -526,7 +526,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the name Json property was not found in the Association: { Id }", dtoInstance.Id);
+ logger.LogDebug("the name Json property was not found in the Association: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("output"u8, out var outputProperty))
@@ -546,7 +546,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the output Json property was not found in the Association: { Id }", dtoInstance.Id);
+ logger.LogDebug("the output Json property was not found in the Association: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty))
@@ -566,7 +566,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedAnnotation Json property was not found in the Association: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedAnnotation Json property was not found in the Association: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty))
@@ -590,7 +590,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedConjugator Json property was not found in the Association: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedConjugator Json property was not found in the Association: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty))
@@ -610,7 +610,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedDifferencing Json property was not found in the Association: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedDifferencing Json property was not found in the Association: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty))
@@ -630,7 +630,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedDisjoining Json property was not found in the Association: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedDisjoining Json property was not found in the Association: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty))
@@ -650,7 +650,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedElement Json property was not found in the Association: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedElement Json property was not found in the Association: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty))
@@ -670,7 +670,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedEndFeature Json property was not found in the Association: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedEndFeature Json property was not found in the Association: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty))
@@ -690,7 +690,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedFeature Json property was not found in the Association: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedFeature Json property was not found in the Association: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty))
@@ -710,7 +710,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedFeatureMembership Json property was not found in the Association: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedFeatureMembership Json property was not found in the Association: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty))
@@ -730,7 +730,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedImport Json property was not found in the Association: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedImport Json property was not found in the Association: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty))
@@ -750,7 +750,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedIntersecting Json property was not found in the Association: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedIntersecting Json property was not found in the Association: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty))
@@ -770,7 +770,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedMember Json property was not found in the Association: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedMember Json property was not found in the Association: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty))
@@ -790,7 +790,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedMembership Json property was not found in the Association: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedMembership Json property was not found in the Association: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty))
@@ -810,7 +810,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedRelatedElement Json property was not found in the Association: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedRelatedElement Json property was not found in the Association: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty))
@@ -830,7 +830,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedRelationship Json property was not found in the Association: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedRelationship Json property was not found in the Association: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty))
@@ -850,7 +850,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedSpecialization Json property was not found in the Association: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedSpecialization Json property was not found in the Association: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedSubclassification"u8, out var ownedSubclassificationProperty))
@@ -870,7 +870,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedSubclassification Json property was not found in the Association: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedSubclassification Json property was not found in the Association: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty))
@@ -890,7 +890,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedUnioning Json property was not found in the Association: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedUnioning Json property was not found in the Association: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty))
@@ -914,7 +914,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owner Json property was not found in the Association: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owner Json property was not found in the Association: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty))
@@ -938,7 +938,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningMembership Json property was not found in the Association: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningMembership Json property was not found in the Association: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty))
@@ -962,7 +962,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningNamespace Json property was not found in the Association: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningNamespace Json property was not found in the Association: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty))
@@ -986,7 +986,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningRelatedElement Json property was not found in the Association: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningRelatedElement Json property was not found in the Association: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty))
@@ -1010,7 +1010,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningRelationship Json property was not found in the Association: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningRelationship Json property was not found in the Association: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty))
@@ -1019,7 +1019,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the qualifiedName Json property was not found in the Association: { Id }", dtoInstance.Id);
+ logger.LogDebug("the qualifiedName Json property was not found in the Association: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("relatedType"u8, out var relatedTypeProperty))
@@ -1039,7 +1039,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the relatedType Json property was not found in the Association: { Id }", dtoInstance.Id);
+ logger.LogDebug("the relatedType Json property was not found in the Association: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty))
@@ -1048,7 +1048,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the shortName Json property was not found in the Association: { Id }", dtoInstance.Id);
+ logger.LogDebug("the shortName Json property was not found in the Association: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("sourceType"u8, out var sourceTypeProperty))
@@ -1072,7 +1072,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the sourceType Json property was not found in the Association: { Id }", dtoInstance.Id);
+ logger.LogDebug("the sourceType Json property was not found in the Association: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("targetType"u8, out var targetTypeProperty))
@@ -1092,7 +1092,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the targetType Json property was not found in the Association: { Id }", dtoInstance.Id);
+ logger.LogDebug("the targetType Json property was not found in the Association: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty))
@@ -1112,7 +1112,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the textualRepresentation Json property was not found in the Association: { Id }", dtoInstance.Id);
+ logger.LogDebug("the textualRepresentation Json property was not found in the Association: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty))
@@ -1132,7 +1132,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the unioningType Json property was not found in the Association: { Id }", dtoInstance.Id);
+ logger.LogDebug("the unioningType Json property was not found in the Association: {Id}", dtoInstance.Id);
}
}
@@ -1166,7 +1166,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the aliasIds Json property was not found in the Association: { Id }", dtoInstance.Id);
+ logger.LogDebug("the aliasIds Json property was not found in the Association: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty))
@@ -1175,7 +1175,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the declaredName Json property was not found in the Association: { Id }", dtoInstance.Id);
+ logger.LogDebug("the declaredName Json property was not found in the Association: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty))
@@ -1184,7 +1184,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the declaredShortName Json property was not found in the Association: { Id }", dtoInstance.Id);
+ logger.LogDebug("the declaredShortName Json property was not found in the Association: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty))
@@ -1198,7 +1198,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the elementId Json property was not found in the Association: { Id }", dtoInstance.Id);
+ logger.LogDebug("the elementId Json property was not found in the Association: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty))
@@ -1210,7 +1210,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isAbstract Json property was not found in the Association: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isAbstract Json property was not found in the Association: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isImplied"u8, out var isImpliedProperty))
@@ -1222,7 +1222,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isImplied Json property was not found in the Association: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isImplied Json property was not found in the Association: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty))
@@ -1234,7 +1234,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isImpliedIncluded Json property was not found in the Association: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isImpliedIncluded Json property was not found in the Association: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty))
@@ -1246,7 +1246,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isSufficient Json property was not found in the Association: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isSufficient Json property was not found in the Association: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty))
@@ -1266,7 +1266,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedRelatedElement Json property was not found in the Association: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedRelatedElement Json property was not found in the Association: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty))
@@ -1286,7 +1286,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedRelationship Json property was not found in the Association: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedRelationship Json property was not found in the Association: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty))
@@ -1310,7 +1310,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningRelatedElement Json property was not found in the Association: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningRelatedElement Json property was not found in the Association: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty))
@@ -1334,7 +1334,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningRelationship Json property was not found in the Association: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningRelationship Json property was not found in the Association: {Id}", dtoInstance.Id);
}
}
diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/DependencyDeSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/DependencyDeSerializer.cs
index 395bd6693..d3ed6f769 100644
--- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/DependencyDeSerializer.cs
+++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/DependencyDeSerializer.cs
@@ -129,7 +129,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the aliasIds Json property was not found in the Dependency: { Id }", dtoInstance.Id);
+ logger.LogDebug("the aliasIds Json property was not found in the Dependency: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("client"u8, out var clientProperty))
@@ -149,7 +149,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the client Json property was not found in the Dependency: { Id }", dtoInstance.Id);
+ logger.LogDebug("the client Json property was not found in the Dependency: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty))
@@ -158,7 +158,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the declaredName Json property was not found in the Dependency: { Id }", dtoInstance.Id);
+ logger.LogDebug("the declaredName Json property was not found in the Dependency: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty))
@@ -167,7 +167,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the declaredShortName Json property was not found in the Dependency: { Id }", dtoInstance.Id);
+ logger.LogDebug("the declaredShortName Json property was not found in the Dependency: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty))
@@ -187,7 +187,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the documentation Json property was not found in the Dependency: { Id }", dtoInstance.Id);
+ logger.LogDebug("the documentation Json property was not found in the Dependency: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty))
@@ -201,7 +201,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the elementId Json property was not found in the Dependency: { Id }", dtoInstance.Id);
+ logger.LogDebug("the elementId Json property was not found in the Dependency: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isImplied"u8, out var isImpliedProperty))
@@ -213,7 +213,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isImplied Json property was not found in the Dependency: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isImplied Json property was not found in the Dependency: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty))
@@ -225,7 +225,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isImpliedIncluded Json property was not found in the Dependency: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isImpliedIncluded Json property was not found in the Dependency: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty))
@@ -237,7 +237,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isLibraryElement Json property was not found in the Dependency: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isLibraryElement Json property was not found in the Dependency: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("name"u8, out var nameProperty))
@@ -246,7 +246,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the name Json property was not found in the Dependency: { Id }", dtoInstance.Id);
+ logger.LogDebug("the name Json property was not found in the Dependency: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty))
@@ -266,7 +266,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedAnnotation Json property was not found in the Dependency: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedAnnotation Json property was not found in the Dependency: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty))
@@ -286,7 +286,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedElement Json property was not found in the Dependency: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedElement Json property was not found in the Dependency: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty))
@@ -306,7 +306,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedRelatedElement Json property was not found in the Dependency: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedRelatedElement Json property was not found in the Dependency: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty))
@@ -326,7 +326,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedRelationship Json property was not found in the Dependency: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedRelationship Json property was not found in the Dependency: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty))
@@ -350,7 +350,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owner Json property was not found in the Dependency: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owner Json property was not found in the Dependency: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty))
@@ -374,7 +374,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningMembership Json property was not found in the Dependency: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningMembership Json property was not found in the Dependency: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty))
@@ -398,7 +398,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningNamespace Json property was not found in the Dependency: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningNamespace Json property was not found in the Dependency: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty))
@@ -422,7 +422,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningRelatedElement Json property was not found in the Dependency: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningRelatedElement Json property was not found in the Dependency: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty))
@@ -446,7 +446,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningRelationship Json property was not found in the Dependency: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningRelationship Json property was not found in the Dependency: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty))
@@ -455,7 +455,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the qualifiedName Json property was not found in the Dependency: { Id }", dtoInstance.Id);
+ logger.LogDebug("the qualifiedName Json property was not found in the Dependency: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty))
@@ -475,7 +475,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the relatedElement Json property was not found in the Dependency: { Id }", dtoInstance.Id);
+ logger.LogDebug("the relatedElement Json property was not found in the Dependency: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty))
@@ -484,7 +484,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the shortName Json property was not found in the Dependency: { Id }", dtoInstance.Id);
+ logger.LogDebug("the shortName Json property was not found in the Dependency: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("supplier"u8, out var supplierProperty))
@@ -504,7 +504,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the supplier Json property was not found in the Dependency: { Id }", dtoInstance.Id);
+ logger.LogDebug("the supplier Json property was not found in the Dependency: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty))
@@ -524,7 +524,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the textualRepresentation Json property was not found in the Dependency: { Id }", dtoInstance.Id);
+ logger.LogDebug("the textualRepresentation Json property was not found in the Dependency: {Id}", dtoInstance.Id);
}
}
@@ -558,7 +558,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the aliasIds Json property was not found in the Dependency: { Id }", dtoInstance.Id);
+ logger.LogDebug("the aliasIds Json property was not found in the Dependency: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("client"u8, out var clientProperty))
@@ -578,7 +578,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the client Json property was not found in the Dependency: { Id }", dtoInstance.Id);
+ logger.LogDebug("the client Json property was not found in the Dependency: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty))
@@ -587,7 +587,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the declaredName Json property was not found in the Dependency: { Id }", dtoInstance.Id);
+ logger.LogDebug("the declaredName Json property was not found in the Dependency: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty))
@@ -596,7 +596,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the declaredShortName Json property was not found in the Dependency: { Id }", dtoInstance.Id);
+ logger.LogDebug("the declaredShortName Json property was not found in the Dependency: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty))
@@ -610,7 +610,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the elementId Json property was not found in the Dependency: { Id }", dtoInstance.Id);
+ logger.LogDebug("the elementId Json property was not found in the Dependency: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isImplied"u8, out var isImpliedProperty))
@@ -622,7 +622,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isImplied Json property was not found in the Dependency: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isImplied Json property was not found in the Dependency: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty))
@@ -634,7 +634,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isImpliedIncluded Json property was not found in the Dependency: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isImpliedIncluded Json property was not found in the Dependency: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty))
@@ -654,7 +654,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedRelatedElement Json property was not found in the Dependency: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedRelatedElement Json property was not found in the Dependency: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty))
@@ -674,7 +674,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedRelationship Json property was not found in the Dependency: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedRelationship Json property was not found in the Dependency: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty))
@@ -698,7 +698,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningRelatedElement Json property was not found in the Dependency: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningRelatedElement Json property was not found in the Dependency: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty))
@@ -722,7 +722,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningRelationship Json property was not found in the Dependency: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningRelationship Json property was not found in the Dependency: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("supplier"u8, out var supplierProperty))
@@ -742,7 +742,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the supplier Json property was not found in the Dependency: { Id }", dtoInstance.Id);
+ logger.LogDebug("the supplier Json property was not found in the Dependency: {Id}", dtoInstance.Id);
}
}
diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/EnumerationDefinitionDeSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/EnumerationDefinitionDeSerializer.cs
index 4ca247c1b..f0bc57b7a 100644
--- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/EnumerationDefinitionDeSerializer.cs
+++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/EnumerationDefinitionDeSerializer.cs
@@ -129,7 +129,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the aliasIds Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id);
+ logger.LogDebug("the aliasIds Json property was not found in the EnumerationDefinition: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty))
@@ -138,7 +138,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the declaredName Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id);
+ logger.LogDebug("the declaredName Json property was not found in the EnumerationDefinition: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty))
@@ -147,7 +147,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the declaredShortName Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id);
+ logger.LogDebug("the declaredShortName Json property was not found in the EnumerationDefinition: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty))
@@ -167,7 +167,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the differencingType Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id);
+ logger.LogDebug("the differencingType Json property was not found in the EnumerationDefinition: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty))
@@ -187,7 +187,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the directedFeature Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id);
+ logger.LogDebug("the directedFeature Json property was not found in the EnumerationDefinition: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty))
@@ -207,7 +207,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the directedUsage Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id);
+ logger.LogDebug("the directedUsage Json property was not found in the EnumerationDefinition: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty))
@@ -227,7 +227,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the documentation Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id);
+ logger.LogDebug("the documentation Json property was not found in the EnumerationDefinition: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty))
@@ -241,7 +241,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the elementId Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id);
+ logger.LogDebug("the elementId Json property was not found in the EnumerationDefinition: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty))
@@ -261,7 +261,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the endFeature Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id);
+ logger.LogDebug("the endFeature Json property was not found in the EnumerationDefinition: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("enumeratedValue"u8, out var enumeratedValueProperty))
@@ -281,7 +281,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the enumeratedValue Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id);
+ logger.LogDebug("the enumeratedValue Json property was not found in the EnumerationDefinition: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("feature"u8, out var featureProperty))
@@ -301,7 +301,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the feature Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id);
+ logger.LogDebug("the feature Json property was not found in the EnumerationDefinition: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty))
@@ -321,7 +321,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the featureMembership Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id);
+ logger.LogDebug("the featureMembership Json property was not found in the EnumerationDefinition: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty))
@@ -341,7 +341,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the importedMembership Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id);
+ logger.LogDebug("the importedMembership Json property was not found in the EnumerationDefinition: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty))
@@ -361,7 +361,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the inheritedFeature Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id);
+ logger.LogDebug("the inheritedFeature Json property was not found in the EnumerationDefinition: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty))
@@ -381,7 +381,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the inheritedMembership Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id);
+ logger.LogDebug("the inheritedMembership Json property was not found in the EnumerationDefinition: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("input"u8, out var inputProperty))
@@ -401,7 +401,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the input Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id);
+ logger.LogDebug("the input Json property was not found in the EnumerationDefinition: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty))
@@ -421,7 +421,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the intersectingType Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id);
+ logger.LogDebug("the intersectingType Json property was not found in the EnumerationDefinition: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty))
@@ -433,7 +433,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isAbstract Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isAbstract Json property was not found in the EnumerationDefinition: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty))
@@ -445,7 +445,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isConjugated Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isConjugated Json property was not found in the EnumerationDefinition: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty))
@@ -457,7 +457,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isImpliedIncluded Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isImpliedIncluded Json property was not found in the EnumerationDefinition: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty))
@@ -469,7 +469,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isLibraryElement Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isLibraryElement Json property was not found in the EnumerationDefinition: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty))
@@ -481,7 +481,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isSufficient Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isSufficient Json property was not found in the EnumerationDefinition: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty))
@@ -493,7 +493,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isVariation Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isVariation Json property was not found in the EnumerationDefinition: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("member"u8, out var memberProperty))
@@ -513,7 +513,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the member Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id);
+ logger.LogDebug("the member Json property was not found in the EnumerationDefinition: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty))
@@ -533,7 +533,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the membership Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id);
+ logger.LogDebug("the membership Json property was not found in the EnumerationDefinition: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty))
@@ -557,7 +557,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the multiplicity Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id);
+ logger.LogDebug("the multiplicity Json property was not found in the EnumerationDefinition: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("name"u8, out var nameProperty))
@@ -566,7 +566,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the name Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id);
+ logger.LogDebug("the name Json property was not found in the EnumerationDefinition: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("output"u8, out var outputProperty))
@@ -586,7 +586,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the output Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id);
+ logger.LogDebug("the output Json property was not found in the EnumerationDefinition: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedAction"u8, out var ownedActionProperty))
@@ -606,7 +606,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedAction Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedAction Json property was not found in the EnumerationDefinition: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedAllocation"u8, out var ownedAllocationProperty))
@@ -626,7 +626,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedAllocation Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedAllocation Json property was not found in the EnumerationDefinition: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedAnalysisCase"u8, out var ownedAnalysisCaseProperty))
@@ -646,7 +646,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedAnalysisCase Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedAnalysisCase Json property was not found in the EnumerationDefinition: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty))
@@ -666,7 +666,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedAnnotation Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedAnnotation Json property was not found in the EnumerationDefinition: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedAttribute"u8, out var ownedAttributeProperty))
@@ -686,7 +686,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedAttribute Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedAttribute Json property was not found in the EnumerationDefinition: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedCalculation"u8, out var ownedCalculationProperty))
@@ -706,7 +706,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedCalculation Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedCalculation Json property was not found in the EnumerationDefinition: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedCase"u8, out var ownedCaseProperty))
@@ -726,7 +726,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedCase Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedCase Json property was not found in the EnumerationDefinition: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedConcern"u8, out var ownedConcernProperty))
@@ -746,7 +746,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedConcern Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedConcern Json property was not found in the EnumerationDefinition: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty))
@@ -770,7 +770,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedConjugator Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedConjugator Json property was not found in the EnumerationDefinition: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedConnection"u8, out var ownedConnectionProperty))
@@ -790,7 +790,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedConnection Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedConnection Json property was not found in the EnumerationDefinition: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedConstraint"u8, out var ownedConstraintProperty))
@@ -810,7 +810,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedConstraint Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedConstraint Json property was not found in the EnumerationDefinition: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty))
@@ -830,7 +830,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedDifferencing Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedDifferencing Json property was not found in the EnumerationDefinition: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty))
@@ -850,7 +850,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedDisjoining Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedDisjoining Json property was not found in the EnumerationDefinition: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty))
@@ -870,7 +870,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedElement Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedElement Json property was not found in the EnumerationDefinition: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty))
@@ -890,7 +890,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedEndFeature Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedEndFeature Json property was not found in the EnumerationDefinition: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedEnumeration"u8, out var ownedEnumerationProperty))
@@ -910,7 +910,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedEnumeration Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedEnumeration Json property was not found in the EnumerationDefinition: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty))
@@ -930,7 +930,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedFeature Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedFeature Json property was not found in the EnumerationDefinition: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty))
@@ -950,7 +950,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedFeatureMembership Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedFeatureMembership Json property was not found in the EnumerationDefinition: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedFlow"u8, out var ownedFlowProperty))
@@ -970,7 +970,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedFlow Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedFlow Json property was not found in the EnumerationDefinition: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty))
@@ -990,7 +990,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedImport Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedImport Json property was not found in the EnumerationDefinition: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedInterface"u8, out var ownedInterfaceProperty))
@@ -1010,7 +1010,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedInterface Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedInterface Json property was not found in the EnumerationDefinition: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty))
@@ -1030,7 +1030,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedIntersecting Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedIntersecting Json property was not found in the EnumerationDefinition: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedItem"u8, out var ownedItemProperty))
@@ -1050,7 +1050,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedItem Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedItem Json property was not found in the EnumerationDefinition: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty))
@@ -1070,7 +1070,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedMember Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedMember Json property was not found in the EnumerationDefinition: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty))
@@ -1090,7 +1090,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedMembership Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedMembership Json property was not found in the EnumerationDefinition: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedMetadata"u8, out var ownedMetadataProperty))
@@ -1110,7 +1110,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedMetadata Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedMetadata Json property was not found in the EnumerationDefinition: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedOccurrence"u8, out var ownedOccurrenceProperty))
@@ -1130,7 +1130,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedOccurrence Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedOccurrence Json property was not found in the EnumerationDefinition: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedPart"u8, out var ownedPartProperty))
@@ -1150,7 +1150,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedPart Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedPart Json property was not found in the EnumerationDefinition: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedPort"u8, out var ownedPortProperty))
@@ -1170,7 +1170,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedPort Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedPort Json property was not found in the EnumerationDefinition: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedReference"u8, out var ownedReferenceProperty))
@@ -1190,7 +1190,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedReference Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedReference Json property was not found in the EnumerationDefinition: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty))
@@ -1210,7 +1210,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedRelationship Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedRelationship Json property was not found in the EnumerationDefinition: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedRendering"u8, out var ownedRenderingProperty))
@@ -1230,7 +1230,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedRendering Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedRendering Json property was not found in the EnumerationDefinition: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedRequirement"u8, out var ownedRequirementProperty))
@@ -1250,7 +1250,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedRequirement Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedRequirement Json property was not found in the EnumerationDefinition: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty))
@@ -1270,7 +1270,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedSpecialization Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedSpecialization Json property was not found in the EnumerationDefinition: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedState"u8, out var ownedStateProperty))
@@ -1290,7 +1290,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedState Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedState Json property was not found in the EnumerationDefinition: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedSubclassification"u8, out var ownedSubclassificationProperty))
@@ -1310,7 +1310,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedSubclassification Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedSubclassification Json property was not found in the EnumerationDefinition: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedTransition"u8, out var ownedTransitionProperty))
@@ -1330,7 +1330,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedTransition Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedTransition Json property was not found in the EnumerationDefinition: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty))
@@ -1350,7 +1350,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedUnioning Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedUnioning Json property was not found in the EnumerationDefinition: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedUsage"u8, out var ownedUsageProperty))
@@ -1370,7 +1370,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedUsage Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedUsage Json property was not found in the EnumerationDefinition: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedUseCase"u8, out var ownedUseCaseProperty))
@@ -1390,7 +1390,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedUseCase Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedUseCase Json property was not found in the EnumerationDefinition: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedVerificationCase"u8, out var ownedVerificationCaseProperty))
@@ -1410,7 +1410,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedVerificationCase Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedVerificationCase Json property was not found in the EnumerationDefinition: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedView"u8, out var ownedViewProperty))
@@ -1430,7 +1430,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedView Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedView Json property was not found in the EnumerationDefinition: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedViewpoint"u8, out var ownedViewpointProperty))
@@ -1450,7 +1450,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedViewpoint Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedViewpoint Json property was not found in the EnumerationDefinition: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty))
@@ -1474,7 +1474,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owner Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owner Json property was not found in the EnumerationDefinition: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty))
@@ -1498,7 +1498,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningMembership Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningMembership Json property was not found in the EnumerationDefinition: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty))
@@ -1522,7 +1522,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningNamespace Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningNamespace Json property was not found in the EnumerationDefinition: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty))
@@ -1546,7 +1546,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningRelationship Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningRelationship Json property was not found in the EnumerationDefinition: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty))
@@ -1555,7 +1555,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the qualifiedName Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id);
+ logger.LogDebug("the qualifiedName Json property was not found in the EnumerationDefinition: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty))
@@ -1564,7 +1564,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the shortName Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id);
+ logger.LogDebug("the shortName Json property was not found in the EnumerationDefinition: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty))
@@ -1584,7 +1584,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the textualRepresentation Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id);
+ logger.LogDebug("the textualRepresentation Json property was not found in the EnumerationDefinition: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty))
@@ -1604,7 +1604,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the unioningType Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id);
+ logger.LogDebug("the unioningType Json property was not found in the EnumerationDefinition: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("usage"u8, out var usageProperty))
@@ -1624,7 +1624,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the usage Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id);
+ logger.LogDebug("the usage Json property was not found in the EnumerationDefinition: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("variantMembership"u8, out var variantMembershipProperty))
@@ -1644,7 +1644,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the variantMembership Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id);
+ logger.LogDebug("the variantMembership Json property was not found in the EnumerationDefinition: {Id}", dtoInstance.Id);
}
}
@@ -1678,7 +1678,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the aliasIds Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id);
+ logger.LogDebug("the aliasIds Json property was not found in the EnumerationDefinition: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty))
@@ -1687,7 +1687,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the declaredName Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id);
+ logger.LogDebug("the declaredName Json property was not found in the EnumerationDefinition: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty))
@@ -1696,7 +1696,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the declaredShortName Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id);
+ logger.LogDebug("the declaredShortName Json property was not found in the EnumerationDefinition: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty))
@@ -1710,7 +1710,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the elementId Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id);
+ logger.LogDebug("the elementId Json property was not found in the EnumerationDefinition: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty))
@@ -1722,7 +1722,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isAbstract Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isAbstract Json property was not found in the EnumerationDefinition: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty))
@@ -1734,7 +1734,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isImpliedIncluded Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isImpliedIncluded Json property was not found in the EnumerationDefinition: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty))
@@ -1746,7 +1746,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isSufficient Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isSufficient Json property was not found in the EnumerationDefinition: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty))
@@ -1758,7 +1758,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isVariation Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isVariation Json property was not found in the EnumerationDefinition: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty))
@@ -1778,7 +1778,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedRelationship Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedRelationship Json property was not found in the EnumerationDefinition: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty))
@@ -1802,7 +1802,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningRelationship Json property was not found in the EnumerationDefinition: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningRelationship Json property was not found in the EnumerationDefinition: {Id}", dtoInstance.Id);
}
}
diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/FeatureDeSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/FeatureDeSerializer.cs
index 3a5ec4d32..728a9e05a 100644
--- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/FeatureDeSerializer.cs
+++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/FeatureDeSerializer.cs
@@ -129,7 +129,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the aliasIds Json property was not found in the Feature: { Id }", dtoInstance.Id);
+ logger.LogDebug("the aliasIds Json property was not found in the Feature: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty))
@@ -149,7 +149,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the chainingFeature Json property was not found in the Feature: { Id }", dtoInstance.Id);
+ logger.LogDebug("the chainingFeature Json property was not found in the Feature: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty))
@@ -173,7 +173,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the crossFeature Json property was not found in the Feature: { Id }", dtoInstance.Id);
+ logger.LogDebug("the crossFeature Json property was not found in the Feature: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty))
@@ -182,7 +182,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the declaredName Json property was not found in the Feature: { Id }", dtoInstance.Id);
+ logger.LogDebug("the declaredName Json property was not found in the Feature: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty))
@@ -191,7 +191,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the declaredShortName Json property was not found in the Feature: { Id }", dtoInstance.Id);
+ logger.LogDebug("the declaredShortName Json property was not found in the Feature: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty))
@@ -211,7 +211,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the differencingType Json property was not found in the Feature: { Id }", dtoInstance.Id);
+ logger.LogDebug("the differencingType Json property was not found in the Feature: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty))
@@ -231,7 +231,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the directedFeature Json property was not found in the Feature: { Id }", dtoInstance.Id);
+ logger.LogDebug("the directedFeature Json property was not found in the Feature: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("direction"u8, out var directionProperty))
@@ -240,7 +240,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the direction Json property was not found in the Feature: { Id }", dtoInstance.Id);
+ logger.LogDebug("the direction Json property was not found in the Feature: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty))
@@ -260,7 +260,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the documentation Json property was not found in the Feature: { Id }", dtoInstance.Id);
+ logger.LogDebug("the documentation Json property was not found in the Feature: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty))
@@ -274,7 +274,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the elementId Json property was not found in the Feature: { Id }", dtoInstance.Id);
+ logger.LogDebug("the elementId Json property was not found in the Feature: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty))
@@ -294,7 +294,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the endFeature Json property was not found in the Feature: { Id }", dtoInstance.Id);
+ logger.LogDebug("the endFeature Json property was not found in the Feature: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty))
@@ -318,7 +318,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the endOwningType Json property was not found in the Feature: { Id }", dtoInstance.Id);
+ logger.LogDebug("the endOwningType Json property was not found in the Feature: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("feature"u8, out var featureProperty))
@@ -338,7 +338,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the feature Json property was not found in the Feature: { Id }", dtoInstance.Id);
+ logger.LogDebug("the feature Json property was not found in the Feature: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty))
@@ -358,7 +358,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the featureMembership Json property was not found in the Feature: { Id }", dtoInstance.Id);
+ logger.LogDebug("the featureMembership Json property was not found in the Feature: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("featureTarget"u8, out var featureTargetProperty))
@@ -383,7 +383,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the featureTarget Json property was not found in the Feature: { Id }", dtoInstance.Id);
+ logger.LogDebug("the featureTarget Json property was not found in the Feature: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("featuringType"u8, out var featuringTypeProperty))
@@ -403,7 +403,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the featuringType Json property was not found in the Feature: { Id }", dtoInstance.Id);
+ logger.LogDebug("the featuringType Json property was not found in the Feature: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty))
@@ -423,7 +423,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the importedMembership Json property was not found in the Feature: { Id }", dtoInstance.Id);
+ logger.LogDebug("the importedMembership Json property was not found in the Feature: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty))
@@ -443,7 +443,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the inheritedFeature Json property was not found in the Feature: { Id }", dtoInstance.Id);
+ logger.LogDebug("the inheritedFeature Json property was not found in the Feature: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty))
@@ -463,7 +463,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the inheritedMembership Json property was not found in the Feature: { Id }", dtoInstance.Id);
+ logger.LogDebug("the inheritedMembership Json property was not found in the Feature: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("input"u8, out var inputProperty))
@@ -483,7 +483,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the input Json property was not found in the Feature: { Id }", dtoInstance.Id);
+ logger.LogDebug("the input Json property was not found in the Feature: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty))
@@ -503,7 +503,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the intersectingType Json property was not found in the Feature: { Id }", dtoInstance.Id);
+ logger.LogDebug("the intersectingType Json property was not found in the Feature: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty))
@@ -515,7 +515,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isAbstract Json property was not found in the Feature: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isAbstract Json property was not found in the Feature: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty))
@@ -527,7 +527,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isComposite Json property was not found in the Feature: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isComposite Json property was not found in the Feature: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty))
@@ -539,7 +539,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isConjugated Json property was not found in the Feature: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isConjugated Json property was not found in the Feature: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty))
@@ -551,7 +551,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isConstant Json property was not found in the Feature: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isConstant Json property was not found in the Feature: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty))
@@ -563,7 +563,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isDerived Json property was not found in the Feature: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isDerived Json property was not found in the Feature: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty))
@@ -575,7 +575,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isEnd Json property was not found in the Feature: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isEnd Json property was not found in the Feature: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty))
@@ -587,7 +587,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isImpliedIncluded Json property was not found in the Feature: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isImpliedIncluded Json property was not found in the Feature: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty))
@@ -599,7 +599,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isLibraryElement Json property was not found in the Feature: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isLibraryElement Json property was not found in the Feature: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty))
@@ -611,7 +611,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isOrdered Json property was not found in the Feature: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isOrdered Json property was not found in the Feature: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty))
@@ -623,7 +623,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isPortion Json property was not found in the Feature: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isPortion Json property was not found in the Feature: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty))
@@ -635,7 +635,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isSufficient Json property was not found in the Feature: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isSufficient Json property was not found in the Feature: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty))
@@ -647,7 +647,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isUnique Json property was not found in the Feature: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isUnique Json property was not found in the Feature: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty))
@@ -659,7 +659,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isVariable Json property was not found in the Feature: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isVariable Json property was not found in the Feature: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("member"u8, out var memberProperty))
@@ -679,7 +679,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the member Json property was not found in the Feature: { Id }", dtoInstance.Id);
+ logger.LogDebug("the member Json property was not found in the Feature: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty))
@@ -699,7 +699,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the membership Json property was not found in the Feature: { Id }", dtoInstance.Id);
+ logger.LogDebug("the membership Json property was not found in the Feature: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty))
@@ -723,7 +723,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the multiplicity Json property was not found in the Feature: { Id }", dtoInstance.Id);
+ logger.LogDebug("the multiplicity Json property was not found in the Feature: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("name"u8, out var nameProperty))
@@ -732,7 +732,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the name Json property was not found in the Feature: { Id }", dtoInstance.Id);
+ logger.LogDebug("the name Json property was not found in the Feature: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("output"u8, out var outputProperty))
@@ -752,7 +752,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the output Json property was not found in the Feature: { Id }", dtoInstance.Id);
+ logger.LogDebug("the output Json property was not found in the Feature: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty))
@@ -772,7 +772,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedAnnotation Json property was not found in the Feature: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedAnnotation Json property was not found in the Feature: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty))
@@ -796,7 +796,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedConjugator Json property was not found in the Feature: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedConjugator Json property was not found in the Feature: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedCrossSubsetting"u8, out var ownedCrossSubsettingProperty))
@@ -820,7 +820,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedCrossSubsetting Json property was not found in the Feature: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedCrossSubsetting Json property was not found in the Feature: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty))
@@ -840,7 +840,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedDifferencing Json property was not found in the Feature: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedDifferencing Json property was not found in the Feature: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty))
@@ -860,7 +860,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedDisjoining Json property was not found in the Feature: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedDisjoining Json property was not found in the Feature: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty))
@@ -880,7 +880,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedElement Json property was not found in the Feature: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedElement Json property was not found in the Feature: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty))
@@ -900,7 +900,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedEndFeature Json property was not found in the Feature: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedEndFeature Json property was not found in the Feature: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty))
@@ -920,7 +920,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedFeature Json property was not found in the Feature: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedFeature Json property was not found in the Feature: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedFeatureChaining"u8, out var ownedFeatureChainingProperty))
@@ -940,7 +940,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedFeatureChaining Json property was not found in the Feature: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedFeatureChaining Json property was not found in the Feature: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedFeatureInverting"u8, out var ownedFeatureInvertingProperty))
@@ -960,7 +960,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedFeatureInverting Json property was not found in the Feature: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedFeatureInverting Json property was not found in the Feature: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty))
@@ -980,7 +980,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedFeatureMembership Json property was not found in the Feature: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedFeatureMembership Json property was not found in the Feature: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty))
@@ -1000,7 +1000,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedImport Json property was not found in the Feature: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedImport Json property was not found in the Feature: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty))
@@ -1020,7 +1020,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedIntersecting Json property was not found in the Feature: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedIntersecting Json property was not found in the Feature: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty))
@@ -1040,7 +1040,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedMember Json property was not found in the Feature: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedMember Json property was not found in the Feature: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty))
@@ -1060,7 +1060,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedMembership Json property was not found in the Feature: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedMembership Json property was not found in the Feature: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedRedefinition"u8, out var ownedRedefinitionProperty))
@@ -1080,7 +1080,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedRedefinition Json property was not found in the Feature: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedRedefinition Json property was not found in the Feature: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedReferenceSubsetting"u8, out var ownedReferenceSubsettingProperty))
@@ -1104,7 +1104,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the Feature: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the Feature: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty))
@@ -1124,7 +1124,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedRelationship Json property was not found in the Feature: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedRelationship Json property was not found in the Feature: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty))
@@ -1144,7 +1144,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedSpecialization Json property was not found in the Feature: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedSpecialization Json property was not found in the Feature: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedSubsetting"u8, out var ownedSubsettingProperty))
@@ -1164,7 +1164,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedSubsetting Json property was not found in the Feature: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedSubsetting Json property was not found in the Feature: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedTypeFeaturing"u8, out var ownedTypeFeaturingProperty))
@@ -1184,7 +1184,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedTypeFeaturing Json property was not found in the Feature: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedTypeFeaturing Json property was not found in the Feature: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedTyping"u8, out var ownedTypingProperty))
@@ -1204,7 +1204,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedTyping Json property was not found in the Feature: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedTyping Json property was not found in the Feature: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty))
@@ -1224,7 +1224,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedUnioning Json property was not found in the Feature: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedUnioning Json property was not found in the Feature: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty))
@@ -1248,7 +1248,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owner Json property was not found in the Feature: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owner Json property was not found in the Feature: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningFeatureMembership"u8, out var owningFeatureMembershipProperty))
@@ -1272,7 +1272,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningFeatureMembership Json property was not found in the Feature: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningFeatureMembership Json property was not found in the Feature: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty))
@@ -1296,7 +1296,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningMembership Json property was not found in the Feature: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningMembership Json property was not found in the Feature: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty))
@@ -1320,7 +1320,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningNamespace Json property was not found in the Feature: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningNamespace Json property was not found in the Feature: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty))
@@ -1344,7 +1344,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningRelationship Json property was not found in the Feature: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningRelationship Json property was not found in the Feature: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty))
@@ -1368,7 +1368,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningType Json property was not found in the Feature: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningType Json property was not found in the Feature: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty))
@@ -1377,7 +1377,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the qualifiedName Json property was not found in the Feature: { Id }", dtoInstance.Id);
+ logger.LogDebug("the qualifiedName Json property was not found in the Feature: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty))
@@ -1386,7 +1386,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the shortName Json property was not found in the Feature: { Id }", dtoInstance.Id);
+ logger.LogDebug("the shortName Json property was not found in the Feature: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty))
@@ -1406,7 +1406,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the textualRepresentation Json property was not found in the Feature: { Id }", dtoInstance.Id);
+ logger.LogDebug("the textualRepresentation Json property was not found in the Feature: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("type"u8, out var typeProperty))
@@ -1426,7 +1426,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the type Json property was not found in the Feature: { Id }", dtoInstance.Id);
+ logger.LogDebug("the type Json property was not found in the Feature: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty))
@@ -1446,7 +1446,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the unioningType Json property was not found in the Feature: { Id }", dtoInstance.Id);
+ logger.LogDebug("the unioningType Json property was not found in the Feature: {Id}", dtoInstance.Id);
}
}
@@ -1480,7 +1480,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the aliasIds Json property was not found in the Feature: { Id }", dtoInstance.Id);
+ logger.LogDebug("the aliasIds Json property was not found in the Feature: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty))
@@ -1489,7 +1489,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the declaredName Json property was not found in the Feature: { Id }", dtoInstance.Id);
+ logger.LogDebug("the declaredName Json property was not found in the Feature: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty))
@@ -1498,7 +1498,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the declaredShortName Json property was not found in the Feature: { Id }", dtoInstance.Id);
+ logger.LogDebug("the declaredShortName Json property was not found in the Feature: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("direction"u8, out var directionProperty))
@@ -1507,7 +1507,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the direction Json property was not found in the Feature: { Id }", dtoInstance.Id);
+ logger.LogDebug("the direction Json property was not found in the Feature: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty))
@@ -1521,7 +1521,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the elementId Json property was not found in the Feature: { Id }", dtoInstance.Id);
+ logger.LogDebug("the elementId Json property was not found in the Feature: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty))
@@ -1533,7 +1533,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isAbstract Json property was not found in the Feature: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isAbstract Json property was not found in the Feature: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty))
@@ -1545,7 +1545,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isComposite Json property was not found in the Feature: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isComposite Json property was not found in the Feature: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty))
@@ -1557,7 +1557,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isConstant Json property was not found in the Feature: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isConstant Json property was not found in the Feature: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty))
@@ -1569,7 +1569,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isDerived Json property was not found in the Feature: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isDerived Json property was not found in the Feature: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty))
@@ -1581,7 +1581,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isEnd Json property was not found in the Feature: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isEnd Json property was not found in the Feature: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty))
@@ -1593,7 +1593,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isImpliedIncluded Json property was not found in the Feature: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isImpliedIncluded Json property was not found in the Feature: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty))
@@ -1605,7 +1605,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isOrdered Json property was not found in the Feature: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isOrdered Json property was not found in the Feature: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty))
@@ -1617,7 +1617,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isPortion Json property was not found in the Feature: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isPortion Json property was not found in the Feature: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty))
@@ -1629,7 +1629,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isSufficient Json property was not found in the Feature: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isSufficient Json property was not found in the Feature: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty))
@@ -1641,7 +1641,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isUnique Json property was not found in the Feature: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isUnique Json property was not found in the Feature: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty))
@@ -1653,7 +1653,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isVariable Json property was not found in the Feature: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isVariable Json property was not found in the Feature: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty))
@@ -1673,7 +1673,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedRelationship Json property was not found in the Feature: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedRelationship Json property was not found in the Feature: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty))
@@ -1697,7 +1697,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningRelationship Json property was not found in the Feature: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningRelationship Json property was not found in the Feature: {Id}", dtoInstance.Id);
}
}
diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/FeatureTypingDeSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/FeatureTypingDeSerializer.cs
index e0358dfe7..497a54311 100644
--- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/FeatureTypingDeSerializer.cs
+++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/FeatureTypingDeSerializer.cs
@@ -129,7 +129,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the aliasIds Json property was not found in the FeatureTyping: { Id }", dtoInstance.Id);
+ logger.LogDebug("the aliasIds Json property was not found in the FeatureTyping: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty))
@@ -138,7 +138,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the declaredName Json property was not found in the FeatureTyping: { Id }", dtoInstance.Id);
+ logger.LogDebug("the declaredName Json property was not found in the FeatureTyping: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty))
@@ -147,7 +147,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the declaredShortName Json property was not found in the FeatureTyping: { Id }", dtoInstance.Id);
+ logger.LogDebug("the declaredShortName Json property was not found in the FeatureTyping: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty))
@@ -167,7 +167,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the documentation Json property was not found in the FeatureTyping: { Id }", dtoInstance.Id);
+ logger.LogDebug("the documentation Json property was not found in the FeatureTyping: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty))
@@ -181,7 +181,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the elementId Json property was not found in the FeatureTyping: { Id }", dtoInstance.Id);
+ logger.LogDebug("the elementId Json property was not found in the FeatureTyping: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isImplied"u8, out var isImpliedProperty))
@@ -193,7 +193,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isImplied Json property was not found in the FeatureTyping: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isImplied Json property was not found in the FeatureTyping: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty))
@@ -205,7 +205,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isImpliedIncluded Json property was not found in the FeatureTyping: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isImpliedIncluded Json property was not found in the FeatureTyping: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty))
@@ -217,7 +217,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isLibraryElement Json property was not found in the FeatureTyping: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isLibraryElement Json property was not found in the FeatureTyping: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("name"u8, out var nameProperty))
@@ -226,7 +226,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the name Json property was not found in the FeatureTyping: { Id }", dtoInstance.Id);
+ logger.LogDebug("the name Json property was not found in the FeatureTyping: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty))
@@ -246,7 +246,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedAnnotation Json property was not found in the FeatureTyping: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedAnnotation Json property was not found in the FeatureTyping: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty))
@@ -266,7 +266,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedElement Json property was not found in the FeatureTyping: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedElement Json property was not found in the FeatureTyping: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty))
@@ -286,7 +286,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedRelatedElement Json property was not found in the FeatureTyping: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedRelatedElement Json property was not found in the FeatureTyping: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty))
@@ -306,7 +306,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedRelationship Json property was not found in the FeatureTyping: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedRelationship Json property was not found in the FeatureTyping: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty))
@@ -330,7 +330,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owner Json property was not found in the FeatureTyping: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owner Json property was not found in the FeatureTyping: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningFeature"u8, out var owningFeatureProperty))
@@ -354,7 +354,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningFeature Json property was not found in the FeatureTyping: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningFeature Json property was not found in the FeatureTyping: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty))
@@ -378,7 +378,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningMembership Json property was not found in the FeatureTyping: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningMembership Json property was not found in the FeatureTyping: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty))
@@ -402,7 +402,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningNamespace Json property was not found in the FeatureTyping: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningNamespace Json property was not found in the FeatureTyping: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty))
@@ -426,7 +426,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningRelatedElement Json property was not found in the FeatureTyping: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningRelatedElement Json property was not found in the FeatureTyping: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty))
@@ -450,7 +450,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningRelationship Json property was not found in the FeatureTyping: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningRelationship Json property was not found in the FeatureTyping: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty))
@@ -459,7 +459,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the qualifiedName Json property was not found in the FeatureTyping: { Id }", dtoInstance.Id);
+ logger.LogDebug("the qualifiedName Json property was not found in the FeatureTyping: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty))
@@ -479,7 +479,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the relatedElement Json property was not found in the FeatureTyping: { Id }", dtoInstance.Id);
+ logger.LogDebug("the relatedElement Json property was not found in the FeatureTyping: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty))
@@ -488,7 +488,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the shortName Json property was not found in the FeatureTyping: { Id }", dtoInstance.Id);
+ logger.LogDebug("the shortName Json property was not found in the FeatureTyping: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty))
@@ -508,7 +508,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the textualRepresentation Json property was not found in the FeatureTyping: { Id }", dtoInstance.Id);
+ logger.LogDebug("the textualRepresentation Json property was not found in the FeatureTyping: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("type"u8, out var typeProperty))
@@ -533,7 +533,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the type Json property was not found in the FeatureTyping: { Id }", dtoInstance.Id);
+ logger.LogDebug("the type Json property was not found in the FeatureTyping: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("typedFeature"u8, out var typedFeatureProperty))
@@ -558,7 +558,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the typedFeature Json property was not found in the FeatureTyping: { Id }", dtoInstance.Id);
+ logger.LogDebug("the typedFeature Json property was not found in the FeatureTyping: {Id}", dtoInstance.Id);
}
}
@@ -592,7 +592,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the aliasIds Json property was not found in the FeatureTyping: { Id }", dtoInstance.Id);
+ logger.LogDebug("the aliasIds Json property was not found in the FeatureTyping: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty))
@@ -601,7 +601,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the declaredName Json property was not found in the FeatureTyping: { Id }", dtoInstance.Id);
+ logger.LogDebug("the declaredName Json property was not found in the FeatureTyping: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty))
@@ -610,7 +610,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the declaredShortName Json property was not found in the FeatureTyping: { Id }", dtoInstance.Id);
+ logger.LogDebug("the declaredShortName Json property was not found in the FeatureTyping: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty))
@@ -624,7 +624,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the elementId Json property was not found in the FeatureTyping: { Id }", dtoInstance.Id);
+ logger.LogDebug("the elementId Json property was not found in the FeatureTyping: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isImplied"u8, out var isImpliedProperty))
@@ -636,7 +636,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isImplied Json property was not found in the FeatureTyping: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isImplied Json property was not found in the FeatureTyping: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty))
@@ -648,7 +648,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isImpliedIncluded Json property was not found in the FeatureTyping: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isImpliedIncluded Json property was not found in the FeatureTyping: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty))
@@ -668,7 +668,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedRelatedElement Json property was not found in the FeatureTyping: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedRelatedElement Json property was not found in the FeatureTyping: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty))
@@ -688,7 +688,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedRelationship Json property was not found in the FeatureTyping: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedRelationship Json property was not found in the FeatureTyping: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty))
@@ -712,7 +712,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningRelatedElement Json property was not found in the FeatureTyping: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningRelatedElement Json property was not found in the FeatureTyping: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty))
@@ -736,7 +736,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningRelationship Json property was not found in the FeatureTyping: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningRelationship Json property was not found in the FeatureTyping: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("type"u8, out var typeProperty))
@@ -761,7 +761,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the type Json property was not found in the FeatureTyping: { Id }", dtoInstance.Id);
+ logger.LogDebug("the type Json property was not found in the FeatureTyping: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("typedFeature"u8, out var typedFeatureProperty))
@@ -786,7 +786,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the typedFeature Json property was not found in the FeatureTyping: { Id }", dtoInstance.Id);
+ logger.LogDebug("the typedFeature Json property was not found in the FeatureTyping: {Id}", dtoInstance.Id);
}
}
diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/FlowDeSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/FlowDeSerializer.cs
index 4e3d0852b..08a0df40b 100644
--- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/FlowDeSerializer.cs
+++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/FlowDeSerializer.cs
@@ -129,7 +129,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the aliasIds Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the aliasIds Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty))
@@ -149,7 +149,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the chainingFeature Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the chainingFeature Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("connectorEnd"u8, out var connectorEndProperty))
@@ -169,7 +169,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the connectorEnd Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the connectorEnd Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty))
@@ -193,7 +193,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the crossFeature Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the crossFeature Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty))
@@ -202,7 +202,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the declaredName Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the declaredName Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty))
@@ -211,7 +211,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the declaredShortName Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the declaredShortName Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("defaultFeaturingType"u8, out var defaultFeaturingTypeProperty))
@@ -235,7 +235,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the defaultFeaturingType Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the defaultFeaturingType Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty))
@@ -255,7 +255,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the differencingType Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the differencingType Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("direction"u8, out var directionProperty))
@@ -264,7 +264,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the direction Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the direction Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty))
@@ -284,7 +284,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the documentation Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the documentation Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty))
@@ -298,7 +298,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the elementId Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the elementId Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty))
@@ -322,7 +322,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the endOwningType Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the endOwningType Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("feature"u8, out var featureProperty))
@@ -342,7 +342,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the feature Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the feature Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty))
@@ -362,7 +362,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the featureMembership Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the featureMembership Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("featureTarget"u8, out var featureTargetProperty))
@@ -387,7 +387,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the featureTarget Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the featureTarget Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("featuringType"u8, out var featuringTypeProperty))
@@ -407,7 +407,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the featuringType Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the featuringType Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("flowEnd"u8, out var flowEndProperty))
@@ -427,7 +427,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the flowEnd Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the flowEnd Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty))
@@ -447,7 +447,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the importedMembership Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the importedMembership Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty))
@@ -467,7 +467,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the inheritedFeature Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the inheritedFeature Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty))
@@ -487,7 +487,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the inheritedMembership Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the inheritedMembership Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("input"u8, out var inputProperty))
@@ -507,7 +507,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the input Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the input Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("interaction"u8, out var interactionProperty))
@@ -527,7 +527,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the interaction Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the interaction Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty))
@@ -547,7 +547,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the intersectingType Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the intersectingType Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty))
@@ -559,7 +559,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isAbstract Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isAbstract Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty))
@@ -571,7 +571,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isComposite Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isComposite Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty))
@@ -583,7 +583,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isConjugated Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isConjugated Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty))
@@ -595,7 +595,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isConstant Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isConstant Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty))
@@ -607,7 +607,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isDerived Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isDerived Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty))
@@ -619,7 +619,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isEnd Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isEnd Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isImplied"u8, out var isImpliedProperty))
@@ -631,7 +631,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isImplied Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isImplied Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty))
@@ -643,7 +643,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isImpliedIncluded Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isImpliedIncluded Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty))
@@ -655,7 +655,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isLibraryElement Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isLibraryElement Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty))
@@ -667,7 +667,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isOrdered Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isOrdered Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty))
@@ -679,7 +679,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isPortion Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isPortion Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty))
@@ -691,7 +691,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isSufficient Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isSufficient Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty))
@@ -703,7 +703,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isUnique Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isUnique Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty))
@@ -715,7 +715,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isVariable Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isVariable Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("member"u8, out var memberProperty))
@@ -735,7 +735,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the member Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the member Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty))
@@ -755,7 +755,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the membership Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the membership Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty))
@@ -779,7 +779,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the multiplicity Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the multiplicity Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("name"u8, out var nameProperty))
@@ -788,7 +788,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the name Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the name Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("output"u8, out var outputProperty))
@@ -808,7 +808,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the output Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the output Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty))
@@ -828,7 +828,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedAnnotation Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedAnnotation Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty))
@@ -852,7 +852,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedConjugator Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedConjugator Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedCrossSubsetting"u8, out var ownedCrossSubsettingProperty))
@@ -876,7 +876,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedCrossSubsetting Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedCrossSubsetting Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty))
@@ -896,7 +896,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedDifferencing Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedDifferencing Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty))
@@ -916,7 +916,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedDisjoining Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedDisjoining Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty))
@@ -936,7 +936,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedElement Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedElement Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty))
@@ -956,7 +956,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedEndFeature Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedEndFeature Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty))
@@ -976,7 +976,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedFeature Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedFeature Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedFeatureChaining"u8, out var ownedFeatureChainingProperty))
@@ -996,7 +996,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedFeatureChaining Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedFeatureChaining Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedFeatureInverting"u8, out var ownedFeatureInvertingProperty))
@@ -1016,7 +1016,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedFeatureInverting Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedFeatureInverting Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty))
@@ -1036,7 +1036,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedFeatureMembership Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedFeatureMembership Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty))
@@ -1056,7 +1056,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedImport Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedImport Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty))
@@ -1076,7 +1076,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedIntersecting Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedIntersecting Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty))
@@ -1096,7 +1096,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedMember Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedMember Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty))
@@ -1116,7 +1116,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedMembership Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedMembership Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedRedefinition"u8, out var ownedRedefinitionProperty))
@@ -1136,7 +1136,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedRedefinition Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedRedefinition Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedReferenceSubsetting"u8, out var ownedReferenceSubsettingProperty))
@@ -1160,7 +1160,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty))
@@ -1180,7 +1180,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedRelatedElement Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedRelatedElement Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty))
@@ -1200,7 +1200,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedRelationship Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedRelationship Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty))
@@ -1220,7 +1220,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedSpecialization Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedSpecialization Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedSubsetting"u8, out var ownedSubsettingProperty))
@@ -1240,7 +1240,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedSubsetting Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedSubsetting Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedTypeFeaturing"u8, out var ownedTypeFeaturingProperty))
@@ -1260,7 +1260,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedTypeFeaturing Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedTypeFeaturing Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedTyping"u8, out var ownedTypingProperty))
@@ -1280,7 +1280,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedTyping Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedTyping Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty))
@@ -1300,7 +1300,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedUnioning Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedUnioning Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty))
@@ -1324,7 +1324,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owner Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owner Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningFeatureMembership"u8, out var owningFeatureMembershipProperty))
@@ -1348,7 +1348,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningFeatureMembership Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningFeatureMembership Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty))
@@ -1372,7 +1372,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningMembership Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningMembership Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty))
@@ -1396,7 +1396,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningNamespace Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningNamespace Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty))
@@ -1420,7 +1420,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningRelatedElement Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningRelatedElement Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty))
@@ -1444,7 +1444,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningRelationship Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningRelationship Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty))
@@ -1468,7 +1468,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningType Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningType Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("parameter"u8, out var parameterProperty))
@@ -1488,7 +1488,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the parameter Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the parameter Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("payloadFeature"u8, out var payloadFeatureProperty))
@@ -1512,7 +1512,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the payloadFeature Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the payloadFeature Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("payloadType"u8, out var payloadTypeProperty))
@@ -1532,7 +1532,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the payloadType Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the payloadType Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty))
@@ -1541,7 +1541,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the qualifiedName Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the qualifiedName Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("relatedFeature"u8, out var relatedFeatureProperty))
@@ -1561,7 +1561,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the relatedFeature Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the relatedFeature Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty))
@@ -1570,7 +1570,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the shortName Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the shortName Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("sourceFeature"u8, out var sourceFeatureProperty))
@@ -1594,7 +1594,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the sourceFeature Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the sourceFeature Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("sourceOutputFeature"u8, out var sourceOutputFeatureProperty))
@@ -1618,7 +1618,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the sourceOutputFeature Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the sourceOutputFeature Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("targetFeature"u8, out var targetFeatureProperty))
@@ -1638,7 +1638,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the targetFeature Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the targetFeature Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("targetInputFeature"u8, out var targetInputFeatureProperty))
@@ -1662,7 +1662,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the targetInputFeature Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the targetInputFeature Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty))
@@ -1682,7 +1682,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the textualRepresentation Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the textualRepresentation Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty))
@@ -1702,7 +1702,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the unioningType Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the unioningType Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
}
@@ -1736,7 +1736,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the aliasIds Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the aliasIds Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty))
@@ -1745,7 +1745,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the declaredName Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the declaredName Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty))
@@ -1754,7 +1754,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the declaredShortName Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the declaredShortName Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("direction"u8, out var directionProperty))
@@ -1763,7 +1763,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the direction Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the direction Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty))
@@ -1777,7 +1777,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the elementId Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the elementId Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty))
@@ -1789,7 +1789,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isAbstract Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isAbstract Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty))
@@ -1801,7 +1801,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isComposite Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isComposite Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty))
@@ -1813,7 +1813,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isConstant Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isConstant Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty))
@@ -1825,7 +1825,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isDerived Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isDerived Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty))
@@ -1837,7 +1837,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isEnd Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isEnd Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isImplied"u8, out var isImpliedProperty))
@@ -1849,7 +1849,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isImplied Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isImplied Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty))
@@ -1861,7 +1861,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isImpliedIncluded Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isImpliedIncluded Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty))
@@ -1873,7 +1873,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isOrdered Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isOrdered Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty))
@@ -1885,7 +1885,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isPortion Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isPortion Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty))
@@ -1897,7 +1897,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isSufficient Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isSufficient Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty))
@@ -1909,7 +1909,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isUnique Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isUnique Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty))
@@ -1921,7 +1921,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isVariable Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isVariable Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty))
@@ -1941,7 +1941,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedRelatedElement Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedRelatedElement Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty))
@@ -1961,7 +1961,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedRelationship Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedRelationship Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty))
@@ -1985,7 +1985,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningRelatedElement Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningRelatedElement Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty))
@@ -2009,7 +2009,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningRelationship Json property was not found in the Flow: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningRelationship Json property was not found in the Flow: {Id}", dtoInstance.Id);
}
}
diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/FramedConcernMembershipDeSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/FramedConcernMembershipDeSerializer.cs
index 4a85eda17..13c3b7cc7 100644
--- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/FramedConcernMembershipDeSerializer.cs
+++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/FramedConcernMembershipDeSerializer.cs
@@ -129,7 +129,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the aliasIds Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the aliasIds Json property was not found in the FramedConcernMembership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty))
@@ -138,7 +138,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the declaredName Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the declaredName Json property was not found in the FramedConcernMembership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty))
@@ -147,7 +147,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the declaredShortName Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the declaredShortName Json property was not found in the FramedConcernMembership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty))
@@ -167,7 +167,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the documentation Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the documentation Json property was not found in the FramedConcernMembership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty))
@@ -181,7 +181,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the elementId Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the elementId Json property was not found in the FramedConcernMembership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isImplied"u8, out var isImpliedProperty))
@@ -193,7 +193,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isImplied Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isImplied Json property was not found in the FramedConcernMembership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty))
@@ -205,7 +205,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isImpliedIncluded Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isImpliedIncluded Json property was not found in the FramedConcernMembership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty))
@@ -217,7 +217,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isLibraryElement Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isLibraryElement Json property was not found in the FramedConcernMembership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("kind"u8, out var kindProperty))
@@ -226,7 +226,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the kind Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the kind Json property was not found in the FramedConcernMembership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("name"u8, out var nameProperty))
@@ -235,7 +235,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the name Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the name Json property was not found in the FramedConcernMembership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty))
@@ -255,7 +255,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedAnnotation Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedAnnotation Json property was not found in the FramedConcernMembership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedConcern"u8, out var ownedConcernProperty))
@@ -280,7 +280,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedConcern Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedConcern Json property was not found in the FramedConcernMembership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty))
@@ -300,7 +300,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedElement Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedElement Json property was not found in the FramedConcernMembership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedMemberElementId"u8, out var ownedMemberElementIdProperty))
@@ -314,7 +314,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedMemberElementId Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedMemberElementId Json property was not found in the FramedConcernMembership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedMemberName"u8, out var ownedMemberNameProperty))
@@ -323,7 +323,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedMemberName Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedMemberName Json property was not found in the FramedConcernMembership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedMemberShortName"u8, out var ownedMemberShortNameProperty))
@@ -332,7 +332,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedMemberShortName Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedMemberShortName Json property was not found in the FramedConcernMembership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty))
@@ -352,7 +352,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedRelatedElement Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedRelatedElement Json property was not found in the FramedConcernMembership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty))
@@ -372,7 +372,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedRelationship Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedRelationship Json property was not found in the FramedConcernMembership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty))
@@ -396,7 +396,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owner Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owner Json property was not found in the FramedConcernMembership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty))
@@ -420,7 +420,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningMembership Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningMembership Json property was not found in the FramedConcernMembership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty))
@@ -444,7 +444,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningNamespace Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningNamespace Json property was not found in the FramedConcernMembership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty))
@@ -468,7 +468,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningRelatedElement Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningRelatedElement Json property was not found in the FramedConcernMembership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty))
@@ -492,7 +492,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningRelationship Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningRelationship Json property was not found in the FramedConcernMembership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty))
@@ -517,7 +517,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningType Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningType Json property was not found in the FramedConcernMembership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty))
@@ -526,7 +526,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the qualifiedName Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the qualifiedName Json property was not found in the FramedConcernMembership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("referencedConcern"u8, out var referencedConcernProperty))
@@ -551,7 +551,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the referencedConcern Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the referencedConcern Json property was not found in the FramedConcernMembership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty))
@@ -571,7 +571,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the relatedElement Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the relatedElement Json property was not found in the FramedConcernMembership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty))
@@ -580,7 +580,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the shortName Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the shortName Json property was not found in the FramedConcernMembership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty))
@@ -600,7 +600,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the textualRepresentation Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the textualRepresentation Json property was not found in the FramedConcernMembership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("visibility"u8, out var visibilityProperty))
@@ -609,7 +609,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the visibility Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the visibility Json property was not found in the FramedConcernMembership: {Id}", dtoInstance.Id);
}
}
@@ -643,7 +643,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the aliasIds Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the aliasIds Json property was not found in the FramedConcernMembership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty))
@@ -652,7 +652,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the declaredName Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the declaredName Json property was not found in the FramedConcernMembership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty))
@@ -661,7 +661,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the declaredShortName Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the declaredShortName Json property was not found in the FramedConcernMembership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty))
@@ -675,7 +675,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the elementId Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the elementId Json property was not found in the FramedConcernMembership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isImplied"u8, out var isImpliedProperty))
@@ -687,7 +687,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isImplied Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isImplied Json property was not found in the FramedConcernMembership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty))
@@ -699,7 +699,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isImpliedIncluded Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isImpliedIncluded Json property was not found in the FramedConcernMembership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("kind"u8, out var kindProperty))
@@ -708,7 +708,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the kind Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the kind Json property was not found in the FramedConcernMembership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty))
@@ -728,7 +728,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedRelatedElement Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedRelatedElement Json property was not found in the FramedConcernMembership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty))
@@ -748,7 +748,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedRelationship Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedRelationship Json property was not found in the FramedConcernMembership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty))
@@ -772,7 +772,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningRelatedElement Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningRelatedElement Json property was not found in the FramedConcernMembership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty))
@@ -796,7 +796,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningRelationship Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningRelationship Json property was not found in the FramedConcernMembership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("visibility"u8, out var visibilityProperty))
@@ -805,7 +805,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the visibility Json property was not found in the FramedConcernMembership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the visibility Json property was not found in the FramedConcernMembership: {Id}", dtoInstance.Id);
}
}
diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/LiteralIntegerDeSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/LiteralIntegerDeSerializer.cs
index 429868b93..739e06ad1 100644
--- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/LiteralIntegerDeSerializer.cs
+++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/LiteralIntegerDeSerializer.cs
@@ -129,7 +129,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the aliasIds Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id);
+ logger.LogDebug("the aliasIds Json property was not found in the LiteralInteger: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty))
@@ -149,7 +149,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the chainingFeature Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id);
+ logger.LogDebug("the chainingFeature Json property was not found in the LiteralInteger: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty))
@@ -173,7 +173,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the crossFeature Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id);
+ logger.LogDebug("the crossFeature Json property was not found in the LiteralInteger: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty))
@@ -182,7 +182,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the declaredName Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id);
+ logger.LogDebug("the declaredName Json property was not found in the LiteralInteger: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty))
@@ -191,7 +191,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the declaredShortName Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id);
+ logger.LogDebug("the declaredShortName Json property was not found in the LiteralInteger: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty))
@@ -211,7 +211,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the differencingType Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id);
+ logger.LogDebug("the differencingType Json property was not found in the LiteralInteger: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("direction"u8, out var directionProperty))
@@ -220,7 +220,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the direction Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id);
+ logger.LogDebug("the direction Json property was not found in the LiteralInteger: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty))
@@ -240,7 +240,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the documentation Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id);
+ logger.LogDebug("the documentation Json property was not found in the LiteralInteger: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty))
@@ -254,7 +254,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the elementId Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id);
+ logger.LogDebug("the elementId Json property was not found in the LiteralInteger: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty))
@@ -274,7 +274,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the endFeature Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id);
+ logger.LogDebug("the endFeature Json property was not found in the LiteralInteger: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty))
@@ -298,7 +298,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the endOwningType Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id);
+ logger.LogDebug("the endOwningType Json property was not found in the LiteralInteger: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("feature"u8, out var featureProperty))
@@ -318,7 +318,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the feature Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id);
+ logger.LogDebug("the feature Json property was not found in the LiteralInteger: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty))
@@ -338,7 +338,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the featureMembership Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id);
+ logger.LogDebug("the featureMembership Json property was not found in the LiteralInteger: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("featureTarget"u8, out var featureTargetProperty))
@@ -363,7 +363,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the featureTarget Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id);
+ logger.LogDebug("the featureTarget Json property was not found in the LiteralInteger: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("featuringType"u8, out var featuringTypeProperty))
@@ -383,7 +383,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the featuringType Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id);
+ logger.LogDebug("the featuringType Json property was not found in the LiteralInteger: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("function"u8, out var functionProperty))
@@ -407,7 +407,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the function Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id);
+ logger.LogDebug("the function Json property was not found in the LiteralInteger: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty))
@@ -427,7 +427,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the importedMembership Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id);
+ logger.LogDebug("the importedMembership Json property was not found in the LiteralInteger: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty))
@@ -447,7 +447,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the inheritedFeature Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id);
+ logger.LogDebug("the inheritedFeature Json property was not found in the LiteralInteger: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty))
@@ -467,7 +467,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the inheritedMembership Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id);
+ logger.LogDebug("the inheritedMembership Json property was not found in the LiteralInteger: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("input"u8, out var inputProperty))
@@ -487,7 +487,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the input Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id);
+ logger.LogDebug("the input Json property was not found in the LiteralInteger: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty))
@@ -507,7 +507,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the intersectingType Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id);
+ logger.LogDebug("the intersectingType Json property was not found in the LiteralInteger: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty))
@@ -519,7 +519,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isAbstract Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isAbstract Json property was not found in the LiteralInteger: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty))
@@ -531,7 +531,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isComposite Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isComposite Json property was not found in the LiteralInteger: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty))
@@ -543,7 +543,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isConjugated Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isConjugated Json property was not found in the LiteralInteger: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty))
@@ -555,7 +555,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isConstant Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isConstant Json property was not found in the LiteralInteger: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty))
@@ -567,7 +567,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isDerived Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isDerived Json property was not found in the LiteralInteger: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty))
@@ -579,7 +579,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isEnd Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isEnd Json property was not found in the LiteralInteger: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty))
@@ -591,7 +591,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isImpliedIncluded Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isImpliedIncluded Json property was not found in the LiteralInteger: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty))
@@ -603,7 +603,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isLibraryElement Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isLibraryElement Json property was not found in the LiteralInteger: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isModelLevelEvaluable"u8, out var isModelLevelEvaluableProperty))
@@ -615,7 +615,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isModelLevelEvaluable Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isModelLevelEvaluable Json property was not found in the LiteralInteger: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty))
@@ -627,7 +627,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isOrdered Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isOrdered Json property was not found in the LiteralInteger: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty))
@@ -639,7 +639,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isPortion Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isPortion Json property was not found in the LiteralInteger: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty))
@@ -651,7 +651,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isSufficient Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isSufficient Json property was not found in the LiteralInteger: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty))
@@ -663,7 +663,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isUnique Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isUnique Json property was not found in the LiteralInteger: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty))
@@ -675,7 +675,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isVariable Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isVariable Json property was not found in the LiteralInteger: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("member"u8, out var memberProperty))
@@ -695,7 +695,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the member Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id);
+ logger.LogDebug("the member Json property was not found in the LiteralInteger: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty))
@@ -715,7 +715,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the membership Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id);
+ logger.LogDebug("the membership Json property was not found in the LiteralInteger: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty))
@@ -739,7 +739,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the multiplicity Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id);
+ logger.LogDebug("the multiplicity Json property was not found in the LiteralInteger: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("name"u8, out var nameProperty))
@@ -748,7 +748,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the name Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id);
+ logger.LogDebug("the name Json property was not found in the LiteralInteger: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("output"u8, out var outputProperty))
@@ -768,7 +768,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the output Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id);
+ logger.LogDebug("the output Json property was not found in the LiteralInteger: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty))
@@ -788,7 +788,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedAnnotation Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedAnnotation Json property was not found in the LiteralInteger: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty))
@@ -812,7 +812,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedConjugator Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedConjugator Json property was not found in the LiteralInteger: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedCrossSubsetting"u8, out var ownedCrossSubsettingProperty))
@@ -836,7 +836,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedCrossSubsetting Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedCrossSubsetting Json property was not found in the LiteralInteger: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty))
@@ -856,7 +856,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedDifferencing Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedDifferencing Json property was not found in the LiteralInteger: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty))
@@ -876,7 +876,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedDisjoining Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedDisjoining Json property was not found in the LiteralInteger: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty))
@@ -896,7 +896,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedElement Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedElement Json property was not found in the LiteralInteger: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty))
@@ -916,7 +916,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedEndFeature Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedEndFeature Json property was not found in the LiteralInteger: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty))
@@ -936,7 +936,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedFeature Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedFeature Json property was not found in the LiteralInteger: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedFeatureChaining"u8, out var ownedFeatureChainingProperty))
@@ -956,7 +956,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedFeatureChaining Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedFeatureChaining Json property was not found in the LiteralInteger: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedFeatureInverting"u8, out var ownedFeatureInvertingProperty))
@@ -976,7 +976,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedFeatureInverting Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedFeatureInverting Json property was not found in the LiteralInteger: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty))
@@ -996,7 +996,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedFeatureMembership Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedFeatureMembership Json property was not found in the LiteralInteger: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty))
@@ -1016,7 +1016,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedImport Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedImport Json property was not found in the LiteralInteger: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty))
@@ -1036,7 +1036,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedIntersecting Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedIntersecting Json property was not found in the LiteralInteger: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty))
@@ -1056,7 +1056,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedMember Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedMember Json property was not found in the LiteralInteger: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty))
@@ -1076,7 +1076,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedMembership Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedMembership Json property was not found in the LiteralInteger: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedRedefinition"u8, out var ownedRedefinitionProperty))
@@ -1096,7 +1096,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedRedefinition Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedRedefinition Json property was not found in the LiteralInteger: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedReferenceSubsetting"u8, out var ownedReferenceSubsettingProperty))
@@ -1120,7 +1120,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the LiteralInteger: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty))
@@ -1140,7 +1140,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedRelationship Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedRelationship Json property was not found in the LiteralInteger: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty))
@@ -1160,7 +1160,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedSpecialization Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedSpecialization Json property was not found in the LiteralInteger: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedSubsetting"u8, out var ownedSubsettingProperty))
@@ -1180,7 +1180,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedSubsetting Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedSubsetting Json property was not found in the LiteralInteger: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedTypeFeaturing"u8, out var ownedTypeFeaturingProperty))
@@ -1200,7 +1200,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedTypeFeaturing Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedTypeFeaturing Json property was not found in the LiteralInteger: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedTyping"u8, out var ownedTypingProperty))
@@ -1220,7 +1220,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedTyping Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedTyping Json property was not found in the LiteralInteger: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty))
@@ -1240,7 +1240,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedUnioning Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedUnioning Json property was not found in the LiteralInteger: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty))
@@ -1264,7 +1264,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owner Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owner Json property was not found in the LiteralInteger: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningFeatureMembership"u8, out var owningFeatureMembershipProperty))
@@ -1288,7 +1288,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningFeatureMembership Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningFeatureMembership Json property was not found in the LiteralInteger: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty))
@@ -1312,7 +1312,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningMembership Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningMembership Json property was not found in the LiteralInteger: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty))
@@ -1336,7 +1336,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningNamespace Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningNamespace Json property was not found in the LiteralInteger: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty))
@@ -1360,7 +1360,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningRelationship Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningRelationship Json property was not found in the LiteralInteger: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty))
@@ -1384,7 +1384,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningType Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningType Json property was not found in the LiteralInteger: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("parameter"u8, out var parameterProperty))
@@ -1404,7 +1404,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the parameter Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id);
+ logger.LogDebug("the parameter Json property was not found in the LiteralInteger: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty))
@@ -1413,7 +1413,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the qualifiedName Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id);
+ logger.LogDebug("the qualifiedName Json property was not found in the LiteralInteger: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("result"u8, out var resultProperty))
@@ -1438,7 +1438,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the result Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id);
+ logger.LogDebug("the result Json property was not found in the LiteralInteger: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty))
@@ -1447,7 +1447,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the shortName Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id);
+ logger.LogDebug("the shortName Json property was not found in the LiteralInteger: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty))
@@ -1467,7 +1467,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the textualRepresentation Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id);
+ logger.LogDebug("the textualRepresentation Json property was not found in the LiteralInteger: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("type"u8, out var typeProperty))
@@ -1487,7 +1487,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the type Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id);
+ logger.LogDebug("the type Json property was not found in the LiteralInteger: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty))
@@ -1507,7 +1507,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the unioningType Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id);
+ logger.LogDebug("the unioningType Json property was not found in the LiteralInteger: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("value"u8, out var valueProperty))
@@ -1516,7 +1516,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the value Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id);
+ logger.LogDebug("the value Json property was not found in the LiteralInteger: {Id}", dtoInstance.Id);
}
}
@@ -1550,7 +1550,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the aliasIds Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id);
+ logger.LogDebug("the aliasIds Json property was not found in the LiteralInteger: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty))
@@ -1559,7 +1559,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the declaredName Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id);
+ logger.LogDebug("the declaredName Json property was not found in the LiteralInteger: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty))
@@ -1568,7 +1568,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the declaredShortName Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id);
+ logger.LogDebug("the declaredShortName Json property was not found in the LiteralInteger: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("direction"u8, out var directionProperty))
@@ -1577,7 +1577,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the direction Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id);
+ logger.LogDebug("the direction Json property was not found in the LiteralInteger: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty))
@@ -1591,7 +1591,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the elementId Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id);
+ logger.LogDebug("the elementId Json property was not found in the LiteralInteger: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty))
@@ -1603,7 +1603,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isAbstract Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isAbstract Json property was not found in the LiteralInteger: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty))
@@ -1615,7 +1615,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isComposite Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isComposite Json property was not found in the LiteralInteger: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty))
@@ -1627,7 +1627,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isConstant Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isConstant Json property was not found in the LiteralInteger: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty))
@@ -1639,7 +1639,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isDerived Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isDerived Json property was not found in the LiteralInteger: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty))
@@ -1651,7 +1651,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isEnd Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isEnd Json property was not found in the LiteralInteger: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty))
@@ -1663,7 +1663,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isImpliedIncluded Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isImpliedIncluded Json property was not found in the LiteralInteger: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty))
@@ -1675,7 +1675,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isOrdered Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isOrdered Json property was not found in the LiteralInteger: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty))
@@ -1687,7 +1687,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isPortion Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isPortion Json property was not found in the LiteralInteger: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty))
@@ -1699,7 +1699,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isSufficient Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isSufficient Json property was not found in the LiteralInteger: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty))
@@ -1711,7 +1711,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isUnique Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isUnique Json property was not found in the LiteralInteger: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty))
@@ -1723,7 +1723,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isVariable Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isVariable Json property was not found in the LiteralInteger: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty))
@@ -1743,7 +1743,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedRelationship Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedRelationship Json property was not found in the LiteralInteger: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty))
@@ -1767,7 +1767,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningRelationship Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningRelationship Json property was not found in the LiteralInteger: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("value"u8, out var valueProperty))
@@ -1776,7 +1776,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the value Json property was not found in the LiteralInteger: { Id }", dtoInstance.Id);
+ logger.LogDebug("the value Json property was not found in the LiteralInteger: {Id}", dtoInstance.Id);
}
}
diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/LiteralRationalDeSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/LiteralRationalDeSerializer.cs
index 957f45fad..d8eff5ac8 100644
--- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/LiteralRationalDeSerializer.cs
+++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/LiteralRationalDeSerializer.cs
@@ -129,7 +129,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the aliasIds Json property was not found in the LiteralRational: { Id }", dtoInstance.Id);
+ logger.LogDebug("the aliasIds Json property was not found in the LiteralRational: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty))
@@ -149,7 +149,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the chainingFeature Json property was not found in the LiteralRational: { Id }", dtoInstance.Id);
+ logger.LogDebug("the chainingFeature Json property was not found in the LiteralRational: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty))
@@ -173,7 +173,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the crossFeature Json property was not found in the LiteralRational: { Id }", dtoInstance.Id);
+ logger.LogDebug("the crossFeature Json property was not found in the LiteralRational: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty))
@@ -182,7 +182,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the declaredName Json property was not found in the LiteralRational: { Id }", dtoInstance.Id);
+ logger.LogDebug("the declaredName Json property was not found in the LiteralRational: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty))
@@ -191,7 +191,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the declaredShortName Json property was not found in the LiteralRational: { Id }", dtoInstance.Id);
+ logger.LogDebug("the declaredShortName Json property was not found in the LiteralRational: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty))
@@ -211,7 +211,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the differencingType Json property was not found in the LiteralRational: { Id }", dtoInstance.Id);
+ logger.LogDebug("the differencingType Json property was not found in the LiteralRational: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("direction"u8, out var directionProperty))
@@ -220,7 +220,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the direction Json property was not found in the LiteralRational: { Id }", dtoInstance.Id);
+ logger.LogDebug("the direction Json property was not found in the LiteralRational: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty))
@@ -240,7 +240,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the documentation Json property was not found in the LiteralRational: { Id }", dtoInstance.Id);
+ logger.LogDebug("the documentation Json property was not found in the LiteralRational: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty))
@@ -254,7 +254,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the elementId Json property was not found in the LiteralRational: { Id }", dtoInstance.Id);
+ logger.LogDebug("the elementId Json property was not found in the LiteralRational: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty))
@@ -274,7 +274,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the endFeature Json property was not found in the LiteralRational: { Id }", dtoInstance.Id);
+ logger.LogDebug("the endFeature Json property was not found in the LiteralRational: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty))
@@ -298,7 +298,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the endOwningType Json property was not found in the LiteralRational: { Id }", dtoInstance.Id);
+ logger.LogDebug("the endOwningType Json property was not found in the LiteralRational: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("feature"u8, out var featureProperty))
@@ -318,7 +318,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the feature Json property was not found in the LiteralRational: { Id }", dtoInstance.Id);
+ logger.LogDebug("the feature Json property was not found in the LiteralRational: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty))
@@ -338,7 +338,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the featureMembership Json property was not found in the LiteralRational: { Id }", dtoInstance.Id);
+ logger.LogDebug("the featureMembership Json property was not found in the LiteralRational: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("featureTarget"u8, out var featureTargetProperty))
@@ -363,7 +363,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the featureTarget Json property was not found in the LiteralRational: { Id }", dtoInstance.Id);
+ logger.LogDebug("the featureTarget Json property was not found in the LiteralRational: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("featuringType"u8, out var featuringTypeProperty))
@@ -383,7 +383,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the featuringType Json property was not found in the LiteralRational: { Id }", dtoInstance.Id);
+ logger.LogDebug("the featuringType Json property was not found in the LiteralRational: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("function"u8, out var functionProperty))
@@ -407,7 +407,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the function Json property was not found in the LiteralRational: { Id }", dtoInstance.Id);
+ logger.LogDebug("the function Json property was not found in the LiteralRational: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty))
@@ -427,7 +427,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the importedMembership Json property was not found in the LiteralRational: { Id }", dtoInstance.Id);
+ logger.LogDebug("the importedMembership Json property was not found in the LiteralRational: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty))
@@ -447,7 +447,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the inheritedFeature Json property was not found in the LiteralRational: { Id }", dtoInstance.Id);
+ logger.LogDebug("the inheritedFeature Json property was not found in the LiteralRational: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty))
@@ -467,7 +467,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the inheritedMembership Json property was not found in the LiteralRational: { Id }", dtoInstance.Id);
+ logger.LogDebug("the inheritedMembership Json property was not found in the LiteralRational: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("input"u8, out var inputProperty))
@@ -487,7 +487,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the input Json property was not found in the LiteralRational: { Id }", dtoInstance.Id);
+ logger.LogDebug("the input Json property was not found in the LiteralRational: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty))
@@ -507,7 +507,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the intersectingType Json property was not found in the LiteralRational: { Id }", dtoInstance.Id);
+ logger.LogDebug("the intersectingType Json property was not found in the LiteralRational: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty))
@@ -519,7 +519,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isAbstract Json property was not found in the LiteralRational: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isAbstract Json property was not found in the LiteralRational: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty))
@@ -531,7 +531,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isComposite Json property was not found in the LiteralRational: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isComposite Json property was not found in the LiteralRational: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty))
@@ -543,7 +543,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isConjugated Json property was not found in the LiteralRational: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isConjugated Json property was not found in the LiteralRational: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty))
@@ -555,7 +555,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isConstant Json property was not found in the LiteralRational: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isConstant Json property was not found in the LiteralRational: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty))
@@ -567,7 +567,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isDerived Json property was not found in the LiteralRational: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isDerived Json property was not found in the LiteralRational: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty))
@@ -579,7 +579,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isEnd Json property was not found in the LiteralRational: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isEnd Json property was not found in the LiteralRational: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty))
@@ -591,7 +591,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isImpliedIncluded Json property was not found in the LiteralRational: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isImpliedIncluded Json property was not found in the LiteralRational: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty))
@@ -603,7 +603,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isLibraryElement Json property was not found in the LiteralRational: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isLibraryElement Json property was not found in the LiteralRational: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isModelLevelEvaluable"u8, out var isModelLevelEvaluableProperty))
@@ -615,7 +615,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isModelLevelEvaluable Json property was not found in the LiteralRational: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isModelLevelEvaluable Json property was not found in the LiteralRational: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty))
@@ -627,7 +627,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isOrdered Json property was not found in the LiteralRational: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isOrdered Json property was not found in the LiteralRational: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty))
@@ -639,7 +639,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isPortion Json property was not found in the LiteralRational: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isPortion Json property was not found in the LiteralRational: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty))
@@ -651,7 +651,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isSufficient Json property was not found in the LiteralRational: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isSufficient Json property was not found in the LiteralRational: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty))
@@ -663,7 +663,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isUnique Json property was not found in the LiteralRational: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isUnique Json property was not found in the LiteralRational: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty))
@@ -675,7 +675,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isVariable Json property was not found in the LiteralRational: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isVariable Json property was not found in the LiteralRational: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("member"u8, out var memberProperty))
@@ -695,7 +695,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the member Json property was not found in the LiteralRational: { Id }", dtoInstance.Id);
+ logger.LogDebug("the member Json property was not found in the LiteralRational: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty))
@@ -715,7 +715,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the membership Json property was not found in the LiteralRational: { Id }", dtoInstance.Id);
+ logger.LogDebug("the membership Json property was not found in the LiteralRational: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty))
@@ -739,7 +739,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the multiplicity Json property was not found in the LiteralRational: { Id }", dtoInstance.Id);
+ logger.LogDebug("the multiplicity Json property was not found in the LiteralRational: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("name"u8, out var nameProperty))
@@ -748,7 +748,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the name Json property was not found in the LiteralRational: { Id }", dtoInstance.Id);
+ logger.LogDebug("the name Json property was not found in the LiteralRational: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("output"u8, out var outputProperty))
@@ -768,7 +768,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the output Json property was not found in the LiteralRational: { Id }", dtoInstance.Id);
+ logger.LogDebug("the output Json property was not found in the LiteralRational: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty))
@@ -788,7 +788,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedAnnotation Json property was not found in the LiteralRational: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedAnnotation Json property was not found in the LiteralRational: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty))
@@ -812,7 +812,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedConjugator Json property was not found in the LiteralRational: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedConjugator Json property was not found in the LiteralRational: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedCrossSubsetting"u8, out var ownedCrossSubsettingProperty))
@@ -836,7 +836,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedCrossSubsetting Json property was not found in the LiteralRational: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedCrossSubsetting Json property was not found in the LiteralRational: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty))
@@ -856,7 +856,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedDifferencing Json property was not found in the LiteralRational: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedDifferencing Json property was not found in the LiteralRational: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty))
@@ -876,7 +876,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedDisjoining Json property was not found in the LiteralRational: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedDisjoining Json property was not found in the LiteralRational: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty))
@@ -896,7 +896,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedElement Json property was not found in the LiteralRational: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedElement Json property was not found in the LiteralRational: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty))
@@ -916,7 +916,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedEndFeature Json property was not found in the LiteralRational: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedEndFeature Json property was not found in the LiteralRational: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty))
@@ -936,7 +936,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedFeature Json property was not found in the LiteralRational: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedFeature Json property was not found in the LiteralRational: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedFeatureChaining"u8, out var ownedFeatureChainingProperty))
@@ -956,7 +956,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedFeatureChaining Json property was not found in the LiteralRational: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedFeatureChaining Json property was not found in the LiteralRational: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedFeatureInverting"u8, out var ownedFeatureInvertingProperty))
@@ -976,7 +976,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedFeatureInverting Json property was not found in the LiteralRational: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedFeatureInverting Json property was not found in the LiteralRational: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty))
@@ -996,7 +996,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedFeatureMembership Json property was not found in the LiteralRational: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedFeatureMembership Json property was not found in the LiteralRational: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty))
@@ -1016,7 +1016,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedImport Json property was not found in the LiteralRational: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedImport Json property was not found in the LiteralRational: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty))
@@ -1036,7 +1036,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedIntersecting Json property was not found in the LiteralRational: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedIntersecting Json property was not found in the LiteralRational: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty))
@@ -1056,7 +1056,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedMember Json property was not found in the LiteralRational: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedMember Json property was not found in the LiteralRational: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty))
@@ -1076,7 +1076,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedMembership Json property was not found in the LiteralRational: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedMembership Json property was not found in the LiteralRational: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedRedefinition"u8, out var ownedRedefinitionProperty))
@@ -1096,7 +1096,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedRedefinition Json property was not found in the LiteralRational: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedRedefinition Json property was not found in the LiteralRational: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedReferenceSubsetting"u8, out var ownedReferenceSubsettingProperty))
@@ -1120,7 +1120,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the LiteralRational: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the LiteralRational: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty))
@@ -1140,7 +1140,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedRelationship Json property was not found in the LiteralRational: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedRelationship Json property was not found in the LiteralRational: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty))
@@ -1160,7 +1160,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedSpecialization Json property was not found in the LiteralRational: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedSpecialization Json property was not found in the LiteralRational: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedSubsetting"u8, out var ownedSubsettingProperty))
@@ -1180,7 +1180,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedSubsetting Json property was not found in the LiteralRational: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedSubsetting Json property was not found in the LiteralRational: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedTypeFeaturing"u8, out var ownedTypeFeaturingProperty))
@@ -1200,7 +1200,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedTypeFeaturing Json property was not found in the LiteralRational: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedTypeFeaturing Json property was not found in the LiteralRational: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedTyping"u8, out var ownedTypingProperty))
@@ -1220,7 +1220,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedTyping Json property was not found in the LiteralRational: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedTyping Json property was not found in the LiteralRational: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty))
@@ -1240,7 +1240,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedUnioning Json property was not found in the LiteralRational: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedUnioning Json property was not found in the LiteralRational: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty))
@@ -1264,7 +1264,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owner Json property was not found in the LiteralRational: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owner Json property was not found in the LiteralRational: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningFeatureMembership"u8, out var owningFeatureMembershipProperty))
@@ -1288,7 +1288,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningFeatureMembership Json property was not found in the LiteralRational: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningFeatureMembership Json property was not found in the LiteralRational: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty))
@@ -1312,7 +1312,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningMembership Json property was not found in the LiteralRational: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningMembership Json property was not found in the LiteralRational: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty))
@@ -1336,7 +1336,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningNamespace Json property was not found in the LiteralRational: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningNamespace Json property was not found in the LiteralRational: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty))
@@ -1360,7 +1360,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningRelationship Json property was not found in the LiteralRational: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningRelationship Json property was not found in the LiteralRational: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty))
@@ -1384,7 +1384,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningType Json property was not found in the LiteralRational: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningType Json property was not found in the LiteralRational: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("parameter"u8, out var parameterProperty))
@@ -1404,7 +1404,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the parameter Json property was not found in the LiteralRational: { Id }", dtoInstance.Id);
+ logger.LogDebug("the parameter Json property was not found in the LiteralRational: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty))
@@ -1413,7 +1413,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the qualifiedName Json property was not found in the LiteralRational: { Id }", dtoInstance.Id);
+ logger.LogDebug("the qualifiedName Json property was not found in the LiteralRational: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("result"u8, out var resultProperty))
@@ -1438,7 +1438,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the result Json property was not found in the LiteralRational: { Id }", dtoInstance.Id);
+ logger.LogDebug("the result Json property was not found in the LiteralRational: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty))
@@ -1447,7 +1447,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the shortName Json property was not found in the LiteralRational: { Id }", dtoInstance.Id);
+ logger.LogDebug("the shortName Json property was not found in the LiteralRational: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty))
@@ -1467,7 +1467,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the textualRepresentation Json property was not found in the LiteralRational: { Id }", dtoInstance.Id);
+ logger.LogDebug("the textualRepresentation Json property was not found in the LiteralRational: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("type"u8, out var typeProperty))
@@ -1487,7 +1487,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the type Json property was not found in the LiteralRational: { Id }", dtoInstance.Id);
+ logger.LogDebug("the type Json property was not found in the LiteralRational: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty))
@@ -1507,7 +1507,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the unioningType Json property was not found in the LiteralRational: { Id }", dtoInstance.Id);
+ logger.LogDebug("the unioningType Json property was not found in the LiteralRational: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("value"u8, out var valueProperty))
@@ -1516,7 +1516,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the value Json property was not found in the LiteralRational: { Id }", dtoInstance.Id);
+ logger.LogDebug("the value Json property was not found in the LiteralRational: {Id}", dtoInstance.Id);
}
}
@@ -1550,7 +1550,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the aliasIds Json property was not found in the LiteralRational: { Id }", dtoInstance.Id);
+ logger.LogDebug("the aliasIds Json property was not found in the LiteralRational: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty))
@@ -1559,7 +1559,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the declaredName Json property was not found in the LiteralRational: { Id }", dtoInstance.Id);
+ logger.LogDebug("the declaredName Json property was not found in the LiteralRational: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty))
@@ -1568,7 +1568,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the declaredShortName Json property was not found in the LiteralRational: { Id }", dtoInstance.Id);
+ logger.LogDebug("the declaredShortName Json property was not found in the LiteralRational: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("direction"u8, out var directionProperty))
@@ -1577,7 +1577,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the direction Json property was not found in the LiteralRational: { Id }", dtoInstance.Id);
+ logger.LogDebug("the direction Json property was not found in the LiteralRational: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty))
@@ -1591,7 +1591,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the elementId Json property was not found in the LiteralRational: { Id }", dtoInstance.Id);
+ logger.LogDebug("the elementId Json property was not found in the LiteralRational: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty))
@@ -1603,7 +1603,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isAbstract Json property was not found in the LiteralRational: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isAbstract Json property was not found in the LiteralRational: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty))
@@ -1615,7 +1615,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isComposite Json property was not found in the LiteralRational: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isComposite Json property was not found in the LiteralRational: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty))
@@ -1627,7 +1627,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isConstant Json property was not found in the LiteralRational: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isConstant Json property was not found in the LiteralRational: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty))
@@ -1639,7 +1639,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isDerived Json property was not found in the LiteralRational: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isDerived Json property was not found in the LiteralRational: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty))
@@ -1651,7 +1651,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isEnd Json property was not found in the LiteralRational: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isEnd Json property was not found in the LiteralRational: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty))
@@ -1663,7 +1663,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isImpliedIncluded Json property was not found in the LiteralRational: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isImpliedIncluded Json property was not found in the LiteralRational: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty))
@@ -1675,7 +1675,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isOrdered Json property was not found in the LiteralRational: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isOrdered Json property was not found in the LiteralRational: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty))
@@ -1687,7 +1687,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isPortion Json property was not found in the LiteralRational: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isPortion Json property was not found in the LiteralRational: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty))
@@ -1699,7 +1699,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isSufficient Json property was not found in the LiteralRational: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isSufficient Json property was not found in the LiteralRational: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty))
@@ -1711,7 +1711,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isUnique Json property was not found in the LiteralRational: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isUnique Json property was not found in the LiteralRational: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty))
@@ -1723,7 +1723,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isVariable Json property was not found in the LiteralRational: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isVariable Json property was not found in the LiteralRational: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty))
@@ -1743,7 +1743,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedRelationship Json property was not found in the LiteralRational: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedRelationship Json property was not found in the LiteralRational: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty))
@@ -1767,7 +1767,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningRelationship Json property was not found in the LiteralRational: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningRelationship Json property was not found in the LiteralRational: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("value"u8, out var valueProperty))
@@ -1776,7 +1776,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the value Json property was not found in the LiteralRational: { Id }", dtoInstance.Id);
+ logger.LogDebug("the value Json property was not found in the LiteralRational: {Id}", dtoInstance.Id);
}
}
diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/MembershipDeSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/MembershipDeSerializer.cs
index b41eb66cd..137edaca3 100644
--- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/MembershipDeSerializer.cs
+++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/MembershipDeSerializer.cs
@@ -129,7 +129,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the aliasIds Json property was not found in the Membership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the aliasIds Json property was not found in the Membership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty))
@@ -138,7 +138,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the declaredName Json property was not found in the Membership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the declaredName Json property was not found in the Membership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty))
@@ -147,7 +147,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the declaredShortName Json property was not found in the Membership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the declaredShortName Json property was not found in the Membership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty))
@@ -167,7 +167,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the documentation Json property was not found in the Membership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the documentation Json property was not found in the Membership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty))
@@ -181,7 +181,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the elementId Json property was not found in the Membership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the elementId Json property was not found in the Membership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isImplied"u8, out var isImpliedProperty))
@@ -193,7 +193,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isImplied Json property was not found in the Membership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isImplied Json property was not found in the Membership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty))
@@ -205,7 +205,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isImpliedIncluded Json property was not found in the Membership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isImpliedIncluded Json property was not found in the Membership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty))
@@ -217,7 +217,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isLibraryElement Json property was not found in the Membership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isLibraryElement Json property was not found in the Membership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("memberElement"u8, out var memberElementProperty))
@@ -242,7 +242,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the memberElement Json property was not found in the Membership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the memberElement Json property was not found in the Membership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("memberElementId"u8, out var memberElementIdProperty))
@@ -256,7 +256,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the memberElementId Json property was not found in the Membership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the memberElementId Json property was not found in the Membership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("memberName"u8, out var memberNameProperty))
@@ -265,7 +265,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the memberName Json property was not found in the Membership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the memberName Json property was not found in the Membership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("membershipOwningNamespace"u8, out var membershipOwningNamespaceProperty))
@@ -290,7 +290,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the membershipOwningNamespace Json property was not found in the Membership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the membershipOwningNamespace Json property was not found in the Membership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("memberShortName"u8, out var memberShortNameProperty))
@@ -299,7 +299,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the memberShortName Json property was not found in the Membership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the memberShortName Json property was not found in the Membership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("name"u8, out var nameProperty))
@@ -308,7 +308,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the name Json property was not found in the Membership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the name Json property was not found in the Membership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty))
@@ -328,7 +328,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedAnnotation Json property was not found in the Membership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedAnnotation Json property was not found in the Membership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty))
@@ -348,7 +348,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedElement Json property was not found in the Membership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedElement Json property was not found in the Membership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty))
@@ -368,7 +368,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedRelatedElement Json property was not found in the Membership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedRelatedElement Json property was not found in the Membership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty))
@@ -388,7 +388,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedRelationship Json property was not found in the Membership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedRelationship Json property was not found in the Membership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty))
@@ -412,7 +412,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owner Json property was not found in the Membership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owner Json property was not found in the Membership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty))
@@ -436,7 +436,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningMembership Json property was not found in the Membership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningMembership Json property was not found in the Membership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty))
@@ -460,7 +460,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningNamespace Json property was not found in the Membership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningNamespace Json property was not found in the Membership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty))
@@ -484,7 +484,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningRelatedElement Json property was not found in the Membership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningRelatedElement Json property was not found in the Membership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty))
@@ -508,7 +508,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningRelationship Json property was not found in the Membership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningRelationship Json property was not found in the Membership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty))
@@ -517,7 +517,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the qualifiedName Json property was not found in the Membership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the qualifiedName Json property was not found in the Membership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty))
@@ -537,7 +537,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the relatedElement Json property was not found in the Membership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the relatedElement Json property was not found in the Membership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty))
@@ -546,7 +546,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the shortName Json property was not found in the Membership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the shortName Json property was not found in the Membership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty))
@@ -566,7 +566,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the textualRepresentation Json property was not found in the Membership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the textualRepresentation Json property was not found in the Membership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("visibility"u8, out var visibilityProperty))
@@ -575,7 +575,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the visibility Json property was not found in the Membership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the visibility Json property was not found in the Membership: {Id}", dtoInstance.Id);
}
}
@@ -609,7 +609,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the aliasIds Json property was not found in the Membership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the aliasIds Json property was not found in the Membership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty))
@@ -618,7 +618,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the declaredName Json property was not found in the Membership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the declaredName Json property was not found in the Membership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty))
@@ -627,7 +627,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the declaredShortName Json property was not found in the Membership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the declaredShortName Json property was not found in the Membership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty))
@@ -641,7 +641,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the elementId Json property was not found in the Membership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the elementId Json property was not found in the Membership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isImplied"u8, out var isImpliedProperty))
@@ -653,7 +653,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isImplied Json property was not found in the Membership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isImplied Json property was not found in the Membership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty))
@@ -665,7 +665,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isImpliedIncluded Json property was not found in the Membership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isImpliedIncluded Json property was not found in the Membership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("memberElement"u8, out var memberElementProperty))
@@ -690,7 +690,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the memberElement Json property was not found in the Membership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the memberElement Json property was not found in the Membership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("memberName"u8, out var memberNameProperty))
@@ -699,7 +699,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the memberName Json property was not found in the Membership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the memberName Json property was not found in the Membership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("memberShortName"u8, out var memberShortNameProperty))
@@ -708,7 +708,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the memberShortName Json property was not found in the Membership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the memberShortName Json property was not found in the Membership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty))
@@ -728,7 +728,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedRelatedElement Json property was not found in the Membership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedRelatedElement Json property was not found in the Membership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty))
@@ -748,7 +748,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedRelationship Json property was not found in the Membership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedRelationship Json property was not found in the Membership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty))
@@ -772,7 +772,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningRelatedElement Json property was not found in the Membership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningRelatedElement Json property was not found in the Membership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty))
@@ -796,7 +796,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningRelationship Json property was not found in the Membership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningRelationship Json property was not found in the Membership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("visibility"u8, out var visibilityProperty))
@@ -805,7 +805,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the visibility Json property was not found in the Membership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the visibility Json property was not found in the Membership: {Id}", dtoInstance.Id);
}
}
diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/MultiplicityRangeDeSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/MultiplicityRangeDeSerializer.cs
index 5dafccd77..e8913806b 100644
--- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/MultiplicityRangeDeSerializer.cs
+++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/MultiplicityRangeDeSerializer.cs
@@ -129,7 +129,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the aliasIds Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id);
+ logger.LogDebug("the aliasIds Json property was not found in the MultiplicityRange: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("bound"u8, out var boundProperty))
@@ -149,7 +149,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the bound Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id);
+ logger.LogDebug("the bound Json property was not found in the MultiplicityRange: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty))
@@ -169,7 +169,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the chainingFeature Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id);
+ logger.LogDebug("the chainingFeature Json property was not found in the MultiplicityRange: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty))
@@ -193,7 +193,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the crossFeature Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id);
+ logger.LogDebug("the crossFeature Json property was not found in the MultiplicityRange: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty))
@@ -202,7 +202,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the declaredName Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id);
+ logger.LogDebug("the declaredName Json property was not found in the MultiplicityRange: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty))
@@ -211,7 +211,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the declaredShortName Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id);
+ logger.LogDebug("the declaredShortName Json property was not found in the MultiplicityRange: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty))
@@ -231,7 +231,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the differencingType Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id);
+ logger.LogDebug("the differencingType Json property was not found in the MultiplicityRange: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty))
@@ -251,7 +251,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the directedFeature Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id);
+ logger.LogDebug("the directedFeature Json property was not found in the MultiplicityRange: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("direction"u8, out var directionProperty))
@@ -260,7 +260,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the direction Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id);
+ logger.LogDebug("the direction Json property was not found in the MultiplicityRange: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty))
@@ -280,7 +280,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the documentation Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id);
+ logger.LogDebug("the documentation Json property was not found in the MultiplicityRange: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty))
@@ -294,7 +294,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the elementId Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id);
+ logger.LogDebug("the elementId Json property was not found in the MultiplicityRange: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty))
@@ -314,7 +314,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the endFeature Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id);
+ logger.LogDebug("the endFeature Json property was not found in the MultiplicityRange: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty))
@@ -338,7 +338,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the endOwningType Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id);
+ logger.LogDebug("the endOwningType Json property was not found in the MultiplicityRange: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("feature"u8, out var featureProperty))
@@ -358,7 +358,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the feature Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id);
+ logger.LogDebug("the feature Json property was not found in the MultiplicityRange: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty))
@@ -378,7 +378,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the featureMembership Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id);
+ logger.LogDebug("the featureMembership Json property was not found in the MultiplicityRange: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("featureTarget"u8, out var featureTargetProperty))
@@ -403,7 +403,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the featureTarget Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id);
+ logger.LogDebug("the featureTarget Json property was not found in the MultiplicityRange: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("featuringType"u8, out var featuringTypeProperty))
@@ -423,7 +423,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the featuringType Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id);
+ logger.LogDebug("the featuringType Json property was not found in the MultiplicityRange: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty))
@@ -443,7 +443,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the importedMembership Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id);
+ logger.LogDebug("the importedMembership Json property was not found in the MultiplicityRange: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty))
@@ -463,7 +463,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the inheritedFeature Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id);
+ logger.LogDebug("the inheritedFeature Json property was not found in the MultiplicityRange: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty))
@@ -483,7 +483,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the inheritedMembership Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id);
+ logger.LogDebug("the inheritedMembership Json property was not found in the MultiplicityRange: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("input"u8, out var inputProperty))
@@ -503,7 +503,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the input Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id);
+ logger.LogDebug("the input Json property was not found in the MultiplicityRange: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty))
@@ -523,7 +523,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the intersectingType Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id);
+ logger.LogDebug("the intersectingType Json property was not found in the MultiplicityRange: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty))
@@ -535,7 +535,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isAbstract Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isAbstract Json property was not found in the MultiplicityRange: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty))
@@ -547,7 +547,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isComposite Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isComposite Json property was not found in the MultiplicityRange: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty))
@@ -559,7 +559,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isConjugated Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isConjugated Json property was not found in the MultiplicityRange: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty))
@@ -571,7 +571,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isConstant Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isConstant Json property was not found in the MultiplicityRange: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty))
@@ -583,7 +583,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isDerived Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isDerived Json property was not found in the MultiplicityRange: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty))
@@ -595,7 +595,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isEnd Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isEnd Json property was not found in the MultiplicityRange: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty))
@@ -607,7 +607,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isImpliedIncluded Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isImpliedIncluded Json property was not found in the MultiplicityRange: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty))
@@ -619,7 +619,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isLibraryElement Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isLibraryElement Json property was not found in the MultiplicityRange: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty))
@@ -631,7 +631,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isOrdered Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isOrdered Json property was not found in the MultiplicityRange: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty))
@@ -643,7 +643,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isPortion Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isPortion Json property was not found in the MultiplicityRange: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty))
@@ -655,7 +655,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isSufficient Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isSufficient Json property was not found in the MultiplicityRange: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty))
@@ -667,7 +667,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isUnique Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isUnique Json property was not found in the MultiplicityRange: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty))
@@ -679,7 +679,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isVariable Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isVariable Json property was not found in the MultiplicityRange: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("lowerBound"u8, out var lowerBoundProperty))
@@ -703,7 +703,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the lowerBound Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id);
+ logger.LogDebug("the lowerBound Json property was not found in the MultiplicityRange: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("member"u8, out var memberProperty))
@@ -723,7 +723,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the member Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id);
+ logger.LogDebug("the member Json property was not found in the MultiplicityRange: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty))
@@ -743,7 +743,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the membership Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id);
+ logger.LogDebug("the membership Json property was not found in the MultiplicityRange: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty))
@@ -767,7 +767,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the multiplicity Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id);
+ logger.LogDebug("the multiplicity Json property was not found in the MultiplicityRange: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("name"u8, out var nameProperty))
@@ -776,7 +776,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the name Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id);
+ logger.LogDebug("the name Json property was not found in the MultiplicityRange: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("output"u8, out var outputProperty))
@@ -796,7 +796,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the output Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id);
+ logger.LogDebug("the output Json property was not found in the MultiplicityRange: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty))
@@ -816,7 +816,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedAnnotation Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedAnnotation Json property was not found in the MultiplicityRange: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty))
@@ -840,7 +840,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedConjugator Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedConjugator Json property was not found in the MultiplicityRange: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedCrossSubsetting"u8, out var ownedCrossSubsettingProperty))
@@ -864,7 +864,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedCrossSubsetting Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedCrossSubsetting Json property was not found in the MultiplicityRange: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty))
@@ -884,7 +884,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedDifferencing Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedDifferencing Json property was not found in the MultiplicityRange: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty))
@@ -904,7 +904,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedDisjoining Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedDisjoining Json property was not found in the MultiplicityRange: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty))
@@ -924,7 +924,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedElement Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedElement Json property was not found in the MultiplicityRange: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty))
@@ -944,7 +944,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedEndFeature Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedEndFeature Json property was not found in the MultiplicityRange: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty))
@@ -964,7 +964,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedFeature Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedFeature Json property was not found in the MultiplicityRange: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedFeatureChaining"u8, out var ownedFeatureChainingProperty))
@@ -984,7 +984,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedFeatureChaining Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedFeatureChaining Json property was not found in the MultiplicityRange: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedFeatureInverting"u8, out var ownedFeatureInvertingProperty))
@@ -1004,7 +1004,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedFeatureInverting Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedFeatureInverting Json property was not found in the MultiplicityRange: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty))
@@ -1024,7 +1024,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedFeatureMembership Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedFeatureMembership Json property was not found in the MultiplicityRange: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty))
@@ -1044,7 +1044,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedImport Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedImport Json property was not found in the MultiplicityRange: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty))
@@ -1064,7 +1064,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedIntersecting Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedIntersecting Json property was not found in the MultiplicityRange: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty))
@@ -1084,7 +1084,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedMember Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedMember Json property was not found in the MultiplicityRange: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty))
@@ -1104,7 +1104,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedMembership Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedMembership Json property was not found in the MultiplicityRange: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedRedefinition"u8, out var ownedRedefinitionProperty))
@@ -1124,7 +1124,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedRedefinition Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedRedefinition Json property was not found in the MultiplicityRange: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedReferenceSubsetting"u8, out var ownedReferenceSubsettingProperty))
@@ -1148,7 +1148,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the MultiplicityRange: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty))
@@ -1168,7 +1168,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedRelationship Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedRelationship Json property was not found in the MultiplicityRange: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty))
@@ -1188,7 +1188,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedSpecialization Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedSpecialization Json property was not found in the MultiplicityRange: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedSubsetting"u8, out var ownedSubsettingProperty))
@@ -1208,7 +1208,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedSubsetting Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedSubsetting Json property was not found in the MultiplicityRange: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedTypeFeaturing"u8, out var ownedTypeFeaturingProperty))
@@ -1228,7 +1228,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedTypeFeaturing Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedTypeFeaturing Json property was not found in the MultiplicityRange: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedTyping"u8, out var ownedTypingProperty))
@@ -1248,7 +1248,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedTyping Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedTyping Json property was not found in the MultiplicityRange: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty))
@@ -1268,7 +1268,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedUnioning Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedUnioning Json property was not found in the MultiplicityRange: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty))
@@ -1292,7 +1292,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owner Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owner Json property was not found in the MultiplicityRange: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningFeatureMembership"u8, out var owningFeatureMembershipProperty))
@@ -1316,7 +1316,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningFeatureMembership Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningFeatureMembership Json property was not found in the MultiplicityRange: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty))
@@ -1340,7 +1340,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningMembership Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningMembership Json property was not found in the MultiplicityRange: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty))
@@ -1364,7 +1364,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningNamespace Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningNamespace Json property was not found in the MultiplicityRange: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty))
@@ -1388,7 +1388,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningRelationship Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningRelationship Json property was not found in the MultiplicityRange: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty))
@@ -1412,7 +1412,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningType Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningType Json property was not found in the MultiplicityRange: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty))
@@ -1421,7 +1421,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the qualifiedName Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id);
+ logger.LogDebug("the qualifiedName Json property was not found in the MultiplicityRange: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty))
@@ -1430,7 +1430,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the shortName Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id);
+ logger.LogDebug("the shortName Json property was not found in the MultiplicityRange: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty))
@@ -1450,7 +1450,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the textualRepresentation Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id);
+ logger.LogDebug("the textualRepresentation Json property was not found in the MultiplicityRange: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("type"u8, out var typeProperty))
@@ -1470,7 +1470,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the type Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id);
+ logger.LogDebug("the type Json property was not found in the MultiplicityRange: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty))
@@ -1490,7 +1490,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the unioningType Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id);
+ logger.LogDebug("the unioningType Json property was not found in the MultiplicityRange: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("upperBound"u8, out var upperBoundProperty))
@@ -1515,7 +1515,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the upperBound Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id);
+ logger.LogDebug("the upperBound Json property was not found in the MultiplicityRange: {Id}", dtoInstance.Id);
}
}
@@ -1549,7 +1549,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the aliasIds Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id);
+ logger.LogDebug("the aliasIds Json property was not found in the MultiplicityRange: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty))
@@ -1558,7 +1558,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the declaredName Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id);
+ logger.LogDebug("the declaredName Json property was not found in the MultiplicityRange: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty))
@@ -1567,7 +1567,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the declaredShortName Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id);
+ logger.LogDebug("the declaredShortName Json property was not found in the MultiplicityRange: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("direction"u8, out var directionProperty))
@@ -1576,7 +1576,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the direction Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id);
+ logger.LogDebug("the direction Json property was not found in the MultiplicityRange: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty))
@@ -1590,7 +1590,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the elementId Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id);
+ logger.LogDebug("the elementId Json property was not found in the MultiplicityRange: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty))
@@ -1602,7 +1602,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isAbstract Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isAbstract Json property was not found in the MultiplicityRange: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty))
@@ -1614,7 +1614,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isComposite Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isComposite Json property was not found in the MultiplicityRange: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty))
@@ -1626,7 +1626,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isConstant Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isConstant Json property was not found in the MultiplicityRange: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty))
@@ -1638,7 +1638,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isDerived Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isDerived Json property was not found in the MultiplicityRange: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty))
@@ -1650,7 +1650,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isEnd Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isEnd Json property was not found in the MultiplicityRange: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty))
@@ -1662,7 +1662,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isImpliedIncluded Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isImpliedIncluded Json property was not found in the MultiplicityRange: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty))
@@ -1674,7 +1674,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isOrdered Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isOrdered Json property was not found in the MultiplicityRange: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty))
@@ -1686,7 +1686,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isPortion Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isPortion Json property was not found in the MultiplicityRange: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty))
@@ -1698,7 +1698,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isSufficient Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isSufficient Json property was not found in the MultiplicityRange: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty))
@@ -1710,7 +1710,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isUnique Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isUnique Json property was not found in the MultiplicityRange: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty))
@@ -1722,7 +1722,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isVariable Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isVariable Json property was not found in the MultiplicityRange: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty))
@@ -1742,7 +1742,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedRelationship Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedRelationship Json property was not found in the MultiplicityRange: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty))
@@ -1766,7 +1766,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningRelationship Json property was not found in the MultiplicityRange: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningRelationship Json property was not found in the MultiplicityRange: {Id}", dtoInstance.Id);
}
}
diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/OwningMembershipDeSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/OwningMembershipDeSerializer.cs
index 0c43646c5..1a5f810ab 100644
--- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/OwningMembershipDeSerializer.cs
+++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/OwningMembershipDeSerializer.cs
@@ -129,7 +129,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the aliasIds Json property was not found in the OwningMembership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the aliasIds Json property was not found in the OwningMembership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty))
@@ -138,7 +138,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the declaredName Json property was not found in the OwningMembership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the declaredName Json property was not found in the OwningMembership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty))
@@ -147,7 +147,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the declaredShortName Json property was not found in the OwningMembership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the declaredShortName Json property was not found in the OwningMembership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty))
@@ -167,7 +167,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the documentation Json property was not found in the OwningMembership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the documentation Json property was not found in the OwningMembership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty))
@@ -181,7 +181,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the elementId Json property was not found in the OwningMembership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the elementId Json property was not found in the OwningMembership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isImplied"u8, out var isImpliedProperty))
@@ -193,7 +193,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isImplied Json property was not found in the OwningMembership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isImplied Json property was not found in the OwningMembership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty))
@@ -205,7 +205,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isImpliedIncluded Json property was not found in the OwningMembership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isImpliedIncluded Json property was not found in the OwningMembership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty))
@@ -217,7 +217,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isLibraryElement Json property was not found in the OwningMembership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isLibraryElement Json property was not found in the OwningMembership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("membershipOwningNamespace"u8, out var membershipOwningNamespaceProperty))
@@ -242,7 +242,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the membershipOwningNamespace Json property was not found in the OwningMembership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the membershipOwningNamespace Json property was not found in the OwningMembership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("name"u8, out var nameProperty))
@@ -251,7 +251,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the name Json property was not found in the OwningMembership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the name Json property was not found in the OwningMembership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty))
@@ -271,7 +271,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedAnnotation Json property was not found in the OwningMembership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedAnnotation Json property was not found in the OwningMembership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty))
@@ -291,7 +291,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedElement Json property was not found in the OwningMembership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedElement Json property was not found in the OwningMembership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedMemberElement"u8, out var ownedMemberElementProperty))
@@ -316,7 +316,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedMemberElement Json property was not found in the OwningMembership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedMemberElement Json property was not found in the OwningMembership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedMemberElementId"u8, out var ownedMemberElementIdProperty))
@@ -330,7 +330,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedMemberElementId Json property was not found in the OwningMembership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedMemberElementId Json property was not found in the OwningMembership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedMemberName"u8, out var ownedMemberNameProperty))
@@ -339,7 +339,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedMemberName Json property was not found in the OwningMembership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedMemberName Json property was not found in the OwningMembership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedMemberShortName"u8, out var ownedMemberShortNameProperty))
@@ -348,7 +348,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedMemberShortName Json property was not found in the OwningMembership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedMemberShortName Json property was not found in the OwningMembership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty))
@@ -368,7 +368,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedRelatedElement Json property was not found in the OwningMembership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedRelatedElement Json property was not found in the OwningMembership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty))
@@ -388,7 +388,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedRelationship Json property was not found in the OwningMembership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedRelationship Json property was not found in the OwningMembership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty))
@@ -412,7 +412,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owner Json property was not found in the OwningMembership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owner Json property was not found in the OwningMembership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty))
@@ -436,7 +436,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningMembership Json property was not found in the OwningMembership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningMembership Json property was not found in the OwningMembership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty))
@@ -460,7 +460,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningNamespace Json property was not found in the OwningMembership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningNamespace Json property was not found in the OwningMembership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty))
@@ -484,7 +484,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningRelatedElement Json property was not found in the OwningMembership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningRelatedElement Json property was not found in the OwningMembership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty))
@@ -508,7 +508,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningRelationship Json property was not found in the OwningMembership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningRelationship Json property was not found in the OwningMembership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty))
@@ -517,7 +517,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the qualifiedName Json property was not found in the OwningMembership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the qualifiedName Json property was not found in the OwningMembership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty))
@@ -537,7 +537,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the relatedElement Json property was not found in the OwningMembership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the relatedElement Json property was not found in the OwningMembership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty))
@@ -546,7 +546,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the shortName Json property was not found in the OwningMembership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the shortName Json property was not found in the OwningMembership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty))
@@ -566,7 +566,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the textualRepresentation Json property was not found in the OwningMembership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the textualRepresentation Json property was not found in the OwningMembership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("visibility"u8, out var visibilityProperty))
@@ -575,7 +575,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the visibility Json property was not found in the OwningMembership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the visibility Json property was not found in the OwningMembership: {Id}", dtoInstance.Id);
}
}
@@ -609,7 +609,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the aliasIds Json property was not found in the OwningMembership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the aliasIds Json property was not found in the OwningMembership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty))
@@ -618,7 +618,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the declaredName Json property was not found in the OwningMembership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the declaredName Json property was not found in the OwningMembership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty))
@@ -627,7 +627,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the declaredShortName Json property was not found in the OwningMembership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the declaredShortName Json property was not found in the OwningMembership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty))
@@ -641,7 +641,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the elementId Json property was not found in the OwningMembership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the elementId Json property was not found in the OwningMembership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isImplied"u8, out var isImpliedProperty))
@@ -653,7 +653,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isImplied Json property was not found in the OwningMembership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isImplied Json property was not found in the OwningMembership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty))
@@ -665,7 +665,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isImpliedIncluded Json property was not found in the OwningMembership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isImpliedIncluded Json property was not found in the OwningMembership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty))
@@ -685,7 +685,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedRelatedElement Json property was not found in the OwningMembership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedRelatedElement Json property was not found in the OwningMembership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty))
@@ -705,7 +705,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedRelationship Json property was not found in the OwningMembership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedRelationship Json property was not found in the OwningMembership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty))
@@ -729,7 +729,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningRelatedElement Json property was not found in the OwningMembership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningRelatedElement Json property was not found in the OwningMembership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty))
@@ -753,7 +753,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningRelationship Json property was not found in the OwningMembership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningRelationship Json property was not found in the OwningMembership: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("visibility"u8, out var visibilityProperty))
@@ -762,7 +762,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the visibility Json property was not found in the OwningMembership: { Id }", dtoInstance.Id);
+ logger.LogDebug("the visibility Json property was not found in the OwningMembership: {Id}", dtoInstance.Id);
}
}
diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/ReferenceSubsettingDeSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/ReferenceSubsettingDeSerializer.cs
index 1ffc74ad0..c70f929ae 100644
--- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/ReferenceSubsettingDeSerializer.cs
+++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/ReferenceSubsettingDeSerializer.cs
@@ -129,7 +129,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the aliasIds Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id);
+ logger.LogDebug("the aliasIds Json property was not found in the ReferenceSubsetting: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty))
@@ -138,7 +138,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the declaredName Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id);
+ logger.LogDebug("the declaredName Json property was not found in the ReferenceSubsetting: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty))
@@ -147,7 +147,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the declaredShortName Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id);
+ logger.LogDebug("the declaredShortName Json property was not found in the ReferenceSubsetting: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty))
@@ -167,7 +167,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the documentation Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id);
+ logger.LogDebug("the documentation Json property was not found in the ReferenceSubsetting: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty))
@@ -181,7 +181,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the elementId Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id);
+ logger.LogDebug("the elementId Json property was not found in the ReferenceSubsetting: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isImplied"u8, out var isImpliedProperty))
@@ -193,7 +193,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isImplied Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isImplied Json property was not found in the ReferenceSubsetting: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty))
@@ -205,7 +205,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isImpliedIncluded Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isImpliedIncluded Json property was not found in the ReferenceSubsetting: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty))
@@ -217,7 +217,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isLibraryElement Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isLibraryElement Json property was not found in the ReferenceSubsetting: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("name"u8, out var nameProperty))
@@ -226,7 +226,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the name Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id);
+ logger.LogDebug("the name Json property was not found in the ReferenceSubsetting: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty))
@@ -246,7 +246,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedAnnotation Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedAnnotation Json property was not found in the ReferenceSubsetting: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty))
@@ -266,7 +266,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedElement Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedElement Json property was not found in the ReferenceSubsetting: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty))
@@ -286,7 +286,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedRelatedElement Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedRelatedElement Json property was not found in the ReferenceSubsetting: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty))
@@ -306,7 +306,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedRelationship Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedRelationship Json property was not found in the ReferenceSubsetting: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty))
@@ -330,7 +330,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owner Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owner Json property was not found in the ReferenceSubsetting: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty))
@@ -354,7 +354,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningMembership Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningMembership Json property was not found in the ReferenceSubsetting: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty))
@@ -378,7 +378,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningNamespace Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningNamespace Json property was not found in the ReferenceSubsetting: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty))
@@ -402,7 +402,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningRelatedElement Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningRelatedElement Json property was not found in the ReferenceSubsetting: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty))
@@ -426,7 +426,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningRelationship Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningRelationship Json property was not found in the ReferenceSubsetting: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty))
@@ -435,7 +435,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the qualifiedName Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id);
+ logger.LogDebug("the qualifiedName Json property was not found in the ReferenceSubsetting: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("referencedFeature"u8, out var referencedFeatureProperty))
@@ -460,7 +460,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the referencedFeature Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id);
+ logger.LogDebug("the referencedFeature Json property was not found in the ReferenceSubsetting: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("referencingFeature"u8, out var referencingFeatureProperty))
@@ -485,7 +485,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the referencingFeature Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id);
+ logger.LogDebug("the referencingFeature Json property was not found in the ReferenceSubsetting: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty))
@@ -505,7 +505,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the relatedElement Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id);
+ logger.LogDebug("the relatedElement Json property was not found in the ReferenceSubsetting: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty))
@@ -514,7 +514,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the shortName Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id);
+ logger.LogDebug("the shortName Json property was not found in the ReferenceSubsetting: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty))
@@ -534,7 +534,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the textualRepresentation Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id);
+ logger.LogDebug("the textualRepresentation Json property was not found in the ReferenceSubsetting: {Id}", dtoInstance.Id);
}
}
@@ -568,7 +568,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the aliasIds Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id);
+ logger.LogDebug("the aliasIds Json property was not found in the ReferenceSubsetting: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty))
@@ -577,7 +577,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the declaredName Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id);
+ logger.LogDebug("the declaredName Json property was not found in the ReferenceSubsetting: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty))
@@ -586,7 +586,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the declaredShortName Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id);
+ logger.LogDebug("the declaredShortName Json property was not found in the ReferenceSubsetting: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty))
@@ -600,7 +600,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the elementId Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id);
+ logger.LogDebug("the elementId Json property was not found in the ReferenceSubsetting: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isImplied"u8, out var isImpliedProperty))
@@ -612,7 +612,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isImplied Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isImplied Json property was not found in the ReferenceSubsetting: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty))
@@ -624,7 +624,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isImpliedIncluded Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isImpliedIncluded Json property was not found in the ReferenceSubsetting: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty))
@@ -644,7 +644,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedRelatedElement Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedRelatedElement Json property was not found in the ReferenceSubsetting: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty))
@@ -664,7 +664,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedRelationship Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedRelationship Json property was not found in the ReferenceSubsetting: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty))
@@ -688,7 +688,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningRelatedElement Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningRelatedElement Json property was not found in the ReferenceSubsetting: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty))
@@ -712,7 +712,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningRelationship Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningRelationship Json property was not found in the ReferenceSubsetting: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("referencedFeature"u8, out var referencedFeatureProperty))
@@ -737,7 +737,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the referencedFeature Json property was not found in the ReferenceSubsetting: { Id }", dtoInstance.Id);
+ logger.LogDebug("the referencedFeature Json property was not found in the ReferenceSubsetting: {Id}", dtoInstance.Id);
}
}
diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/RequirementUsageDeSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/RequirementUsageDeSerializer.cs
index aa2e702bc..c0a6a250e 100644
--- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/RequirementUsageDeSerializer.cs
+++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/RequirementUsageDeSerializer.cs
@@ -132,7 +132,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the actorParameter Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the actorParameter Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("aliasIds"u8, out var aliasIdsProperty))
@@ -149,7 +149,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the aliasIds Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the aliasIds Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("assumedConstraint"u8, out var assumedConstraintProperty))
@@ -169,7 +169,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the assumedConstraint Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the assumedConstraint Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty))
@@ -189,7 +189,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the chainingFeature Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the chainingFeature Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty))
@@ -213,7 +213,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the crossFeature Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the crossFeature Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty))
@@ -222,7 +222,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the declaredName Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the declaredName Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty))
@@ -242,7 +242,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the differencingType Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the differencingType Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty))
@@ -262,7 +262,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the directedUsage Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the directedUsage Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("direction"u8, out var directionProperty))
@@ -271,7 +271,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the direction Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the direction Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty))
@@ -291,7 +291,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the documentation Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the documentation Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty))
@@ -305,7 +305,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the elementId Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the elementId Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty))
@@ -325,7 +325,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the endFeature Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the endFeature Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty))
@@ -349,7 +349,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the endOwningType Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the endOwningType Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("feature"u8, out var featureProperty))
@@ -369,7 +369,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the feature Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the feature Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty))
@@ -389,7 +389,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the featureMembership Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the featureMembership Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("featureTarget"u8, out var featureTargetProperty))
@@ -414,7 +414,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the featureTarget Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the featureTarget Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("featuringType"u8, out var featuringTypeProperty))
@@ -434,7 +434,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the featuringType Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the featuringType Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("framedConcern"u8, out var framedConcernProperty))
@@ -454,7 +454,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the framedConcern Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the framedConcern Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty))
@@ -474,7 +474,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the importedMembership Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the importedMembership Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("individualDefinition"u8, out var individualDefinitionProperty))
@@ -498,7 +498,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the individualDefinition Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the individualDefinition Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty))
@@ -518,7 +518,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the inheritedFeature Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the inheritedFeature Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty))
@@ -538,7 +538,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the inheritedMembership Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the inheritedMembership Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("input"u8, out var inputProperty))
@@ -558,7 +558,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the input Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the input Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty))
@@ -578,7 +578,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the intersectingType Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the intersectingType Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty))
@@ -590,7 +590,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isAbstract Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isAbstract Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty))
@@ -602,7 +602,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isComposite Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isComposite Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty))
@@ -614,7 +614,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isConjugated Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isConjugated Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty))
@@ -626,7 +626,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isConstant Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isConstant Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty))
@@ -638,7 +638,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isDerived Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isDerived Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty))
@@ -650,7 +650,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isEnd Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isEnd Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty))
@@ -662,7 +662,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isImpliedIncluded Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isImpliedIncluded Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isIndividual"u8, out var isIndividualProperty))
@@ -674,7 +674,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isIndividual Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isIndividual Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty))
@@ -686,7 +686,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isLibraryElement Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isLibraryElement Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isModelLevelEvaluable"u8, out var isModelLevelEvaluableProperty))
@@ -698,7 +698,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isModelLevelEvaluable Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isModelLevelEvaluable Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty))
@@ -710,7 +710,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isOrdered Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isOrdered Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty))
@@ -722,7 +722,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isPortion Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isPortion Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isReference"u8, out var isReferenceProperty))
@@ -734,7 +734,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isReference Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isReference Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty))
@@ -746,7 +746,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isSufficient Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isSufficient Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty))
@@ -758,7 +758,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isUnique Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isUnique Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty))
@@ -770,7 +770,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isVariation Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isVariation Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("mayTimeVary"u8, out var mayTimeVaryProperty))
@@ -782,7 +782,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the mayTimeVary Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the mayTimeVary Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("member"u8, out var memberProperty))
@@ -802,7 +802,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the member Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the member Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty))
@@ -822,7 +822,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the membership Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the membership Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty))
@@ -846,7 +846,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the multiplicity Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the multiplicity Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("name"u8, out var nameProperty))
@@ -855,7 +855,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the name Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the name Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("nestedAction"u8, out var nestedActionProperty))
@@ -875,7 +875,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the nestedAction Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the nestedAction Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("nestedAllocation"u8, out var nestedAllocationProperty))
@@ -895,7 +895,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the nestedAllocation Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the nestedAllocation Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("nestedAnalysisCase"u8, out var nestedAnalysisCaseProperty))
@@ -915,7 +915,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the nestedAnalysisCase Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the nestedAnalysisCase Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("nestedAttribute"u8, out var nestedAttributeProperty))
@@ -935,7 +935,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the nestedAttribute Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the nestedAttribute Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("nestedCalculation"u8, out var nestedCalculationProperty))
@@ -955,7 +955,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the nestedCalculation Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the nestedCalculation Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("nestedCase"u8, out var nestedCaseProperty))
@@ -975,7 +975,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the nestedCase Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the nestedCase Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("nestedConcern"u8, out var nestedConcernProperty))
@@ -995,7 +995,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the nestedConcern Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the nestedConcern Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("nestedConnection"u8, out var nestedConnectionProperty))
@@ -1015,7 +1015,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the nestedConnection Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the nestedConnection Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("nestedConstraint"u8, out var nestedConstraintProperty))
@@ -1035,7 +1035,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the nestedConstraint Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the nestedConstraint Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("nestedEnumeration"u8, out var nestedEnumerationProperty))
@@ -1055,7 +1055,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the nestedEnumeration Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the nestedEnumeration Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("nestedFlow"u8, out var nestedFlowProperty))
@@ -1075,7 +1075,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the nestedFlow Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the nestedFlow Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("nestedInterface"u8, out var nestedInterfaceProperty))
@@ -1095,7 +1095,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the nestedInterface Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the nestedInterface Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("nestedItem"u8, out var nestedItemProperty))
@@ -1115,7 +1115,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the nestedItem Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the nestedItem Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("nestedMetadata"u8, out var nestedMetadataProperty))
@@ -1135,7 +1135,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the nestedMetadata Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the nestedMetadata Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("nestedOccurrence"u8, out var nestedOccurrenceProperty))
@@ -1155,7 +1155,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the nestedOccurrence Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the nestedOccurrence Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("nestedPart"u8, out var nestedPartProperty))
@@ -1175,7 +1175,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the nestedPart Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the nestedPart Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("nestedPort"u8, out var nestedPortProperty))
@@ -1195,7 +1195,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the nestedPort Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the nestedPort Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("nestedReference"u8, out var nestedReferenceProperty))
@@ -1215,7 +1215,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the nestedReference Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the nestedReference Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("nestedRendering"u8, out var nestedRenderingProperty))
@@ -1235,7 +1235,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the nestedRendering Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the nestedRendering Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("nestedRequirement"u8, out var nestedRequirementProperty))
@@ -1255,7 +1255,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the nestedRequirement Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the nestedRequirement Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("nestedState"u8, out var nestedStateProperty))
@@ -1275,7 +1275,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the nestedState Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the nestedState Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("nestedTransition"u8, out var nestedTransitionProperty))
@@ -1295,7 +1295,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the nestedTransition Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the nestedTransition Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("nestedUsage"u8, out var nestedUsageProperty))
@@ -1315,7 +1315,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the nestedUsage Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the nestedUsage Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("nestedUseCase"u8, out var nestedUseCaseProperty))
@@ -1335,7 +1335,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the nestedUseCase Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the nestedUseCase Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("nestedVerificationCase"u8, out var nestedVerificationCaseProperty))
@@ -1355,7 +1355,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the nestedVerificationCase Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the nestedVerificationCase Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("nestedView"u8, out var nestedViewProperty))
@@ -1375,7 +1375,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the nestedView Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the nestedView Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("nestedViewpoint"u8, out var nestedViewpointProperty))
@@ -1395,7 +1395,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the nestedViewpoint Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the nestedViewpoint Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("occurrenceDefinition"u8, out var occurrenceDefinitionProperty))
@@ -1415,7 +1415,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the occurrenceDefinition Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the occurrenceDefinition Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("output"u8, out var outputProperty))
@@ -1435,7 +1435,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the output Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the output Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty))
@@ -1455,7 +1455,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedAnnotation Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedAnnotation Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty))
@@ -1479,7 +1479,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedConjugator Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedConjugator Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedCrossSubsetting"u8, out var ownedCrossSubsettingProperty))
@@ -1503,7 +1503,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedCrossSubsetting Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedCrossSubsetting Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty))
@@ -1523,7 +1523,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedDifferencing Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedDifferencing Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty))
@@ -1543,7 +1543,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedDisjoining Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedDisjoining Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty))
@@ -1563,7 +1563,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedElement Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedElement Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty))
@@ -1583,7 +1583,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedEndFeature Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedEndFeature Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty))
@@ -1603,7 +1603,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedFeature Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedFeature Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedFeatureChaining"u8, out var ownedFeatureChainingProperty))
@@ -1623,7 +1623,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedFeatureChaining Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedFeatureChaining Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedFeatureInverting"u8, out var ownedFeatureInvertingProperty))
@@ -1643,7 +1643,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedFeatureInverting Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedFeatureInverting Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty))
@@ -1663,7 +1663,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedFeatureMembership Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedFeatureMembership Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty))
@@ -1683,7 +1683,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedImport Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedImport Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty))
@@ -1703,7 +1703,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedIntersecting Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedIntersecting Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty))
@@ -1723,7 +1723,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedMember Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedMember Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty))
@@ -1743,7 +1743,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedMembership Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedMembership Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedRedefinition"u8, out var ownedRedefinitionProperty))
@@ -1763,7 +1763,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedRedefinition Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedRedefinition Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedReferenceSubsetting"u8, out var ownedReferenceSubsettingProperty))
@@ -1787,7 +1787,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty))
@@ -1807,7 +1807,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedRelationship Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedRelationship Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty))
@@ -1827,7 +1827,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedSpecialization Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedSpecialization Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedSubsetting"u8, out var ownedSubsettingProperty))
@@ -1847,7 +1847,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedSubsetting Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedSubsetting Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedTypeFeaturing"u8, out var ownedTypeFeaturingProperty))
@@ -1867,7 +1867,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedTypeFeaturing Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedTypeFeaturing Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedTyping"u8, out var ownedTypingProperty))
@@ -1887,7 +1887,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedTyping Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedTyping Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty))
@@ -1907,7 +1907,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedUnioning Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedUnioning Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty))
@@ -1931,7 +1931,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owner Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owner Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningDefinition"u8, out var owningDefinitionProperty))
@@ -1955,7 +1955,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningDefinition Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningDefinition Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningFeatureMembership"u8, out var owningFeatureMembershipProperty))
@@ -1979,7 +1979,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningFeatureMembership Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningFeatureMembership Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty))
@@ -2003,7 +2003,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningMembership Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningMembership Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty))
@@ -2027,7 +2027,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningNamespace Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningNamespace Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty))
@@ -2051,7 +2051,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningRelationship Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningRelationship Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty))
@@ -2075,7 +2075,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningType Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningType Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningUsage"u8, out var owningUsageProperty))
@@ -2099,7 +2099,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningUsage Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningUsage Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("parameter"u8, out var parameterProperty))
@@ -2119,7 +2119,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the parameter Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the parameter Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("portionKind"u8, out var portionKindProperty))
@@ -2128,7 +2128,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the portionKind Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the portionKind Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty))
@@ -2137,7 +2137,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the qualifiedName Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the qualifiedName Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("reqId"u8, out var reqIdProperty))
@@ -2146,7 +2146,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the reqId Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the reqId Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("requiredConstraint"u8, out var requiredConstraintProperty))
@@ -2166,7 +2166,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the requiredConstraint Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the requiredConstraint Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("requirementDefinition"u8, out var requirementDefinitionProperty))
@@ -2190,7 +2190,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the requirementDefinition Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the requirementDefinition Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("result"u8, out var resultProperty))
@@ -2215,7 +2215,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the result Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the result Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty))
@@ -2224,7 +2224,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the shortName Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the shortName Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("stakeholderParameter"u8, out var stakeholderParameterProperty))
@@ -2244,7 +2244,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the stakeholderParameter Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the stakeholderParameter Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("subjectParameter"u8, out var subjectParameterProperty))
@@ -2269,7 +2269,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the subjectParameter Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the subjectParameter Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("text"u8, out var textProperty))
@@ -2286,7 +2286,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the text Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the text Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty))
@@ -2306,7 +2306,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the textualRepresentation Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the textualRepresentation Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty))
@@ -2326,7 +2326,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the unioningType Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the unioningType Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("usage"u8, out var usageProperty))
@@ -2346,7 +2346,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the usage Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the usage Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("variant"u8, out var variantProperty))
@@ -2366,7 +2366,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the variant Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the variant Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("variantMembership"u8, out var variantMembershipProperty))
@@ -2386,7 +2386,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the variantMembership Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the variantMembership Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
}
@@ -2420,7 +2420,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the aliasIds Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the aliasIds Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty))
@@ -2429,7 +2429,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the declaredName Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the declaredName Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("direction"u8, out var directionProperty))
@@ -2438,7 +2438,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the direction Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the direction Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty))
@@ -2452,7 +2452,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the elementId Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the elementId Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty))
@@ -2464,7 +2464,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isAbstract Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isAbstract Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty))
@@ -2476,7 +2476,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isComposite Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isComposite Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty))
@@ -2488,7 +2488,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isConstant Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isConstant Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty))
@@ -2500,7 +2500,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isDerived Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isDerived Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty))
@@ -2512,7 +2512,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isEnd Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isEnd Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty))
@@ -2524,7 +2524,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isImpliedIncluded Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isImpliedIncluded Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isIndividual"u8, out var isIndividualProperty))
@@ -2536,7 +2536,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isIndividual Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isIndividual Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty))
@@ -2548,7 +2548,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isOrdered Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isOrdered Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty))
@@ -2560,7 +2560,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isPortion Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isPortion Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty))
@@ -2572,7 +2572,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isSufficient Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isSufficient Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty))
@@ -2584,7 +2584,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isUnique Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isUnique Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty))
@@ -2596,7 +2596,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isVariation Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isVariation Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty))
@@ -2616,7 +2616,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedRelationship Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedRelationship Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty))
@@ -2640,7 +2640,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningRelationship Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningRelationship Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("portionKind"u8, out var portionKindProperty))
@@ -2649,7 +2649,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the portionKind Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the portionKind Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("reqId"u8, out var reqIdProperty))
@@ -2658,7 +2658,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the reqId Json property was not found in the RequirementUsage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the reqId Json property was not found in the RequirementUsage: {Id}", dtoInstance.Id);
}
}
diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/SelectExpressionDeSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/SelectExpressionDeSerializer.cs
index 700a71bc5..0190c6929 100644
--- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/SelectExpressionDeSerializer.cs
+++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/SelectExpressionDeSerializer.cs
@@ -129,7 +129,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the aliasIds Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the aliasIds Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("argument"u8, out var argumentProperty))
@@ -149,7 +149,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the argument Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the argument Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty))
@@ -169,7 +169,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the chainingFeature Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the chainingFeature Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty))
@@ -193,7 +193,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the crossFeature Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the crossFeature Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty))
@@ -202,7 +202,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the declaredName Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the declaredName Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty))
@@ -211,7 +211,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the declaredShortName Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the declaredShortName Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty))
@@ -231,7 +231,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the differencingType Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the differencingType Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("direction"u8, out var directionProperty))
@@ -240,7 +240,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the direction Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the direction Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty))
@@ -260,7 +260,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the documentation Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the documentation Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty))
@@ -274,7 +274,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the elementId Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the elementId Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty))
@@ -294,7 +294,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the endFeature Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the endFeature Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty))
@@ -318,7 +318,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the endOwningType Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the endOwningType Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("feature"u8, out var featureProperty))
@@ -338,7 +338,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the feature Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the feature Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty))
@@ -358,7 +358,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the featureMembership Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the featureMembership Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("featureTarget"u8, out var featureTargetProperty))
@@ -383,7 +383,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the featureTarget Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the featureTarget Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("featuringType"u8, out var featuringTypeProperty))
@@ -403,7 +403,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the featuringType Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the featuringType Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("function"u8, out var functionProperty))
@@ -427,7 +427,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the function Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the function Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty))
@@ -447,7 +447,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the importedMembership Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the importedMembership Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty))
@@ -467,7 +467,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the inheritedFeature Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the inheritedFeature Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty))
@@ -487,7 +487,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the inheritedMembership Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the inheritedMembership Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("input"u8, out var inputProperty))
@@ -507,7 +507,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the input Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the input Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("instantiatedType"u8, out var instantiatedTypeProperty))
@@ -532,7 +532,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the instantiatedType Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the instantiatedType Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty))
@@ -552,7 +552,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the intersectingType Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the intersectingType Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty))
@@ -564,7 +564,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isAbstract Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isAbstract Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty))
@@ -576,7 +576,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isComposite Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isComposite Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty))
@@ -588,7 +588,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isConjugated Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isConjugated Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty))
@@ -600,7 +600,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isConstant Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isConstant Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty))
@@ -612,7 +612,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isDerived Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isDerived Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty))
@@ -624,7 +624,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isEnd Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isEnd Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty))
@@ -636,7 +636,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isImpliedIncluded Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isImpliedIncluded Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty))
@@ -648,7 +648,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isLibraryElement Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isLibraryElement Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isModelLevelEvaluable"u8, out var isModelLevelEvaluableProperty))
@@ -660,7 +660,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isModelLevelEvaluable Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isModelLevelEvaluable Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty))
@@ -672,7 +672,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isOrdered Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isOrdered Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty))
@@ -684,7 +684,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isPortion Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isPortion Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty))
@@ -696,7 +696,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isSufficient Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isSufficient Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty))
@@ -708,7 +708,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isUnique Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isUnique Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty))
@@ -720,7 +720,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isVariable Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isVariable Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("member"u8, out var memberProperty))
@@ -740,7 +740,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the member Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the member Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty))
@@ -760,7 +760,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the membership Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the membership Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty))
@@ -784,7 +784,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the multiplicity Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the multiplicity Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("name"u8, out var nameProperty))
@@ -793,7 +793,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the name Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the name Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("operator"u8, out var operatorProperty))
@@ -807,7 +807,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the operator Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the operator Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("output"u8, out var outputProperty))
@@ -827,7 +827,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the output Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the output Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty))
@@ -847,7 +847,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedAnnotation Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedAnnotation Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty))
@@ -871,7 +871,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedConjugator Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedConjugator Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedCrossSubsetting"u8, out var ownedCrossSubsettingProperty))
@@ -895,7 +895,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedCrossSubsetting Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedCrossSubsetting Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty))
@@ -915,7 +915,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedDifferencing Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedDifferencing Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty))
@@ -935,7 +935,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedDisjoining Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedDisjoining Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty))
@@ -955,7 +955,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedElement Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedElement Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty))
@@ -975,7 +975,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedEndFeature Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedEndFeature Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty))
@@ -995,7 +995,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedFeature Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedFeature Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedFeatureChaining"u8, out var ownedFeatureChainingProperty))
@@ -1015,7 +1015,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedFeatureChaining Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedFeatureChaining Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedFeatureInverting"u8, out var ownedFeatureInvertingProperty))
@@ -1035,7 +1035,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedFeatureInverting Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedFeatureInverting Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty))
@@ -1055,7 +1055,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedFeatureMembership Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedFeatureMembership Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty))
@@ -1075,7 +1075,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedImport Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedImport Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty))
@@ -1095,7 +1095,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedIntersecting Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedIntersecting Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty))
@@ -1115,7 +1115,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedMember Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedMember Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty))
@@ -1135,7 +1135,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedMembership Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedMembership Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedRedefinition"u8, out var ownedRedefinitionProperty))
@@ -1155,7 +1155,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedRedefinition Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedRedefinition Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedReferenceSubsetting"u8, out var ownedReferenceSubsettingProperty))
@@ -1179,7 +1179,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty))
@@ -1199,7 +1199,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedRelationship Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedRelationship Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty))
@@ -1219,7 +1219,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedSpecialization Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedSpecialization Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedSubsetting"u8, out var ownedSubsettingProperty))
@@ -1239,7 +1239,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedSubsetting Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedSubsetting Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedTypeFeaturing"u8, out var ownedTypeFeaturingProperty))
@@ -1259,7 +1259,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedTypeFeaturing Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedTypeFeaturing Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedTyping"u8, out var ownedTypingProperty))
@@ -1279,7 +1279,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedTyping Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedTyping Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty))
@@ -1299,7 +1299,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedUnioning Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedUnioning Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty))
@@ -1323,7 +1323,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owner Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owner Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningFeatureMembership"u8, out var owningFeatureMembershipProperty))
@@ -1347,7 +1347,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningFeatureMembership Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningFeatureMembership Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty))
@@ -1371,7 +1371,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningMembership Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningMembership Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty))
@@ -1395,7 +1395,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningNamespace Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningNamespace Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty))
@@ -1419,7 +1419,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningRelationship Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningRelationship Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty))
@@ -1443,7 +1443,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningType Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningType Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("parameter"u8, out var parameterProperty))
@@ -1463,7 +1463,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the parameter Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the parameter Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty))
@@ -1472,7 +1472,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the qualifiedName Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the qualifiedName Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("result"u8, out var resultProperty))
@@ -1497,7 +1497,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the result Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the result Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty))
@@ -1506,7 +1506,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the shortName Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the shortName Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty))
@@ -1526,7 +1526,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the textualRepresentation Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the textualRepresentation Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("type"u8, out var typeProperty))
@@ -1546,7 +1546,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the type Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the type Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty))
@@ -1566,7 +1566,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the unioningType Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the unioningType Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
}
@@ -1600,7 +1600,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the aliasIds Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the aliasIds Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty))
@@ -1609,7 +1609,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the declaredName Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the declaredName Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty))
@@ -1618,7 +1618,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the declaredShortName Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the declaredShortName Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("direction"u8, out var directionProperty))
@@ -1627,7 +1627,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the direction Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the direction Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty))
@@ -1641,7 +1641,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the elementId Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the elementId Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty))
@@ -1653,7 +1653,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isAbstract Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isAbstract Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty))
@@ -1665,7 +1665,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isComposite Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isComposite Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty))
@@ -1677,7 +1677,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isConstant Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isConstant Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty))
@@ -1689,7 +1689,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isDerived Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isDerived Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty))
@@ -1701,7 +1701,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isEnd Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isEnd Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty))
@@ -1713,7 +1713,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isImpliedIncluded Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isImpliedIncluded Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty))
@@ -1725,7 +1725,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isOrdered Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isOrdered Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty))
@@ -1737,7 +1737,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isPortion Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isPortion Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty))
@@ -1749,7 +1749,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isSufficient Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isSufficient Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty))
@@ -1761,7 +1761,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isUnique Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isUnique Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isVariable"u8, out var isVariableProperty))
@@ -1773,7 +1773,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isVariable Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isVariable Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("operator"u8, out var operatorProperty))
@@ -1787,7 +1787,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the operator Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the operator Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty))
@@ -1807,7 +1807,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedRelationship Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedRelationship Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty))
@@ -1831,7 +1831,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningRelationship Json property was not found in the SelectExpression: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningRelationship Json property was not found in the SelectExpression: {Id}", dtoInstance.Id);
}
}
diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/SubclassificationDeSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/SubclassificationDeSerializer.cs
index 822a93c12..58d3012de 100644
--- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/SubclassificationDeSerializer.cs
+++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/SubclassificationDeSerializer.cs
@@ -129,7 +129,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the aliasIds Json property was not found in the Subclassification: { Id }", dtoInstance.Id);
+ logger.LogDebug("the aliasIds Json property was not found in the Subclassification: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty))
@@ -138,7 +138,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the declaredName Json property was not found in the Subclassification: { Id }", dtoInstance.Id);
+ logger.LogDebug("the declaredName Json property was not found in the Subclassification: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty))
@@ -147,7 +147,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the declaredShortName Json property was not found in the Subclassification: { Id }", dtoInstance.Id);
+ logger.LogDebug("the declaredShortName Json property was not found in the Subclassification: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty))
@@ -167,7 +167,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the documentation Json property was not found in the Subclassification: { Id }", dtoInstance.Id);
+ logger.LogDebug("the documentation Json property was not found in the Subclassification: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty))
@@ -181,7 +181,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the elementId Json property was not found in the Subclassification: { Id }", dtoInstance.Id);
+ logger.LogDebug("the elementId Json property was not found in the Subclassification: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isImplied"u8, out var isImpliedProperty))
@@ -193,7 +193,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isImplied Json property was not found in the Subclassification: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isImplied Json property was not found in the Subclassification: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty))
@@ -205,7 +205,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isImpliedIncluded Json property was not found in the Subclassification: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isImpliedIncluded Json property was not found in the Subclassification: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty))
@@ -217,7 +217,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isLibraryElement Json property was not found in the Subclassification: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isLibraryElement Json property was not found in the Subclassification: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("name"u8, out var nameProperty))
@@ -226,7 +226,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the name Json property was not found in the Subclassification: { Id }", dtoInstance.Id);
+ logger.LogDebug("the name Json property was not found in the Subclassification: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty))
@@ -246,7 +246,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedAnnotation Json property was not found in the Subclassification: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedAnnotation Json property was not found in the Subclassification: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty))
@@ -266,7 +266,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedElement Json property was not found in the Subclassification: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedElement Json property was not found in the Subclassification: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty))
@@ -286,7 +286,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedRelatedElement Json property was not found in the Subclassification: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedRelatedElement Json property was not found in the Subclassification: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty))
@@ -306,7 +306,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedRelationship Json property was not found in the Subclassification: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedRelationship Json property was not found in the Subclassification: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty))
@@ -330,7 +330,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owner Json property was not found in the Subclassification: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owner Json property was not found in the Subclassification: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningClassifier"u8, out var owningClassifierProperty))
@@ -354,7 +354,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningClassifier Json property was not found in the Subclassification: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningClassifier Json property was not found in the Subclassification: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty))
@@ -378,7 +378,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningMembership Json property was not found in the Subclassification: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningMembership Json property was not found in the Subclassification: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty))
@@ -402,7 +402,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningNamespace Json property was not found in the Subclassification: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningNamespace Json property was not found in the Subclassification: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty))
@@ -426,7 +426,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningRelatedElement Json property was not found in the Subclassification: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningRelatedElement Json property was not found in the Subclassification: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty))
@@ -450,7 +450,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningRelationship Json property was not found in the Subclassification: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningRelationship Json property was not found in the Subclassification: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty))
@@ -459,7 +459,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the qualifiedName Json property was not found in the Subclassification: { Id }", dtoInstance.Id);
+ logger.LogDebug("the qualifiedName Json property was not found in the Subclassification: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("relatedElement"u8, out var relatedElementProperty))
@@ -479,7 +479,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the relatedElement Json property was not found in the Subclassification: { Id }", dtoInstance.Id);
+ logger.LogDebug("the relatedElement Json property was not found in the Subclassification: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty))
@@ -488,7 +488,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the shortName Json property was not found in the Subclassification: { Id }", dtoInstance.Id);
+ logger.LogDebug("the shortName Json property was not found in the Subclassification: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("subclassifier"u8, out var subclassifierProperty))
@@ -513,7 +513,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the subclassifier Json property was not found in the Subclassification: { Id }", dtoInstance.Id);
+ logger.LogDebug("the subclassifier Json property was not found in the Subclassification: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("superclassifier"u8, out var superclassifierProperty))
@@ -538,7 +538,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the superclassifier Json property was not found in the Subclassification: { Id }", dtoInstance.Id);
+ logger.LogDebug("the superclassifier Json property was not found in the Subclassification: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty))
@@ -558,7 +558,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the textualRepresentation Json property was not found in the Subclassification: { Id }", dtoInstance.Id);
+ logger.LogDebug("the textualRepresentation Json property was not found in the Subclassification: {Id}", dtoInstance.Id);
}
}
@@ -592,7 +592,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the aliasIds Json property was not found in the Subclassification: { Id }", dtoInstance.Id);
+ logger.LogDebug("the aliasIds Json property was not found in the Subclassification: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty))
@@ -601,7 +601,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the declaredName Json property was not found in the Subclassification: { Id }", dtoInstance.Id);
+ logger.LogDebug("the declaredName Json property was not found in the Subclassification: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty))
@@ -610,7 +610,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the declaredShortName Json property was not found in the Subclassification: { Id }", dtoInstance.Id);
+ logger.LogDebug("the declaredShortName Json property was not found in the Subclassification: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty))
@@ -624,7 +624,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the elementId Json property was not found in the Subclassification: { Id }", dtoInstance.Id);
+ logger.LogDebug("the elementId Json property was not found in the Subclassification: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isImplied"u8, out var isImpliedProperty))
@@ -636,7 +636,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isImplied Json property was not found in the Subclassification: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isImplied Json property was not found in the Subclassification: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty))
@@ -648,7 +648,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isImpliedIncluded Json property was not found in the Subclassification: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isImpliedIncluded Json property was not found in the Subclassification: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedRelatedElement"u8, out var ownedRelatedElementProperty))
@@ -668,7 +668,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedRelatedElement Json property was not found in the Subclassification: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedRelatedElement Json property was not found in the Subclassification: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty))
@@ -688,7 +688,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedRelationship Json property was not found in the Subclassification: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedRelationship Json property was not found in the Subclassification: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningRelatedElement"u8, out var owningRelatedElementProperty))
@@ -712,7 +712,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningRelatedElement Json property was not found in the Subclassification: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningRelatedElement Json property was not found in the Subclassification: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty))
@@ -736,7 +736,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningRelationship Json property was not found in the Subclassification: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningRelationship Json property was not found in the Subclassification: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("subclassifier"u8, out var subclassifierProperty))
@@ -761,7 +761,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the subclassifier Json property was not found in the Subclassification: { Id }", dtoInstance.Id);
+ logger.LogDebug("the subclassifier Json property was not found in the Subclassification: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("superclassifier"u8, out var superclassifierProperty))
@@ -786,7 +786,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the superclassifier Json property was not found in the Subclassification: { Id }", dtoInstance.Id);
+ logger.LogDebug("the superclassifier Json property was not found in the Subclassification: {Id}", dtoInstance.Id);
}
}
diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/TextualRepresentationDeSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/TextualRepresentationDeSerializer.cs
index d3323b067..73b7f5ea1 100644
--- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/TextualRepresentationDeSerializer.cs
+++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/TextualRepresentationDeSerializer.cs
@@ -129,7 +129,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the aliasIds Json property was not found in the TextualRepresentation: { Id }", dtoInstance.Id);
+ logger.LogDebug("the aliasIds Json property was not found in the TextualRepresentation: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("annotation"u8, out var annotationProperty))
@@ -149,7 +149,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the annotation Json property was not found in the TextualRepresentation: { Id }", dtoInstance.Id);
+ logger.LogDebug("the annotation Json property was not found in the TextualRepresentation: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("body"u8, out var bodyProperty))
@@ -163,7 +163,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the body Json property was not found in the TextualRepresentation: { Id }", dtoInstance.Id);
+ logger.LogDebug("the body Json property was not found in the TextualRepresentation: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty))
@@ -172,7 +172,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the declaredName Json property was not found in the TextualRepresentation: { Id }", dtoInstance.Id);
+ logger.LogDebug("the declaredName Json property was not found in the TextualRepresentation: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty))
@@ -181,7 +181,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the declaredShortName Json property was not found in the TextualRepresentation: { Id }", dtoInstance.Id);
+ logger.LogDebug("the declaredShortName Json property was not found in the TextualRepresentation: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty))
@@ -201,7 +201,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the documentation Json property was not found in the TextualRepresentation: { Id }", dtoInstance.Id);
+ logger.LogDebug("the documentation Json property was not found in the TextualRepresentation: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty))
@@ -215,7 +215,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the elementId Json property was not found in the TextualRepresentation: { Id }", dtoInstance.Id);
+ logger.LogDebug("the elementId Json property was not found in the TextualRepresentation: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty))
@@ -227,7 +227,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isImpliedIncluded Json property was not found in the TextualRepresentation: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isImpliedIncluded Json property was not found in the TextualRepresentation: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty))
@@ -239,7 +239,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isLibraryElement Json property was not found in the TextualRepresentation: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isLibraryElement Json property was not found in the TextualRepresentation: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("language"u8, out var languageProperty))
@@ -253,7 +253,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the language Json property was not found in the TextualRepresentation: { Id }", dtoInstance.Id);
+ logger.LogDebug("the language Json property was not found in the TextualRepresentation: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("name"u8, out var nameProperty))
@@ -262,7 +262,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the name Json property was not found in the TextualRepresentation: { Id }", dtoInstance.Id);
+ logger.LogDebug("the name Json property was not found in the TextualRepresentation: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedAnnotatingRelationship"u8, out var ownedAnnotatingRelationshipProperty))
@@ -282,7 +282,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedAnnotatingRelationship Json property was not found in the TextualRepresentation: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedAnnotatingRelationship Json property was not found in the TextualRepresentation: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty))
@@ -302,7 +302,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedAnnotation Json property was not found in the TextualRepresentation: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedAnnotation Json property was not found in the TextualRepresentation: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty))
@@ -322,7 +322,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedElement Json property was not found in the TextualRepresentation: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedElement Json property was not found in the TextualRepresentation: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty))
@@ -342,7 +342,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedRelationship Json property was not found in the TextualRepresentation: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedRelationship Json property was not found in the TextualRepresentation: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty))
@@ -366,7 +366,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owner Json property was not found in the TextualRepresentation: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owner Json property was not found in the TextualRepresentation: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningAnnotatingRelationship"u8, out var owningAnnotatingRelationshipProperty))
@@ -390,7 +390,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningAnnotatingRelationship Json property was not found in the TextualRepresentation: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningAnnotatingRelationship Json property was not found in the TextualRepresentation: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty))
@@ -414,7 +414,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningMembership Json property was not found in the TextualRepresentation: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningMembership Json property was not found in the TextualRepresentation: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty))
@@ -438,7 +438,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningNamespace Json property was not found in the TextualRepresentation: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningNamespace Json property was not found in the TextualRepresentation: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty))
@@ -462,7 +462,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningRelationship Json property was not found in the TextualRepresentation: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningRelationship Json property was not found in the TextualRepresentation: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty))
@@ -471,7 +471,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the qualifiedName Json property was not found in the TextualRepresentation: { Id }", dtoInstance.Id);
+ logger.LogDebug("the qualifiedName Json property was not found in the TextualRepresentation: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("representedElement"u8, out var representedElementProperty))
@@ -496,7 +496,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the representedElement Json property was not found in the TextualRepresentation: { Id }", dtoInstance.Id);
+ logger.LogDebug("the representedElement Json property was not found in the TextualRepresentation: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty))
@@ -505,7 +505,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the shortName Json property was not found in the TextualRepresentation: { Id }", dtoInstance.Id);
+ logger.LogDebug("the shortName Json property was not found in the TextualRepresentation: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty))
@@ -525,7 +525,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the textualRepresentation Json property was not found in the TextualRepresentation: { Id }", dtoInstance.Id);
+ logger.LogDebug("the textualRepresentation Json property was not found in the TextualRepresentation: {Id}", dtoInstance.Id);
}
}
@@ -559,7 +559,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the aliasIds Json property was not found in the TextualRepresentation: { Id }", dtoInstance.Id);
+ logger.LogDebug("the aliasIds Json property was not found in the TextualRepresentation: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("body"u8, out var bodyProperty))
@@ -573,7 +573,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the body Json property was not found in the TextualRepresentation: { Id }", dtoInstance.Id);
+ logger.LogDebug("the body Json property was not found in the TextualRepresentation: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty))
@@ -582,7 +582,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the declaredName Json property was not found in the TextualRepresentation: { Id }", dtoInstance.Id);
+ logger.LogDebug("the declaredName Json property was not found in the TextualRepresentation: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty))
@@ -591,7 +591,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the declaredShortName Json property was not found in the TextualRepresentation: { Id }", dtoInstance.Id);
+ logger.LogDebug("the declaredShortName Json property was not found in the TextualRepresentation: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty))
@@ -605,7 +605,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the elementId Json property was not found in the TextualRepresentation: { Id }", dtoInstance.Id);
+ logger.LogDebug("the elementId Json property was not found in the TextualRepresentation: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty))
@@ -617,7 +617,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isImpliedIncluded Json property was not found in the TextualRepresentation: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isImpliedIncluded Json property was not found in the TextualRepresentation: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("language"u8, out var languageProperty))
@@ -631,7 +631,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the language Json property was not found in the TextualRepresentation: { Id }", dtoInstance.Id);
+ logger.LogDebug("the language Json property was not found in the TextualRepresentation: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty))
@@ -651,7 +651,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedRelationship Json property was not found in the TextualRepresentation: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedRelationship Json property was not found in the TextualRepresentation: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty))
@@ -675,7 +675,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningRelationship Json property was not found in the TextualRepresentation: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningRelationship Json property was not found in the TextualRepresentation: {Id}", dtoInstance.Id);
}
}
diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/UsageDeSerializer.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/UsageDeSerializer.cs
index a80de28ad..98d8977c5 100644
--- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/UsageDeSerializer.cs
+++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenDeSerializer/UsageDeSerializer.cs
@@ -129,7 +129,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the aliasIds Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the aliasIds Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("chainingFeature"u8, out var chainingFeatureProperty))
@@ -149,7 +149,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the chainingFeature Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the chainingFeature Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("crossFeature"u8, out var crossFeatureProperty))
@@ -173,7 +173,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the crossFeature Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the crossFeature Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty))
@@ -182,7 +182,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the declaredName Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the declaredName Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty))
@@ -191,7 +191,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the declaredShortName Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the declaredShortName Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("definition"u8, out var definitionProperty))
@@ -211,7 +211,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the definition Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the definition Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("differencingType"u8, out var differencingTypeProperty))
@@ -231,7 +231,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the differencingType Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the differencingType Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("directedFeature"u8, out var directedFeatureProperty))
@@ -251,7 +251,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the directedFeature Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the directedFeature Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("directedUsage"u8, out var directedUsageProperty))
@@ -271,7 +271,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the directedUsage Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the directedUsage Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("direction"u8, out var directionProperty))
@@ -280,7 +280,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the direction Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the direction Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("documentation"u8, out var documentationProperty))
@@ -300,7 +300,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the documentation Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the documentation Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty))
@@ -314,7 +314,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the elementId Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the elementId Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("endFeature"u8, out var endFeatureProperty))
@@ -334,7 +334,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the endFeature Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the endFeature Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("endOwningType"u8, out var endOwningTypeProperty))
@@ -358,7 +358,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the endOwningType Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the endOwningType Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("feature"u8, out var featureProperty))
@@ -378,7 +378,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the feature Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the feature Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("featureMembership"u8, out var featureMembershipProperty))
@@ -398,7 +398,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the featureMembership Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the featureMembership Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("featureTarget"u8, out var featureTargetProperty))
@@ -423,7 +423,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the featureTarget Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the featureTarget Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("featuringType"u8, out var featuringTypeProperty))
@@ -443,7 +443,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the featuringType Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the featuringType Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("importedMembership"u8, out var importedMembershipProperty))
@@ -463,7 +463,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the importedMembership Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the importedMembership Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("inheritedFeature"u8, out var inheritedFeatureProperty))
@@ -483,7 +483,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the inheritedFeature Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the inheritedFeature Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("inheritedMembership"u8, out var inheritedMembershipProperty))
@@ -503,7 +503,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the inheritedMembership Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the inheritedMembership Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("input"u8, out var inputProperty))
@@ -523,7 +523,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the input Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the input Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("intersectingType"u8, out var intersectingTypeProperty))
@@ -543,7 +543,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the intersectingType Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the intersectingType Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty))
@@ -555,7 +555,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isAbstract Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isAbstract Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty))
@@ -567,7 +567,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isComposite Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isComposite Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isConjugated"u8, out var isConjugatedProperty))
@@ -579,7 +579,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isConjugated Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isConjugated Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty))
@@ -591,7 +591,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isConstant Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isConstant Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty))
@@ -603,7 +603,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isDerived Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isDerived Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty))
@@ -615,7 +615,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isEnd Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isEnd Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty))
@@ -627,7 +627,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isImpliedIncluded Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isImpliedIncluded Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isLibraryElement"u8, out var isLibraryElementProperty))
@@ -639,7 +639,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isLibraryElement Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isLibraryElement Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty))
@@ -651,7 +651,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isOrdered Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isOrdered Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty))
@@ -663,7 +663,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isPortion Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isPortion Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isReference"u8, out var isReferenceProperty))
@@ -675,7 +675,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isReference Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isReference Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty))
@@ -687,7 +687,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isSufficient Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isSufficient Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty))
@@ -699,7 +699,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isUnique Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isUnique Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty))
@@ -711,7 +711,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isVariation Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isVariation Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("mayTimeVary"u8, out var mayTimeVaryProperty))
@@ -723,7 +723,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the mayTimeVary Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the mayTimeVary Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("member"u8, out var memberProperty))
@@ -743,7 +743,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the member Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the member Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("membership"u8, out var membershipProperty))
@@ -763,7 +763,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the membership Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the membership Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("multiplicity"u8, out var multiplicityProperty))
@@ -787,7 +787,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the multiplicity Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the multiplicity Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("name"u8, out var nameProperty))
@@ -796,7 +796,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the name Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the name Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("nestedAction"u8, out var nestedActionProperty))
@@ -816,7 +816,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the nestedAction Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the nestedAction Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("nestedAllocation"u8, out var nestedAllocationProperty))
@@ -836,7 +836,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the nestedAllocation Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the nestedAllocation Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("nestedAnalysisCase"u8, out var nestedAnalysisCaseProperty))
@@ -856,7 +856,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the nestedAnalysisCase Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the nestedAnalysisCase Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("nestedAttribute"u8, out var nestedAttributeProperty))
@@ -876,7 +876,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the nestedAttribute Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the nestedAttribute Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("nestedCalculation"u8, out var nestedCalculationProperty))
@@ -896,7 +896,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the nestedCalculation Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the nestedCalculation Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("nestedCase"u8, out var nestedCaseProperty))
@@ -916,7 +916,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the nestedCase Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the nestedCase Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("nestedConcern"u8, out var nestedConcernProperty))
@@ -936,7 +936,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the nestedConcern Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the nestedConcern Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("nestedConnection"u8, out var nestedConnectionProperty))
@@ -956,7 +956,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the nestedConnection Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the nestedConnection Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("nestedConstraint"u8, out var nestedConstraintProperty))
@@ -976,7 +976,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the nestedConstraint Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the nestedConstraint Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("nestedEnumeration"u8, out var nestedEnumerationProperty))
@@ -996,7 +996,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the nestedEnumeration Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the nestedEnumeration Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("nestedFlow"u8, out var nestedFlowProperty))
@@ -1016,7 +1016,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the nestedFlow Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the nestedFlow Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("nestedInterface"u8, out var nestedInterfaceProperty))
@@ -1036,7 +1036,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the nestedInterface Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the nestedInterface Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("nestedItem"u8, out var nestedItemProperty))
@@ -1056,7 +1056,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the nestedItem Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the nestedItem Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("nestedMetadata"u8, out var nestedMetadataProperty))
@@ -1076,7 +1076,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the nestedMetadata Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the nestedMetadata Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("nestedOccurrence"u8, out var nestedOccurrenceProperty))
@@ -1096,7 +1096,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the nestedOccurrence Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the nestedOccurrence Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("nestedPart"u8, out var nestedPartProperty))
@@ -1116,7 +1116,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the nestedPart Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the nestedPart Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("nestedPort"u8, out var nestedPortProperty))
@@ -1136,7 +1136,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the nestedPort Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the nestedPort Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("nestedReference"u8, out var nestedReferenceProperty))
@@ -1156,7 +1156,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the nestedReference Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the nestedReference Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("nestedRendering"u8, out var nestedRenderingProperty))
@@ -1176,7 +1176,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the nestedRendering Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the nestedRendering Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("nestedRequirement"u8, out var nestedRequirementProperty))
@@ -1196,7 +1196,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the nestedRequirement Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the nestedRequirement Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("nestedState"u8, out var nestedStateProperty))
@@ -1216,7 +1216,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the nestedState Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the nestedState Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("nestedTransition"u8, out var nestedTransitionProperty))
@@ -1236,7 +1236,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the nestedTransition Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the nestedTransition Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("nestedUsage"u8, out var nestedUsageProperty))
@@ -1256,7 +1256,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the nestedUsage Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the nestedUsage Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("nestedUseCase"u8, out var nestedUseCaseProperty))
@@ -1276,7 +1276,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the nestedUseCase Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the nestedUseCase Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("nestedVerificationCase"u8, out var nestedVerificationCaseProperty))
@@ -1296,7 +1296,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the nestedVerificationCase Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the nestedVerificationCase Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("nestedView"u8, out var nestedViewProperty))
@@ -1316,7 +1316,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the nestedView Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the nestedView Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("nestedViewpoint"u8, out var nestedViewpointProperty))
@@ -1336,7 +1336,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the nestedViewpoint Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the nestedViewpoint Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("output"u8, out var outputProperty))
@@ -1356,7 +1356,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the output Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the output Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedAnnotation"u8, out var ownedAnnotationProperty))
@@ -1376,7 +1376,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedAnnotation Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedAnnotation Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedConjugator"u8, out var ownedConjugatorProperty))
@@ -1400,7 +1400,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedConjugator Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedConjugator Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedCrossSubsetting"u8, out var ownedCrossSubsettingProperty))
@@ -1424,7 +1424,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedCrossSubsetting Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedCrossSubsetting Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedDifferencing"u8, out var ownedDifferencingProperty))
@@ -1444,7 +1444,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedDifferencing Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedDifferencing Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedDisjoining"u8, out var ownedDisjoiningProperty))
@@ -1464,7 +1464,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedDisjoining Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedDisjoining Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedElement"u8, out var ownedElementProperty))
@@ -1484,7 +1484,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedElement Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedElement Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedEndFeature"u8, out var ownedEndFeatureProperty))
@@ -1504,7 +1504,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedEndFeature Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedEndFeature Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedFeature"u8, out var ownedFeatureProperty))
@@ -1524,7 +1524,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedFeature Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedFeature Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedFeatureChaining"u8, out var ownedFeatureChainingProperty))
@@ -1544,7 +1544,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedFeatureChaining Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedFeatureChaining Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedFeatureInverting"u8, out var ownedFeatureInvertingProperty))
@@ -1564,7 +1564,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedFeatureInverting Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedFeatureInverting Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedFeatureMembership"u8, out var ownedFeatureMembershipProperty))
@@ -1584,7 +1584,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedFeatureMembership Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedFeatureMembership Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedImport"u8, out var ownedImportProperty))
@@ -1604,7 +1604,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedImport Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedImport Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedIntersecting"u8, out var ownedIntersectingProperty))
@@ -1624,7 +1624,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedIntersecting Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedIntersecting Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedMember"u8, out var ownedMemberProperty))
@@ -1644,7 +1644,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedMember Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedMember Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedMembership"u8, out var ownedMembershipProperty))
@@ -1664,7 +1664,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedMembership Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedMembership Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedRedefinition"u8, out var ownedRedefinitionProperty))
@@ -1684,7 +1684,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedRedefinition Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedRedefinition Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedReferenceSubsetting"u8, out var ownedReferenceSubsettingProperty))
@@ -1708,7 +1708,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedReferenceSubsetting Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty))
@@ -1728,7 +1728,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedRelationship Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedRelationship Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedSpecialization"u8, out var ownedSpecializationProperty))
@@ -1748,7 +1748,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedSpecialization Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedSpecialization Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedSubsetting"u8, out var ownedSubsettingProperty))
@@ -1768,7 +1768,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedSubsetting Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedSubsetting Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedTypeFeaturing"u8, out var ownedTypeFeaturingProperty))
@@ -1788,7 +1788,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedTypeFeaturing Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedTypeFeaturing Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedTyping"u8, out var ownedTypingProperty))
@@ -1808,7 +1808,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedTyping Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedTyping Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedUnioning"u8, out var ownedUnioningProperty))
@@ -1828,7 +1828,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedUnioning Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedUnioning Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owner"u8, out var ownerProperty))
@@ -1852,7 +1852,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owner Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owner Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningDefinition"u8, out var owningDefinitionProperty))
@@ -1876,7 +1876,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningDefinition Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningDefinition Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningFeatureMembership"u8, out var owningFeatureMembershipProperty))
@@ -1900,7 +1900,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningFeatureMembership Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningFeatureMembership Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningMembership"u8, out var owningMembershipProperty))
@@ -1924,7 +1924,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningMembership Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningMembership Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningNamespace"u8, out var owningNamespaceProperty))
@@ -1948,7 +1948,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningNamespace Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningNamespace Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty))
@@ -1972,7 +1972,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningRelationship Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningRelationship Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningType"u8, out var owningTypeProperty))
@@ -1996,7 +1996,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningType Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningType Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningUsage"u8, out var owningUsageProperty))
@@ -2020,7 +2020,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningUsage Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningUsage Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("qualifiedName"u8, out var qualifiedNameProperty))
@@ -2029,7 +2029,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the qualifiedName Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the qualifiedName Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("shortName"u8, out var shortNameProperty))
@@ -2038,7 +2038,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the shortName Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the shortName Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("textualRepresentation"u8, out var textualRepresentationProperty))
@@ -2058,7 +2058,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the textualRepresentation Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the textualRepresentation Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("unioningType"u8, out var unioningTypeProperty))
@@ -2078,7 +2078,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the unioningType Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the unioningType Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("usage"u8, out var usageProperty))
@@ -2098,7 +2098,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the usage Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the usage Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("variant"u8, out var variantProperty))
@@ -2118,7 +2118,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the variant Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the variant Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("variantMembership"u8, out var variantMembershipProperty))
@@ -2138,7 +2138,7 @@ private static void DeserializeDtoIncludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the variantMembership Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the variantMembership Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
}
@@ -2172,7 +2172,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the aliasIds Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the aliasIds Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("declaredName"u8, out var declaredNameProperty))
@@ -2181,7 +2181,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the declaredName Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the declaredName Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("declaredShortName"u8, out var declaredShortNameProperty))
@@ -2190,7 +2190,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the declaredShortName Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the declaredShortName Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("direction"u8, out var directionProperty))
@@ -2199,7 +2199,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the direction Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the direction Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("elementId"u8, out var elementIdProperty))
@@ -2213,7 +2213,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the elementId Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the elementId Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isAbstract"u8, out var isAbstractProperty))
@@ -2225,7 +2225,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isAbstract Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isAbstract Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isComposite"u8, out var isCompositeProperty))
@@ -2237,7 +2237,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isComposite Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isComposite Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isConstant"u8, out var isConstantProperty))
@@ -2249,7 +2249,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isConstant Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isConstant Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isDerived"u8, out var isDerivedProperty))
@@ -2261,7 +2261,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isDerived Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isDerived Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isEnd"u8, out var isEndProperty))
@@ -2273,7 +2273,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isEnd Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isEnd Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isImpliedIncluded"u8, out var isImpliedIncludedProperty))
@@ -2285,7 +2285,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isImpliedIncluded Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isImpliedIncluded Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isOrdered"u8, out var isOrderedProperty))
@@ -2297,7 +2297,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isOrdered Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isOrdered Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isPortion"u8, out var isPortionProperty))
@@ -2309,7 +2309,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isPortion Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isPortion Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isSufficient"u8, out var isSufficientProperty))
@@ -2321,7 +2321,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isSufficient Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isSufficient Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isUnique"u8, out var isUniqueProperty))
@@ -2333,7 +2333,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isUnique Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isUnique Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("isVariation"u8, out var isVariationProperty))
@@ -2345,7 +2345,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the isVariation Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the isVariation Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("ownedRelationship"u8, out var ownedRelationshipProperty))
@@ -2365,7 +2365,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the ownedRelationship Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the ownedRelationship Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
if (jsonElement.TryGetProperty("owningRelationship"u8, out var owningRelationshipProperty))
@@ -2389,7 +2389,7 @@ private static void DeserializeDtoExcludingDerivedProperties(SysML2.NET.Core.DTO
}
else
{
- logger.LogDebug("the owningRelationship Json property was not found in the Usage: { Id }", dtoInstance.Id);
+ logger.LogDebug("the owningRelationship Json property was not found in the Usage: {Id}", dtoInstance.Id);
}
}
diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/AnnotatingElementFactory.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/AnnotatingElementFactory.cs
index 77ba977bd..0a0ec1ca4 100644
--- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/AnnotatingElementFactory.cs
+++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/AnnotatingElementFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class AnnotatingElementFactory
+ public static class AnnotatingElementFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class AnnotatingElementFactory
///
/// thrown when is null
///
- public Core.POCO.Root.Annotations.AnnotatingElement Create(Core.DTO.Root.Annotations.AnnotatingElement dto)
+ public static Core.POCO.Root.Annotations.AnnotatingElement Create(Core.DTO.Root.Annotations.AnnotatingElement dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/AssociationFactory.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/AssociationFactory.cs
index 254028771..d9e039f36 100644
--- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/AssociationFactory.cs
+++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/AssociationFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class AssociationFactory
+ public static class AssociationFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class AssociationFactory
///
/// thrown when is null
///
- public Core.POCO.Kernel.Associations.Association Create(Core.DTO.Kernel.Associations.Association dto)
+ public static Core.POCO.Kernel.Associations.Association Create(Core.DTO.Kernel.Associations.Association dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/DependencyFactory.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/DependencyFactory.cs
index 2b5bf0960..4bee46071 100644
--- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/DependencyFactory.cs
+++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/DependencyFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class DependencyFactory
+ public static class DependencyFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class DependencyFactory
///
/// thrown when is null
///
- public Core.POCO.Root.Dependencies.Dependency Create(Core.DTO.Root.Dependencies.Dependency dto)
+ public static Core.POCO.Root.Dependencies.Dependency Create(Core.DTO.Root.Dependencies.Dependency dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/EnumerationDefinitionFactory.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/EnumerationDefinitionFactory.cs
index 4eeaf66dc..7f993eb03 100644
--- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/EnumerationDefinitionFactory.cs
+++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/EnumerationDefinitionFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class EnumerationDefinitionFactory
+ public static class EnumerationDefinitionFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class EnumerationDefinitionFactory
///
/// thrown when is null
///
- public Core.POCO.Systems.Enumerations.EnumerationDefinition Create(Core.DTO.Systems.Enumerations.EnumerationDefinition dto)
+ public static Core.POCO.Systems.Enumerations.EnumerationDefinition Create(Core.DTO.Systems.Enumerations.EnumerationDefinition dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/FeatureFactory.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/FeatureFactory.cs
index 0d9356e9e..56bf9e2db 100644
--- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/FeatureFactory.cs
+++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/FeatureFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class FeatureFactory
+ public static class FeatureFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class FeatureFactory
///
/// thrown when is null
///
- public Core.POCO.Core.Features.Feature Create(Core.DTO.Core.Features.Feature dto)
+ public static Core.POCO.Core.Features.Feature Create(Core.DTO.Core.Features.Feature dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/FeatureTypingFactory.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/FeatureTypingFactory.cs
index 85be8023b..08a26cb95 100644
--- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/FeatureTypingFactory.cs
+++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/FeatureTypingFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class FeatureTypingFactory
+ public static class FeatureTypingFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class FeatureTypingFactory
///
/// thrown when is null
///
- public Core.POCO.Core.Features.FeatureTyping Create(Core.DTO.Core.Features.FeatureTyping dto)
+ public static Core.POCO.Core.Features.FeatureTyping Create(Core.DTO.Core.Features.FeatureTyping dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/FlowFactory.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/FlowFactory.cs
index 1e041e876..cc1ef85c7 100644
--- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/FlowFactory.cs
+++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/FlowFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class FlowFactory
+ public static class FlowFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class FlowFactory
///
/// thrown when is null
///
- public Core.POCO.Kernel.Interactions.Flow Create(Core.DTO.Kernel.Interactions.Flow dto)
+ public static Core.POCO.Kernel.Interactions.Flow Create(Core.DTO.Kernel.Interactions.Flow dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/FramedConcernMembershipFactory.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/FramedConcernMembershipFactory.cs
index 81a74e092..a07d0818b 100644
--- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/FramedConcernMembershipFactory.cs
+++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/FramedConcernMembershipFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class FramedConcernMembershipFactory
+ public static class FramedConcernMembershipFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class FramedConcernMembershipFactory
///
/// thrown when is null
///
- public Core.POCO.Systems.Requirements.FramedConcernMembership Create(Core.DTO.Systems.Requirements.FramedConcernMembership dto)
+ public static Core.POCO.Systems.Requirements.FramedConcernMembership Create(Core.DTO.Systems.Requirements.FramedConcernMembership dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/LiteralIntegerFactory.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/LiteralIntegerFactory.cs
index e5b790abd..207a5c176 100644
--- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/LiteralIntegerFactory.cs
+++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/LiteralIntegerFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class LiteralIntegerFactory
+ public static class LiteralIntegerFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class LiteralIntegerFactory
///
/// thrown when is null
///
- public Core.POCO.Kernel.Expressions.LiteralInteger Create(Core.DTO.Kernel.Expressions.LiteralInteger dto)
+ public static Core.POCO.Kernel.Expressions.LiteralInteger Create(Core.DTO.Kernel.Expressions.LiteralInteger dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/LiteralRationalFactory.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/LiteralRationalFactory.cs
index d05563b20..20fb464b8 100644
--- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/LiteralRationalFactory.cs
+++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/LiteralRationalFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class LiteralRationalFactory
+ public static class LiteralRationalFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class LiteralRationalFactory
///
/// thrown when is null
///
- public Core.POCO.Kernel.Expressions.LiteralRational Create(Core.DTO.Kernel.Expressions.LiteralRational dto)
+ public static Core.POCO.Kernel.Expressions.LiteralRational Create(Core.DTO.Kernel.Expressions.LiteralRational dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/MembershipFactory.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/MembershipFactory.cs
index 8ffd9c5b4..c53a28b8f 100644
--- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/MembershipFactory.cs
+++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/MembershipFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class MembershipFactory
+ public static class MembershipFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class MembershipFactory
///
/// thrown when is null
///
- public Core.POCO.Root.Namespaces.Membership Create(Core.DTO.Root.Namespaces.Membership dto)
+ public static Core.POCO.Root.Namespaces.Membership Create(Core.DTO.Root.Namespaces.Membership dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/MultiplicityRangeFactory.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/MultiplicityRangeFactory.cs
index f7f7411b3..298206af5 100644
--- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/MultiplicityRangeFactory.cs
+++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/MultiplicityRangeFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class MultiplicityRangeFactory
+ public static class MultiplicityRangeFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class MultiplicityRangeFactory
///
/// thrown when is null
///
- public Core.POCO.Kernel.Multiplicities.MultiplicityRange Create(Core.DTO.Kernel.Multiplicities.MultiplicityRange dto)
+ public static Core.POCO.Kernel.Multiplicities.MultiplicityRange Create(Core.DTO.Kernel.Multiplicities.MultiplicityRange dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/OwningMembershipFactory.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/OwningMembershipFactory.cs
index 9141e4714..a50e2c573 100644
--- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/OwningMembershipFactory.cs
+++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/OwningMembershipFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class OwningMembershipFactory
+ public static class OwningMembershipFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class OwningMembershipFactory
///
/// thrown when is null
///
- public Core.POCO.Root.Namespaces.OwningMembership Create(Core.DTO.Root.Namespaces.OwningMembership dto)
+ public static Core.POCO.Root.Namespaces.OwningMembership Create(Core.DTO.Root.Namespaces.OwningMembership dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/ReferenceSubsettingFactory.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/ReferenceSubsettingFactory.cs
index 3d816ef39..5d12d718a 100644
--- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/ReferenceSubsettingFactory.cs
+++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/ReferenceSubsettingFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class ReferenceSubsettingFactory
+ public static class ReferenceSubsettingFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class ReferenceSubsettingFactory
///
/// thrown when is null
///
- public Core.POCO.Core.Features.ReferenceSubsetting Create(Core.DTO.Core.Features.ReferenceSubsetting dto)
+ public static Core.POCO.Core.Features.ReferenceSubsetting Create(Core.DTO.Core.Features.ReferenceSubsetting dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/RequirementUsageFactory.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/RequirementUsageFactory.cs
index a9a1f8111..4b2fd5912 100644
--- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/RequirementUsageFactory.cs
+++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/RequirementUsageFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class RequirementUsageFactory
+ public static class RequirementUsageFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class RequirementUsageFactory
///
/// thrown when is null
///
- public Core.POCO.Systems.Requirements.RequirementUsage Create(Core.DTO.Systems.Requirements.RequirementUsage dto)
+ public static Core.POCO.Systems.Requirements.RequirementUsage Create(Core.DTO.Systems.Requirements.RequirementUsage dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/SelectExpressionFactory.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/SelectExpressionFactory.cs
index afb2eddc1..38eb4b724 100644
--- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/SelectExpressionFactory.cs
+++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/SelectExpressionFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class SelectExpressionFactory
+ public static class SelectExpressionFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class SelectExpressionFactory
///
/// thrown when is null
///
- public Core.POCO.Kernel.Expressions.SelectExpression Create(Core.DTO.Kernel.Expressions.SelectExpression dto)
+ public static Core.POCO.Kernel.Expressions.SelectExpression Create(Core.DTO.Kernel.Expressions.SelectExpression dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/SubclassificationFactory.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/SubclassificationFactory.cs
index abb5cc86b..3276cb3c2 100644
--- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/SubclassificationFactory.cs
+++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/SubclassificationFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class SubclassificationFactory
+ public static class SubclassificationFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class SubclassificationFactory
///
/// thrown when is null
///
- public Core.POCO.Core.Classifiers.Subclassification Create(Core.DTO.Core.Classifiers.Subclassification dto)
+ public static Core.POCO.Core.Classifiers.Subclassification Create(Core.DTO.Core.Classifiers.Subclassification dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/TextualRepresentationFactory.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/TextualRepresentationFactory.cs
index 49fe70c87..3a286d195 100644
--- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/TextualRepresentationFactory.cs
+++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/TextualRepresentationFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class TextualRepresentationFactory
+ public static class TextualRepresentationFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class TextualRepresentationFactory
///
/// thrown when is null
///
- public Core.POCO.Root.Annotations.TextualRepresentation Create(Core.DTO.Root.Annotations.TextualRepresentation dto)
+ public static Core.POCO.Root.Annotations.TextualRepresentation Create(Core.DTO.Root.Annotations.TextualRepresentation dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/UsageFactory.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/UsageFactory.cs
index f34aa5a44..a5a1bb8fc 100644
--- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/UsageFactory.cs
+++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenElementFactory/UsageFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class UsageFactory
+ public static class UsageFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class UsageFactory
///
/// thrown when is null
///
- public Core.POCO.Systems.DefinitionAndUsage.Usage Create(Core.DTO.Systems.DefinitionAndUsage.Usage dto)
+ public static Core.POCO.Systems.DefinitionAndUsage.Usage Create(Core.DTO.Systems.DefinitionAndUsage.Usage dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/AnnotatingElementExtensions.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/AnnotatingElementExtensions.cs
index b991d48a0..a98121c59 100644
--- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/AnnotatingElementExtensions.cs
+++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/AnnotatingElementExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Root.Annotations;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class AnnotatingElementExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -91,17 +91,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -151,10 +151,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Root.Annotations.Ann
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Root.Annotations.AnnotatingElement ToDto(this Core.POCO.Root.Annotations.AnnotatingElement poco)
+ public static Core.DTO.Root.Annotations.AnnotatingElement ToDto(this Core.POCO.Root.Annotations.AnnotatingElement poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Root.Annotations.AnnotatingElement();
@@ -167,6 +170,25 @@ public static Core.DTO.Root.Annotations.AnnotatingElement ToDto(this Core.POCO.R
dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList();
dto.OwningRelationship = poco.OwningRelationship?.Id;
+ if (includeDerivedProperties)
+ {
+ dto.annotatedElement = poco.annotatedElement.Select(x => x.Id).ToList();
+ dto.annotation = poco.annotation.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.name = poco.name;
+ dto.ownedAnnotatingRelationship = poco.ownedAnnotatingRelationship.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningAnnotatingRelationship = poco.owningAnnotatingRelationship?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/AssociationExtensions.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/AssociationExtensions.cs
index c62b19ae3..6a4e95733 100644
--- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/AssociationExtensions.cs
+++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/AssociationExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Kernel.Associations;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class AssociationExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -106,17 +106,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -145,7 +145,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.Associations.
{
if (cache.TryGetValue(identifier, out lazyPoco))
{
- poco.OwnedRelatedElement.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value);
+ poco.OwnedRelatedElement.Add(lazyPoco.Value);
}
}
@@ -161,7 +161,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.Associations.
if (dto.OwningRelatedElement.HasValue && cache.TryGetValue(dto.OwningRelatedElement.Value, out lazyPoco))
{
- poco.OwningRelatedElement = (Core.POCO.Root.Elements.IElement)lazyPoco.Value;
+ poco.OwningRelatedElement = lazyPoco.Value;
}
else
{
@@ -185,10 +185,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.Associations.
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Kernel.Associations.Association ToDto(this Core.POCO.Kernel.Associations.Association poco)
+ public static Core.DTO.Kernel.Associations.Association ToDto(this Core.POCO.Kernel.Associations.Association poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Kernel.Associations.Association();
@@ -206,6 +209,53 @@ public static Core.DTO.Kernel.Associations.Association ToDto(this Core.POCO.Kern
dto.OwningRelatedElement = poco.OwningRelatedElement?.Id;
dto.OwningRelationship = poco.OwningRelationship?.Id;
+ if (includeDerivedProperties)
+ {
+ dto.associationEnd = poco.associationEnd.Select(x => x.Id).ToList();
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.directedFeature = poco.directedFeature.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedSubclassification = poco.ownedSubclassification.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.relatedType = poco.relatedType.Select(x => x.Id).ToList();
+ dto.shortName = poco.shortName;
+ dto.sourceType = poco.sourceType?.Id;
+ dto.targetType = poco.targetType.Select(x => x.Id).ToList();
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/DependencyExtensions.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/DependencyExtensions.cs
index a4be9c0a2..197840699 100644
--- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/DependencyExtensions.cs
+++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/DependencyExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Root.Dependencies;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class DependencyExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -118,17 +118,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -157,7 +157,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Root.Dependencies.De
{
if (cache.TryGetValue(identifier, out lazyPoco))
{
- poco.Client.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value);
+ poco.Client.Add(lazyPoco.Value);
}
}
@@ -167,7 +167,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Root.Dependencies.De
{
if (cache.TryGetValue(identifier, out lazyPoco))
{
- poco.OwnedRelatedElement.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value);
+ poco.OwnedRelatedElement.Add(lazyPoco.Value);
}
}
@@ -183,7 +183,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Root.Dependencies.De
if (dto.OwningRelatedElement.HasValue && cache.TryGetValue(dto.OwningRelatedElement.Value, out lazyPoco))
{
- poco.OwningRelatedElement = (Core.POCO.Root.Elements.IElement)lazyPoco.Value;
+ poco.OwningRelatedElement = lazyPoco.Value;
}
else
{
@@ -205,7 +205,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Root.Dependencies.De
{
if (cache.TryGetValue(identifier, out lazyPoco))
{
- poco.Supplier.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value);
+ poco.Supplier.Add(lazyPoco.Value);
}
}
@@ -217,10 +217,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Root.Dependencies.De
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Root.Dependencies.Dependency ToDto(this Core.POCO.Root.Dependencies.Dependency poco)
+ public static Core.DTO.Root.Dependencies.Dependency ToDto(this Core.POCO.Root.Dependencies.Dependency poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Root.Dependencies.Dependency();
@@ -238,6 +241,22 @@ public static Core.DTO.Root.Dependencies.Dependency ToDto(this Core.POCO.Root.De
dto.OwningRelationship = poco.OwningRelationship?.Id;
dto.Supplier = poco.Supplier.Select(x => x.Id).ToList();
+ if (includeDerivedProperties)
+ {
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.name = poco.name;
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.relatedElement = poco.relatedElement.Select(x => x.Id).ToList();
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/EnumerationDefinitionExtensions.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/EnumerationDefinitionExtensions.cs
index 7d4a889f4..bf1c2cb39 100644
--- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/EnumerationDefinitionExtensions.cs
+++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/EnumerationDefinitionExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Systems.Enumerations;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class EnumerationDefinitionExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -97,17 +97,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -157,10 +157,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Enumerations
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Systems.Enumerations.EnumerationDefinition ToDto(this Core.POCO.Systems.Enumerations.EnumerationDefinition poco)
+ public static Core.DTO.Systems.Enumerations.EnumerationDefinition ToDto(this Core.POCO.Systems.Enumerations.EnumerationDefinition poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Systems.Enumerations.EnumerationDefinition();
@@ -176,6 +179,81 @@ public static Core.DTO.Systems.Enumerations.EnumerationDefinition ToDto(this Cor
dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList();
dto.OwningRelationship = poco.OwningRelationship?.Id;
+ if (includeDerivedProperties)
+ {
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.directedFeature = poco.directedFeature.Select(x => x.Id).ToList();
+ dto.directedUsage = poco.directedUsage.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endFeature = poco.endFeature.Select(x => x.Id).ToList();
+ dto.enumeratedValue = poco.enumeratedValue.Select(x => x.Id).ToList();
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAction = poco.ownedAction.Select(x => x.Id).ToList();
+ dto.ownedAllocation = poco.ownedAllocation.Select(x => x.Id).ToList();
+ dto.ownedAnalysisCase = poco.ownedAnalysisCase.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedAttribute = poco.ownedAttribute.Select(x => x.Id).ToList();
+ dto.ownedCalculation = poco.ownedCalculation.Select(x => x.Id).ToList();
+ dto.ownedCase = poco.ownedCase.Select(x => x.Id).ToList();
+ dto.ownedConcern = poco.ownedConcern.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedConnection = poco.ownedConnection.Select(x => x.Id).ToList();
+ dto.ownedConstraint = poco.ownedConstraint.Select(x => x.Id).ToList();
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedEnumeration = poco.ownedEnumeration.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedFlow = poco.ownedFlow.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedInterface = poco.ownedInterface.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedItem = poco.ownedItem.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedMetadata = poco.ownedMetadata.Select(x => x.Id).ToList();
+ dto.ownedOccurrence = poco.ownedOccurrence.Select(x => x.Id).ToList();
+ dto.ownedPart = poco.ownedPart.Select(x => x.Id).ToList();
+ dto.ownedPort = poco.ownedPort.Select(x => x.Id).ToList();
+ dto.ownedReference = poco.ownedReference.Select(x => x.Id).ToList();
+ dto.ownedRendering = poco.ownedRendering.Select(x => x.Id).ToList();
+ dto.ownedRequirement = poco.ownedRequirement.Select(x => x.Id).ToList();
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedState = poco.ownedState.Select(x => x.Id).ToList();
+ dto.ownedSubclassification = poco.ownedSubclassification.Select(x => x.Id).ToList();
+ dto.ownedTransition = poco.ownedTransition.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.ownedUsage = poco.ownedUsage.Select(x => x.Id).ToList();
+ dto.ownedUseCase = poco.ownedUseCase.Select(x => x.Id).ToList();
+ dto.ownedVerificationCase = poco.ownedVerificationCase.Select(x => x.Id).ToList();
+ dto.ownedView = poco.ownedView.Select(x => x.Id).ToList();
+ dto.ownedViewpoint = poco.ownedViewpoint.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ dto.usage = poco.usage.Select(x => x.Id).ToList();
+ dto.variantMembership = poco.variantMembership.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/FeatureExtensions.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/FeatureExtensions.cs
index 60d9d7a0e..157f91923 100644
--- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/FeatureExtensions.cs
+++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/FeatureExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Core.Features;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class FeatureExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -113,17 +113,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -173,10 +173,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Features.Featur
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Core.Features.Feature ToDto(this Core.POCO.Core.Features.Feature poco)
+ public static Core.DTO.Core.Features.Feature ToDto(this Core.POCO.Core.Features.Feature poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Core.Features.Feature();
@@ -200,6 +203,65 @@ public static Core.DTO.Core.Features.Feature ToDto(this Core.POCO.Core.Features.
dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList();
dto.OwningRelationship = poco.OwningRelationship?.Id;
+ if (includeDerivedProperties)
+ {
+ dto.chainingFeature = poco.chainingFeature.Select(x => x.Id).ToList();
+ dto.crossFeature = poco.crossFeature?.Id;
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.directedFeature = poco.directedFeature.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endFeature = poco.endFeature.Select(x => x.Id).ToList();
+ dto.endOwningType = poco.endOwningType?.Id;
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.featureTarget = poco.featureTarget.Id;
+ dto.featuringType = poco.featuringType.Select(x => x.Id).ToList();
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedCrossSubsetting = poco.ownedCrossSubsetting?.Id;
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureChaining = poco.ownedFeatureChaining.Select(x => x.Id).ToList();
+ dto.ownedFeatureInverting = poco.ownedFeatureInverting.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedRedefinition = poco.ownedRedefinition.Select(x => x.Id).ToList();
+ dto.ownedReferenceSubsetting = poco.ownedReferenceSubsetting?.Id;
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedSubsetting = poco.ownedSubsetting.Select(x => x.Id).ToList();
+ dto.ownedTypeFeaturing = poco.ownedTypeFeaturing.Select(x => x.Id).ToList();
+ dto.ownedTyping = poco.ownedTyping.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningFeatureMembership = poco.owningFeatureMembership?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType?.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.type = poco.type.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/FeatureTypingExtensions.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/FeatureTypingExtensions.cs
index efe734f5e..a2aac09ca 100644
--- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/FeatureTypingExtensions.cs
+++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/FeatureTypingExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Core.Features;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class FeatureTypingExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -102,17 +102,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -141,7 +141,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Features.Featur
{
if (cache.TryGetValue(identifier, out lazyPoco))
{
- poco.OwnedRelatedElement.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value);
+ poco.OwnedRelatedElement.Add(lazyPoco.Value);
}
}
@@ -157,7 +157,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Features.Featur
if (dto.OwningRelatedElement.HasValue && cache.TryGetValue(dto.OwningRelatedElement.Value, out lazyPoco))
{
- poco.OwningRelatedElement = (Core.POCO.Root.Elements.IElement)lazyPoco.Value;
+ poco.OwningRelatedElement = lazyPoco.Value;
}
else
{
@@ -199,10 +199,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Features.Featur
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Core.Features.FeatureTyping ToDto(this Core.POCO.Core.Features.FeatureTyping poco)
+ public static Core.DTO.Core.Features.FeatureTyping ToDto(this Core.POCO.Core.Features.FeatureTyping poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Core.Features.FeatureTyping();
@@ -220,6 +223,23 @@ public static Core.DTO.Core.Features.FeatureTyping ToDto(this Core.POCO.Core.Fea
dto.Type = poco.Type.Id;
dto.TypedFeature = poco.TypedFeature.Id;
+ if (includeDerivedProperties)
+ {
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.name = poco.name;
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningFeature = poco.owningFeature?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.relatedElement = poco.relatedElement.Select(x => x.Id).ToList();
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/FlowExtensions.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/FlowExtensions.cs
index 93d2d21d6..33c6ef800 100644
--- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/FlowExtensions.cs
+++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/FlowExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Kernel.Interactions;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class FlowExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -124,17 +124,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -163,7 +163,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.Interactions.
{
if (cache.TryGetValue(identifier, out lazyPoco))
{
- poco.OwnedRelatedElement.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value);
+ poco.OwnedRelatedElement.Add(lazyPoco.Value);
}
}
@@ -179,7 +179,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.Interactions.
if (dto.OwningRelatedElement.HasValue && cache.TryGetValue(dto.OwningRelatedElement.Value, out lazyPoco))
{
- poco.OwningRelatedElement = (Core.POCO.Root.Elements.IElement)lazyPoco.Value;
+ poco.OwningRelatedElement = lazyPoco.Value;
}
else
{
@@ -203,10 +203,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.Interactions.
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Kernel.Interactions.Flow ToDto(this Core.POCO.Kernel.Interactions.Flow poco)
+ public static Core.DTO.Kernel.Interactions.Flow ToDto(this Core.POCO.Kernel.Interactions.Flow poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Kernel.Interactions.Flow();
@@ -233,6 +236,74 @@ public static Core.DTO.Kernel.Interactions.Flow ToDto(this Core.POCO.Kernel.Inte
dto.OwningRelatedElement = poco.OwningRelatedElement?.Id;
dto.OwningRelationship = poco.OwningRelationship?.Id;
+ if (includeDerivedProperties)
+ {
+ dto.chainingFeature = poco.chainingFeature.Select(x => x.Id).ToList();
+ dto.connectorEnd = poco.connectorEnd.Select(x => x.Id).ToList();
+ dto.crossFeature = poco.crossFeature?.Id;
+ dto.defaultFeaturingType = poco.defaultFeaturingType?.Id;
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endOwningType = poco.endOwningType?.Id;
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.featureTarget = poco.featureTarget.Id;
+ dto.featuringType = poco.featuringType.Select(x => x.Id).ToList();
+ dto.flowEnd = poco.flowEnd.Select(x => x.Id).ToList();
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.interaction = poco.interaction.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedCrossSubsetting = poco.ownedCrossSubsetting?.Id;
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureChaining = poco.ownedFeatureChaining.Select(x => x.Id).ToList();
+ dto.ownedFeatureInverting = poco.ownedFeatureInverting.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedRedefinition = poco.ownedRedefinition.Select(x => x.Id).ToList();
+ dto.ownedReferenceSubsetting = poco.ownedReferenceSubsetting?.Id;
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedSubsetting = poco.ownedSubsetting.Select(x => x.Id).ToList();
+ dto.ownedTypeFeaturing = poco.ownedTypeFeaturing.Select(x => x.Id).ToList();
+ dto.ownedTyping = poco.ownedTyping.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningFeatureMembership = poco.owningFeatureMembership?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType?.Id;
+ dto.parameter = poco.parameter.Select(x => x.Id).ToList();
+ dto.payloadFeature = poco.payloadFeature?.Id;
+ dto.payloadType = poco.payloadType.Select(x => x.Id).ToList();
+ dto.qualifiedName = poco.qualifiedName;
+ dto.relatedFeature = poco.relatedFeature.Select(x => x.Id).ToList();
+ dto.shortName = poco.shortName;
+ dto.sourceFeature = poco.sourceFeature?.Id;
+ dto.sourceOutputFeature = poco.sourceOutputFeature?.Id;
+ dto.targetFeature = poco.targetFeature.Select(x => x.Id).ToList();
+ dto.targetInputFeature = poco.targetInputFeature?.Id;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/FramedConcernMembershipExtensions.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/FramedConcernMembershipExtensions.cs
index e3e89d51b..2fed000b7 100644
--- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/FramedConcernMembershipExtensions.cs
+++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/FramedConcernMembershipExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Systems.Requirements;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class FramedConcernMembershipExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -106,17 +106,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -145,7 +145,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Requirements
{
if (cache.TryGetValue(identifier, out lazyPoco))
{
- poco.OwnedRelatedElement.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value);
+ poco.OwnedRelatedElement.Add(lazyPoco.Value);
}
}
@@ -161,7 +161,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Requirements
if (dto.OwningRelatedElement.HasValue && cache.TryGetValue(dto.OwningRelatedElement.Value, out lazyPoco))
{
- poco.OwningRelatedElement = (Core.POCO.Root.Elements.IElement)lazyPoco.Value;
+ poco.OwningRelatedElement = lazyPoco.Value;
}
else
{
@@ -185,10 +185,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Requirements
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Systems.Requirements.FramedConcernMembership ToDto(this Core.POCO.Systems.Requirements.FramedConcernMembership poco)
+ public static Core.DTO.Systems.Requirements.FramedConcernMembership ToDto(this Core.POCO.Systems.Requirements.FramedConcernMembership poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Systems.Requirements.FramedConcernMembership();
@@ -206,6 +209,28 @@ public static Core.DTO.Systems.Requirements.FramedConcernMembership ToDto(this C
dto.OwningRelationship = poco.OwningRelationship?.Id;
dto.Visibility = poco.Visibility;
+ if (includeDerivedProperties)
+ {
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.name = poco.name;
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedConcern = poco.ownedConcern.Id;
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedMemberElementId = poco.ownedMemberElementId;
+ dto.ownedMemberName = poco.ownedMemberName;
+ dto.ownedMemberShortName = poco.ownedMemberShortName;
+ dto.owner = poco.owner?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.referencedConcern = poco.referencedConcern.Id;
+ dto.relatedElement = poco.relatedElement.Select(x => x.Id).ToList();
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/LiteralIntegerExtensions.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/LiteralIntegerExtensions.cs
index af4a307fc..88d42d012 100644
--- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/LiteralIntegerExtensions.cs
+++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/LiteralIntegerExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Kernel.Expressions;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class LiteralIntegerExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -115,17 +115,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -175,10 +175,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.Expressions.L
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Kernel.Expressions.LiteralInteger ToDto(this Core.POCO.Kernel.Expressions.LiteralInteger poco)
+ public static Core.DTO.Kernel.Expressions.LiteralInteger ToDto(this Core.POCO.Kernel.Expressions.LiteralInteger poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Kernel.Expressions.LiteralInteger();
@@ -203,6 +206,68 @@ public static Core.DTO.Kernel.Expressions.LiteralInteger ToDto(this Core.POCO.Ke
dto.OwningRelationship = poco.OwningRelationship?.Id;
dto.Value = poco.Value;
+ if (includeDerivedProperties)
+ {
+ dto.chainingFeature = poco.chainingFeature.Select(x => x.Id).ToList();
+ dto.crossFeature = poco.crossFeature?.Id;
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endFeature = poco.endFeature.Select(x => x.Id).ToList();
+ dto.endOwningType = poco.endOwningType?.Id;
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.featureTarget = poco.featureTarget.Id;
+ dto.featuringType = poco.featuringType.Select(x => x.Id).ToList();
+ dto.function = poco.function?.Id;
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.isModelLevelEvaluable = poco.isModelLevelEvaluable;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedCrossSubsetting = poco.ownedCrossSubsetting?.Id;
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureChaining = poco.ownedFeatureChaining.Select(x => x.Id).ToList();
+ dto.ownedFeatureInverting = poco.ownedFeatureInverting.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedRedefinition = poco.ownedRedefinition.Select(x => x.Id).ToList();
+ dto.ownedReferenceSubsetting = poco.ownedReferenceSubsetting?.Id;
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedSubsetting = poco.ownedSubsetting.Select(x => x.Id).ToList();
+ dto.ownedTypeFeaturing = poco.ownedTypeFeaturing.Select(x => x.Id).ToList();
+ dto.ownedTyping = poco.ownedTyping.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningFeatureMembership = poco.owningFeatureMembership?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType?.Id;
+ dto.parameter = poco.parameter.Select(x => x.Id).ToList();
+ dto.qualifiedName = poco.qualifiedName;
+ dto.result = poco.result.Id;
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.type = poco.type.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/LiteralRationalExtensions.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/LiteralRationalExtensions.cs
index 442182031..c56ddab52 100644
--- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/LiteralRationalExtensions.cs
+++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/LiteralRationalExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Kernel.Expressions;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class LiteralRationalExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -115,17 +115,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -175,10 +175,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.Expressions.L
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Kernel.Expressions.LiteralRational ToDto(this Core.POCO.Kernel.Expressions.LiteralRational poco)
+ public static Core.DTO.Kernel.Expressions.LiteralRational ToDto(this Core.POCO.Kernel.Expressions.LiteralRational poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Kernel.Expressions.LiteralRational();
@@ -203,6 +206,68 @@ public static Core.DTO.Kernel.Expressions.LiteralRational ToDto(this Core.POCO.K
dto.OwningRelationship = poco.OwningRelationship?.Id;
dto.Value = poco.Value;
+ if (includeDerivedProperties)
+ {
+ dto.chainingFeature = poco.chainingFeature.Select(x => x.Id).ToList();
+ dto.crossFeature = poco.crossFeature?.Id;
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endFeature = poco.endFeature.Select(x => x.Id).ToList();
+ dto.endOwningType = poco.endOwningType?.Id;
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.featureTarget = poco.featureTarget.Id;
+ dto.featuringType = poco.featuringType.Select(x => x.Id).ToList();
+ dto.function = poco.function?.Id;
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.isModelLevelEvaluable = poco.isModelLevelEvaluable;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedCrossSubsetting = poco.ownedCrossSubsetting?.Id;
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureChaining = poco.ownedFeatureChaining.Select(x => x.Id).ToList();
+ dto.ownedFeatureInverting = poco.ownedFeatureInverting.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedRedefinition = poco.ownedRedefinition.Select(x => x.Id).ToList();
+ dto.ownedReferenceSubsetting = poco.ownedReferenceSubsetting?.Id;
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedSubsetting = poco.ownedSubsetting.Select(x => x.Id).ToList();
+ dto.ownedTypeFeaturing = poco.ownedTypeFeaturing.Select(x => x.Id).ToList();
+ dto.ownedTyping = poco.ownedTyping.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningFeatureMembership = poco.owningFeatureMembership?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType?.Id;
+ dto.parameter = poco.parameter.Select(x => x.Id).ToList();
+ dto.qualifiedName = poco.qualifiedName;
+ dto.result = poco.result.Id;
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.type = poco.type.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/MembershipExtensions.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/MembershipExtensions.cs
index 566557df3..9970b00f5 100644
--- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/MembershipExtensions.cs
+++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/MembershipExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Root.Namespaces;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class MembershipExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -108,17 +108,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -143,7 +143,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Root.Namespaces.Memb
if (cache.TryGetValue(dto.MemberElement, out lazyPoco))
{
- poco.MemberElement = (Core.POCO.Root.Elements.IElement)lazyPoco.Value;
+ poco.MemberElement = lazyPoco.Value;
}
else
{
@@ -156,7 +156,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Root.Namespaces.Memb
{
if (cache.TryGetValue(identifier, out lazyPoco))
{
- poco.OwnedRelatedElement.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value);
+ poco.OwnedRelatedElement.Add(lazyPoco.Value);
}
}
@@ -172,7 +172,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Root.Namespaces.Memb
if (dto.OwningRelatedElement.HasValue && cache.TryGetValue(dto.OwningRelatedElement.Value, out lazyPoco))
{
- poco.OwningRelatedElement = (Core.POCO.Root.Elements.IElement)lazyPoco.Value;
+ poco.OwningRelatedElement = lazyPoco.Value;
}
else
{
@@ -196,10 +196,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Root.Namespaces.Memb
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Root.Namespaces.Membership ToDto(this Core.POCO.Root.Namespaces.Membership poco)
+ public static Core.DTO.Root.Namespaces.Membership ToDto(this Core.POCO.Root.Namespaces.Membership poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Root.Namespaces.Membership();
@@ -219,6 +222,24 @@ public static Core.DTO.Root.Namespaces.Membership ToDto(this Core.POCO.Root.Name
dto.OwningRelationship = poco.OwningRelationship?.Id;
dto.Visibility = poco.Visibility;
+ if (includeDerivedProperties)
+ {
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.memberElementId = poco.memberElementId;
+ dto.membershipOwningNamespace = poco.membershipOwningNamespace.Id;
+ dto.name = poco.name;
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.relatedElement = poco.relatedElement.Select(x => x.Id).ToList();
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/MultiplicityRangeExtensions.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/MultiplicityRangeExtensions.cs
index e64f24081..0a51cea10 100644
--- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/MultiplicityRangeExtensions.cs
+++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/MultiplicityRangeExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Kernel.Multiplicities;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class MultiplicityRangeExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -113,17 +113,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -173,10 +173,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.Multiplicitie
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Kernel.Multiplicities.MultiplicityRange ToDto(this Core.POCO.Kernel.Multiplicities.MultiplicityRange poco)
+ public static Core.DTO.Kernel.Multiplicities.MultiplicityRange ToDto(this Core.POCO.Kernel.Multiplicities.MultiplicityRange poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Kernel.Multiplicities.MultiplicityRange();
@@ -200,6 +203,68 @@ public static Core.DTO.Kernel.Multiplicities.MultiplicityRange ToDto(this Core.P
dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList();
dto.OwningRelationship = poco.OwningRelationship?.Id;
+ if (includeDerivedProperties)
+ {
+ dto.bound = poco.bound.Select(x => x.Id).ToList();
+ dto.chainingFeature = poco.chainingFeature.Select(x => x.Id).ToList();
+ dto.crossFeature = poco.crossFeature?.Id;
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.directedFeature = poco.directedFeature.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endFeature = poco.endFeature.Select(x => x.Id).ToList();
+ dto.endOwningType = poco.endOwningType?.Id;
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.featureTarget = poco.featureTarget.Id;
+ dto.featuringType = poco.featuringType.Select(x => x.Id).ToList();
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.lowerBound = poco.lowerBound?.Id;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedCrossSubsetting = poco.ownedCrossSubsetting?.Id;
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureChaining = poco.ownedFeatureChaining.Select(x => x.Id).ToList();
+ dto.ownedFeatureInverting = poco.ownedFeatureInverting.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedRedefinition = poco.ownedRedefinition.Select(x => x.Id).ToList();
+ dto.ownedReferenceSubsetting = poco.ownedReferenceSubsetting?.Id;
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedSubsetting = poco.ownedSubsetting.Select(x => x.Id).ToList();
+ dto.ownedTypeFeaturing = poco.ownedTypeFeaturing.Select(x => x.Id).ToList();
+ dto.ownedTyping = poco.ownedTyping.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningFeatureMembership = poco.owningFeatureMembership?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType?.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.type = poco.type.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ dto.upperBound = poco.upperBound.Id;
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/OwningMembershipExtensions.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/OwningMembershipExtensions.cs
index b03bb9a2c..2933f945f 100644
--- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/OwningMembershipExtensions.cs
+++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/OwningMembershipExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Root.Namespaces;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class OwningMembershipExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -104,17 +104,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -143,7 +143,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Root.Namespaces.Owni
{
if (cache.TryGetValue(identifier, out lazyPoco))
{
- poco.OwnedRelatedElement.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value);
+ poco.OwnedRelatedElement.Add(lazyPoco.Value);
}
}
@@ -159,7 +159,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Root.Namespaces.Owni
if (dto.OwningRelatedElement.HasValue && cache.TryGetValue(dto.OwningRelatedElement.Value, out lazyPoco))
{
- poco.OwningRelatedElement = (Core.POCO.Root.Elements.IElement)lazyPoco.Value;
+ poco.OwningRelatedElement = lazyPoco.Value;
}
else
{
@@ -183,10 +183,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Root.Namespaces.Owni
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Root.Namespaces.OwningMembership ToDto(this Core.POCO.Root.Namespaces.OwningMembership poco)
+ public static Core.DTO.Root.Namespaces.OwningMembership ToDto(this Core.POCO.Root.Namespaces.OwningMembership poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Root.Namespaces.OwningMembership();
@@ -203,6 +206,27 @@ public static Core.DTO.Root.Namespaces.OwningMembership ToDto(this Core.POCO.Roo
dto.OwningRelationship = poco.OwningRelationship?.Id;
dto.Visibility = poco.Visibility;
+ if (includeDerivedProperties)
+ {
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.membershipOwningNamespace = poco.membershipOwningNamespace.Id;
+ dto.name = poco.name;
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedMemberElement = poco.ownedMemberElement.Id;
+ dto.ownedMemberElementId = poco.ownedMemberElementId;
+ dto.ownedMemberName = poco.ownedMemberName;
+ dto.ownedMemberShortName = poco.ownedMemberShortName;
+ dto.owner = poco.owner?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.relatedElement = poco.relatedElement.Select(x => x.Id).ToList();
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/ReferenceSubsettingExtensions.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/ReferenceSubsettingExtensions.cs
index f26bf9e6e..f52c3a9ed 100644
--- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/ReferenceSubsettingExtensions.cs
+++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/ReferenceSubsettingExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Core.Features;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class ReferenceSubsettingExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -102,17 +102,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -141,7 +141,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Features.Refere
{
if (cache.TryGetValue(identifier, out lazyPoco))
{
- poco.OwnedRelatedElement.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value);
+ poco.OwnedRelatedElement.Add(lazyPoco.Value);
}
}
@@ -157,7 +157,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Features.Refere
if (dto.OwningRelatedElement.HasValue && cache.TryGetValue(dto.OwningRelatedElement.Value, out lazyPoco))
{
- poco.OwningRelatedElement = (Core.POCO.Root.Elements.IElement)lazyPoco.Value;
+ poco.OwningRelatedElement = lazyPoco.Value;
}
else
{
@@ -190,10 +190,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Features.Refere
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Core.Features.ReferenceSubsetting ToDto(this Core.POCO.Core.Features.ReferenceSubsetting poco)
+ public static Core.DTO.Core.Features.ReferenceSubsetting ToDto(this Core.POCO.Core.Features.ReferenceSubsetting poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Core.Features.ReferenceSubsetting();
@@ -210,6 +213,23 @@ public static Core.DTO.Core.Features.ReferenceSubsetting ToDto(this Core.POCO.Co
dto.OwningRelationship = poco.OwningRelationship?.Id;
dto.ReferencedFeature = poco.ReferencedFeature.Id;
+ if (includeDerivedProperties)
+ {
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.name = poco.name;
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.referencingFeature = poco.referencingFeature.Id;
+ dto.relatedElement = poco.relatedElement.Select(x => x.Id).ToList();
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/RequirementUsageExtensions.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/RequirementUsageExtensions.cs
index 51243dce8..de3a863cb 100644
--- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/RequirementUsageExtensions.cs
+++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/RequirementUsageExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Systems.Requirements;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class RequirementUsageExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -117,17 +117,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -177,10 +177,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Requirements
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Systems.Requirements.RequirementUsage ToDto(this Core.POCO.Systems.Requirements.RequirementUsage poco)
+ public static Core.DTO.Systems.Requirements.RequirementUsage ToDto(this Core.POCO.Systems.Requirements.RequirementUsage poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Systems.Requirements.RequirementUsage();
@@ -206,6 +209,111 @@ public static Core.DTO.Systems.Requirements.RequirementUsage ToDto(this Core.POC
dto.PortionKind = poco.PortionKind;
dto.ReqId = poco.ReqId;
+ if (includeDerivedProperties)
+ {
+ dto.actorParameter = poco.actorParameter.Select(x => x.Id).ToList();
+ dto.assumedConstraint = poco.assumedConstraint.Select(x => x.Id).ToList();
+ dto.chainingFeature = poco.chainingFeature.Select(x => x.Id).ToList();
+ dto.crossFeature = poco.crossFeature?.Id;
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.directedUsage = poco.directedUsage.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endFeature = poco.endFeature.Select(x => x.Id).ToList();
+ dto.endOwningType = poco.endOwningType?.Id;
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.featureTarget = poco.featureTarget.Id;
+ dto.featuringType = poco.featuringType.Select(x => x.Id).ToList();
+ dto.framedConcern = poco.framedConcern.Select(x => x.Id).ToList();
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.individualDefinition = poco.individualDefinition?.Id;
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.isModelLevelEvaluable = poco.isModelLevelEvaluable;
+ dto.isReference = poco.isReference;
+ dto.mayTimeVary = poco.mayTimeVary;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.nestedAction = poco.nestedAction.Select(x => x.Id).ToList();
+ dto.nestedAllocation = poco.nestedAllocation.Select(x => x.Id).ToList();
+ dto.nestedAnalysisCase = poco.nestedAnalysisCase.Select(x => x.Id).ToList();
+ dto.nestedAttribute = poco.nestedAttribute.Select(x => x.Id).ToList();
+ dto.nestedCalculation = poco.nestedCalculation.Select(x => x.Id).ToList();
+ dto.nestedCase = poco.nestedCase.Select(x => x.Id).ToList();
+ dto.nestedConcern = poco.nestedConcern.Select(x => x.Id).ToList();
+ dto.nestedConnection = poco.nestedConnection.Select(x => x.Id).ToList();
+ dto.nestedConstraint = poco.nestedConstraint.Select(x => x.Id).ToList();
+ dto.nestedEnumeration = poco.nestedEnumeration.Select(x => x.Id).ToList();
+ dto.nestedFlow = poco.nestedFlow.Select(x => x.Id).ToList();
+ dto.nestedInterface = poco.nestedInterface.Select(x => x.Id).ToList();
+ dto.nestedItem = poco.nestedItem.Select(x => x.Id).ToList();
+ dto.nestedMetadata = poco.nestedMetadata.Select(x => x.Id).ToList();
+ dto.nestedOccurrence = poco.nestedOccurrence.Select(x => x.Id).ToList();
+ dto.nestedPart = poco.nestedPart.Select(x => x.Id).ToList();
+ dto.nestedPort = poco.nestedPort.Select(x => x.Id).ToList();
+ dto.nestedReference = poco.nestedReference.Select(x => x.Id).ToList();
+ dto.nestedRendering = poco.nestedRendering.Select(x => x.Id).ToList();
+ dto.nestedRequirement = poco.nestedRequirement.Select(x => x.Id).ToList();
+ dto.nestedState = poco.nestedState.Select(x => x.Id).ToList();
+ dto.nestedTransition = poco.nestedTransition.Select(x => x.Id).ToList();
+ dto.nestedUsage = poco.nestedUsage.Select(x => x.Id).ToList();
+ dto.nestedUseCase = poco.nestedUseCase.Select(x => x.Id).ToList();
+ dto.nestedVerificationCase = poco.nestedVerificationCase.Select(x => x.Id).ToList();
+ dto.nestedView = poco.nestedView.Select(x => x.Id).ToList();
+ dto.nestedViewpoint = poco.nestedViewpoint.Select(x => x.Id).ToList();
+ dto.occurrenceDefinition = poco.occurrenceDefinition.Select(x => x.Id).ToList();
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedCrossSubsetting = poco.ownedCrossSubsetting?.Id;
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureChaining = poco.ownedFeatureChaining.Select(x => x.Id).ToList();
+ dto.ownedFeatureInverting = poco.ownedFeatureInverting.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedRedefinition = poco.ownedRedefinition.Select(x => x.Id).ToList();
+ dto.ownedReferenceSubsetting = poco.ownedReferenceSubsetting?.Id;
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedSubsetting = poco.ownedSubsetting.Select(x => x.Id).ToList();
+ dto.ownedTypeFeaturing = poco.ownedTypeFeaturing.Select(x => x.Id).ToList();
+ dto.ownedTyping = poco.ownedTyping.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningDefinition = poco.owningDefinition?.Id;
+ dto.owningFeatureMembership = poco.owningFeatureMembership?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType?.Id;
+ dto.owningUsage = poco.owningUsage?.Id;
+ dto.parameter = poco.parameter.Select(x => x.Id).ToList();
+ dto.qualifiedName = poco.qualifiedName;
+ dto.requiredConstraint = poco.requiredConstraint.Select(x => x.Id).ToList();
+ dto.requirementDefinition = poco.requirementDefinition?.Id;
+ dto.result = poco.result.Id;
+ dto.shortName = poco.shortName;
+ dto.stakeholderParameter = poco.stakeholderParameter.Select(x => x.Id).ToList();
+ dto.subjectParameter = poco.subjectParameter.Id;
+ dto.text = poco.text;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ dto.usage = poco.usage.Select(x => x.Id).ToList();
+ dto.variant = poco.variant.Select(x => x.Id).ToList();
+ dto.variantMembership = poco.variantMembership.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/SelectExpressionExtensions.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/SelectExpressionExtensions.cs
index f8a80471b..c8eb63558 100644
--- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/SelectExpressionExtensions.cs
+++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/SelectExpressionExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Kernel.Expressions;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class SelectExpressionExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -115,17 +115,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -175,10 +175,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.Expressions.S
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Kernel.Expressions.SelectExpression ToDto(this Core.POCO.Kernel.Expressions.SelectExpression poco)
+ public static Core.DTO.Kernel.Expressions.SelectExpression ToDto(this Core.POCO.Kernel.Expressions.SelectExpression poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Kernel.Expressions.SelectExpression();
@@ -203,6 +206,70 @@ public static Core.DTO.Kernel.Expressions.SelectExpression ToDto(this Core.POCO.
dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList();
dto.OwningRelationship = poco.OwningRelationship?.Id;
+ if (includeDerivedProperties)
+ {
+ dto.argument = poco.argument.Select(x => x.Id).ToList();
+ dto.chainingFeature = poco.chainingFeature.Select(x => x.Id).ToList();
+ dto.crossFeature = poco.crossFeature?.Id;
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endFeature = poco.endFeature.Select(x => x.Id).ToList();
+ dto.endOwningType = poco.endOwningType?.Id;
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.featureTarget = poco.featureTarget.Id;
+ dto.featuringType = poco.featuringType.Select(x => x.Id).ToList();
+ dto.function = poco.function?.Id;
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.instantiatedType = poco.instantiatedType.Id;
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.isModelLevelEvaluable = poco.isModelLevelEvaluable;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedCrossSubsetting = poco.ownedCrossSubsetting?.Id;
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureChaining = poco.ownedFeatureChaining.Select(x => x.Id).ToList();
+ dto.ownedFeatureInverting = poco.ownedFeatureInverting.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedRedefinition = poco.ownedRedefinition.Select(x => x.Id).ToList();
+ dto.ownedReferenceSubsetting = poco.ownedReferenceSubsetting?.Id;
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedSubsetting = poco.ownedSubsetting.Select(x => x.Id).ToList();
+ dto.ownedTypeFeaturing = poco.ownedTypeFeaturing.Select(x => x.Id).ToList();
+ dto.ownedTyping = poco.ownedTyping.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningFeatureMembership = poco.owningFeatureMembership?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType?.Id;
+ dto.parameter = poco.parameter.Select(x => x.Id).ToList();
+ dto.qualifiedName = poco.qualifiedName;
+ dto.result = poco.result.Id;
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.type = poco.type.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/SubclassificationExtensions.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/SubclassificationExtensions.cs
index 738e2dbeb..c69ca488f 100644
--- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/SubclassificationExtensions.cs
+++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/SubclassificationExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Core.Classifiers;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class SubclassificationExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -102,17 +102,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -141,7 +141,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Classifiers.Sub
{
if (cache.TryGetValue(identifier, out lazyPoco))
{
- poco.OwnedRelatedElement.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value);
+ poco.OwnedRelatedElement.Add(lazyPoco.Value);
}
}
@@ -157,7 +157,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Classifiers.Sub
if (dto.OwningRelatedElement.HasValue && cache.TryGetValue(dto.OwningRelatedElement.Value, out lazyPoco))
{
- poco.OwningRelatedElement = (Core.POCO.Root.Elements.IElement)lazyPoco.Value;
+ poco.OwningRelatedElement = lazyPoco.Value;
}
else
{
@@ -199,10 +199,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Classifiers.Sub
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Core.Classifiers.Subclassification ToDto(this Core.POCO.Core.Classifiers.Subclassification poco)
+ public static Core.DTO.Core.Classifiers.Subclassification ToDto(this Core.POCO.Core.Classifiers.Subclassification poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Core.Classifiers.Subclassification();
@@ -220,6 +223,23 @@ public static Core.DTO.Core.Classifiers.Subclassification ToDto(this Core.POCO.C
dto.Subclassifier = poco.Subclassifier.Id;
dto.Superclassifier = poco.Superclassifier.Id;
+ if (includeDerivedProperties)
+ {
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.name = poco.name;
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningClassifier = poco.owningClassifier?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.relatedElement = poco.relatedElement.Select(x => x.Id).ToList();
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/TextualRepresentationExtensions.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/TextualRepresentationExtensions.cs
index 131872f75..e40b797ce 100644
--- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/TextualRepresentationExtensions.cs
+++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/TextualRepresentationExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Root.Annotations;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class TextualRepresentationExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -95,17 +95,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -155,10 +155,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Root.Annotations.Tex
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Root.Annotations.TextualRepresentation ToDto(this Core.POCO.Root.Annotations.TextualRepresentation poco)
+ public static Core.DTO.Root.Annotations.TextualRepresentation ToDto(this Core.POCO.Root.Annotations.TextualRepresentation poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Root.Annotations.TextualRepresentation();
@@ -173,6 +176,25 @@ public static Core.DTO.Root.Annotations.TextualRepresentation ToDto(this Core.PO
dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList();
dto.OwningRelationship = poco.OwningRelationship?.Id;
+ if (includeDerivedProperties)
+ {
+ dto.annotation = poco.annotation.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.name = poco.name;
+ dto.ownedAnnotatingRelationship = poco.ownedAnnotatingRelationship.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningAnnotatingRelationship = poco.owningAnnotatingRelationship?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.representedElement = poco.representedElement.Id;
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/UsageExtensions.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/UsageExtensions.cs
index 2b2aaddf6..2c0e041db 100644
--- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/UsageExtensions.cs
+++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtension/UsageExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Systems.DefinitionAndUsage;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class UsageExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -113,17 +113,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -173,10 +173,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.DefinitionAn
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Systems.DefinitionAndUsage.Usage ToDto(this Core.POCO.Systems.DefinitionAndUsage.Usage poco)
+ public static Core.DTO.Systems.DefinitionAndUsage.Usage ToDto(this Core.POCO.Systems.DefinitionAndUsage.Usage poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Systems.DefinitionAndUsage.Usage();
@@ -200,6 +203,100 @@ public static Core.DTO.Systems.DefinitionAndUsage.Usage ToDto(this Core.POCO.Sys
dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList();
dto.OwningRelationship = poco.OwningRelationship?.Id;
+ if (includeDerivedProperties)
+ {
+ dto.chainingFeature = poco.chainingFeature.Select(x => x.Id).ToList();
+ dto.crossFeature = poco.crossFeature?.Id;
+ dto.definition = poco.definition.Select(x => x.Id).ToList();
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.directedFeature = poco.directedFeature.Select(x => x.Id).ToList();
+ dto.directedUsage = poco.directedUsage.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endFeature = poco.endFeature.Select(x => x.Id).ToList();
+ dto.endOwningType = poco.endOwningType?.Id;
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.featureTarget = poco.featureTarget.Id;
+ dto.featuringType = poco.featuringType.Select(x => x.Id).ToList();
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.isReference = poco.isReference;
+ dto.mayTimeVary = poco.mayTimeVary;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.nestedAction = poco.nestedAction.Select(x => x.Id).ToList();
+ dto.nestedAllocation = poco.nestedAllocation.Select(x => x.Id).ToList();
+ dto.nestedAnalysisCase = poco.nestedAnalysisCase.Select(x => x.Id).ToList();
+ dto.nestedAttribute = poco.nestedAttribute.Select(x => x.Id).ToList();
+ dto.nestedCalculation = poco.nestedCalculation.Select(x => x.Id).ToList();
+ dto.nestedCase = poco.nestedCase.Select(x => x.Id).ToList();
+ dto.nestedConcern = poco.nestedConcern.Select(x => x.Id).ToList();
+ dto.nestedConnection = poco.nestedConnection.Select(x => x.Id).ToList();
+ dto.nestedConstraint = poco.nestedConstraint.Select(x => x.Id).ToList();
+ dto.nestedEnumeration = poco.nestedEnumeration.Select(x => x.Id).ToList();
+ dto.nestedFlow = poco.nestedFlow.Select(x => x.Id).ToList();
+ dto.nestedInterface = poco.nestedInterface.Select(x => x.Id).ToList();
+ dto.nestedItem = poco.nestedItem.Select(x => x.Id).ToList();
+ dto.nestedMetadata = poco.nestedMetadata.Select(x => x.Id).ToList();
+ dto.nestedOccurrence = poco.nestedOccurrence.Select(x => x.Id).ToList();
+ dto.nestedPart = poco.nestedPart.Select(x => x.Id).ToList();
+ dto.nestedPort = poco.nestedPort.Select(x => x.Id).ToList();
+ dto.nestedReference = poco.nestedReference.Select(x => x.Id).ToList();
+ dto.nestedRendering = poco.nestedRendering.Select(x => x.Id).ToList();
+ dto.nestedRequirement = poco.nestedRequirement.Select(x => x.Id).ToList();
+ dto.nestedState = poco.nestedState.Select(x => x.Id).ToList();
+ dto.nestedTransition = poco.nestedTransition.Select(x => x.Id).ToList();
+ dto.nestedUsage = poco.nestedUsage.Select(x => x.Id).ToList();
+ dto.nestedUseCase = poco.nestedUseCase.Select(x => x.Id).ToList();
+ dto.nestedVerificationCase = poco.nestedVerificationCase.Select(x => x.Id).ToList();
+ dto.nestedView = poco.nestedView.Select(x => x.Id).ToList();
+ dto.nestedViewpoint = poco.nestedViewpoint.Select(x => x.Id).ToList();
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedCrossSubsetting = poco.ownedCrossSubsetting?.Id;
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureChaining = poco.ownedFeatureChaining.Select(x => x.Id).ToList();
+ dto.ownedFeatureInverting = poco.ownedFeatureInverting.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedRedefinition = poco.ownedRedefinition.Select(x => x.Id).ToList();
+ dto.ownedReferenceSubsetting = poco.ownedReferenceSubsetting?.Id;
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedSubsetting = poco.ownedSubsetting.Select(x => x.Id).ToList();
+ dto.ownedTypeFeaturing = poco.ownedTypeFeaturing.Select(x => x.Id).ToList();
+ dto.ownedTyping = poco.ownedTyping.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningDefinition = poco.owningDefinition?.Id;
+ dto.owningFeatureMembership = poco.owningFeatureMembership?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType?.Id;
+ dto.owningUsage = poco.owningUsage?.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ dto.usage = poco.usage.Select(x => x.Id).ToList();
+ dto.variant = poco.variant.Select(x => x.Id).ToList();
+ dto.variantMembership = poco.variantMembership.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.CodeGenerator.Tests/Generators/EcoreHandleBarsGenerators/CoreDtoDictionaryReaderGeneratorTestFixture.cs b/SysML2.NET.CodeGenerator.Tests/Generators/EcoreHandleBarsGenerators/CoreDtoDictionaryReaderGeneratorTestFixture.cs
index 13b2bb60b..8864a4927 100644
--- a/SysML2.NET.CodeGenerator.Tests/Generators/EcoreHandleBarsGenerators/CoreDtoDictionaryReaderGeneratorTestFixture.cs
+++ b/SysML2.NET.CodeGenerator.Tests/Generators/EcoreHandleBarsGenerators/CoreDtoDictionaryReaderGeneratorTestFixture.cs
@@ -30,6 +30,7 @@ namespace SysML2.NET.CodeGenerator.Tests.Generators.HandleBarsGenerators
///
/// Suite of tests for the class.
///
+ [Explicit("we are about to drop Ecore based code gen, these are present for reference only until permanently removed")]
[TestFixture]
public class CoreDtoDictionaryReaderGeneratorTestFixture
{
diff --git a/SysML2.NET.CodeGenerator.Tests/Generators/EcoreHandleBarsGenerators/CoreDtoDictionaryWriterGeneratorTestFixture.cs b/SysML2.NET.CodeGenerator.Tests/Generators/EcoreHandleBarsGenerators/CoreDtoDictionaryWriterGeneratorTestFixture.cs
index ef10b8e50..e51383925 100644
--- a/SysML2.NET.CodeGenerator.Tests/Generators/EcoreHandleBarsGenerators/CoreDtoDictionaryWriterGeneratorTestFixture.cs
+++ b/SysML2.NET.CodeGenerator.Tests/Generators/EcoreHandleBarsGenerators/CoreDtoDictionaryWriterGeneratorTestFixture.cs
@@ -30,6 +30,7 @@ namespace SysML2.NET.CodeGenerator.Tests.Generators.HandleBarsGenerators
///
/// Suite of tests for the class.
///
+ [Explicit("we are about to drop Ecore based code gen, these are present for reference only until permanently removed")]
[TestFixture]
public class CoreDtoDictionaryWriterGeneratorTestFixture
{
diff --git a/SysML2.NET.CodeGenerator.Tests/Generators/UmlHandleBarsGenerators/UmlCoreDalPocoExtensionsGeneratorTestFixture.cs b/SysML2.NET.CodeGenerator.Tests/Generators/UmlHandleBarsGenerators/UmlCoreDalPocoExtensionsGeneratorTestFixture.cs
index 99c397c15..55d5db8d7 100644
--- a/SysML2.NET.CodeGenerator.Tests/Generators/UmlHandleBarsGenerators/UmlCoreDalPocoExtensionsGeneratorTestFixture.cs
+++ b/SysML2.NET.CodeGenerator.Tests/Generators/UmlHandleBarsGenerators/UmlCoreDalPocoExtensionsGeneratorTestFixture.cs
@@ -39,7 +39,7 @@ public void OneTimeSetup()
{
var directoryInfo = new DirectoryInfo(TestContext.CurrentContext.TestDirectory);
- var path = Path.Combine("UML", "_SysML2.NET.Core.AutoGenPocoExtension");
+ var path = Path.Combine("UML", "_SysML2.NET.Dal.AutoGenPocoExtension");
this.umlPocoExtensionDirectoryInfo = directoryInfo.CreateSubdirectory(path);
this.umlCoreDalPocoExtensionsGenerator = new UmlCoreDalPocoExtensionsGenerator();
diff --git a/SysML2.NET.CodeGenerator.Tests/Generators/UmlHandleBarsGenerators/UmlCoreDalPocoFactoryGeneratorTestFixture.cs b/SysML2.NET.CodeGenerator.Tests/Generators/UmlHandleBarsGenerators/UmlCoreDalPocoFactoryGeneratorTestFixture.cs
index a39d59d94..effcebb83 100644
--- a/SysML2.NET.CodeGenerator.Tests/Generators/UmlHandleBarsGenerators/UmlCoreDalPocoFactoryGeneratorTestFixture.cs
+++ b/SysML2.NET.CodeGenerator.Tests/Generators/UmlHandleBarsGenerators/UmlCoreDalPocoFactoryGeneratorTestFixture.cs
@@ -39,7 +39,7 @@ public void OneTimeSetup()
{
var directoryInfo = new DirectoryInfo(TestContext.CurrentContext.TestDirectory);
- var path = Path.Combine("UML", "_SysML2.NET.Core.AutoGenElementFactory");
+ var path = Path.Combine("UML", "_SysML2.NET.Dal.AutoGenElementFactory");
this.umlPocoFactoryDirectoryInfo = directoryInfo.CreateSubdirectory(path);
this.umlCoreDalPocoExtensionsGenerator = new UmlCoreDalFactoryGenerator();
diff --git a/SysML2.NET.CodeGenerator/Generators/HandleBarsGenerator.cs b/SysML2.NET.CodeGenerator/Generators/HandleBarsGenerator.cs
index 0c781b9e4..b169f9ce4 100644
--- a/SysML2.NET.CodeGenerator/Generators/HandleBarsGenerator.cs
+++ b/SysML2.NET.CodeGenerator/Generators/HandleBarsGenerator.cs
@@ -81,5 +81,19 @@ protected void RegisterTemplate(string name)
Templates.Add(name, compiledTemplate);
}
+
+ ///
+ /// Register handle-bars partial templates based on the template (file) name (without extension)
+ ///
+ ///
+ /// (file) name (without extension)
+ ///
+ protected void RegisterPartialTemplate(string name)
+ {
+ var templatePath = Path.Combine(this.TemplateFolderPath, "Partials", $"{name}.hbs");
+ var template = File.ReadAllText(templatePath);
+
+ this.Handlebars.RegisterTemplate(name, template);
+ }
}
}
diff --git a/SysML2.NET.CodeGenerator/Generators/UmlHandleBarsGenerators/UmlCoreDalPocoExtensionsGenerator.cs b/SysML2.NET.CodeGenerator/Generators/UmlHandleBarsGenerators/UmlCoreDalPocoExtensionsGenerator.cs
index ba321c0fd..a731dd060 100644
--- a/SysML2.NET.CodeGenerator/Generators/UmlHandleBarsGenerators/UmlCoreDalPocoExtensionsGenerator.cs
+++ b/SysML2.NET.CodeGenerator/Generators/UmlHandleBarsGenerators/UmlCoreDalPocoExtensionsGenerator.cs
@@ -185,6 +185,7 @@ protected override void RegisterTemplates()
{
this.RegisterTemplate(ElementExtensionsTemplateName);
this.RegisterTemplate(PocoExtensionsTemplateName);
+ this.RegisterPartialTemplate("core-dal-poco-uml-partial-extensions");
}
///
diff --git a/SysML2.NET.CodeGenerator/Generators/UmlHandleBarsGenerators/UmlCoreJsonDtoDeSerializerGenerator.cs b/SysML2.NET.CodeGenerator/Generators/UmlHandleBarsGenerators/UmlCoreJsonDtoDeSerializerGenerator.cs
index adfd134c3..866976068 100644
--- a/SysML2.NET.CodeGenerator/Generators/UmlHandleBarsGenerators/UmlCoreJsonDtoDeSerializerGenerator.cs
+++ b/SysML2.NET.CodeGenerator/Generators/UmlHandleBarsGenerators/UmlCoreJsonDtoDeSerializerGenerator.cs
@@ -25,12 +25,15 @@ namespace SysML2.NET.CodeGenerator.Generators.UmlHandleBarsGenerators
using System.Linq;
using System.Threading.Tasks;
+ using SysML2.NET.CodeGenerator.HandleBarHelpers;
+
using uml4net.Extensions;
using uml4net.HandleBars;
using uml4net.SimpleClassifiers;
using uml4net.StructuredClassifiers;
using uml4net.xmi.Readers;
+ using ClassHelper = uml4net.HandleBars.ClassHelper;
using NamedElementHelper = SysML2.NET.CodeGenerator.HandleBarHelpers.NamedElementHelper;
using PropertyHelper = SysML2.NET.CodeGenerator.HandleBarHelpers.PropertyHelper;
@@ -127,11 +130,12 @@ private async Task GenerateEnumJsonDeSerializerInternal(XmiReaderResult xmiReade
protected override void RegisterHelpers()
{
this.Handlebars.RegisterStringHelper();
- this.Handlebars.RegisterClassHelper();
- this.Handlebars.RegisterPropertyHelper();
+ ClassHelper.RegisterClassHelper(this.Handlebars);
+ uml4net.HandleBars.PropertyHelper.RegisterPropertyHelper(this.Handlebars);
NamedElementHelper.RegisterNamedElementHelper(this.Handlebars);
PropertyHelper.RegisterPropertyHelper(this.Handlebars);
+ this.Handlebars.RegisterSafeContextHelper();
}
///
@@ -142,6 +146,7 @@ protected override void RegisterTemplates()
this.RegisterTemplate(DtoDeSerializerTemplateName);
this.RegisterTemplate(DtoDeSerializerProviderTemplateName);
this.RegisterTemplate(EnumDeSerializerTemplateName);
+ this.RegisterPartialTemplate("core-json-dto-deserializer-uml-partial-template");
}
///
diff --git a/SysML2.NET.CodeGenerator/Generators/UmlHandleBarsGenerators/UmlCoreJsonDtoSerializerGenerator.cs b/SysML2.NET.CodeGenerator/Generators/UmlHandleBarsGenerators/UmlCoreJsonDtoSerializerGenerator.cs
index e2c5f23c7..67c71ee40 100644
--- a/SysML2.NET.CodeGenerator/Generators/UmlHandleBarsGenerators/UmlCoreJsonDtoSerializerGenerator.cs
+++ b/SysML2.NET.CodeGenerator/Generators/UmlHandleBarsGenerators/UmlCoreJsonDtoSerializerGenerator.cs
@@ -25,11 +25,14 @@ namespace SysML2.NET.CodeGenerator.Generators.UmlHandleBarsGenerators
using System.Linq;
using System.Threading.Tasks;
+ using SysML2.NET.CodeGenerator.HandleBarHelpers;
+
using uml4net.Extensions;
using uml4net.HandleBars;
using uml4net.StructuredClassifiers;
using uml4net.xmi.Readers;
+ using ClassHelper = uml4net.HandleBars.ClassHelper;
using NamedElementHelper = SysML2.NET.CodeGenerator.HandleBarHelpers.NamedElementHelper;
using PropertyHelper = SysML2.NET.CodeGenerator.HandleBarHelpers.PropertyHelper;
@@ -72,11 +75,12 @@ public override async Task GenerateAsync(XmiReaderResult xmiReaderResult, Direct
protected override void RegisterHelpers()
{
this.Handlebars.RegisterStringHelper();
- this.Handlebars.RegisterClassHelper();
- this.Handlebars.RegisterPropertyHelper();
+ ClassHelper.RegisterClassHelper(this.Handlebars);
+ uml4net.HandleBars.PropertyHelper.RegisterPropertyHelper(this.Handlebars);
NamedElementHelper.RegisterNamedElementHelper(this.Handlebars);
PropertyHelper.RegisterPropertyHelper(this.Handlebars);
+ this.Handlebars.RegisterSafeContextHelper();
}
///
@@ -86,6 +90,7 @@ protected override void RegisterTemplates()
{
this.RegisterTemplate(DtoSerializerTemplateName);
this.RegisterTemplate(DtoSerializerProviderTemplateName);
+ this.RegisterPartialTemplate("core-json-dto-serializer-uml-partial-template");
}
///
diff --git a/SysML2.NET.CodeGenerator/HandleBarHelpers/PropertyHelper.cs b/SysML2.NET.CodeGenerator/HandleBarHelpers/PropertyHelper.cs
index 8f98d818f..ad233626a 100644
--- a/SysML2.NET.CodeGenerator/HandleBarHelpers/PropertyHelper.cs
+++ b/SysML2.NET.CodeGenerator/HandleBarHelpers/PropertyHelper.cs
@@ -579,9 +579,9 @@ public static void RegisterPropertyHelper(this IHandlebars handlebars)
return redefinition.Name == property.Name;
});
- handlebars.RegisterHelper("Property.WritePropertyName", (writer, context, _) =>
+ handlebars.RegisterHelper("Property.WritePropertyName", (writer, _, arguments) =>
{
- if (context.Value is not IProperty property)
+ if (arguments.Single() is not IProperty property)
{
throw new ArgumentException("The #Property.WritePropertyName context supposed to be IProperty");
}
@@ -619,6 +619,16 @@ public static void RegisterPropertyHelper(this IHandlebars handlebars)
writer.WriteSafeString($"{variableName}.{propertyName}");
}
});
+
+ handlebars.RegisterHelper("Property.IsOfTypeBaseElement", (_, arguments) =>
+ {
+ if (arguments.Single() is not IProperty property)
+ {
+ throw new ArgumentException("The #Property.IsOfTypeBaseElement argument supposed to be IProperty");
+ }
+
+ return property.Type.Name == "Element";
+ });
}
///
@@ -627,7 +637,7 @@ public static void RegisterPropertyHelper(this IHandlebars handlebars)
/// The redefined property
/// The property that redefines
/// Gets the context
- /// The getter imlementation
+ /// The getter implementation
private static string GetRedefinedPropertyGetterImplementationForDto(IProperty redefinedProperty, IProperty redefinition, IClass context)
{
string redefinitionPropertyName;
diff --git a/SysML2.NET.CodeGenerator/HandleBarHelpers/SafeContextHelper.cs b/SysML2.NET.CodeGenerator/HandleBarHelpers/SafeContextHelper.cs
new file mode 100644
index 000000000..21d94b1cd
--- /dev/null
+++ b/SysML2.NET.CodeGenerator/HandleBarHelpers/SafeContextHelper.cs
@@ -0,0 +1,51 @@
+// -------------------------------------------------------------------------------------------------
+//
+//
+// Copyright 2022-2025 Starion Group S.A.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+//
+// ------------------------------------------------------------------------------------------------
+
+namespace SysML2.NET.CodeGenerator.HandleBarHelpers
+{
+ using HandlebarsDotNet;
+
+ using uml4net.Classification;
+ using uml4net.StructuredClassifiers;
+
+ ///
+ /// Register helpers to help on generating safe context while using partials
+ ///
+ public static class SafeContextHelper
+ {
+ ///
+ /// Register this helper class as handlebars helper
+ ///
+ /// The
+ public static void RegisterSafeContextHelper(this IHandlebars handlebars)
+ {
+ handlebars.RegisterHelper("withPropertyClassContext", (output, options, context, arguments) =>
+ {
+ var model = new
+ {
+ property = arguments[0] as IProperty,
+ classContext = arguments[1] as IClass
+ };
+
+ options.Template(output, model);
+ });
+ }
+ }
+}
diff --git a/SysML2.NET.CodeGenerator/SysML2.NET.CodeGenerator.csproj b/SysML2.NET.CodeGenerator/SysML2.NET.CodeGenerator.csproj
index 1cc90ac47..978004e0c 100644
--- a/SysML2.NET.CodeGenerator/SysML2.NET.CodeGenerator.csproj
+++ b/SysML2.NET.CodeGenerator/SysML2.NET.CodeGenerator.csproj
@@ -236,6 +236,15 @@
Always
+
+ Always
+
+
+ Always
+
+
+ Always
+
diff --git a/SysML2.NET.CodeGenerator/Templates/Uml/Partials/core-dal-poco-uml-partial-extensions.hbs b/SysML2.NET.CodeGenerator/Templates/Uml/Partials/core-dal-poco-uml-partial-extensions.hbs
new file mode 100644
index 000000000..7fea40102
--- /dev/null
+++ b/SysML2.NET.CodeGenerator/Templates/Uml/Partials/core-dal-poco-uml-partial-extensions.hbs
@@ -0,0 +1,13 @@
+{{#with this as |parameter|}}
+ {{#if (Property.QueryIsReferenceProperty property) }}
+ {{#if (Property.QueryIsEnumerable property)}}
+ dto.{{Property.WritePropertyName property}} = poco.{{Property.WritePropertyName property}}.Select(x => x.Id).ToList();
+ {{ else if (Property.QueryIsNullable property)}}
+ dto.{{Property.WritePropertyName property}} = poco.{{Property.WritePropertyName property}}?.Id;
+ {{ else }}
+ dto.{{Property.WritePropertyName property}} = poco.{{Property.WritePropertyName property}}.Id;
+ {{/if}}
+ {{ else }}
+ dto.{{Property.WritePropertyName property}} = poco.{{Property.WritePropertyName property}};
+ {{/if}}
+{{/with}}
\ No newline at end of file
diff --git a/SysML2.NET.CodeGenerator/Templates/Uml/Partials/core-json-dto-deserializer-uml-partial-template.hbs b/SysML2.NET.CodeGenerator/Templates/Uml/Partials/core-json-dto-deserializer-uml-partial-template.hbs
new file mode 100644
index 000000000..cb9abec40
--- /dev/null
+++ b/SysML2.NET.CodeGenerator/Templates/Uml/Partials/core-json-dto-deserializer-uml-partial-template.hbs
@@ -0,0 +1,117 @@
+if (jsonElement.TryGetProperty("{{ property.Name }}"u8, out var {{ property.Name }}Property))
+{
+{{#if (Property.QueryIsReferenceProperty property)}}
+ {{#if (Property.QueryIsEnumerable property)}}
+ foreach (var arrayItem in {{ property.Name }}Property.EnumerateArray())
+ {
+ if (arrayItem.TryGetProperty("@id"u8, out var {{ property.Name }}ExternalIdProperty))
+ {
+ var propertyValue = {{ property.Name }}ExternalIdProperty.GetString();
+
+ if (propertyValue != null)
+ {
+ dtoInstance.{{Property.WritePropertyName property}}.Add(Guid.Parse(propertyValue));
+ }
+ }
+ }
+ {{ else }}
+ if ({{ property.Name }}Property.ValueKind == JsonValueKind.Null)
+ {
+ {{#if (Property.QueryIsNullable property) }}
+ dtoInstance.{{Property.WritePropertyName property}} = null;
+ {{else}}
+ dtoInstance.{{Property.WritePropertyName property}} = Guid.Empty;
+ logger.LogDebug($"the {{ classContext.Name }}.{{Property.WritePropertyName property}} property was not found in the Json. The value is set to Guid.Empty");
+ {{/if}}
+ }
+ else
+ {
+ if ({{ property.Name }}Property.TryGetProperty("@id"u8, out var {{ property.Name }}ExternalIdProperty))
+ {
+ var propertyValue = {{ property.Name }}ExternalIdProperty.GetString();
+
+ if (propertyValue != null)
+ {
+ dtoInstance.{{Property.WritePropertyName property}} = Guid.Parse(propertyValue);
+ }
+ }
+ }
+ {{/if}}
+{{ else }}
+ {{#if (Property.QueryIsEnumerable property)}}
+ foreach (var arrayItem in {{ property.Name }}Property.EnumerateArray())
+ {
+ {{#if (Property.QueryIsBool property )}}
+ var propertyValue = arrayItem.GetBoolean();
+
+ if (propertyValue != null)
+ {
+ dtoInstance.{{Property.WritePropertyName property}}.Add(propertyValue);
+ }
+ {{else if (Property.QueryIsEnum property )}}
+ throw new NotImplementedException("Enumerable Enum - {{ classContext.Name }}.{{property.Name}} is not yet supported");
+ {{else if (Property.QueryIsNumeric property )}}
+ {{#if (Property.QueryIsInteger property) }}
+ dtoInstance.{{Property.WritePropertyName property}}.Add(arrayItem.GetInt32());
+ {{else if (Property.QueryIsDouble property) }}
+ dtoInstance.{{Property.WritePropertyName property}}.Add(arrayItem.GetDouble());
+ {{ else }}
+ throw new NotImplementedException("Enumerable Double - {{ classContext.Name }}.{{property.Name}} is not yet supported");
+ {{/if}}
+ {{else}}
+ var propertyValue = arrayItem.GetString();
+
+ if (propertyValue != null)
+ {
+ dtoInstance.{{Property.WritePropertyName property}}.Add(propertyValue);
+ }
+ {{/if}}
+ }
+ {{ else if (Property.QueryIsNullable property) }}
+ {{#if (Property.QueryIsBool property )}}
+ dtoInstance.{{Property.WritePropertyName property}} = {{ property.Name }}Property.GetBoolean();
+ {{else if (Property.QueryIsEnum property )}}
+ dtoInstance.{{Property.WritePropertyName property}} = {{ property.Type.Name }}DeSerializer.DeserializeNullable({{ property.Name }}Property.GetString());
+ {{else if (Property.QueryIsNumeric property )}}
+ {{#if (Property.QueryIsInteger property) }}
+ dtoInstance.{{Property.WritePropertyName property}} = {{ property.Name }}Property.GetInt32();
+ {{else if (Property.QueryIsDouble property) }}
+ dtoInstance.{{Property.WritePropertyName property}} = {{ property.Name }}Property.GetDouble();
+ {{ else }}
+ new NotImplementedException("nullable - {{ classContext.Name }}.{{property.Name}} is not yet supported");
+ {{/if}}
+ {{else}}
+ dtoInstance.{{Property.WritePropertyName property}} = {{ property.Name }}Property.GetString();
+ {{/if}}
+ {{ else if (Property.QueryIsScalar property) }}
+ {{#if (Property.QueryIsBool property )}}
+ if ({{ property.Name }}Property.ValueKind != JsonValueKind.Null)
+ {
+ dtoInstance.{{Property.WritePropertyName property}} = {{ property.Name }}Property.GetBoolean();
+ }
+ {{else if (Property.QueryIsEnum property )}}
+ dtoInstance.{{Property.WritePropertyName property}} = {{ property.Type.Name }}DeSerializer.Deserialize({{ property.Name }}Property.GetString());
+ {{else if (Property.QueryIsNumeric property )}}
+ {{#if (Property.QueryIsInteger property) }}
+ dtoInstance.{{Property.WritePropertyName property}} = {{ property.Name }}Property.GetInt32();
+ {{else if (Property.QueryIsDouble property) }}
+ dtoInstance.{{Property.WritePropertyName property}} = {{ property.Name }}Property.GetDouble();
+ {{ else }}
+ new NotImplementedException("Scalar - {{ classContext.Name }}.{{property.Name}} is not yet supported");
+ {{/if}}
+ {{else}}
+ var propertyValue = {{property.Name }}Property.GetString();
+
+ if (propertyValue != null)
+ {
+ dtoInstance.{{Property.WritePropertyName property}} = propertyValue;
+ }
+ {{/if}}
+ {{/if}}
+{{/if}}
+}
+else
+{
+logger.LogDebug("the {{ property.Name }} Json property was not found in the {{ classContext.Name }}: {Id}", dtoInstance.Id);
+}
+
diff --git a/SysML2.NET.CodeGenerator/Templates/Uml/Partials/core-json-dto-serializer-uml-partial-template.hbs b/SysML2.NET.CodeGenerator/Templates/Uml/Partials/core-json-dto-serializer-uml-partial-template.hbs
new file mode 100644
index 000000000..970913488
--- /dev/null
+++ b/SysML2.NET.CodeGenerator/Templates/Uml/Partials/core-json-dto-serializer-uml-partial-template.hbs
@@ -0,0 +1,70 @@
+{{#if (Property.QueryIsEnumerable property)}}
+ writer.WriteStartArray("{{String.LowerCaseFirstLetter property.Name }}"u8);
+
+ foreach (var item in i{{classContext.Name}}.{{Property.WritePropertyName property}})
+ {
+ {{#if (Property.QueryIsReferenceProperty property)}}
+ writer.WriteStartObject();
+ writer.WritePropertyName("@id"u8);
+ writer.WriteStringValue(item);
+ writer.WriteEndObject();
+ {{else if (Property.QueryIsBool property)}}
+ writer.WriteBooleanValue(item);
+ {{else if (Property.QueryIsEnum property)}}
+ writer.WriteStringValue(item.ToString().ToLower());
+ {{else if (Property.QueryIsNumeric property)}}
+ writer.WriteNumberValue(item);
+ {{else}}
+ writer.WriteStringValue(item);
+ {{/if}}
+ }
+
+ writer.WriteEndArray();
+ {{else if (Property.QueryIsNullable property)}}
+ writer.WritePropertyName("{{ String.LowerCaseFirstLetter property.Name }}"u8);
+ {{#if (Property.QueryIsString property )}}
+ writer.WriteStringValue(i{{classContext.Name}}.{{Property.WritePropertyName property}});
+ {{ else }}
+
+ if (i{{classContext.Name}}.{{Property.WritePropertyName property}}.HasValue)
+ {
+ {{#if (Property.QueryIsReferenceProperty property)}}
+ writer.WriteStartObject();
+ writer.WritePropertyName("@id"u8);
+ writer.WriteStringValue(i{{classContext.Name}}.{{Property.WritePropertyName property}}.Value);
+ writer.WriteEndObject();
+ {{else if (Property.QueryIsBool property )}}
+ writer.WriteBooleanValue(i{{classContext.Name}}.{{Property.WritePropertyName property}}.Value);
+ {{else if (property.QueryIsEnum property )}}
+ writer.WriteStringValue(i{{classContext.Name}}.{{Property.WritePropertyName property}}.Value.ToString().ToLower());
+ {{else if (Property.QueryIsNumeric property )}}
+ writer.WriteNumberValue(i{{classContext.Name}}.{{Property.WritePropertyName property}}.Value);
+ {{else}}
+ writer.WriteStringValue(i{{classContext.Name}}.{{Property.WritePropertyName property}}.Value);
+ {{/if}}
+ }
+ else
+ {
+ writer.WriteNullValue();
+ }
+ {{/if}}
+ {{ else if (Property.QueryIsScalar property)}}
+ writer.WritePropertyName("{{ String.LowerCaseFirstLetter property.Name }}"u8);
+ {{#if (Property.QueryIsReferenceProperty property)}}
+ writer.WriteStartObject();
+ writer.WritePropertyName("@id"u8);
+ writer.WriteStringValue(i{{classContext.Name}}.{{Property.WritePropertyName property}});
+ writer.WriteEndObject();
+ {{else if (Property.QueryIsBool property )}}
+ writer.WriteBooleanValue(i{{classContext.Name}}.{{Property.WritePropertyName property}});
+ {{else if (Property.QueryIsString property )}}
+ writer.WriteStringValue(i{{classContext.Name}}.{{Property.WritePropertyName property}});
+ {{else if (Property.QueryIsEnum property )}}
+ writer.WriteStringValue(i{{classContext.Name}}.{{Property.WritePropertyName property}}.ToString().ToLower());
+ {{else if (Property.QueryIsNumeric property )}}
+ writer.WriteNumberValue(i{{classContext.Name}}.{{Property.WritePropertyName property}});
+ {{else}}
+ writer.WriteStringValue(i{{classContext.Name}}.{{Property.WritePropertyName property}});
+ {{/if}}
+ {{/if}}
+
diff --git a/SysML2.NET.CodeGenerator/Templates/Uml/core-dal-element-uml-extensions.hbs b/SysML2.NET.CodeGenerator/Templates/Uml/core-dal-element-uml-extensions.hbs
index 9fea687c0..255f9508e 100644
--- a/SysML2.NET.CodeGenerator/Templates/Uml/core-dal-element-uml-extensions.hbs
+++ b/SysML2.NET.CodeGenerator/Templates/Uml/core-dal-element-uml-extensions.hbs
@@ -76,14 +76,14 @@ namespace SysML2.NET.Dal
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
- /// s that are know and cached.
+ /// The that contains the
+ /// ModelThings that are know and cached.
///
///
public static void UpdateReferenceProperties(this Core.POCO.Root.Elements.IElement poco, Core.DTO.Root.Elements.IElement dto, ConcurrentDictionary> cache)
diff --git a/SysML2.NET.CodeGenerator/Templates/Uml/core-dal-poco-uml-extensions.hbs b/SysML2.NET.CodeGenerator/Templates/Uml/core-dal-poco-uml-extensions.hbs
index c7be41960..58b34af72 100644
--- a/SysML2.NET.CodeGenerator/Templates/Uml/core-dal-poco-uml-extensions.hbs
+++ b/SysML2.NET.CodeGenerator/Templates/Uml/core-dal-poco-uml-extensions.hbs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.{{ #NamedElement.WriteFullyQualifiedNameSpace this }};
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class {{ this.Name }}Extensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -100,17 +100,17 @@ namespace SysML2.NET.Dal
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -146,7 +146,9 @@ namespace SysML2.NET.Dal
{
if (cache.TryGetValue(identifier, out lazyPoco))
{
- {{#if property.Type.IsAbstract }}
+ {{#if (Property.IsOfTypeBaseElement property)}}
+ poco.{{ String.PascalCase property.Name}}.Add(lazyPoco.Value);
+ {{else if property.Type.IsAbstract }}
poco.{{ String.PascalCase property.Name}}.Add((Core.POCO.{{ #NamedElement.WriteFullyQualifiedNameSpace property.Type }}.I{{ property.Type.Name }})lazyPoco.Value);
{{else}}
poco.{{ String.PascalCase property.Name}}.Add((Core.POCO.{{ #NamedElement.WriteFullyQualifiedNameSpace property.Type }}.{{ property.Type.Name }})lazyPoco.Value);
@@ -157,7 +159,9 @@ namespace SysML2.NET.Dal
{{else if (Property.QueryIsNullable property) }}
if (dto.{{ String.PascalCase property.Name}}.HasValue && cache.TryGetValue(dto.{{ String.PascalCase property.Name}}.Value, out lazyPoco))
{
- {{#if property.Type.IsAbstract }}
+ {{#if (Property.IsOfTypeBaseElement property)}}
+ poco.{{ String.PascalCase property.Name}} = lazyPoco.Value;
+ {{else if property.Type.IsAbstract }}
poco.{{ String.PascalCase property.Name}} = (Core.POCO.{{ #NamedElement.WriteFullyQualifiedNameSpace property.Type }}.I{{ property.Type.Name }})lazyPoco.Value;
{{else}}
poco.{{ String.PascalCase property.Name}} = (Core.POCO.{{ #NamedElement.WriteFullyQualifiedNameSpace property.Type }}.{{ property.Type.Name }})lazyPoco.Value;
@@ -171,7 +175,9 @@ namespace SysML2.NET.Dal
{{else}}
if (cache.TryGetValue(dto.{{ String.PascalCase property.Name}}, out lazyPoco))
{
- {{#if property.Type.IsAbstract }}
+ {{#if (Property.IsOfTypeBaseElement property)}}
+ poco.{{ String.PascalCase property.Name}} = lazyPoco.Value;
+ {{else if property.Type.IsAbstract }}
poco.{{ String.PascalCase property.Name}} = (Core.POCO.{{ #NamedElement.WriteFullyQualifiedNameSpace property.Type }}.I{{ property.Type.Name }})lazyPoco.Value;
{{else}}
poco.{{ String.PascalCase property.Name}} = (Core.POCO.{{ #NamedElement.WriteFullyQualifiedNameSpace property.Type }}.{{ property.Type.Name }})lazyPoco.Value;
@@ -197,10 +203,13 @@ namespace SysML2.NET.Dal
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.{{ #NamedElement.WriteFullyQualifiedNameSpace this }}.{{ this.Name }} ToDto(this Core.POCO.{{ #NamedElement.WriteFullyQualifiedNameSpace this }}.{{ this.Name }} poco)
+ public static Core.DTO.{{ #NamedElement.WriteFullyQualifiedNameSpace this }}.{{ this.Name }} ToDto(this Core.POCO.{{ #NamedElement.WriteFullyQualifiedNameSpace this }}.{{ this.Name }} poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.{{ #NamedElement.WriteFullyQualifiedNameSpace this }}.{{ this.Name }}();
@@ -210,23 +219,26 @@ namespace SysML2.NET.Dal
{{#unless property.IsDerived }}
{{#unless property.IsTransient }}
{{#unless (Property.IsPropertyRedefinedInClass this class)}}
- {{#if (Property.QueryIsReferenceProperty property) }}
- {{#if (Property.QueryIsEnumerable property)}}
- dto.{{ String.PascalCase property.Name }} = poco.{{ String.PascalCase property.Name }}.Select(x => x.Id).ToList();
- {{ else if (Property.QueryIsNullable property)}}
- dto.{{ String.PascalCase property.Name }} = poco.{{ String.PascalCase property.Name }}?.Id;
- {{ else }}
- dto.{{ String.PascalCase property.Name }} = poco.{{ String.PascalCase property.Name }}.Id;
- {{/if}}
- {{ else }}
- dto.{{ String.PascalCase property.Name }} = poco.{{ String.PascalCase property.Name }};
- {{/if}}
- {{/unless}}
+ {{> core-dal-poco-uml-partial-extensions property}}
+ {{/unless}}
{{/unless}}
{{/unless}}
{{/each}}
{{/with}}
+ if(includeDerivedProperties)
+ {
+ {{#with this as | class |}}
+ {{#each (Class.QueryAllProperties this) as | property |}}
+ {{#if property.IsDerived }}
+ {{#unless (Property.IsPropertyRedefinedInClass this class)}}
+ {{> core-dal-poco-uml-partial-extensions property}}
+ {{/unless}}
+ {{/if}}
+ {{/each}}
+ {{/with}}
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.CodeGenerator/Templates/Uml/core-element-dal-uml-factory.hbs b/SysML2.NET.CodeGenerator/Templates/Uml/core-element-dal-uml-factory.hbs
index 282193623..10e7d3979 100644
--- a/SysML2.NET.CodeGenerator/Templates/Uml/core-element-dal-uml-factory.hbs
+++ b/SysML2.NET.CodeGenerator/Templates/Uml/core-element-dal-uml-factory.hbs
@@ -55,8 +55,7 @@ namespace SysML2.NET.Dal
{
{{#each this as | class |}}
case Core.DTO.{{ #NamedElement.WriteFullyQualifiedNameSpace this }}.{{ class.Name }} {{ String.LowerCaseFirstLetter class.Name }}Dto:
- var {{ String.LowerCaseFirstLetter class.Name }}Factory = new {{ class.Name }}Factory();
- return {{ String.LowerCaseFirstLetter class.Name }}Factory.Create({{ String.LowerCaseFirstLetter class.Name }}Dto);
+ return {{ class.Name }}Factory.Create({{ String.LowerCaseFirstLetter class.Name }}Dto);
{{/each}}
default:
throw new NotSupportedException($"{dto.GetType().Name} not yet supported");
diff --git a/SysML2.NET.CodeGenerator/Templates/Uml/core-json-dto-deserializer-uml-template.hbs b/SysML2.NET.CodeGenerator/Templates/Uml/core-json-dto-deserializer-uml-template.hbs
index 76346a7fe..3e67e801f 100644
--- a/SysML2.NET.CodeGenerator/Templates/Uml/core-json-dto-deserializer-uml-template.hbs
+++ b/SysML2.NET.CodeGenerator/Templates/Uml/core-json-dto-deserializer-uml-template.hbs
@@ -119,123 +119,9 @@ namespace SysML2.NET.Serializer.Json.Core.DTO
{{ #each (Class.QueryAllProperties this) as | property | }}
{{#unless this.IsTransient}}
{{#unless (Property.IsPropertyRedefinedInClass this class)}}
- if (jsonElement.TryGetProperty("{{ property.Name }}"u8, out var {{ property.Name }}Property))
- {
- {{#if (Property.QueryIsReferenceProperty property)}}
- {{#if (Property.QueryIsEnumerable property)}}
- foreach (var arrayItem in {{ property.Name }}Property.EnumerateArray())
- {
- if (arrayItem.TryGetProperty("@id"u8, out var {{ property.Name }}ExternalIdProperty))
- {
- var propertyValue = {{ property.Name }}ExternalIdProperty.GetString();
-
- if (propertyValue != null)
- {
- {{ #Property.WritePropertyWithExplicitInterfaceIfRequiredForDTO property class dtoInstance }}.Add(Guid.Parse(propertyValue));
- }
- }
- }
- {{ else }}
- if ({{ property.Name }}Property.ValueKind == JsonValueKind.Null)
- {
- {{#if (Property.QueryIsNullable property) }}
- {{ #Property.WritePropertyWithExplicitInterfaceIfRequiredForDTO property class dtoInstance }} = null;
- {{else}}
- {{ #Property.WritePropertyWithExplicitInterfaceIfRequiredForDTO property class dtoInstance }} = Guid.Empty;
- logger.LogDebug($"the {{ class.Name }}.{{Property.WritePropertyName property}} property was not found in the Json. The value is set to Guid.Empty");
- {{/if}}
- }
- else
- {
- if ({{ property.Name }}Property.TryGetProperty("@id"u8, out var {{ property.Name }}ExternalIdProperty))
- {
- var propertyValue = {{ property.Name }}ExternalIdProperty.GetString();
-
- if (propertyValue != null)
- {
- {{ #Property.WritePropertyWithExplicitInterfaceIfRequiredForDTO property class dtoInstance }} = Guid.Parse(propertyValue);
- }
- }
- }
- {{/if}}
- {{ else }}
- {{#if (Property.QueryIsEnumerable property)}}
- foreach (var arrayItem in {{ property.Name }}Property.EnumerateArray())
- {
- {{#if (Property.QueryIsBool property )}}
- var propertyValue = arrayItem.GetBoolean();
-
- if (propertyValue != null)
- {
- {{ #Property.WritePropertyWithExplicitInterfaceIfRequiredForDTO property class dtoInstance }}.Add(propertyValue);
- }
- {{else if (Property.QueryIsEnum property )}}
- throw new NotImplementedException("Enumerable Enum - {{class.Name}}.{{property.Name}} is not yet supported");
- {{else if (Property.QueryIsNumeric property )}}
- {{#if (Property.QueryIsInteger property) }}
- {{ #Property.WritePropertyWithExplicitInterfaceIfRequiredForDTO property class dtoInstance }}.Add(arrayItem.GetInt32());
- {{else if (Property.QueryIsDouble property) }}
- {{ #Property.WritePropertyWithExplicitInterfaceIfRequiredForDTO property class dtoInstance }}.Add(arrayItem.GetDouble());
- {{ else }}
- throw new NotImplementedException("Enumerable Double - {{class.Name}}.{{property.Name}} is not yet supported");
- {{/if}}
- {{else}}
- var propertyValue = arrayItem.GetString();
-
- if (propertyValue != null)
- {
- {{ #Property.WritePropertyWithExplicitInterfaceIfRequiredForDTO property class dtoInstance }}.Add(propertyValue);
- }
- {{/if}}
- }
- {{ else if (Property.QueryIsNullable property) }}
- {{#if (Property.QueryIsBool property )}}
- {{ #Property.WritePropertyWithExplicitInterfaceIfRequiredForDTO property class dtoInstance }} = {{ property.Name }}Property.GetBoolean();
- {{else if (Property.QueryIsEnum property )}}
- {{ #Property.WritePropertyWithExplicitInterfaceIfRequiredForDTO property class dtoInstance }} = {{ property.Type.Name }}DeSerializer.DeserializeNullable({{ property.Name }}Property.GetString());
- {{else if (Property.QueryIsNumeric property )}}
- {{#if (Property.QueryIsInteger property) }}
- {{ #Property.WritePropertyWithExplicitInterfaceIfRequiredForDTO property class dtoInstance }} = {{ property.Name }}Property.GetInt32();
- {{else if (Property.QueryIsDouble property) }}
- {{ #Property.WritePropertyWithExplicitInterfaceIfRequiredForDTO property class dtoInstance }} = {{ property.Name }}Property.GetDouble();
- {{ else }}
- new NotImplementedException("nullable - {{class.Name}}.{{property.Name}} is not yet supported");
- {{/if}}
- {{else}}
- {{ #Property.WritePropertyWithExplicitInterfaceIfRequiredForDTO property class dtoInstance }} = {{ property.Name }}Property.GetString();
- {{/if}}
- {{ else if (Property.QueryIsScalar property) }}
- {{#if (Property.QueryIsBool property )}}
- if ({{ property.Name }}Property.ValueKind != JsonValueKind.Null)
- {
- {{ #Property.WritePropertyWithExplicitInterfaceIfRequiredForDTO property class dtoInstance }} = {{ property.Name }}Property.GetBoolean();
- }
- {{else if (Property.QueryIsEnum property )}}
- {{ #Property.WritePropertyWithExplicitInterfaceIfRequiredForDTO property class dtoInstance }} = {{ property.Type.Name }}DeSerializer.Deserialize({{ property.Name }}Property.GetString());
- {{else if (Property.QueryIsNumeric property )}}
- {{#if (Property.QueryIsInteger property) }}
- {{ #Property.WritePropertyWithExplicitInterfaceIfRequiredForDTO property class dtoInstance }} = {{ property.Name }}Property.GetInt32();
- {{else if (Property.QueryIsDouble property) }}
- {{ #Property.WritePropertyWithExplicitInterfaceIfRequiredForDTO property class dtoInstance }} = {{ property.Name }}Property.GetDouble();
- {{ else }}
- new NotImplementedException("Scalar - {{class.Name}}.{{property.Name}} is not yet supported");
- {{/if}}
- {{else}}
- var propertyValue = {{property.Name }}Property.GetString();
-
- if (propertyValue != null)
- {
- {{ #Property.WritePropertyWithExplicitInterfaceIfRequiredForDTO property class dtoInstance }} = propertyValue;
- }
- {{/if}}
- {{/if}}
- {{/if}}
- }
- else
- {
- logger.LogDebug("the {{ property.Name }} Json property was not found in the {{ class.Name }}: { Id }", dtoInstance.Id);
- }
-
+ {{#withPropertyClassContext property class}}
+ {{> core-json-dto-deserializer-uml-partial-template this}}
+ {{/withPropertyClassContext}}
{{/unless}}
{{/unless}}
{{/each}}
@@ -262,123 +148,9 @@ namespace SysML2.NET.Serializer.Json.Core.DTO
{{#unless this.IsTransient}}
{{#unless this.IsDerived}}
{{#unless (Property.IsPropertyRedefinedInClass this class)}}
- if (jsonElement.TryGetProperty("{{ property.Name }}"u8, out var {{ property.Name }}Property))
- {
- {{#if (Property.QueryIsReferenceProperty property)}}
- {{#if (Property.QueryIsEnumerable property)}}
- foreach (var arrayItem in {{ property.Name }}Property.EnumerateArray())
- {
- if (arrayItem.TryGetProperty("@id"u8, out var {{ property.Name }}ExternalIdProperty))
- {
- var propertyValue = {{ property.Name }}ExternalIdProperty.GetString();
-
- if (propertyValue != null)
- {
- {{ #Property.WritePropertyWithExplicitInterfaceIfRequiredForDTO property class dtoInstance }}.Add(Guid.Parse(propertyValue));
- }
- }
- }
- {{ else }}
- if ({{ property.Name }}Property.ValueKind == JsonValueKind.Null)
- {
- {{#if (Property.QueryIsNullable property) }}
- {{ #Property.WritePropertyWithExplicitInterfaceIfRequiredForDTO property class dtoInstance }} = null;
- {{else}}
- {{ #Property.WritePropertyWithExplicitInterfaceIfRequiredForDTO property class dtoInstance }} = Guid.Empty;
- logger.LogDebug($"the {{ class.Name }}.{{Property.WritePropertyName property}} property was not found in the Json. The value is set to Guid.Empty");
- {{/if}}
- }
- else
- {
- if ({{ property.Name }}Property.TryGetProperty("@id"u8, out var {{ property.Name }}ExternalIdProperty))
- {
- var propertyValue = {{ property.Name }}ExternalIdProperty.GetString();
-
- if (propertyValue != null)
- {
- {{ #Property.WritePropertyWithExplicitInterfaceIfRequiredForDTO property class dtoInstance }} = Guid.Parse(propertyValue);
- }
- }
- }
- {{/if}}
- {{ else }}
- {{#if (Property.QueryIsEnumerable property)}}
- foreach (var arrayItem in {{ property.Name }}Property.EnumerateArray())
- {
- {{#if (Property.QueryIsBool property )}}
- var propertyValue = arrayItem.GetBoolean();
-
- if (propertyValue != null)
- {
- {{ #Property.WritePropertyWithExplicitInterfaceIfRequiredForDTO property class dtoInstance }}.Add(propertyValue);
- }
- {{else if (Property.QueryIsEnum property )}}
- throw new NotImplementedException("Enumerable Enum - {{class.Name}}.{{property.Name}} is not yet supported");
- {{else if (Property.QueryIsNumeric property )}}
- {{#if (Property.QueryIsInteger property) }}
- {{ #Property.WritePropertyWithExplicitInterfaceIfRequiredForDTO property class dtoInstance }}.Add(arrayItem.GetInt32());
- {{else if (Property.QueryIsDouble property) }}
- {{ #Property.WritePropertyWithExplicitInterfaceIfRequiredForDTO property class dtoInstance }}.Add(arrayItem.GetDouble());
- {{ else }}
- throw new NotImplementedException("Enumerable Double - {{class.Name}}.{{property.Name}} is not yet supported");
- {{/if}}
- {{else}}
- var propertyValue = arrayItem.GetString();
-
- if (propertyValue != null)
- {
- {{ #Property.WritePropertyWithExplicitInterfaceIfRequiredForDTO property class dtoInstance }}.Add(propertyValue);
- }
- {{/if}}
- }
- {{ else if (Property.QueryIsNullable property) }}
- {{#if (Property.QueryIsBool property )}}
- {{ #Property.WritePropertyWithExplicitInterfaceIfRequiredForDTO property class dtoInstance }} = {{ property.Name }}Property.GetBoolean();
- {{else if (Property.QueryIsEnum property )}}
- {{ #Property.WritePropertyWithExplicitInterfaceIfRequiredForDTO property class dtoInstance }} = {{ property.Type.Name }}DeSerializer.DeserializeNullable({{ property.Name }}Property.GetString());
- {{else if (Property.QueryIsNumeric property )}}
- {{#if (Property.QueryIsInteger property) }}
- {{ #Property.WritePropertyWithExplicitInterfaceIfRequiredForDTO property class dtoInstance }} = {{ property.Name }}Property.GetInt32();
- {{else if (Property.QueryIsDouble property) }}
- {{ #Property.WritePropertyWithExplicitInterfaceIfRequiredForDTO property class dtoInstance }} = {{ property.Name }}Property.GetDouble();
- {{ else }}
- new NotImplementedException("nullable - {{class.Name}}.{{property.Name}} is not yet supported");
- {{/if}}
- {{else}}
- {{ #Property.WritePropertyWithExplicitInterfaceIfRequiredForDTO property class dtoInstance }} = {{ property.Name }}Property.GetString();
- {{/if}}
- {{ else if (Property.QueryIsScalar property) }}
- {{#if (Property.QueryIsBool property )}}
- if ({{ property.Name }}Property.ValueKind != JsonValueKind.Null)
- {
- {{ #Property.WritePropertyWithExplicitInterfaceIfRequiredForDTO property class dtoInstance }} = {{ property.Name }}Property.GetBoolean();
- }
- {{else if (Property.QueryIsEnum property )}}
- {{ #Property.WritePropertyWithExplicitInterfaceIfRequiredForDTO property class dtoInstance }} = {{ property.Type.Name }}DeSerializer.Deserialize({{ property.Name }}Property.GetString());
- {{else if (Property.QueryIsNumeric property )}}
- {{#if (Property.QueryIsInteger property) }}
- {{ #Property.WritePropertyWithExplicitInterfaceIfRequiredForDTO property class dtoInstance }} = {{ property.Name }}Property.GetInt32();
- {{else if (Property.QueryIsDouble property) }}
- {{ #Property.WritePropertyWithExplicitInterfaceIfRequiredForDTO property class dtoInstance }} = {{ property.Name }}Property.GetDouble();
- {{ else }}
- new NotImplementedException("Scalar - {{class.Name}}.{{property.Name}} is not yet supported");
- {{/if}}
- {{else}}
- var propertyValue = {{property.Name }}Property.GetString();
-
- if (propertyValue != null)
- {
- {{ #Property.WritePropertyWithExplicitInterfaceIfRequiredForDTO property class dtoInstance }} = propertyValue;
- }
- {{/if}}
- {{/if}}
- {{/if}}
- }
- else
- {
- logger.LogDebug("the {{ property.Name }} Json property was not found in the {{ class.Name }}: { Id }", dtoInstance.Id);
- }
-
+ {{#withPropertyClassContext property class}}
+ {{> core-json-dto-deserializer-uml-partial-template this}}
+ {{/withPropertyClassContext}}
{{/unless}}
{{/unless}}
{{/unless}}
diff --git a/SysML2.NET.CodeGenerator/Templates/Uml/core-json-dto-serializer-uml-template.hbs b/SysML2.NET.CodeGenerator/Templates/Uml/core-json-dto-serializer-uml-template.hbs
index e36e89e28..acb05c943 100644
--- a/SysML2.NET.CodeGenerator/Templates/Uml/core-json-dto-serializer-uml-template.hbs
+++ b/SysML2.NET.CodeGenerator/Templates/Uml/core-json-dto-serializer-uml-template.hbs
@@ -94,76 +94,9 @@ namespace SysML2.NET.Serializer.Json.Core.DTO
{{ #each (Class.QueryAllProperties this) as | property | }}
{{#unless this.IsTransient}}
{{#unless (Property.IsRedefinedByPropertyWithSameName this class)}}
- {{#if (Property.QueryIsEnumerable property)}}
- writer.WriteStartArray("{{String.LowerCaseFirstLetter property.Name }}"u8);
-
- foreach (var item in i{{class.Name}}.{{Property.WritePropertyName property}})
- {
- {{#if (Property.QueryIsReferenceProperty property)}}
- writer.WriteStartObject();
- writer.WritePropertyName("@id"u8);
- writer.WriteStringValue(item);
- writer.WriteEndObject();
- {{else if (Property.QueryIsBool property)}}
- writer.WriteBooleanValue(item);
- {{else if (Property.QueryIsEnum property)}}
- writer.WriteStringValue(item.ToString().ToLower());
- {{else if (Property.QueryIsNumeric property)}}
- writer.WriteNumberValue(item);
- {{else}}
- writer.WriteStringValue(item);
- {{/if}}
- }
-
- writer.WriteEndArray();
- {{else if (Property.QueryIsNullable property)}}
- writer.WritePropertyName("{{ String.LowerCaseFirstLetter property.Name }}"u8);
- {{#if (Property.QueryIsString property )}}
- writer.WriteStringValue(i{{class.Name}}.{{Property.WritePropertyName property}});
- {{ else }}
-
- if (i{{class.Name}}.{{Property.WritePropertyName property}}.HasValue)
- {
- {{#if (Property.QueryIsReferenceProperty property)}}
- writer.WriteStartObject();
- writer.WritePropertyName("@id"u8);
- writer.WriteStringValue(i{{class.Name}}.{{Property.WritePropertyName property}}.Value);
- writer.WriteEndObject();
- {{else if (Property.QueryIsBool property )}}
- writer.WriteBooleanValue(i{{class.Name}}.{{Property.WritePropertyName property}}.Value);
- {{else if (property.QueryIsEnum property )}}
- writer.WriteStringValue(i{{class.Name}}.{{Property.WritePropertyName property}}.Value.ToString().ToLower());
- {{else if (Property.QueryIsNumeric property )}}
- writer.WriteNumberValue(i{{class.Name}}.{{Property.WritePropertyName property}}.Value);
- {{else}}
- writer.WriteStringValue(i{{class.Name}}.{{Property.WritePropertyName property}}.Value);
- {{/if}}
- }
- else
- {
- writer.WriteNullValue();
- }
- {{/if}}
- {{ else if (Property.QueryIsScalar property)}}
- writer.WritePropertyName("{{ String.LowerCaseFirstLetter property.Name }}"u8);
- {{#if (Property.QueryIsReferenceProperty property)}}
- writer.WriteStartObject();
- writer.WritePropertyName("@id"u8);
- writer.WriteStringValue(i{{class.Name}}.{{Property.WritePropertyName property}});
- writer.WriteEndObject();
- {{else if (Property.QueryIsBool property )}}
- writer.WriteBooleanValue(i{{class.Name}}.{{Property.WritePropertyName property}});
- {{else if (Property.QueryIsString property )}}
- writer.WriteStringValue(i{{class.Name}}.{{Property.WritePropertyName property}});
- {{else if (Property.QueryIsEnum property )}}
- writer.WriteStringValue(i{{class.Name}}.{{Property.WritePropertyName property}}.ToString().ToLower());
- {{else if (Property.QueryIsNumeric property )}}
- writer.WriteNumberValue(i{{class.Name}}.{{Property.WritePropertyName property}});
- {{else}}
- writer.WriteStringValue(i{{class.Name}}.{{Property.WritePropertyName property}});
- {{/if}}
- {{/if}}
-
+ {{#withPropertyClassContext property class}}
+ {{> core-json-dto-serializer-uml-partial-template this}}
+ {{/withPropertyClassContext}}
{{/unless}}
{{/unless}}
{{/each}}
@@ -186,76 +119,9 @@ namespace SysML2.NET.Serializer.Json.Core.DTO
{{#unless this.IsDerived}}
{{#unless this.IsTransient}}
{{#unless (Property.IsRedefinedByPropertyWithSameName this class)}}
- {{#if (Property.QueryIsEnumerable property)}}
- writer.WriteStartArray("{{String.LowerCaseFirstLetter property.Name }}"u8);
-
- foreach (var item in i{{class.Name}}.{{String.CapitalizeFirstLetter property.Name}})
- {
- {{#if (Property.QueryIsReferenceProperty property)}}
- writer.WriteStartObject();
- writer.WritePropertyName("@id"u8);
- writer.WriteStringValue(item);
- writer.WriteEndObject();
- {{else if (Property.QueryIsBool property)}}
- writer.WriteBooleanValue(item);
- {{else if (Property.QueryIsEnum property)}}
- writer.WriteStringValue(item.ToString().ToLower());
- {{else if (Property.QueryIsNumeric property)}}
- writer.WriteNumberValue(item);
- {{else}}
- writer.WriteStringValue(item);
- {{/if}}
- }
-
- writer.WriteEndArray();
- {{else if (Property.QueryIsNullable property)}}
- writer.WritePropertyName("{{ String.LowerCaseFirstLetter property.Name }}"u8);
- {{#if (Property.QueryIsString property )}}
- writer.WriteStringValue(i{{class.Name}}.{{Property.WritePropertyName property}});
- {{ else }}
-
- if (i{{class.Name}}.{{Property.WritePropertyName property}}.HasValue)
- {
- {{#if (Property.QueryIsReferenceProperty property)}}
- writer.WriteStartObject();
- writer.WritePropertyName("@id"u8);
- writer.WriteStringValue(i{{class.Name}}.{{Property.WritePropertyName property}}.Value);
- writer.WriteEndObject();
- {{else if (Property.QueryIsBool property )}}
- writer.WriteBooleanValue(i{{class.Name}}.{{Property.WritePropertyName property}}.Value);
- {{else if (property.QueryIsEnum property )}}
- writer.WriteStringValue(i{{class.Name}}.{{Property.WritePropertyName property}}.Value.ToString().ToLower());
- {{else if (Property.QueryIsNumeric property )}}
- writer.WriteNumberValue(i{{class.Name}}.{{Property.WritePropertyName property}}.Value);
- {{else}}
- writer.WriteStringValue(i{{class.Name}}.{{Property.WritePropertyName property}}.Value);
- {{/if}}
- }
- else
- {
- writer.WriteNullValue();
- }
- {{/if}}
- {{ else if (Property.QueryIsScalar property)}}
- writer.WritePropertyName("{{ String.LowerCaseFirstLetter property.Name }}"u8);
- {{#if (Property.QueryIsReferenceProperty property)}}
- writer.WriteStartObject();
- writer.WritePropertyName("@id"u8);
- writer.WriteStringValue(i{{class.Name}}.{{Property.WritePropertyName property}});
- writer.WriteEndObject();
- {{else if (Property.QueryIsBool property )}}
- writer.WriteBooleanValue(i{{class.Name}}.{{Property.WritePropertyName property}});
- {{else if (Property.QueryIsString property )}}
- writer.WriteStringValue(i{{class.Name}}.{{Property.WritePropertyName property}});
- {{else if (Property.QueryIsEnum property )}}
- writer.WriteStringValue(i{{class.Name}}.{{Property.WritePropertyName property}}.ToString().ToLower());
- {{else if (Property.QueryIsNumeric property )}}
- writer.WriteNumberValue(i{{class.Name}}.{{Property.WritePropertyName property}});
- {{else}}
- writer.WriteStringValue(i{{class.Name}}.{{Property.WritePropertyName property}});
- {{/if}}
- {{/if}}
-
+ {{#withPropertyClassContext property class}}
+ {{> core-json-dto-serializer-uml-partial-template this}}
+ {{/withPropertyClassContext}}
{{/unless}}
{{/unless}}
{{/unless}}
diff --git a/SysML2.NET.CodeGenerator/Templates/Uml/core-poco-dal-uml-factory.hbs b/SysML2.NET.CodeGenerator/Templates/Uml/core-poco-dal-uml-factory.hbs
index 9dc93f17b..07dfb0048 100644
--- a/SysML2.NET.CodeGenerator/Templates/Uml/core-poco-dal-uml-factory.hbs
+++ b/SysML2.NET.CodeGenerator/Templates/Uml/core-poco-dal-uml-factory.hbs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class {{this.Name}}Factory
+ public static class {{this.Name}}Factory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ namespace SysML2.NET.Dal
///
/// thrown when is null
///
- public Core.POCO.{{ #NamedElement.WriteFullyQualifiedNameSpace this }}.{{this.Name}} Create(Core.DTO.{{ #NamedElement.WriteFullyQualifiedNameSpace this }}.{{this.Name}} dto)
+ public static Core.POCO.{{ #NamedElement.WriteFullyQualifiedNameSpace this }}.{{this.Name}} Create(Core.DTO.{{ #NamedElement.WriteFullyQualifiedNameSpace this }}.{{this.Name}} dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/AcceptActionUsageFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/AcceptActionUsageFactory.cs
index 9f92e593f..e2d45f52f 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/AcceptActionUsageFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/AcceptActionUsageFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class AcceptActionUsageFactory
+ public static class AcceptActionUsageFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class AcceptActionUsageFactory
///
/// thrown when is null
///
- public Core.POCO.Systems.Actions.AcceptActionUsage Create(Core.DTO.Systems.Actions.AcceptActionUsage dto)
+ public static Core.POCO.Systems.Actions.AcceptActionUsage Create(Core.DTO.Systems.Actions.AcceptActionUsage dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/ActionDefinitionFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/ActionDefinitionFactory.cs
index 83c1cff6a..f1ec62bc6 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/ActionDefinitionFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/ActionDefinitionFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class ActionDefinitionFactory
+ public static class ActionDefinitionFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class ActionDefinitionFactory
///
/// thrown when is null
///
- public Core.POCO.Systems.Actions.ActionDefinition Create(Core.DTO.Systems.Actions.ActionDefinition dto)
+ public static Core.POCO.Systems.Actions.ActionDefinition Create(Core.DTO.Systems.Actions.ActionDefinition dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/ActionUsageFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/ActionUsageFactory.cs
index 1a0c0c861..252d06816 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/ActionUsageFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/ActionUsageFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class ActionUsageFactory
+ public static class ActionUsageFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class ActionUsageFactory
///
/// thrown when is null
///
- public Core.POCO.Systems.Actions.ActionUsage Create(Core.DTO.Systems.Actions.ActionUsage dto)
+ public static Core.POCO.Systems.Actions.ActionUsage Create(Core.DTO.Systems.Actions.ActionUsage dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/ActorMembershipFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/ActorMembershipFactory.cs
index 4a5e4671c..98d4c3997 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/ActorMembershipFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/ActorMembershipFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class ActorMembershipFactory
+ public static class ActorMembershipFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class ActorMembershipFactory
///
/// thrown when is null
///
- public Core.POCO.Systems.Requirements.ActorMembership Create(Core.DTO.Systems.Requirements.ActorMembership dto)
+ public static Core.POCO.Systems.Requirements.ActorMembership Create(Core.DTO.Systems.Requirements.ActorMembership dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/AllocationDefinitionFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/AllocationDefinitionFactory.cs
index 8c4846413..5435befb5 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/AllocationDefinitionFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/AllocationDefinitionFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class AllocationDefinitionFactory
+ public static class AllocationDefinitionFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class AllocationDefinitionFactory
///
/// thrown when is null
///
- public Core.POCO.Systems.Allocations.AllocationDefinition Create(Core.DTO.Systems.Allocations.AllocationDefinition dto)
+ public static Core.POCO.Systems.Allocations.AllocationDefinition Create(Core.DTO.Systems.Allocations.AllocationDefinition dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/AllocationUsageFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/AllocationUsageFactory.cs
index 50fcef8d3..18b592ebf 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/AllocationUsageFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/AllocationUsageFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class AllocationUsageFactory
+ public static class AllocationUsageFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class AllocationUsageFactory
///
/// thrown when is null
///
- public Core.POCO.Systems.Allocations.AllocationUsage Create(Core.DTO.Systems.Allocations.AllocationUsage dto)
+ public static Core.POCO.Systems.Allocations.AllocationUsage Create(Core.DTO.Systems.Allocations.AllocationUsage dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/AnalysisCaseDefinitionFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/AnalysisCaseDefinitionFactory.cs
index 6173db46b..4b8f97750 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/AnalysisCaseDefinitionFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/AnalysisCaseDefinitionFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class AnalysisCaseDefinitionFactory
+ public static class AnalysisCaseDefinitionFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class AnalysisCaseDefinitionFactory
///
/// thrown when is null
///
- public Core.POCO.Systems.AnalysisCases.AnalysisCaseDefinition Create(Core.DTO.Systems.AnalysisCases.AnalysisCaseDefinition dto)
+ public static Core.POCO.Systems.AnalysisCases.AnalysisCaseDefinition Create(Core.DTO.Systems.AnalysisCases.AnalysisCaseDefinition dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/AnalysisCaseUsageFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/AnalysisCaseUsageFactory.cs
index 2d4386a5d..18a49d379 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/AnalysisCaseUsageFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/AnalysisCaseUsageFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class AnalysisCaseUsageFactory
+ public static class AnalysisCaseUsageFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class AnalysisCaseUsageFactory
///
/// thrown when is null
///
- public Core.POCO.Systems.AnalysisCases.AnalysisCaseUsage Create(Core.DTO.Systems.AnalysisCases.AnalysisCaseUsage dto)
+ public static Core.POCO.Systems.AnalysisCases.AnalysisCaseUsage Create(Core.DTO.Systems.AnalysisCases.AnalysisCaseUsage dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/AnnotatingElementFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/AnnotatingElementFactory.cs
index 29207462c..7d5634a4e 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/AnnotatingElementFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/AnnotatingElementFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class AnnotatingElementFactory
+ public static class AnnotatingElementFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class AnnotatingElementFactory
///
/// thrown when is null
///
- public Core.POCO.Root.Annotations.AnnotatingElement Create(Core.DTO.Root.Annotations.AnnotatingElement dto)
+ public static Core.POCO.Root.Annotations.AnnotatingElement Create(Core.DTO.Root.Annotations.AnnotatingElement dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/AnnotationFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/AnnotationFactory.cs
index 997f677e3..b58969e63 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/AnnotationFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/AnnotationFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class AnnotationFactory
+ public static class AnnotationFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class AnnotationFactory
///
/// thrown when is null
///
- public Core.POCO.Root.Annotations.Annotation Create(Core.DTO.Root.Annotations.Annotation dto)
+ public static Core.POCO.Root.Annotations.Annotation Create(Core.DTO.Root.Annotations.Annotation dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/AssertConstraintUsageFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/AssertConstraintUsageFactory.cs
index 44a7b4ba1..551df8cd6 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/AssertConstraintUsageFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/AssertConstraintUsageFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class AssertConstraintUsageFactory
+ public static class AssertConstraintUsageFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class AssertConstraintUsageFactory
///
/// thrown when is null
///
- public Core.POCO.Systems.Constraints.AssertConstraintUsage Create(Core.DTO.Systems.Constraints.AssertConstraintUsage dto)
+ public static Core.POCO.Systems.Constraints.AssertConstraintUsage Create(Core.DTO.Systems.Constraints.AssertConstraintUsage dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/AssignmentActionUsageFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/AssignmentActionUsageFactory.cs
index 8de845101..0bd6e1a6f 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/AssignmentActionUsageFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/AssignmentActionUsageFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class AssignmentActionUsageFactory
+ public static class AssignmentActionUsageFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class AssignmentActionUsageFactory
///
/// thrown when is null
///
- public Core.POCO.Systems.Actions.AssignmentActionUsage Create(Core.DTO.Systems.Actions.AssignmentActionUsage dto)
+ public static Core.POCO.Systems.Actions.AssignmentActionUsage Create(Core.DTO.Systems.Actions.AssignmentActionUsage dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/AssociationFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/AssociationFactory.cs
index d3d5f2380..e2023059f 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/AssociationFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/AssociationFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class AssociationFactory
+ public static class AssociationFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class AssociationFactory
///
/// thrown when is null
///
- public Core.POCO.Kernel.Associations.Association Create(Core.DTO.Kernel.Associations.Association dto)
+ public static Core.POCO.Kernel.Associations.Association Create(Core.DTO.Kernel.Associations.Association dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/AssociationStructureFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/AssociationStructureFactory.cs
index 4cb1c3710..cec327ac1 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/AssociationStructureFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/AssociationStructureFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class AssociationStructureFactory
+ public static class AssociationStructureFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class AssociationStructureFactory
///
/// thrown when is null
///
- public Core.POCO.Kernel.Associations.AssociationStructure Create(Core.DTO.Kernel.Associations.AssociationStructure dto)
+ public static Core.POCO.Kernel.Associations.AssociationStructure Create(Core.DTO.Kernel.Associations.AssociationStructure dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/AttributeDefinitionFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/AttributeDefinitionFactory.cs
index 384a9eec2..48198cc86 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/AttributeDefinitionFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/AttributeDefinitionFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class AttributeDefinitionFactory
+ public static class AttributeDefinitionFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class AttributeDefinitionFactory
///
/// thrown when is null
///
- public Core.POCO.Systems.Attributes.AttributeDefinition Create(Core.DTO.Systems.Attributes.AttributeDefinition dto)
+ public static Core.POCO.Systems.Attributes.AttributeDefinition Create(Core.DTO.Systems.Attributes.AttributeDefinition dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/AttributeUsageFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/AttributeUsageFactory.cs
index 7f6a6a617..f77c8fae1 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/AttributeUsageFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/AttributeUsageFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class AttributeUsageFactory
+ public static class AttributeUsageFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class AttributeUsageFactory
///
/// thrown when is null
///
- public Core.POCO.Systems.Attributes.AttributeUsage Create(Core.DTO.Systems.Attributes.AttributeUsage dto)
+ public static Core.POCO.Systems.Attributes.AttributeUsage Create(Core.DTO.Systems.Attributes.AttributeUsage dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/BehaviorFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/BehaviorFactory.cs
index 0833807a8..45126a5d3 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/BehaviorFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/BehaviorFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class BehaviorFactory
+ public static class BehaviorFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class BehaviorFactory
///
/// thrown when is null
///
- public Core.POCO.Kernel.Behaviors.Behavior Create(Core.DTO.Kernel.Behaviors.Behavior dto)
+ public static Core.POCO.Kernel.Behaviors.Behavior Create(Core.DTO.Kernel.Behaviors.Behavior dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/BindingConnectorAsUsageFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/BindingConnectorAsUsageFactory.cs
index c378a54ab..78146e5e6 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/BindingConnectorAsUsageFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/BindingConnectorAsUsageFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class BindingConnectorAsUsageFactory
+ public static class BindingConnectorAsUsageFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class BindingConnectorAsUsageFactory
///
/// thrown when is null
///
- public Core.POCO.Systems.Connections.BindingConnectorAsUsage Create(Core.DTO.Systems.Connections.BindingConnectorAsUsage dto)
+ public static Core.POCO.Systems.Connections.BindingConnectorAsUsage Create(Core.DTO.Systems.Connections.BindingConnectorAsUsage dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/BindingConnectorFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/BindingConnectorFactory.cs
index a5cb3800d..302454890 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/BindingConnectorFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/BindingConnectorFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class BindingConnectorFactory
+ public static class BindingConnectorFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class BindingConnectorFactory
///
/// thrown when is null
///
- public Core.POCO.Kernel.Connectors.BindingConnector Create(Core.DTO.Kernel.Connectors.BindingConnector dto)
+ public static Core.POCO.Kernel.Connectors.BindingConnector Create(Core.DTO.Kernel.Connectors.BindingConnector dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/BooleanExpressionFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/BooleanExpressionFactory.cs
index 0b5a7f2ee..5e1ed1df5 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/BooleanExpressionFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/BooleanExpressionFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class BooleanExpressionFactory
+ public static class BooleanExpressionFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class BooleanExpressionFactory
///
/// thrown when is null
///
- public Core.POCO.Kernel.Functions.BooleanExpression Create(Core.DTO.Kernel.Functions.BooleanExpression dto)
+ public static Core.POCO.Kernel.Functions.BooleanExpression Create(Core.DTO.Kernel.Functions.BooleanExpression dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/CalculationDefinitionFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/CalculationDefinitionFactory.cs
index da013835e..017336e84 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/CalculationDefinitionFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/CalculationDefinitionFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class CalculationDefinitionFactory
+ public static class CalculationDefinitionFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class CalculationDefinitionFactory
///
/// thrown when is null
///
- public Core.POCO.Systems.Calculations.CalculationDefinition Create(Core.DTO.Systems.Calculations.CalculationDefinition dto)
+ public static Core.POCO.Systems.Calculations.CalculationDefinition Create(Core.DTO.Systems.Calculations.CalculationDefinition dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/CalculationUsageFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/CalculationUsageFactory.cs
index ef86d59a6..c0c05ce5d 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/CalculationUsageFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/CalculationUsageFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class CalculationUsageFactory
+ public static class CalculationUsageFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class CalculationUsageFactory
///
/// thrown when is null
///
- public Core.POCO.Systems.Calculations.CalculationUsage Create(Core.DTO.Systems.Calculations.CalculationUsage dto)
+ public static Core.POCO.Systems.Calculations.CalculationUsage Create(Core.DTO.Systems.Calculations.CalculationUsage dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/CaseDefinitionFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/CaseDefinitionFactory.cs
index d6e081962..883af9bce 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/CaseDefinitionFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/CaseDefinitionFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class CaseDefinitionFactory
+ public static class CaseDefinitionFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class CaseDefinitionFactory
///
/// thrown when is null
///
- public Core.POCO.Systems.Cases.CaseDefinition Create(Core.DTO.Systems.Cases.CaseDefinition dto)
+ public static Core.POCO.Systems.Cases.CaseDefinition Create(Core.DTO.Systems.Cases.CaseDefinition dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/CaseUsageFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/CaseUsageFactory.cs
index 22311744f..5527547f0 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/CaseUsageFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/CaseUsageFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class CaseUsageFactory
+ public static class CaseUsageFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class CaseUsageFactory
///
/// thrown when is null
///
- public Core.POCO.Systems.Cases.CaseUsage Create(Core.DTO.Systems.Cases.CaseUsage dto)
+ public static Core.POCO.Systems.Cases.CaseUsage Create(Core.DTO.Systems.Cases.CaseUsage dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/ClassFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/ClassFactory.cs
index 014455dec..438519adb 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/ClassFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/ClassFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class ClassFactory
+ public static class ClassFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class ClassFactory
///
/// thrown when is null
///
- public Core.POCO.Kernel.Classes.Class Create(Core.DTO.Kernel.Classes.Class dto)
+ public static Core.POCO.Kernel.Classes.Class Create(Core.DTO.Kernel.Classes.Class dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/ClassifierFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/ClassifierFactory.cs
index 5058f5675..3cbd866f1 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/ClassifierFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/ClassifierFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class ClassifierFactory
+ public static class ClassifierFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class ClassifierFactory
///
/// thrown when is null
///
- public Core.POCO.Core.Classifiers.Classifier Create(Core.DTO.Core.Classifiers.Classifier dto)
+ public static Core.POCO.Core.Classifiers.Classifier Create(Core.DTO.Core.Classifiers.Classifier dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/CollectExpressionFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/CollectExpressionFactory.cs
index 90e813fbc..670af2bf2 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/CollectExpressionFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/CollectExpressionFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class CollectExpressionFactory
+ public static class CollectExpressionFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class CollectExpressionFactory
///
/// thrown when is null
///
- public Core.POCO.Kernel.Expressions.CollectExpression Create(Core.DTO.Kernel.Expressions.CollectExpression dto)
+ public static Core.POCO.Kernel.Expressions.CollectExpression Create(Core.DTO.Kernel.Expressions.CollectExpression dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/CommentFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/CommentFactory.cs
index 66d180888..56357e9cc 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/CommentFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/CommentFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class CommentFactory
+ public static class CommentFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class CommentFactory
///
/// thrown when is null
///
- public Core.POCO.Root.Annotations.Comment Create(Core.DTO.Root.Annotations.Comment dto)
+ public static Core.POCO.Root.Annotations.Comment Create(Core.DTO.Root.Annotations.Comment dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/ConcernDefinitionFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/ConcernDefinitionFactory.cs
index 0d6120c4e..a4521052f 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/ConcernDefinitionFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/ConcernDefinitionFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class ConcernDefinitionFactory
+ public static class ConcernDefinitionFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class ConcernDefinitionFactory
///
/// thrown when is null
///
- public Core.POCO.Systems.Requirements.ConcernDefinition Create(Core.DTO.Systems.Requirements.ConcernDefinition dto)
+ public static Core.POCO.Systems.Requirements.ConcernDefinition Create(Core.DTO.Systems.Requirements.ConcernDefinition dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/ConcernUsageFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/ConcernUsageFactory.cs
index 002bd6205..837265e49 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/ConcernUsageFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/ConcernUsageFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class ConcernUsageFactory
+ public static class ConcernUsageFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class ConcernUsageFactory
///
/// thrown when is null
///
- public Core.POCO.Systems.Requirements.ConcernUsage Create(Core.DTO.Systems.Requirements.ConcernUsage dto)
+ public static Core.POCO.Systems.Requirements.ConcernUsage Create(Core.DTO.Systems.Requirements.ConcernUsage dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/ConjugatedPortDefinitionFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/ConjugatedPortDefinitionFactory.cs
index db5f0b98c..fd2c47412 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/ConjugatedPortDefinitionFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/ConjugatedPortDefinitionFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class ConjugatedPortDefinitionFactory
+ public static class ConjugatedPortDefinitionFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class ConjugatedPortDefinitionFactory
///
/// thrown when is null
///
- public Core.POCO.Systems.Ports.ConjugatedPortDefinition Create(Core.DTO.Systems.Ports.ConjugatedPortDefinition dto)
+ public static Core.POCO.Systems.Ports.ConjugatedPortDefinition Create(Core.DTO.Systems.Ports.ConjugatedPortDefinition dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/ConjugatedPortTypingFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/ConjugatedPortTypingFactory.cs
index 8078711b9..ee82f8bf6 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/ConjugatedPortTypingFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/ConjugatedPortTypingFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class ConjugatedPortTypingFactory
+ public static class ConjugatedPortTypingFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class ConjugatedPortTypingFactory
///
/// thrown when is null
///
- public Core.POCO.Systems.Ports.ConjugatedPortTyping Create(Core.DTO.Systems.Ports.ConjugatedPortTyping dto)
+ public static Core.POCO.Systems.Ports.ConjugatedPortTyping Create(Core.DTO.Systems.Ports.ConjugatedPortTyping dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/ConjugationFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/ConjugationFactory.cs
index 83d0234bc..73c9764f2 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/ConjugationFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/ConjugationFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class ConjugationFactory
+ public static class ConjugationFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class ConjugationFactory
///
/// thrown when is null
///
- public Core.POCO.Core.Types.Conjugation Create(Core.DTO.Core.Types.Conjugation dto)
+ public static Core.POCO.Core.Types.Conjugation Create(Core.DTO.Core.Types.Conjugation dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/ConnectionDefinitionFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/ConnectionDefinitionFactory.cs
index 56631595d..b5e25d717 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/ConnectionDefinitionFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/ConnectionDefinitionFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class ConnectionDefinitionFactory
+ public static class ConnectionDefinitionFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class ConnectionDefinitionFactory
///
/// thrown when is null
///
- public Core.POCO.Systems.Connections.ConnectionDefinition Create(Core.DTO.Systems.Connections.ConnectionDefinition dto)
+ public static Core.POCO.Systems.Connections.ConnectionDefinition Create(Core.DTO.Systems.Connections.ConnectionDefinition dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/ConnectionUsageFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/ConnectionUsageFactory.cs
index db2fcc4af..54e1655d8 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/ConnectionUsageFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/ConnectionUsageFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class ConnectionUsageFactory
+ public static class ConnectionUsageFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class ConnectionUsageFactory
///
/// thrown when is null
///
- public Core.POCO.Systems.Connections.ConnectionUsage Create(Core.DTO.Systems.Connections.ConnectionUsage dto)
+ public static Core.POCO.Systems.Connections.ConnectionUsage Create(Core.DTO.Systems.Connections.ConnectionUsage dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/ConnectorFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/ConnectorFactory.cs
index 27016e2aa..34d1bb09e 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/ConnectorFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/ConnectorFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class ConnectorFactory
+ public static class ConnectorFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class ConnectorFactory
///
/// thrown when is null
///
- public Core.POCO.Kernel.Connectors.Connector Create(Core.DTO.Kernel.Connectors.Connector dto)
+ public static Core.POCO.Kernel.Connectors.Connector Create(Core.DTO.Kernel.Connectors.Connector dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/ConstraintDefinitionFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/ConstraintDefinitionFactory.cs
index f9e921b85..8c425f6a5 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/ConstraintDefinitionFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/ConstraintDefinitionFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class ConstraintDefinitionFactory
+ public static class ConstraintDefinitionFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class ConstraintDefinitionFactory
///
/// thrown when is null
///
- public Core.POCO.Systems.Constraints.ConstraintDefinition Create(Core.DTO.Systems.Constraints.ConstraintDefinition dto)
+ public static Core.POCO.Systems.Constraints.ConstraintDefinition Create(Core.DTO.Systems.Constraints.ConstraintDefinition dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/ConstraintUsageFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/ConstraintUsageFactory.cs
index 53d18efa1..0605a9e16 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/ConstraintUsageFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/ConstraintUsageFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class ConstraintUsageFactory
+ public static class ConstraintUsageFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class ConstraintUsageFactory
///
/// thrown when is null
///
- public Core.POCO.Systems.Constraints.ConstraintUsage Create(Core.DTO.Systems.Constraints.ConstraintUsage dto)
+ public static Core.POCO.Systems.Constraints.ConstraintUsage Create(Core.DTO.Systems.Constraints.ConstraintUsage dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/ConstructorExpressionFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/ConstructorExpressionFactory.cs
index f689cdde7..fd2f6f99b 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/ConstructorExpressionFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/ConstructorExpressionFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class ConstructorExpressionFactory
+ public static class ConstructorExpressionFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class ConstructorExpressionFactory
///
/// thrown when is null
///
- public Core.POCO.Kernel.Expressions.ConstructorExpression Create(Core.DTO.Kernel.Expressions.ConstructorExpression dto)
+ public static Core.POCO.Kernel.Expressions.ConstructorExpression Create(Core.DTO.Kernel.Expressions.ConstructorExpression dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/CrossSubsettingFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/CrossSubsettingFactory.cs
index a92543c99..0035f932c 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/CrossSubsettingFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/CrossSubsettingFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class CrossSubsettingFactory
+ public static class CrossSubsettingFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class CrossSubsettingFactory
///
/// thrown when is null
///
- public Core.POCO.Core.Features.CrossSubsetting Create(Core.DTO.Core.Features.CrossSubsetting dto)
+ public static Core.POCO.Core.Features.CrossSubsetting Create(Core.DTO.Core.Features.CrossSubsetting dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/DataTypeFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/DataTypeFactory.cs
index 476d2ab94..6227c6bd8 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/DataTypeFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/DataTypeFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class DataTypeFactory
+ public static class DataTypeFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class DataTypeFactory
///
/// thrown when is null
///
- public Core.POCO.Kernel.DataTypes.DataType Create(Core.DTO.Kernel.DataTypes.DataType dto)
+ public static Core.POCO.Kernel.DataTypes.DataType Create(Core.DTO.Kernel.DataTypes.DataType dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/DecisionNodeFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/DecisionNodeFactory.cs
index e8a3d3075..8499e92bc 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/DecisionNodeFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/DecisionNodeFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class DecisionNodeFactory
+ public static class DecisionNodeFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class DecisionNodeFactory
///
/// thrown when is null
///
- public Core.POCO.Systems.Actions.DecisionNode Create(Core.DTO.Systems.Actions.DecisionNode dto)
+ public static Core.POCO.Systems.Actions.DecisionNode Create(Core.DTO.Systems.Actions.DecisionNode dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/DefinitionFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/DefinitionFactory.cs
index 592658f10..d6575b078 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/DefinitionFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/DefinitionFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class DefinitionFactory
+ public static class DefinitionFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class DefinitionFactory
///
/// thrown when is null
///
- public Core.POCO.Systems.DefinitionAndUsage.Definition Create(Core.DTO.Systems.DefinitionAndUsage.Definition dto)
+ public static Core.POCO.Systems.DefinitionAndUsage.Definition Create(Core.DTO.Systems.DefinitionAndUsage.Definition dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/DependencyFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/DependencyFactory.cs
index 931b1f2a7..b7c035926 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/DependencyFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/DependencyFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class DependencyFactory
+ public static class DependencyFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class DependencyFactory
///
/// thrown when is null
///
- public Core.POCO.Root.Dependencies.Dependency Create(Core.DTO.Root.Dependencies.Dependency dto)
+ public static Core.POCO.Root.Dependencies.Dependency Create(Core.DTO.Root.Dependencies.Dependency dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/DifferencingFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/DifferencingFactory.cs
index eb9c44849..5e2bfb665 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/DifferencingFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/DifferencingFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class DifferencingFactory
+ public static class DifferencingFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class DifferencingFactory
///
/// thrown when is null
///
- public Core.POCO.Core.Types.Differencing Create(Core.DTO.Core.Types.Differencing dto)
+ public static Core.POCO.Core.Types.Differencing Create(Core.DTO.Core.Types.Differencing dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/DisjoiningFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/DisjoiningFactory.cs
index 3e294446e..5fae36d14 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/DisjoiningFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/DisjoiningFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class DisjoiningFactory
+ public static class DisjoiningFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class DisjoiningFactory
///
/// thrown when is null
///
- public Core.POCO.Core.Types.Disjoining Create(Core.DTO.Core.Types.Disjoining dto)
+ public static Core.POCO.Core.Types.Disjoining Create(Core.DTO.Core.Types.Disjoining dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/DocumentationFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/DocumentationFactory.cs
index 2675625bc..dd68e2f9a 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/DocumentationFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/DocumentationFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class DocumentationFactory
+ public static class DocumentationFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class DocumentationFactory
///
/// thrown when is null
///
- public Core.POCO.Root.Annotations.Documentation Create(Core.DTO.Root.Annotations.Documentation dto)
+ public static Core.POCO.Root.Annotations.Documentation Create(Core.DTO.Root.Annotations.Documentation dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/ElementFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/ElementFactory.cs
index a69b0aaae..0e7dfc2e3 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/ElementFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/ElementFactory.cs
@@ -1,566 +1,399 @@
-// -------------------------------------------------------------------------------------------------
-//
-//
-// Copyright 2022-2025 Starion Group S.A.
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-//
-// ------------------------------------------------------------------------------------------------
-
-// ------------------------------------------------------------------------------------------------
-// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!--------
-// ------------------------------------------------------------------------------------------------
-
-namespace SysML2.NET.Dal
-{
- using System;
-
- ///
- /// The purpose of the is to create a POCO
- /// based on a DTO
- ///
- public class ElementFactory : IElementFactory
- {
- ///
- /// Creates a POCO based on a
- ///
- ///
- /// the source DTO
- ///
- ///
- /// a POCO
- ///
- ///
- /// thrown when is null
- ///
- public Core.POCO.Root.Elements.IElement Create(Core.DTO.Root.Elements.IElement dto)
- {
- if (dto == null)
- {
- throw new ArgumentNullException(nameof(dto), $"the {nameof(dto)} may not be null");
- }
-
- switch (dto)
- {
- case Core.DTO.Systems.Actions.AcceptActionUsage acceptActionUsageDto:
- var acceptActionUsageFactory = new AcceptActionUsageFactory();
- return acceptActionUsageFactory.Create(acceptActionUsageDto);
- case Core.DTO.Systems.Actions.ActionDefinition actionDefinitionDto:
- var actionDefinitionFactory = new ActionDefinitionFactory();
- return actionDefinitionFactory.Create(actionDefinitionDto);
- case Core.DTO.Systems.Actions.ActionUsage actionUsageDto:
- var actionUsageFactory = new ActionUsageFactory();
- return actionUsageFactory.Create(actionUsageDto);
- case Core.DTO.Systems.Requirements.ActorMembership actorMembershipDto:
- var actorMembershipFactory = new ActorMembershipFactory();
- return actorMembershipFactory.Create(actorMembershipDto);
- case Core.DTO.Systems.Allocations.AllocationDefinition allocationDefinitionDto:
- var allocationDefinitionFactory = new AllocationDefinitionFactory();
- return allocationDefinitionFactory.Create(allocationDefinitionDto);
- case Core.DTO.Systems.Allocations.AllocationUsage allocationUsageDto:
- var allocationUsageFactory = new AllocationUsageFactory();
- return allocationUsageFactory.Create(allocationUsageDto);
- case Core.DTO.Systems.AnalysisCases.AnalysisCaseDefinition analysisCaseDefinitionDto:
- var analysisCaseDefinitionFactory = new AnalysisCaseDefinitionFactory();
- return analysisCaseDefinitionFactory.Create(analysisCaseDefinitionDto);
- case Core.DTO.Systems.AnalysisCases.AnalysisCaseUsage analysisCaseUsageDto:
- var analysisCaseUsageFactory = new AnalysisCaseUsageFactory();
- return analysisCaseUsageFactory.Create(analysisCaseUsageDto);
- case Core.DTO.Root.Annotations.AnnotatingElement annotatingElementDto:
- var annotatingElementFactory = new AnnotatingElementFactory();
- return annotatingElementFactory.Create(annotatingElementDto);
- case Core.DTO.Root.Annotations.Annotation annotationDto:
- var annotationFactory = new AnnotationFactory();
- return annotationFactory.Create(annotationDto);
- case Core.DTO.Systems.Constraints.AssertConstraintUsage assertConstraintUsageDto:
- var assertConstraintUsageFactory = new AssertConstraintUsageFactory();
- return assertConstraintUsageFactory.Create(assertConstraintUsageDto);
- case Core.DTO.Systems.Actions.AssignmentActionUsage assignmentActionUsageDto:
- var assignmentActionUsageFactory = new AssignmentActionUsageFactory();
- return assignmentActionUsageFactory.Create(assignmentActionUsageDto);
- case Core.DTO.Kernel.Associations.Association associationDto:
- var associationFactory = new AssociationFactory();
- return associationFactory.Create(associationDto);
- case Core.DTO.Kernel.Associations.AssociationStructure associationStructureDto:
- var associationStructureFactory = new AssociationStructureFactory();
- return associationStructureFactory.Create(associationStructureDto);
- case Core.DTO.Systems.Attributes.AttributeDefinition attributeDefinitionDto:
- var attributeDefinitionFactory = new AttributeDefinitionFactory();
- return attributeDefinitionFactory.Create(attributeDefinitionDto);
- case Core.DTO.Systems.Attributes.AttributeUsage attributeUsageDto:
- var attributeUsageFactory = new AttributeUsageFactory();
- return attributeUsageFactory.Create(attributeUsageDto);
- case Core.DTO.Kernel.Behaviors.Behavior behaviorDto:
- var behaviorFactory = new BehaviorFactory();
- return behaviorFactory.Create(behaviorDto);
- case Core.DTO.Kernel.Connectors.BindingConnector bindingConnectorDto:
- var bindingConnectorFactory = new BindingConnectorFactory();
- return bindingConnectorFactory.Create(bindingConnectorDto);
- case Core.DTO.Systems.Connections.BindingConnectorAsUsage bindingConnectorAsUsageDto:
- var bindingConnectorAsUsageFactory = new BindingConnectorAsUsageFactory();
- return bindingConnectorAsUsageFactory.Create(bindingConnectorAsUsageDto);
- case Core.DTO.Kernel.Functions.BooleanExpression booleanExpressionDto:
- var booleanExpressionFactory = new BooleanExpressionFactory();
- return booleanExpressionFactory.Create(booleanExpressionDto);
- case Core.DTO.Systems.Calculations.CalculationDefinition calculationDefinitionDto:
- var calculationDefinitionFactory = new CalculationDefinitionFactory();
- return calculationDefinitionFactory.Create(calculationDefinitionDto);
- case Core.DTO.Systems.Calculations.CalculationUsage calculationUsageDto:
- var calculationUsageFactory = new CalculationUsageFactory();
- return calculationUsageFactory.Create(calculationUsageDto);
- case Core.DTO.Systems.Cases.CaseDefinition caseDefinitionDto:
- var caseDefinitionFactory = new CaseDefinitionFactory();
- return caseDefinitionFactory.Create(caseDefinitionDto);
- case Core.DTO.Systems.Cases.CaseUsage caseUsageDto:
- var caseUsageFactory = new CaseUsageFactory();
- return caseUsageFactory.Create(caseUsageDto);
- case Core.DTO.Kernel.Classes.Class classDto:
- var classFactory = new ClassFactory();
- return classFactory.Create(classDto);
- case Core.DTO.Core.Classifiers.Classifier classifierDto:
- var classifierFactory = new ClassifierFactory();
- return classifierFactory.Create(classifierDto);
- case Core.DTO.Kernel.Expressions.CollectExpression collectExpressionDto:
- var collectExpressionFactory = new CollectExpressionFactory();
- return collectExpressionFactory.Create(collectExpressionDto);
- case Core.DTO.Root.Annotations.Comment commentDto:
- var commentFactory = new CommentFactory();
- return commentFactory.Create(commentDto);
- case Core.DTO.Systems.Requirements.ConcernDefinition concernDefinitionDto:
- var concernDefinitionFactory = new ConcernDefinitionFactory();
- return concernDefinitionFactory.Create(concernDefinitionDto);
- case Core.DTO.Systems.Requirements.ConcernUsage concernUsageDto:
- var concernUsageFactory = new ConcernUsageFactory();
- return concernUsageFactory.Create(concernUsageDto);
- case Core.DTO.Systems.Ports.ConjugatedPortDefinition conjugatedPortDefinitionDto:
- var conjugatedPortDefinitionFactory = new ConjugatedPortDefinitionFactory();
- return conjugatedPortDefinitionFactory.Create(conjugatedPortDefinitionDto);
- case Core.DTO.Systems.Ports.ConjugatedPortTyping conjugatedPortTypingDto:
- var conjugatedPortTypingFactory = new ConjugatedPortTypingFactory();
- return conjugatedPortTypingFactory.Create(conjugatedPortTypingDto);
- case Core.DTO.Core.Types.Conjugation conjugationDto:
- var conjugationFactory = new ConjugationFactory();
- return conjugationFactory.Create(conjugationDto);
- case Core.DTO.Systems.Connections.ConnectionDefinition connectionDefinitionDto:
- var connectionDefinitionFactory = new ConnectionDefinitionFactory();
- return connectionDefinitionFactory.Create(connectionDefinitionDto);
- case Core.DTO.Systems.Connections.ConnectionUsage connectionUsageDto:
- var connectionUsageFactory = new ConnectionUsageFactory();
- return connectionUsageFactory.Create(connectionUsageDto);
- case Core.DTO.Kernel.Connectors.Connector connectorDto:
- var connectorFactory = new ConnectorFactory();
- return connectorFactory.Create(connectorDto);
- case Core.DTO.Systems.Constraints.ConstraintDefinition constraintDefinitionDto:
- var constraintDefinitionFactory = new ConstraintDefinitionFactory();
- return constraintDefinitionFactory.Create(constraintDefinitionDto);
- case Core.DTO.Systems.Constraints.ConstraintUsage constraintUsageDto:
- var constraintUsageFactory = new ConstraintUsageFactory();
- return constraintUsageFactory.Create(constraintUsageDto);
- case Core.DTO.Kernel.Expressions.ConstructorExpression constructorExpressionDto:
- var constructorExpressionFactory = new ConstructorExpressionFactory();
- return constructorExpressionFactory.Create(constructorExpressionDto);
- case Core.DTO.Core.Features.CrossSubsetting crossSubsettingDto:
- var crossSubsettingFactory = new CrossSubsettingFactory();
- return crossSubsettingFactory.Create(crossSubsettingDto);
- case Core.DTO.Kernel.DataTypes.DataType dataTypeDto:
- var dataTypeFactory = new DataTypeFactory();
- return dataTypeFactory.Create(dataTypeDto);
- case Core.DTO.Systems.Actions.DecisionNode decisionNodeDto:
- var decisionNodeFactory = new DecisionNodeFactory();
- return decisionNodeFactory.Create(decisionNodeDto);
- case Core.DTO.Systems.DefinitionAndUsage.Definition definitionDto:
- var definitionFactory = new DefinitionFactory();
- return definitionFactory.Create(definitionDto);
- case Core.DTO.Root.Dependencies.Dependency dependencyDto:
- var dependencyFactory = new DependencyFactory();
- return dependencyFactory.Create(dependencyDto);
- case Core.DTO.Core.Types.Differencing differencingDto:
- var differencingFactory = new DifferencingFactory();
- return differencingFactory.Create(differencingDto);
- case Core.DTO.Core.Types.Disjoining disjoiningDto:
- var disjoiningFactory = new DisjoiningFactory();
- return disjoiningFactory.Create(disjoiningDto);
- case Core.DTO.Root.Annotations.Documentation documentationDto:
- var documentationFactory = new DocumentationFactory();
- return documentationFactory.Create(documentationDto);
- case Core.DTO.Kernel.Packages.ElementFilterMembership elementFilterMembershipDto:
- var elementFilterMembershipFactory = new ElementFilterMembershipFactory();
- return elementFilterMembershipFactory.Create(elementFilterMembershipDto);
- case Core.DTO.Core.Features.EndFeatureMembership endFeatureMembershipDto:
- var endFeatureMembershipFactory = new EndFeatureMembershipFactory();
- return endFeatureMembershipFactory.Create(endFeatureMembershipDto);
- case Core.DTO.Systems.Enumerations.EnumerationDefinition enumerationDefinitionDto:
- var enumerationDefinitionFactory = new EnumerationDefinitionFactory();
- return enumerationDefinitionFactory.Create(enumerationDefinitionDto);
- case Core.DTO.Systems.Enumerations.EnumerationUsage enumerationUsageDto:
- var enumerationUsageFactory = new EnumerationUsageFactory();
- return enumerationUsageFactory.Create(enumerationUsageDto);
- case Core.DTO.Systems.Occurrences.EventOccurrenceUsage eventOccurrenceUsageDto:
- var eventOccurrenceUsageFactory = new EventOccurrenceUsageFactory();
- return eventOccurrenceUsageFactory.Create(eventOccurrenceUsageDto);
- case Core.DTO.Systems.States.ExhibitStateUsage exhibitStateUsageDto:
- var exhibitStateUsageFactory = new ExhibitStateUsageFactory();
- return exhibitStateUsageFactory.Create(exhibitStateUsageDto);
- case Core.DTO.Kernel.Functions.Expression expressionDto:
- var expressionFactory = new ExpressionFactory();
- return expressionFactory.Create(expressionDto);
- case Core.DTO.Core.Features.Feature featureDto:
- var featureFactory = new FeatureFactory();
- return featureFactory.Create(featureDto);
- case Core.DTO.Kernel.Expressions.FeatureChainExpression featureChainExpressionDto:
- var featureChainExpressionFactory = new FeatureChainExpressionFactory();
- return featureChainExpressionFactory.Create(featureChainExpressionDto);
- case Core.DTO.Core.Features.FeatureChaining featureChainingDto:
- var featureChainingFactory = new FeatureChainingFactory();
- return featureChainingFactory.Create(featureChainingDto);
- case Core.DTO.Core.Features.FeatureInverting featureInvertingDto:
- var featureInvertingFactory = new FeatureInvertingFactory();
- return featureInvertingFactory.Create(featureInvertingDto);
- case Core.DTO.Core.Types.FeatureMembership featureMembershipDto:
- var featureMembershipFactory = new FeatureMembershipFactory();
- return featureMembershipFactory.Create(featureMembershipDto);
- case Core.DTO.Kernel.Expressions.FeatureReferenceExpression featureReferenceExpressionDto:
- var featureReferenceExpressionFactory = new FeatureReferenceExpressionFactory();
- return featureReferenceExpressionFactory.Create(featureReferenceExpressionDto);
- case Core.DTO.Core.Features.FeatureTyping featureTypingDto:
- var featureTypingFactory = new FeatureTypingFactory();
- return featureTypingFactory.Create(featureTypingDto);
- case Core.DTO.Kernel.FeatureValues.FeatureValue featureValueDto:
- var featureValueFactory = new FeatureValueFactory();
- return featureValueFactory.Create(featureValueDto);
- case Core.DTO.Kernel.Interactions.Flow flowDto:
- var flowFactory = new FlowFactory();
- return flowFactory.Create(flowDto);
- case Core.DTO.Systems.Flows.FlowDefinition flowDefinitionDto:
- var flowDefinitionFactory = new FlowDefinitionFactory();
- return flowDefinitionFactory.Create(flowDefinitionDto);
- case Core.DTO.Kernel.Interactions.FlowEnd flowEndDto:
- var flowEndFactory = new FlowEndFactory();
- return flowEndFactory.Create(flowEndDto);
- case Core.DTO.Systems.Flows.FlowUsage flowUsageDto:
- var flowUsageFactory = new FlowUsageFactory();
- return flowUsageFactory.Create(flowUsageDto);
- case Core.DTO.Systems.Actions.ForkNode forkNodeDto:
- var forkNodeFactory = new ForkNodeFactory();
- return forkNodeFactory.Create(forkNodeDto);
- case Core.DTO.Systems.Actions.ForLoopActionUsage forLoopActionUsageDto:
- var forLoopActionUsageFactory = new ForLoopActionUsageFactory();
- return forLoopActionUsageFactory.Create(forLoopActionUsageDto);
- case Core.DTO.Systems.Requirements.FramedConcernMembership framedConcernMembershipDto:
- var framedConcernMembershipFactory = new FramedConcernMembershipFactory();
- return framedConcernMembershipFactory.Create(framedConcernMembershipDto);
- case Core.DTO.Kernel.Functions.Function functionDto:
- var functionFactory = new FunctionFactory();
- return functionFactory.Create(functionDto);
- case Core.DTO.Systems.Actions.IfActionUsage ifActionUsageDto:
- var ifActionUsageFactory = new IfActionUsageFactory();
- return ifActionUsageFactory.Create(ifActionUsageDto);
- case Core.DTO.Systems.UseCases.IncludeUseCaseUsage includeUseCaseUsageDto:
- var includeUseCaseUsageFactory = new IncludeUseCaseUsageFactory();
- return includeUseCaseUsageFactory.Create(includeUseCaseUsageDto);
- case Core.DTO.Kernel.Expressions.IndexExpression indexExpressionDto:
- var indexExpressionFactory = new IndexExpressionFactory();
- return indexExpressionFactory.Create(indexExpressionDto);
- case Core.DTO.Kernel.Interactions.Interaction interactionDto:
- var interactionFactory = new InteractionFactory();
- return interactionFactory.Create(interactionDto);
- case Core.DTO.Systems.Interfaces.InterfaceDefinition interfaceDefinitionDto:
- var interfaceDefinitionFactory = new InterfaceDefinitionFactory();
- return interfaceDefinitionFactory.Create(interfaceDefinitionDto);
- case Core.DTO.Systems.Interfaces.InterfaceUsage interfaceUsageDto:
- var interfaceUsageFactory = new InterfaceUsageFactory();
- return interfaceUsageFactory.Create(interfaceUsageDto);
- case Core.DTO.Core.Types.Intersecting intersectingDto:
- var intersectingFactory = new IntersectingFactory();
- return intersectingFactory.Create(intersectingDto);
- case Core.DTO.Kernel.Functions.Invariant invariantDto:
- var invariantFactory = new InvariantFactory();
- return invariantFactory.Create(invariantDto);
- case Core.DTO.Kernel.Expressions.InvocationExpression invocationExpressionDto:
- var invocationExpressionFactory = new InvocationExpressionFactory();
- return invocationExpressionFactory.Create(invocationExpressionDto);
- case Core.DTO.Systems.Items.ItemDefinition itemDefinitionDto:
- var itemDefinitionFactory = new ItemDefinitionFactory();
- return itemDefinitionFactory.Create(itemDefinitionDto);
- case Core.DTO.Systems.Items.ItemUsage itemUsageDto:
- var itemUsageFactory = new ItemUsageFactory();
- return itemUsageFactory.Create(itemUsageDto);
- case Core.DTO.Systems.Actions.JoinNode joinNodeDto:
- var joinNodeFactory = new JoinNodeFactory();
- return joinNodeFactory.Create(joinNodeDto);
- case Core.DTO.Kernel.Packages.LibraryPackage libraryPackageDto:
- var libraryPackageFactory = new LibraryPackageFactory();
- return libraryPackageFactory.Create(libraryPackageDto);
- case Core.DTO.Kernel.Expressions.LiteralBoolean literalBooleanDto:
- var literalBooleanFactory = new LiteralBooleanFactory();
- return literalBooleanFactory.Create(literalBooleanDto);
- case Core.DTO.Kernel.Expressions.LiteralExpression literalExpressionDto:
- var literalExpressionFactory = new LiteralExpressionFactory();
- return literalExpressionFactory.Create(literalExpressionDto);
- case Core.DTO.Kernel.Expressions.LiteralInfinity literalInfinityDto:
- var literalInfinityFactory = new LiteralInfinityFactory();
- return literalInfinityFactory.Create(literalInfinityDto);
- case Core.DTO.Kernel.Expressions.LiteralInteger literalIntegerDto:
- var literalIntegerFactory = new LiteralIntegerFactory();
- return literalIntegerFactory.Create(literalIntegerDto);
- case Core.DTO.Kernel.Expressions.LiteralRational literalRationalDto:
- var literalRationalFactory = new LiteralRationalFactory();
- return literalRationalFactory.Create(literalRationalDto);
- case Core.DTO.Kernel.Expressions.LiteralString literalStringDto:
- var literalStringFactory = new LiteralStringFactory();
- return literalStringFactory.Create(literalStringDto);
- case Core.DTO.Root.Namespaces.Membership membershipDto:
- var membershipFactory = new MembershipFactory();
- return membershipFactory.Create(membershipDto);
- case Core.DTO.Systems.Views.MembershipExpose membershipExposeDto:
- var membershipExposeFactory = new MembershipExposeFactory();
- return membershipExposeFactory.Create(membershipExposeDto);
- case Core.DTO.Root.Namespaces.MembershipImport membershipImportDto:
- var membershipImportFactory = new MembershipImportFactory();
- return membershipImportFactory.Create(membershipImportDto);
- case Core.DTO.Systems.Actions.MergeNode mergeNodeDto:
- var mergeNodeFactory = new MergeNodeFactory();
- return mergeNodeFactory.Create(mergeNodeDto);
- case Core.DTO.Kernel.Metadata.Metaclass metaclassDto:
- var metaclassFactory = new MetaclassFactory();
- return metaclassFactory.Create(metaclassDto);
- case Core.DTO.Kernel.Expressions.MetadataAccessExpression metadataAccessExpressionDto:
- var metadataAccessExpressionFactory = new MetadataAccessExpressionFactory();
- return metadataAccessExpressionFactory.Create(metadataAccessExpressionDto);
- case Core.DTO.Systems.Metadata.MetadataDefinition metadataDefinitionDto:
- var metadataDefinitionFactory = new MetadataDefinitionFactory();
- return metadataDefinitionFactory.Create(metadataDefinitionDto);
- case Core.DTO.Kernel.Metadata.MetadataFeature metadataFeatureDto:
- var metadataFeatureFactory = new MetadataFeatureFactory();
- return metadataFeatureFactory.Create(metadataFeatureDto);
- case Core.DTO.Systems.Metadata.MetadataUsage metadataUsageDto:
- var metadataUsageFactory = new MetadataUsageFactory();
- return metadataUsageFactory.Create(metadataUsageDto);
- case Core.DTO.Core.Types.Multiplicity multiplicityDto:
- var multiplicityFactory = new MultiplicityFactory();
- return multiplicityFactory.Create(multiplicityDto);
- case Core.DTO.Kernel.Multiplicities.MultiplicityRange multiplicityRangeDto:
- var multiplicityRangeFactory = new MultiplicityRangeFactory();
- return multiplicityRangeFactory.Create(multiplicityRangeDto);
- case Core.DTO.Root.Namespaces.Namespace namespaceDto:
- var namespaceFactory = new NamespaceFactory();
- return namespaceFactory.Create(namespaceDto);
- case Core.DTO.Systems.Views.NamespaceExpose namespaceExposeDto:
- var namespaceExposeFactory = new NamespaceExposeFactory();
- return namespaceExposeFactory.Create(namespaceExposeDto);
- case Core.DTO.Root.Namespaces.NamespaceImport namespaceImportDto:
- var namespaceImportFactory = new NamespaceImportFactory();
- return namespaceImportFactory.Create(namespaceImportDto);
- case Core.DTO.Kernel.Expressions.NullExpression nullExpressionDto:
- var nullExpressionFactory = new NullExpressionFactory();
- return nullExpressionFactory.Create(nullExpressionDto);
- case Core.DTO.Systems.Cases.ObjectiveMembership objectiveMembershipDto:
- var objectiveMembershipFactory = new ObjectiveMembershipFactory();
- return objectiveMembershipFactory.Create(objectiveMembershipDto);
- case Core.DTO.Systems.Occurrences.OccurrenceDefinition occurrenceDefinitionDto:
- var occurrenceDefinitionFactory = new OccurrenceDefinitionFactory();
- return occurrenceDefinitionFactory.Create(occurrenceDefinitionDto);
- case Core.DTO.Systems.Occurrences.OccurrenceUsage occurrenceUsageDto:
- var occurrenceUsageFactory = new OccurrenceUsageFactory();
- return occurrenceUsageFactory.Create(occurrenceUsageDto);
- case Core.DTO.Kernel.Expressions.OperatorExpression operatorExpressionDto:
- var operatorExpressionFactory = new OperatorExpressionFactory();
- return operatorExpressionFactory.Create(operatorExpressionDto);
- case Core.DTO.Root.Namespaces.OwningMembership owningMembershipDto:
- var owningMembershipFactory = new OwningMembershipFactory();
- return owningMembershipFactory.Create(owningMembershipDto);
- case Core.DTO.Kernel.Packages.Package packageDto:
- var packageFactory = new PackageFactory();
- return packageFactory.Create(packageDto);
- case Core.DTO.Kernel.Behaviors.ParameterMembership parameterMembershipDto:
- var parameterMembershipFactory = new ParameterMembershipFactory();
- return parameterMembershipFactory.Create(parameterMembershipDto);
- case Core.DTO.Systems.Parts.PartDefinition partDefinitionDto:
- var partDefinitionFactory = new PartDefinitionFactory();
- return partDefinitionFactory.Create(partDefinitionDto);
- case Core.DTO.Systems.Parts.PartUsage partUsageDto:
- var partUsageFactory = new PartUsageFactory();
- return partUsageFactory.Create(partUsageDto);
- case Core.DTO.Kernel.Interactions.PayloadFeature payloadFeatureDto:
- var payloadFeatureFactory = new PayloadFeatureFactory();
- return payloadFeatureFactory.Create(payloadFeatureDto);
- case Core.DTO.Systems.Actions.PerformActionUsage performActionUsageDto:
- var performActionUsageFactory = new PerformActionUsageFactory();
- return performActionUsageFactory.Create(performActionUsageDto);
- case Core.DTO.Systems.Ports.PortConjugation portConjugationDto:
- var portConjugationFactory = new PortConjugationFactory();
- return portConjugationFactory.Create(portConjugationDto);
- case Core.DTO.Systems.Ports.PortDefinition portDefinitionDto:
- var portDefinitionFactory = new PortDefinitionFactory();
- return portDefinitionFactory.Create(portDefinitionDto);
- case Core.DTO.Systems.Ports.PortUsage portUsageDto:
- var portUsageFactory = new PortUsageFactory();
- return portUsageFactory.Create(portUsageDto);
- case Core.DTO.Kernel.Functions.Predicate predicateDto:
- var predicateFactory = new PredicateFactory();
- return predicateFactory.Create(predicateDto);
- case Core.DTO.Core.Features.Redefinition redefinitionDto:
- var redefinitionFactory = new RedefinitionFactory();
- return redefinitionFactory.Create(redefinitionDto);
- case Core.DTO.Core.Features.ReferenceSubsetting referenceSubsettingDto:
- var referenceSubsettingFactory = new ReferenceSubsettingFactory();
- return referenceSubsettingFactory.Create(referenceSubsettingDto);
- case Core.DTO.Systems.DefinitionAndUsage.ReferenceUsage referenceUsageDto:
- var referenceUsageFactory = new ReferenceUsageFactory();
- return referenceUsageFactory.Create(referenceUsageDto);
- case Core.DTO.Systems.Views.RenderingDefinition renderingDefinitionDto:
- var renderingDefinitionFactory = new RenderingDefinitionFactory();
- return renderingDefinitionFactory.Create(renderingDefinitionDto);
- case Core.DTO.Systems.Views.RenderingUsage renderingUsageDto:
- var renderingUsageFactory = new RenderingUsageFactory();
- return renderingUsageFactory.Create(renderingUsageDto);
- case Core.DTO.Systems.Requirements.RequirementConstraintMembership requirementConstraintMembershipDto:
- var requirementConstraintMembershipFactory = new RequirementConstraintMembershipFactory();
- return requirementConstraintMembershipFactory.Create(requirementConstraintMembershipDto);
- case Core.DTO.Systems.Requirements.RequirementDefinition requirementDefinitionDto:
- var requirementDefinitionFactory = new RequirementDefinitionFactory();
- return requirementDefinitionFactory.Create(requirementDefinitionDto);
- case Core.DTO.Systems.Requirements.RequirementUsage requirementUsageDto:
- var requirementUsageFactory = new RequirementUsageFactory();
- return requirementUsageFactory.Create(requirementUsageDto);
- case Core.DTO.Systems.VerificationCases.RequirementVerificationMembership requirementVerificationMembershipDto:
- var requirementVerificationMembershipFactory = new RequirementVerificationMembershipFactory();
- return requirementVerificationMembershipFactory.Create(requirementVerificationMembershipDto);
- case Core.DTO.Kernel.Functions.ResultExpressionMembership resultExpressionMembershipDto:
- var resultExpressionMembershipFactory = new ResultExpressionMembershipFactory();
- return resultExpressionMembershipFactory.Create(resultExpressionMembershipDto);
- case Core.DTO.Kernel.Functions.ReturnParameterMembership returnParameterMembershipDto:
- var returnParameterMembershipFactory = new ReturnParameterMembershipFactory();
- return returnParameterMembershipFactory.Create(returnParameterMembershipDto);
- case Core.DTO.Systems.Requirements.SatisfyRequirementUsage satisfyRequirementUsageDto:
- var satisfyRequirementUsageFactory = new SatisfyRequirementUsageFactory();
- return satisfyRequirementUsageFactory.Create(satisfyRequirementUsageDto);
- case Core.DTO.Kernel.Expressions.SelectExpression selectExpressionDto:
- var selectExpressionFactory = new SelectExpressionFactory();
- return selectExpressionFactory.Create(selectExpressionDto);
- case Core.DTO.Systems.Actions.SendActionUsage sendActionUsageDto:
- var sendActionUsageFactory = new SendActionUsageFactory();
- return sendActionUsageFactory.Create(sendActionUsageDto);
- case Core.DTO.Core.Types.Specialization specializationDto:
- var specializationFactory = new SpecializationFactory();
- return specializationFactory.Create(specializationDto);
- case Core.DTO.Systems.Requirements.StakeholderMembership stakeholderMembershipDto:
- var stakeholderMembershipFactory = new StakeholderMembershipFactory();
- return stakeholderMembershipFactory.Create(stakeholderMembershipDto);
- case Core.DTO.Systems.States.StateDefinition stateDefinitionDto:
- var stateDefinitionFactory = new StateDefinitionFactory();
- return stateDefinitionFactory.Create(stateDefinitionDto);
- case Core.DTO.Systems.States.StateSubactionMembership stateSubactionMembershipDto:
- var stateSubactionMembershipFactory = new StateSubactionMembershipFactory();
- return stateSubactionMembershipFactory.Create(stateSubactionMembershipDto);
- case Core.DTO.Systems.States.StateUsage stateUsageDto:
- var stateUsageFactory = new StateUsageFactory();
- return stateUsageFactory.Create(stateUsageDto);
- case Core.DTO.Kernel.Behaviors.Step stepDto:
- var stepFactory = new StepFactory();
- return stepFactory.Create(stepDto);
- case Core.DTO.Kernel.Structures.Structure structureDto:
- var structureFactory = new StructureFactory();
- return structureFactory.Create(structureDto);
- case Core.DTO.Core.Classifiers.Subclassification subclassificationDto:
- var subclassificationFactory = new SubclassificationFactory();
- return subclassificationFactory.Create(subclassificationDto);
- case Core.DTO.Systems.Requirements.SubjectMembership subjectMembershipDto:
- var subjectMembershipFactory = new SubjectMembershipFactory();
- return subjectMembershipFactory.Create(subjectMembershipDto);
- case Core.DTO.Core.Features.Subsetting subsettingDto:
- var subsettingFactory = new SubsettingFactory();
- return subsettingFactory.Create(subsettingDto);
- case Core.DTO.Kernel.Connectors.Succession successionDto:
- var successionFactory = new SuccessionFactory();
- return successionFactory.Create(successionDto);
- case Core.DTO.Systems.Connections.SuccessionAsUsage successionAsUsageDto:
- var successionAsUsageFactory = new SuccessionAsUsageFactory();
- return successionAsUsageFactory.Create(successionAsUsageDto);
- case Core.DTO.Kernel.Interactions.SuccessionFlow successionFlowDto:
- var successionFlowFactory = new SuccessionFlowFactory();
- return successionFlowFactory.Create(successionFlowDto);
- case Core.DTO.Systems.Flows.SuccessionFlowUsage successionFlowUsageDto:
- var successionFlowUsageFactory = new SuccessionFlowUsageFactory();
- return successionFlowUsageFactory.Create(successionFlowUsageDto);
- case Core.DTO.Systems.Actions.TerminateActionUsage terminateActionUsageDto:
- var terminateActionUsageFactory = new TerminateActionUsageFactory();
- return terminateActionUsageFactory.Create(terminateActionUsageDto);
- case Core.DTO.Root.Annotations.TextualRepresentation textualRepresentationDto:
- var textualRepresentationFactory = new TextualRepresentationFactory();
- return textualRepresentationFactory.Create(textualRepresentationDto);
- case Core.DTO.Systems.States.TransitionFeatureMembership transitionFeatureMembershipDto:
- var transitionFeatureMembershipFactory = new TransitionFeatureMembershipFactory();
- return transitionFeatureMembershipFactory.Create(transitionFeatureMembershipDto);
- case Core.DTO.Systems.States.TransitionUsage transitionUsageDto:
- var transitionUsageFactory = new TransitionUsageFactory();
- return transitionUsageFactory.Create(transitionUsageDto);
- case Core.DTO.Systems.Actions.TriggerInvocationExpression triggerInvocationExpressionDto:
- var triggerInvocationExpressionFactory = new TriggerInvocationExpressionFactory();
- return triggerInvocationExpressionFactory.Create(triggerInvocationExpressionDto);
- case Core.DTO.Core.Types.Type typeDto:
- var typeFactory = new TypeFactory();
- return typeFactory.Create(typeDto);
- case Core.DTO.Core.Features.TypeFeaturing typeFeaturingDto:
- var typeFeaturingFactory = new TypeFeaturingFactory();
- return typeFeaturingFactory.Create(typeFeaturingDto);
- case Core.DTO.Core.Types.Unioning unioningDto:
- var unioningFactory = new UnioningFactory();
- return unioningFactory.Create(unioningDto);
- case Core.DTO.Systems.DefinitionAndUsage.Usage usageDto:
- var usageFactory = new UsageFactory();
- return usageFactory.Create(usageDto);
- case Core.DTO.Systems.UseCases.UseCaseDefinition useCaseDefinitionDto:
- var useCaseDefinitionFactory = new UseCaseDefinitionFactory();
- return useCaseDefinitionFactory.Create(useCaseDefinitionDto);
- case Core.DTO.Systems.UseCases.UseCaseUsage useCaseUsageDto:
- var useCaseUsageFactory = new UseCaseUsageFactory();
- return useCaseUsageFactory.Create(useCaseUsageDto);
- case Core.DTO.Systems.DefinitionAndUsage.VariantMembership variantMembershipDto:
- var variantMembershipFactory = new VariantMembershipFactory();
- return variantMembershipFactory.Create(variantMembershipDto);
- case Core.DTO.Systems.VerificationCases.VerificationCaseDefinition verificationCaseDefinitionDto:
- var verificationCaseDefinitionFactory = new VerificationCaseDefinitionFactory();
- return verificationCaseDefinitionFactory.Create(verificationCaseDefinitionDto);
- case Core.DTO.Systems.VerificationCases.VerificationCaseUsage verificationCaseUsageDto:
- var verificationCaseUsageFactory = new VerificationCaseUsageFactory();
- return verificationCaseUsageFactory.Create(verificationCaseUsageDto);
- case Core.DTO.Systems.Views.ViewDefinition viewDefinitionDto:
- var viewDefinitionFactory = new ViewDefinitionFactory();
- return viewDefinitionFactory.Create(viewDefinitionDto);
- case Core.DTO.Systems.Views.ViewpointDefinition viewpointDefinitionDto:
- var viewpointDefinitionFactory = new ViewpointDefinitionFactory();
- return viewpointDefinitionFactory.Create(viewpointDefinitionDto);
- case Core.DTO.Systems.Views.ViewpointUsage viewpointUsageDto:
- var viewpointUsageFactory = new ViewpointUsageFactory();
- return viewpointUsageFactory.Create(viewpointUsageDto);
- case Core.DTO.Systems.Views.ViewRenderingMembership viewRenderingMembershipDto:
- var viewRenderingMembershipFactory = new ViewRenderingMembershipFactory();
- return viewRenderingMembershipFactory.Create(viewRenderingMembershipDto);
- case Core.DTO.Systems.Views.ViewUsage viewUsageDto:
- var viewUsageFactory = new ViewUsageFactory();
- return viewUsageFactory.Create(viewUsageDto);
- case Core.DTO.Systems.Actions.WhileLoopActionUsage whileLoopActionUsageDto:
- var whileLoopActionUsageFactory = new WhileLoopActionUsageFactory();
- return whileLoopActionUsageFactory.Create(whileLoopActionUsageDto);
- default:
- throw new NotSupportedException($"{dto.GetType().Name} not yet supported");
- }
- }
- }
-}
-
-// ------------------------------------------------------------------------------------------------
-// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!--------
-// ------------------------------------------------------------------------------------------------
+// -------------------------------------------------------------------------------------------------
+//
+//
+// Copyright 2022-2025 Starion Group S.A.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+//
+// ------------------------------------------------------------------------------------------------
+
+// ------------------------------------------------------------------------------------------------
+// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!--------
+// ------------------------------------------------------------------------------------------------
+
+namespace SysML2.NET.Dal
+{
+ using System;
+
+ ///
+ /// The purpose of the is to create a POCO
+ /// based on a DTO
+ ///
+ public class ElementFactory : IElementFactory
+ {
+ ///
+ /// Creates a POCO based on a
+ ///
+ ///
+ /// the source DTO
+ ///
+ ///
+ /// a POCO
+ ///
+ ///
+ /// thrown when is null
+ ///
+ public Core.POCO.Root.Elements.IElement Create(Core.DTO.Root.Elements.IElement dto)
+ {
+ if (dto == null)
+ {
+ throw new ArgumentNullException(nameof(dto), $"the {nameof(dto)} may not be null");
+ }
+
+ switch (dto)
+ {
+ case Core.DTO.Systems.Actions.AcceptActionUsage acceptActionUsageDto:
+ return AcceptActionUsageFactory.Create(acceptActionUsageDto);
+ case Core.DTO.Systems.Actions.ActionDefinition actionDefinitionDto:
+ return ActionDefinitionFactory.Create(actionDefinitionDto);
+ case Core.DTO.Systems.Actions.ActionUsage actionUsageDto:
+ return ActionUsageFactory.Create(actionUsageDto);
+ case Core.DTO.Systems.Requirements.ActorMembership actorMembershipDto:
+ return ActorMembershipFactory.Create(actorMembershipDto);
+ case Core.DTO.Systems.Allocations.AllocationDefinition allocationDefinitionDto:
+ return AllocationDefinitionFactory.Create(allocationDefinitionDto);
+ case Core.DTO.Systems.Allocations.AllocationUsage allocationUsageDto:
+ return AllocationUsageFactory.Create(allocationUsageDto);
+ case Core.DTO.Systems.AnalysisCases.AnalysisCaseDefinition analysisCaseDefinitionDto:
+ return AnalysisCaseDefinitionFactory.Create(analysisCaseDefinitionDto);
+ case Core.DTO.Systems.AnalysisCases.AnalysisCaseUsage analysisCaseUsageDto:
+ return AnalysisCaseUsageFactory.Create(analysisCaseUsageDto);
+ case Core.DTO.Root.Annotations.AnnotatingElement annotatingElementDto:
+ return AnnotatingElementFactory.Create(annotatingElementDto);
+ case Core.DTO.Root.Annotations.Annotation annotationDto:
+ return AnnotationFactory.Create(annotationDto);
+ case Core.DTO.Systems.Constraints.AssertConstraintUsage assertConstraintUsageDto:
+ return AssertConstraintUsageFactory.Create(assertConstraintUsageDto);
+ case Core.DTO.Systems.Actions.AssignmentActionUsage assignmentActionUsageDto:
+ return AssignmentActionUsageFactory.Create(assignmentActionUsageDto);
+ case Core.DTO.Kernel.Associations.Association associationDto:
+ return AssociationFactory.Create(associationDto);
+ case Core.DTO.Kernel.Associations.AssociationStructure associationStructureDto:
+ return AssociationStructureFactory.Create(associationStructureDto);
+ case Core.DTO.Systems.Attributes.AttributeDefinition attributeDefinitionDto:
+ return AttributeDefinitionFactory.Create(attributeDefinitionDto);
+ case Core.DTO.Systems.Attributes.AttributeUsage attributeUsageDto:
+ return AttributeUsageFactory.Create(attributeUsageDto);
+ case Core.DTO.Kernel.Behaviors.Behavior behaviorDto:
+ return BehaviorFactory.Create(behaviorDto);
+ case Core.DTO.Kernel.Connectors.BindingConnector bindingConnectorDto:
+ return BindingConnectorFactory.Create(bindingConnectorDto);
+ case Core.DTO.Systems.Connections.BindingConnectorAsUsage bindingConnectorAsUsageDto:
+ return BindingConnectorAsUsageFactory.Create(bindingConnectorAsUsageDto);
+ case Core.DTO.Kernel.Functions.BooleanExpression booleanExpressionDto:
+ return BooleanExpressionFactory.Create(booleanExpressionDto);
+ case Core.DTO.Systems.Calculations.CalculationDefinition calculationDefinitionDto:
+ return CalculationDefinitionFactory.Create(calculationDefinitionDto);
+ case Core.DTO.Systems.Calculations.CalculationUsage calculationUsageDto:
+ return CalculationUsageFactory.Create(calculationUsageDto);
+ case Core.DTO.Systems.Cases.CaseDefinition caseDefinitionDto:
+ return CaseDefinitionFactory.Create(caseDefinitionDto);
+ case Core.DTO.Systems.Cases.CaseUsage caseUsageDto:
+ return CaseUsageFactory.Create(caseUsageDto);
+ case Core.DTO.Kernel.Classes.Class classDto:
+ return ClassFactory.Create(classDto);
+ case Core.DTO.Core.Classifiers.Classifier classifierDto:
+ return ClassifierFactory.Create(classifierDto);
+ case Core.DTO.Kernel.Expressions.CollectExpression collectExpressionDto:
+ return CollectExpressionFactory.Create(collectExpressionDto);
+ case Core.DTO.Root.Annotations.Comment commentDto:
+ return CommentFactory.Create(commentDto);
+ case Core.DTO.Systems.Requirements.ConcernDefinition concernDefinitionDto:
+ return ConcernDefinitionFactory.Create(concernDefinitionDto);
+ case Core.DTO.Systems.Requirements.ConcernUsage concernUsageDto:
+ return ConcernUsageFactory.Create(concernUsageDto);
+ case Core.DTO.Systems.Ports.ConjugatedPortDefinition conjugatedPortDefinitionDto:
+ return ConjugatedPortDefinitionFactory.Create(conjugatedPortDefinitionDto);
+ case Core.DTO.Systems.Ports.ConjugatedPortTyping conjugatedPortTypingDto:
+ return ConjugatedPortTypingFactory.Create(conjugatedPortTypingDto);
+ case Core.DTO.Core.Types.Conjugation conjugationDto:
+ return ConjugationFactory.Create(conjugationDto);
+ case Core.DTO.Systems.Connections.ConnectionDefinition connectionDefinitionDto:
+ return ConnectionDefinitionFactory.Create(connectionDefinitionDto);
+ case Core.DTO.Systems.Connections.ConnectionUsage connectionUsageDto:
+ return ConnectionUsageFactory.Create(connectionUsageDto);
+ case Core.DTO.Kernel.Connectors.Connector connectorDto:
+ return ConnectorFactory.Create(connectorDto);
+ case Core.DTO.Systems.Constraints.ConstraintDefinition constraintDefinitionDto:
+ return ConstraintDefinitionFactory.Create(constraintDefinitionDto);
+ case Core.DTO.Systems.Constraints.ConstraintUsage constraintUsageDto:
+ return ConstraintUsageFactory.Create(constraintUsageDto);
+ case Core.DTO.Kernel.Expressions.ConstructorExpression constructorExpressionDto:
+ return ConstructorExpressionFactory.Create(constructorExpressionDto);
+ case Core.DTO.Core.Features.CrossSubsetting crossSubsettingDto:
+ return CrossSubsettingFactory.Create(crossSubsettingDto);
+ case Core.DTO.Kernel.DataTypes.DataType dataTypeDto:
+ return DataTypeFactory.Create(dataTypeDto);
+ case Core.DTO.Systems.Actions.DecisionNode decisionNodeDto:
+ return DecisionNodeFactory.Create(decisionNodeDto);
+ case Core.DTO.Systems.DefinitionAndUsage.Definition definitionDto:
+ return DefinitionFactory.Create(definitionDto);
+ case Core.DTO.Root.Dependencies.Dependency dependencyDto:
+ return DependencyFactory.Create(dependencyDto);
+ case Core.DTO.Core.Types.Differencing differencingDto:
+ return DifferencingFactory.Create(differencingDto);
+ case Core.DTO.Core.Types.Disjoining disjoiningDto:
+ return DisjoiningFactory.Create(disjoiningDto);
+ case Core.DTO.Root.Annotations.Documentation documentationDto:
+ return DocumentationFactory.Create(documentationDto);
+ case Core.DTO.Kernel.Packages.ElementFilterMembership elementFilterMembershipDto:
+ return ElementFilterMembershipFactory.Create(elementFilterMembershipDto);
+ case Core.DTO.Core.Features.EndFeatureMembership endFeatureMembershipDto:
+ return EndFeatureMembershipFactory.Create(endFeatureMembershipDto);
+ case Core.DTO.Systems.Enumerations.EnumerationDefinition enumerationDefinitionDto:
+ return EnumerationDefinitionFactory.Create(enumerationDefinitionDto);
+ case Core.DTO.Systems.Enumerations.EnumerationUsage enumerationUsageDto:
+ return EnumerationUsageFactory.Create(enumerationUsageDto);
+ case Core.DTO.Systems.Occurrences.EventOccurrenceUsage eventOccurrenceUsageDto:
+ return EventOccurrenceUsageFactory.Create(eventOccurrenceUsageDto);
+ case Core.DTO.Systems.States.ExhibitStateUsage exhibitStateUsageDto:
+ return ExhibitStateUsageFactory.Create(exhibitStateUsageDto);
+ case Core.DTO.Kernel.Functions.Expression expressionDto:
+ return ExpressionFactory.Create(expressionDto);
+ case Core.DTO.Core.Features.Feature featureDto:
+ return FeatureFactory.Create(featureDto);
+ case Core.DTO.Kernel.Expressions.FeatureChainExpression featureChainExpressionDto:
+ return FeatureChainExpressionFactory.Create(featureChainExpressionDto);
+ case Core.DTO.Core.Features.FeatureChaining featureChainingDto:
+ return FeatureChainingFactory.Create(featureChainingDto);
+ case Core.DTO.Core.Features.FeatureInverting featureInvertingDto:
+ return FeatureInvertingFactory.Create(featureInvertingDto);
+ case Core.DTO.Core.Types.FeatureMembership featureMembershipDto:
+ return FeatureMembershipFactory.Create(featureMembershipDto);
+ case Core.DTO.Kernel.Expressions.FeatureReferenceExpression featureReferenceExpressionDto:
+ return FeatureReferenceExpressionFactory.Create(featureReferenceExpressionDto);
+ case Core.DTO.Core.Features.FeatureTyping featureTypingDto:
+ return FeatureTypingFactory.Create(featureTypingDto);
+ case Core.DTO.Kernel.FeatureValues.FeatureValue featureValueDto:
+ return FeatureValueFactory.Create(featureValueDto);
+ case Core.DTO.Kernel.Interactions.Flow flowDto:
+ return FlowFactory.Create(flowDto);
+ case Core.DTO.Systems.Flows.FlowDefinition flowDefinitionDto:
+ return FlowDefinitionFactory.Create(flowDefinitionDto);
+ case Core.DTO.Kernel.Interactions.FlowEnd flowEndDto:
+ return FlowEndFactory.Create(flowEndDto);
+ case Core.DTO.Systems.Flows.FlowUsage flowUsageDto:
+ return FlowUsageFactory.Create(flowUsageDto);
+ case Core.DTO.Systems.Actions.ForkNode forkNodeDto:
+ return ForkNodeFactory.Create(forkNodeDto);
+ case Core.DTO.Systems.Actions.ForLoopActionUsage forLoopActionUsageDto:
+ return ForLoopActionUsageFactory.Create(forLoopActionUsageDto);
+ case Core.DTO.Systems.Requirements.FramedConcernMembership framedConcernMembershipDto:
+ return FramedConcernMembershipFactory.Create(framedConcernMembershipDto);
+ case Core.DTO.Kernel.Functions.Function functionDto:
+ return FunctionFactory.Create(functionDto);
+ case Core.DTO.Systems.Actions.IfActionUsage ifActionUsageDto:
+ return IfActionUsageFactory.Create(ifActionUsageDto);
+ case Core.DTO.Systems.UseCases.IncludeUseCaseUsage includeUseCaseUsageDto:
+ return IncludeUseCaseUsageFactory.Create(includeUseCaseUsageDto);
+ case Core.DTO.Kernel.Expressions.IndexExpression indexExpressionDto:
+ return IndexExpressionFactory.Create(indexExpressionDto);
+ case Core.DTO.Kernel.Interactions.Interaction interactionDto:
+ return InteractionFactory.Create(interactionDto);
+ case Core.DTO.Systems.Interfaces.InterfaceDefinition interfaceDefinitionDto:
+ return InterfaceDefinitionFactory.Create(interfaceDefinitionDto);
+ case Core.DTO.Systems.Interfaces.InterfaceUsage interfaceUsageDto:
+ return InterfaceUsageFactory.Create(interfaceUsageDto);
+ case Core.DTO.Core.Types.Intersecting intersectingDto:
+ return IntersectingFactory.Create(intersectingDto);
+ case Core.DTO.Kernel.Functions.Invariant invariantDto:
+ return InvariantFactory.Create(invariantDto);
+ case Core.DTO.Kernel.Expressions.InvocationExpression invocationExpressionDto:
+ return InvocationExpressionFactory.Create(invocationExpressionDto);
+ case Core.DTO.Systems.Items.ItemDefinition itemDefinitionDto:
+ return ItemDefinitionFactory.Create(itemDefinitionDto);
+ case Core.DTO.Systems.Items.ItemUsage itemUsageDto:
+ return ItemUsageFactory.Create(itemUsageDto);
+ case Core.DTO.Systems.Actions.JoinNode joinNodeDto:
+ return JoinNodeFactory.Create(joinNodeDto);
+ case Core.DTO.Kernel.Packages.LibraryPackage libraryPackageDto:
+ return LibraryPackageFactory.Create(libraryPackageDto);
+ case Core.DTO.Kernel.Expressions.LiteralBoolean literalBooleanDto:
+ return LiteralBooleanFactory.Create(literalBooleanDto);
+ case Core.DTO.Kernel.Expressions.LiteralExpression literalExpressionDto:
+ return LiteralExpressionFactory.Create(literalExpressionDto);
+ case Core.DTO.Kernel.Expressions.LiteralInfinity literalInfinityDto:
+ return LiteralInfinityFactory.Create(literalInfinityDto);
+ case Core.DTO.Kernel.Expressions.LiteralInteger literalIntegerDto:
+ return LiteralIntegerFactory.Create(literalIntegerDto);
+ case Core.DTO.Kernel.Expressions.LiteralRational literalRationalDto:
+ return LiteralRationalFactory.Create(literalRationalDto);
+ case Core.DTO.Kernel.Expressions.LiteralString literalStringDto:
+ return LiteralStringFactory.Create(literalStringDto);
+ case Core.DTO.Root.Namespaces.Membership membershipDto:
+ return MembershipFactory.Create(membershipDto);
+ case Core.DTO.Systems.Views.MembershipExpose membershipExposeDto:
+ return MembershipExposeFactory.Create(membershipExposeDto);
+ case Core.DTO.Root.Namespaces.MembershipImport membershipImportDto:
+ return MembershipImportFactory.Create(membershipImportDto);
+ case Core.DTO.Systems.Actions.MergeNode mergeNodeDto:
+ return MergeNodeFactory.Create(mergeNodeDto);
+ case Core.DTO.Kernel.Metadata.Metaclass metaclassDto:
+ return MetaclassFactory.Create(metaclassDto);
+ case Core.DTO.Kernel.Expressions.MetadataAccessExpression metadataAccessExpressionDto:
+ return MetadataAccessExpressionFactory.Create(metadataAccessExpressionDto);
+ case Core.DTO.Systems.Metadata.MetadataDefinition metadataDefinitionDto:
+ return MetadataDefinitionFactory.Create(metadataDefinitionDto);
+ case Core.DTO.Kernel.Metadata.MetadataFeature metadataFeatureDto:
+ return MetadataFeatureFactory.Create(metadataFeatureDto);
+ case Core.DTO.Systems.Metadata.MetadataUsage metadataUsageDto:
+ return MetadataUsageFactory.Create(metadataUsageDto);
+ case Core.DTO.Core.Types.Multiplicity multiplicityDto:
+ return MultiplicityFactory.Create(multiplicityDto);
+ case Core.DTO.Kernel.Multiplicities.MultiplicityRange multiplicityRangeDto:
+ return MultiplicityRangeFactory.Create(multiplicityRangeDto);
+ case Core.DTO.Root.Namespaces.Namespace namespaceDto:
+ return NamespaceFactory.Create(namespaceDto);
+ case Core.DTO.Systems.Views.NamespaceExpose namespaceExposeDto:
+ return NamespaceExposeFactory.Create(namespaceExposeDto);
+ case Core.DTO.Root.Namespaces.NamespaceImport namespaceImportDto:
+ return NamespaceImportFactory.Create(namespaceImportDto);
+ case Core.DTO.Kernel.Expressions.NullExpression nullExpressionDto:
+ return NullExpressionFactory.Create(nullExpressionDto);
+ case Core.DTO.Systems.Cases.ObjectiveMembership objectiveMembershipDto:
+ return ObjectiveMembershipFactory.Create(objectiveMembershipDto);
+ case Core.DTO.Systems.Occurrences.OccurrenceDefinition occurrenceDefinitionDto:
+ return OccurrenceDefinitionFactory.Create(occurrenceDefinitionDto);
+ case Core.DTO.Systems.Occurrences.OccurrenceUsage occurrenceUsageDto:
+ return OccurrenceUsageFactory.Create(occurrenceUsageDto);
+ case Core.DTO.Kernel.Expressions.OperatorExpression operatorExpressionDto:
+ return OperatorExpressionFactory.Create(operatorExpressionDto);
+ case Core.DTO.Root.Namespaces.OwningMembership owningMembershipDto:
+ return OwningMembershipFactory.Create(owningMembershipDto);
+ case Core.DTO.Kernel.Packages.Package packageDto:
+ return PackageFactory.Create(packageDto);
+ case Core.DTO.Kernel.Behaviors.ParameterMembership parameterMembershipDto:
+ return ParameterMembershipFactory.Create(parameterMembershipDto);
+ case Core.DTO.Systems.Parts.PartDefinition partDefinitionDto:
+ return PartDefinitionFactory.Create(partDefinitionDto);
+ case Core.DTO.Systems.Parts.PartUsage partUsageDto:
+ return PartUsageFactory.Create(partUsageDto);
+ case Core.DTO.Kernel.Interactions.PayloadFeature payloadFeatureDto:
+ return PayloadFeatureFactory.Create(payloadFeatureDto);
+ case Core.DTO.Systems.Actions.PerformActionUsage performActionUsageDto:
+ return PerformActionUsageFactory.Create(performActionUsageDto);
+ case Core.DTO.Systems.Ports.PortConjugation portConjugationDto:
+ return PortConjugationFactory.Create(portConjugationDto);
+ case Core.DTO.Systems.Ports.PortDefinition portDefinitionDto:
+ return PortDefinitionFactory.Create(portDefinitionDto);
+ case Core.DTO.Systems.Ports.PortUsage portUsageDto:
+ return PortUsageFactory.Create(portUsageDto);
+ case Core.DTO.Kernel.Functions.Predicate predicateDto:
+ return PredicateFactory.Create(predicateDto);
+ case Core.DTO.Core.Features.Redefinition redefinitionDto:
+ return RedefinitionFactory.Create(redefinitionDto);
+ case Core.DTO.Core.Features.ReferenceSubsetting referenceSubsettingDto:
+ return ReferenceSubsettingFactory.Create(referenceSubsettingDto);
+ case Core.DTO.Systems.DefinitionAndUsage.ReferenceUsage referenceUsageDto:
+ return ReferenceUsageFactory.Create(referenceUsageDto);
+ case Core.DTO.Systems.Views.RenderingDefinition renderingDefinitionDto:
+ return RenderingDefinitionFactory.Create(renderingDefinitionDto);
+ case Core.DTO.Systems.Views.RenderingUsage renderingUsageDto:
+ return RenderingUsageFactory.Create(renderingUsageDto);
+ case Core.DTO.Systems.Requirements.RequirementConstraintMembership requirementConstraintMembershipDto:
+ return RequirementConstraintMembershipFactory.Create(requirementConstraintMembershipDto);
+ case Core.DTO.Systems.Requirements.RequirementDefinition requirementDefinitionDto:
+ return RequirementDefinitionFactory.Create(requirementDefinitionDto);
+ case Core.DTO.Systems.Requirements.RequirementUsage requirementUsageDto:
+ return RequirementUsageFactory.Create(requirementUsageDto);
+ case Core.DTO.Systems.VerificationCases.RequirementVerificationMembership requirementVerificationMembershipDto:
+ return RequirementVerificationMembershipFactory.Create(requirementVerificationMembershipDto);
+ case Core.DTO.Kernel.Functions.ResultExpressionMembership resultExpressionMembershipDto:
+ return ResultExpressionMembershipFactory.Create(resultExpressionMembershipDto);
+ case Core.DTO.Kernel.Functions.ReturnParameterMembership returnParameterMembershipDto:
+ return ReturnParameterMembershipFactory.Create(returnParameterMembershipDto);
+ case Core.DTO.Systems.Requirements.SatisfyRequirementUsage satisfyRequirementUsageDto:
+ return SatisfyRequirementUsageFactory.Create(satisfyRequirementUsageDto);
+ case Core.DTO.Kernel.Expressions.SelectExpression selectExpressionDto:
+ return SelectExpressionFactory.Create(selectExpressionDto);
+ case Core.DTO.Systems.Actions.SendActionUsage sendActionUsageDto:
+ return SendActionUsageFactory.Create(sendActionUsageDto);
+ case Core.DTO.Core.Types.Specialization specializationDto:
+ return SpecializationFactory.Create(specializationDto);
+ case Core.DTO.Systems.Requirements.StakeholderMembership stakeholderMembershipDto:
+ return StakeholderMembershipFactory.Create(stakeholderMembershipDto);
+ case Core.DTO.Systems.States.StateDefinition stateDefinitionDto:
+ return StateDefinitionFactory.Create(stateDefinitionDto);
+ case Core.DTO.Systems.States.StateSubactionMembership stateSubactionMembershipDto:
+ return StateSubactionMembershipFactory.Create(stateSubactionMembershipDto);
+ case Core.DTO.Systems.States.StateUsage stateUsageDto:
+ return StateUsageFactory.Create(stateUsageDto);
+ case Core.DTO.Kernel.Behaviors.Step stepDto:
+ return StepFactory.Create(stepDto);
+ case Core.DTO.Kernel.Structures.Structure structureDto:
+ return StructureFactory.Create(structureDto);
+ case Core.DTO.Core.Classifiers.Subclassification subclassificationDto:
+ return SubclassificationFactory.Create(subclassificationDto);
+ case Core.DTO.Systems.Requirements.SubjectMembership subjectMembershipDto:
+ return SubjectMembershipFactory.Create(subjectMembershipDto);
+ case Core.DTO.Core.Features.Subsetting subsettingDto:
+ return SubsettingFactory.Create(subsettingDto);
+ case Core.DTO.Kernel.Connectors.Succession successionDto:
+ return SuccessionFactory.Create(successionDto);
+ case Core.DTO.Systems.Connections.SuccessionAsUsage successionAsUsageDto:
+ return SuccessionAsUsageFactory.Create(successionAsUsageDto);
+ case Core.DTO.Kernel.Interactions.SuccessionFlow successionFlowDto:
+ return SuccessionFlowFactory.Create(successionFlowDto);
+ case Core.DTO.Systems.Flows.SuccessionFlowUsage successionFlowUsageDto:
+ return SuccessionFlowUsageFactory.Create(successionFlowUsageDto);
+ case Core.DTO.Systems.Actions.TerminateActionUsage terminateActionUsageDto:
+ return TerminateActionUsageFactory.Create(terminateActionUsageDto);
+ case Core.DTO.Root.Annotations.TextualRepresentation textualRepresentationDto:
+ return TextualRepresentationFactory.Create(textualRepresentationDto);
+ case Core.DTO.Systems.States.TransitionFeatureMembership transitionFeatureMembershipDto:
+ return TransitionFeatureMembershipFactory.Create(transitionFeatureMembershipDto);
+ case Core.DTO.Systems.States.TransitionUsage transitionUsageDto:
+ return TransitionUsageFactory.Create(transitionUsageDto);
+ case Core.DTO.Systems.Actions.TriggerInvocationExpression triggerInvocationExpressionDto:
+ return TriggerInvocationExpressionFactory.Create(triggerInvocationExpressionDto);
+ case Core.DTO.Core.Types.Type typeDto:
+ return TypeFactory.Create(typeDto);
+ case Core.DTO.Core.Features.TypeFeaturing typeFeaturingDto:
+ return TypeFeaturingFactory.Create(typeFeaturingDto);
+ case Core.DTO.Core.Types.Unioning unioningDto:
+ return UnioningFactory.Create(unioningDto);
+ case Core.DTO.Systems.DefinitionAndUsage.Usage usageDto:
+ return UsageFactory.Create(usageDto);
+ case Core.DTO.Systems.UseCases.UseCaseDefinition useCaseDefinitionDto:
+ return UseCaseDefinitionFactory.Create(useCaseDefinitionDto);
+ case Core.DTO.Systems.UseCases.UseCaseUsage useCaseUsageDto:
+ return UseCaseUsageFactory.Create(useCaseUsageDto);
+ case Core.DTO.Systems.DefinitionAndUsage.VariantMembership variantMembershipDto:
+ return VariantMembershipFactory.Create(variantMembershipDto);
+ case Core.DTO.Systems.VerificationCases.VerificationCaseDefinition verificationCaseDefinitionDto:
+ return VerificationCaseDefinitionFactory.Create(verificationCaseDefinitionDto);
+ case Core.DTO.Systems.VerificationCases.VerificationCaseUsage verificationCaseUsageDto:
+ return VerificationCaseUsageFactory.Create(verificationCaseUsageDto);
+ case Core.DTO.Systems.Views.ViewDefinition viewDefinitionDto:
+ return ViewDefinitionFactory.Create(viewDefinitionDto);
+ case Core.DTO.Systems.Views.ViewpointDefinition viewpointDefinitionDto:
+ return ViewpointDefinitionFactory.Create(viewpointDefinitionDto);
+ case Core.DTO.Systems.Views.ViewpointUsage viewpointUsageDto:
+ return ViewpointUsageFactory.Create(viewpointUsageDto);
+ case Core.DTO.Systems.Views.ViewRenderingMembership viewRenderingMembershipDto:
+ return ViewRenderingMembershipFactory.Create(viewRenderingMembershipDto);
+ case Core.DTO.Systems.Views.ViewUsage viewUsageDto:
+ return ViewUsageFactory.Create(viewUsageDto);
+ case Core.DTO.Systems.Actions.WhileLoopActionUsage whileLoopActionUsageDto:
+ return WhileLoopActionUsageFactory.Create(whileLoopActionUsageDto);
+ default:
+ throw new NotSupportedException($"{dto.GetType().Name} not yet supported");
+ }
+ }
+ }
+}
+
+// ------------------------------------------------------------------------------------------------
+// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!--------
+// ------------------------------------------------------------------------------------------------
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/ElementFilterMembershipFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/ElementFilterMembershipFactory.cs
index 106eca07a..f4027a229 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/ElementFilterMembershipFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/ElementFilterMembershipFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class ElementFilterMembershipFactory
+ public static class ElementFilterMembershipFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class ElementFilterMembershipFactory
///
/// thrown when is null
///
- public Core.POCO.Kernel.Packages.ElementFilterMembership Create(Core.DTO.Kernel.Packages.ElementFilterMembership dto)
+ public static Core.POCO.Kernel.Packages.ElementFilterMembership Create(Core.DTO.Kernel.Packages.ElementFilterMembership dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/EndFeatureMembershipFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/EndFeatureMembershipFactory.cs
index fb8696694..4424c55ab 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/EndFeatureMembershipFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/EndFeatureMembershipFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class EndFeatureMembershipFactory
+ public static class EndFeatureMembershipFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class EndFeatureMembershipFactory
///
/// thrown when is null
///
- public Core.POCO.Core.Features.EndFeatureMembership Create(Core.DTO.Core.Features.EndFeatureMembership dto)
+ public static Core.POCO.Core.Features.EndFeatureMembership Create(Core.DTO.Core.Features.EndFeatureMembership dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/EnumerationDefinitionFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/EnumerationDefinitionFactory.cs
index 24d26878f..77ddb4571 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/EnumerationDefinitionFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/EnumerationDefinitionFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class EnumerationDefinitionFactory
+ public static class EnumerationDefinitionFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class EnumerationDefinitionFactory
///
/// thrown when is null
///
- public Core.POCO.Systems.Enumerations.EnumerationDefinition Create(Core.DTO.Systems.Enumerations.EnumerationDefinition dto)
+ public static Core.POCO.Systems.Enumerations.EnumerationDefinition Create(Core.DTO.Systems.Enumerations.EnumerationDefinition dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/EnumerationUsageFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/EnumerationUsageFactory.cs
index 8710b09ac..588e98ad7 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/EnumerationUsageFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/EnumerationUsageFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class EnumerationUsageFactory
+ public static class EnumerationUsageFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class EnumerationUsageFactory
///
/// thrown when is null
///
- public Core.POCO.Systems.Enumerations.EnumerationUsage Create(Core.DTO.Systems.Enumerations.EnumerationUsage dto)
+ public static Core.POCO.Systems.Enumerations.EnumerationUsage Create(Core.DTO.Systems.Enumerations.EnumerationUsage dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/EventOccurrenceUsageFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/EventOccurrenceUsageFactory.cs
index fe028d282..cb165b7ae 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/EventOccurrenceUsageFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/EventOccurrenceUsageFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class EventOccurrenceUsageFactory
+ public static class EventOccurrenceUsageFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class EventOccurrenceUsageFactory
///
/// thrown when is null
///
- public Core.POCO.Systems.Occurrences.EventOccurrenceUsage Create(Core.DTO.Systems.Occurrences.EventOccurrenceUsage dto)
+ public static Core.POCO.Systems.Occurrences.EventOccurrenceUsage Create(Core.DTO.Systems.Occurrences.EventOccurrenceUsage dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/ExhibitStateUsageFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/ExhibitStateUsageFactory.cs
index addcf1ee2..26dc0ff93 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/ExhibitStateUsageFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/ExhibitStateUsageFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class ExhibitStateUsageFactory
+ public static class ExhibitStateUsageFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class ExhibitStateUsageFactory
///
/// thrown when is null
///
- public Core.POCO.Systems.States.ExhibitStateUsage Create(Core.DTO.Systems.States.ExhibitStateUsage dto)
+ public static Core.POCO.Systems.States.ExhibitStateUsage Create(Core.DTO.Systems.States.ExhibitStateUsage dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/ExpressionFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/ExpressionFactory.cs
index c50142591..742ee6590 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/ExpressionFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/ExpressionFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class ExpressionFactory
+ public static class ExpressionFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class ExpressionFactory
///
/// thrown when is null
///
- public Core.POCO.Kernel.Functions.Expression Create(Core.DTO.Kernel.Functions.Expression dto)
+ public static Core.POCO.Kernel.Functions.Expression Create(Core.DTO.Kernel.Functions.Expression dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/FeatureChainExpressionFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/FeatureChainExpressionFactory.cs
index 2b0a43ad1..088ab7e14 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/FeatureChainExpressionFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/FeatureChainExpressionFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class FeatureChainExpressionFactory
+ public static class FeatureChainExpressionFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class FeatureChainExpressionFactory
///
/// thrown when is null
///
- public Core.POCO.Kernel.Expressions.FeatureChainExpression Create(Core.DTO.Kernel.Expressions.FeatureChainExpression dto)
+ public static Core.POCO.Kernel.Expressions.FeatureChainExpression Create(Core.DTO.Kernel.Expressions.FeatureChainExpression dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/FeatureChainingFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/FeatureChainingFactory.cs
index 65c5bb5fa..736b92a26 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/FeatureChainingFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/FeatureChainingFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class FeatureChainingFactory
+ public static class FeatureChainingFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class FeatureChainingFactory
///
/// thrown when is null
///
- public Core.POCO.Core.Features.FeatureChaining Create(Core.DTO.Core.Features.FeatureChaining dto)
+ public static Core.POCO.Core.Features.FeatureChaining Create(Core.DTO.Core.Features.FeatureChaining dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/FeatureFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/FeatureFactory.cs
index 0c2371d70..810a75c14 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/FeatureFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/FeatureFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class FeatureFactory
+ public static class FeatureFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class FeatureFactory
///
/// thrown when is null
///
- public Core.POCO.Core.Features.Feature Create(Core.DTO.Core.Features.Feature dto)
+ public static Core.POCO.Core.Features.Feature Create(Core.DTO.Core.Features.Feature dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/FeatureInvertingFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/FeatureInvertingFactory.cs
index 15104871d..77de79f09 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/FeatureInvertingFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/FeatureInvertingFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class FeatureInvertingFactory
+ public static class FeatureInvertingFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class FeatureInvertingFactory
///
/// thrown when is null
///
- public Core.POCO.Core.Features.FeatureInverting Create(Core.DTO.Core.Features.FeatureInverting dto)
+ public static Core.POCO.Core.Features.FeatureInverting Create(Core.DTO.Core.Features.FeatureInverting dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/FeatureMembershipFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/FeatureMembershipFactory.cs
index 661f48b94..bdbf13e14 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/FeatureMembershipFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/FeatureMembershipFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class FeatureMembershipFactory
+ public static class FeatureMembershipFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class FeatureMembershipFactory
///
/// thrown when is null
///
- public Core.POCO.Core.Types.FeatureMembership Create(Core.DTO.Core.Types.FeatureMembership dto)
+ public static Core.POCO.Core.Types.FeatureMembership Create(Core.DTO.Core.Types.FeatureMembership dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/FeatureReferenceExpressionFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/FeatureReferenceExpressionFactory.cs
index 8bf714f0f..5caa6fc53 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/FeatureReferenceExpressionFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/FeatureReferenceExpressionFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class FeatureReferenceExpressionFactory
+ public static class FeatureReferenceExpressionFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class FeatureReferenceExpressionFactory
///
/// thrown when is null
///
- public Core.POCO.Kernel.Expressions.FeatureReferenceExpression Create(Core.DTO.Kernel.Expressions.FeatureReferenceExpression dto)
+ public static Core.POCO.Kernel.Expressions.FeatureReferenceExpression Create(Core.DTO.Kernel.Expressions.FeatureReferenceExpression dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/FeatureTypingFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/FeatureTypingFactory.cs
index 0f36cce17..ffa3d9293 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/FeatureTypingFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/FeatureTypingFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class FeatureTypingFactory
+ public static class FeatureTypingFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class FeatureTypingFactory
///
/// thrown when is null
///
- public Core.POCO.Core.Features.FeatureTyping Create(Core.DTO.Core.Features.FeatureTyping dto)
+ public static Core.POCO.Core.Features.FeatureTyping Create(Core.DTO.Core.Features.FeatureTyping dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/FeatureValueFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/FeatureValueFactory.cs
index 03f2b47fa..9fc9c3a12 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/FeatureValueFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/FeatureValueFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class FeatureValueFactory
+ public static class FeatureValueFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class FeatureValueFactory
///
/// thrown when is null
///
- public Core.POCO.Kernel.FeatureValues.FeatureValue Create(Core.DTO.Kernel.FeatureValues.FeatureValue dto)
+ public static Core.POCO.Kernel.FeatureValues.FeatureValue Create(Core.DTO.Kernel.FeatureValues.FeatureValue dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/FlowDefinitionFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/FlowDefinitionFactory.cs
index 4b2dc0524..ede3efa87 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/FlowDefinitionFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/FlowDefinitionFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class FlowDefinitionFactory
+ public static class FlowDefinitionFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class FlowDefinitionFactory
///
/// thrown when is null
///
- public Core.POCO.Systems.Flows.FlowDefinition Create(Core.DTO.Systems.Flows.FlowDefinition dto)
+ public static Core.POCO.Systems.Flows.FlowDefinition Create(Core.DTO.Systems.Flows.FlowDefinition dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/FlowEndFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/FlowEndFactory.cs
index ea4aed964..12549362c 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/FlowEndFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/FlowEndFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class FlowEndFactory
+ public static class FlowEndFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class FlowEndFactory
///
/// thrown when is null
///
- public Core.POCO.Kernel.Interactions.FlowEnd Create(Core.DTO.Kernel.Interactions.FlowEnd dto)
+ public static Core.POCO.Kernel.Interactions.FlowEnd Create(Core.DTO.Kernel.Interactions.FlowEnd dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/FlowFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/FlowFactory.cs
index 1e041e876..cc1ef85c7 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/FlowFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/FlowFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class FlowFactory
+ public static class FlowFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class FlowFactory
///
/// thrown when is null
///
- public Core.POCO.Kernel.Interactions.Flow Create(Core.DTO.Kernel.Interactions.Flow dto)
+ public static Core.POCO.Kernel.Interactions.Flow Create(Core.DTO.Kernel.Interactions.Flow dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/FlowUsageFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/FlowUsageFactory.cs
index 8748d3ad2..c373fc222 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/FlowUsageFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/FlowUsageFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class FlowUsageFactory
+ public static class FlowUsageFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class FlowUsageFactory
///
/// thrown when is null
///
- public Core.POCO.Systems.Flows.FlowUsage Create(Core.DTO.Systems.Flows.FlowUsage dto)
+ public static Core.POCO.Systems.Flows.FlowUsage Create(Core.DTO.Systems.Flows.FlowUsage dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/ForLoopActionUsageFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/ForLoopActionUsageFactory.cs
index 60f5cb7a0..ba65b59b1 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/ForLoopActionUsageFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/ForLoopActionUsageFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class ForLoopActionUsageFactory
+ public static class ForLoopActionUsageFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class ForLoopActionUsageFactory
///
/// thrown when is null
///
- public Core.POCO.Systems.Actions.ForLoopActionUsage Create(Core.DTO.Systems.Actions.ForLoopActionUsage dto)
+ public static Core.POCO.Systems.Actions.ForLoopActionUsage Create(Core.DTO.Systems.Actions.ForLoopActionUsage dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/ForkNodeFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/ForkNodeFactory.cs
index 208fd27bc..88ea515ab 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/ForkNodeFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/ForkNodeFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class ForkNodeFactory
+ public static class ForkNodeFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class ForkNodeFactory
///
/// thrown when is null
///
- public Core.POCO.Systems.Actions.ForkNode Create(Core.DTO.Systems.Actions.ForkNode dto)
+ public static Core.POCO.Systems.Actions.ForkNode Create(Core.DTO.Systems.Actions.ForkNode dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/FramedConcernMembershipFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/FramedConcernMembershipFactory.cs
index 76fb97027..183e00dfa 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/FramedConcernMembershipFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/FramedConcernMembershipFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class FramedConcernMembershipFactory
+ public static class FramedConcernMembershipFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class FramedConcernMembershipFactory
///
/// thrown when is null
///
- public Core.POCO.Systems.Requirements.FramedConcernMembership Create(Core.DTO.Systems.Requirements.FramedConcernMembership dto)
+ public static Core.POCO.Systems.Requirements.FramedConcernMembership Create(Core.DTO.Systems.Requirements.FramedConcernMembership dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/FunctionFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/FunctionFactory.cs
index 88b34b05e..8465d81a0 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/FunctionFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/FunctionFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class FunctionFactory
+ public static class FunctionFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class FunctionFactory
///
/// thrown when is null
///
- public Core.POCO.Kernel.Functions.Function Create(Core.DTO.Kernel.Functions.Function dto)
+ public static Core.POCO.Kernel.Functions.Function Create(Core.DTO.Kernel.Functions.Function dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/IfActionUsageFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/IfActionUsageFactory.cs
index 171f36bcb..aea3f6e06 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/IfActionUsageFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/IfActionUsageFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class IfActionUsageFactory
+ public static class IfActionUsageFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class IfActionUsageFactory
///
/// thrown when is null
///
- public Core.POCO.Systems.Actions.IfActionUsage Create(Core.DTO.Systems.Actions.IfActionUsage dto)
+ public static Core.POCO.Systems.Actions.IfActionUsage Create(Core.DTO.Systems.Actions.IfActionUsage dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/IncludeUseCaseUsageFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/IncludeUseCaseUsageFactory.cs
index b5f6f0344..b699ecb09 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/IncludeUseCaseUsageFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/IncludeUseCaseUsageFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class IncludeUseCaseUsageFactory
+ public static class IncludeUseCaseUsageFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class IncludeUseCaseUsageFactory
///
/// thrown when is null
///
- public Core.POCO.Systems.UseCases.IncludeUseCaseUsage Create(Core.DTO.Systems.UseCases.IncludeUseCaseUsage dto)
+ public static Core.POCO.Systems.UseCases.IncludeUseCaseUsage Create(Core.DTO.Systems.UseCases.IncludeUseCaseUsage dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/IndexExpressionFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/IndexExpressionFactory.cs
index 34fec89b7..af93d1d1c 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/IndexExpressionFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/IndexExpressionFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class IndexExpressionFactory
+ public static class IndexExpressionFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class IndexExpressionFactory
///
/// thrown when is null
///
- public Core.POCO.Kernel.Expressions.IndexExpression Create(Core.DTO.Kernel.Expressions.IndexExpression dto)
+ public static Core.POCO.Kernel.Expressions.IndexExpression Create(Core.DTO.Kernel.Expressions.IndexExpression dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/InteractionFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/InteractionFactory.cs
index 836a82883..15642c712 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/InteractionFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/InteractionFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class InteractionFactory
+ public static class InteractionFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class InteractionFactory
///
/// thrown when is null
///
- public Core.POCO.Kernel.Interactions.Interaction Create(Core.DTO.Kernel.Interactions.Interaction dto)
+ public static Core.POCO.Kernel.Interactions.Interaction Create(Core.DTO.Kernel.Interactions.Interaction dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/InterfaceDefinitionFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/InterfaceDefinitionFactory.cs
index a70e05f7f..06f51cbc8 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/InterfaceDefinitionFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/InterfaceDefinitionFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class InterfaceDefinitionFactory
+ public static class InterfaceDefinitionFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class InterfaceDefinitionFactory
///
/// thrown when is null
///
- public Core.POCO.Systems.Interfaces.InterfaceDefinition Create(Core.DTO.Systems.Interfaces.InterfaceDefinition dto)
+ public static Core.POCO.Systems.Interfaces.InterfaceDefinition Create(Core.DTO.Systems.Interfaces.InterfaceDefinition dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/InterfaceUsageFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/InterfaceUsageFactory.cs
index f6680c62b..baaab1055 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/InterfaceUsageFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/InterfaceUsageFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class InterfaceUsageFactory
+ public static class InterfaceUsageFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class InterfaceUsageFactory
///
/// thrown when is null
///
- public Core.POCO.Systems.Interfaces.InterfaceUsage Create(Core.DTO.Systems.Interfaces.InterfaceUsage dto)
+ public static Core.POCO.Systems.Interfaces.InterfaceUsage Create(Core.DTO.Systems.Interfaces.InterfaceUsage dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/IntersectingFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/IntersectingFactory.cs
index 443afba67..7aa9c216b 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/IntersectingFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/IntersectingFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class IntersectingFactory
+ public static class IntersectingFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class IntersectingFactory
///
/// thrown when is null
///
- public Core.POCO.Core.Types.Intersecting Create(Core.DTO.Core.Types.Intersecting dto)
+ public static Core.POCO.Core.Types.Intersecting Create(Core.DTO.Core.Types.Intersecting dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/InvariantFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/InvariantFactory.cs
index 089994c20..02680a7da 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/InvariantFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/InvariantFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class InvariantFactory
+ public static class InvariantFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class InvariantFactory
///
/// thrown when is null
///
- public Core.POCO.Kernel.Functions.Invariant Create(Core.DTO.Kernel.Functions.Invariant dto)
+ public static Core.POCO.Kernel.Functions.Invariant Create(Core.DTO.Kernel.Functions.Invariant dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/InvocationExpressionFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/InvocationExpressionFactory.cs
index 64e9febd9..7c9865561 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/InvocationExpressionFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/InvocationExpressionFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class InvocationExpressionFactory
+ public static class InvocationExpressionFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class InvocationExpressionFactory
///
/// thrown when is null
///
- public Core.POCO.Kernel.Expressions.InvocationExpression Create(Core.DTO.Kernel.Expressions.InvocationExpression dto)
+ public static Core.POCO.Kernel.Expressions.InvocationExpression Create(Core.DTO.Kernel.Expressions.InvocationExpression dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/ItemDefinitionFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/ItemDefinitionFactory.cs
index 0c50c2572..7c2fc2b97 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/ItemDefinitionFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/ItemDefinitionFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class ItemDefinitionFactory
+ public static class ItemDefinitionFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class ItemDefinitionFactory
///
/// thrown when is null
///
- public Core.POCO.Systems.Items.ItemDefinition Create(Core.DTO.Systems.Items.ItemDefinition dto)
+ public static Core.POCO.Systems.Items.ItemDefinition Create(Core.DTO.Systems.Items.ItemDefinition dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/ItemUsageFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/ItemUsageFactory.cs
index 9845e7abb..0262a35b8 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/ItemUsageFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/ItemUsageFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class ItemUsageFactory
+ public static class ItemUsageFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class ItemUsageFactory
///
/// thrown when is null
///
- public Core.POCO.Systems.Items.ItemUsage Create(Core.DTO.Systems.Items.ItemUsage dto)
+ public static Core.POCO.Systems.Items.ItemUsage Create(Core.DTO.Systems.Items.ItemUsage dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/JoinNodeFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/JoinNodeFactory.cs
index 7ff22c27d..935e46e11 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/JoinNodeFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/JoinNodeFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class JoinNodeFactory
+ public static class JoinNodeFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class JoinNodeFactory
///
/// thrown when is null
///
- public Core.POCO.Systems.Actions.JoinNode Create(Core.DTO.Systems.Actions.JoinNode dto)
+ public static Core.POCO.Systems.Actions.JoinNode Create(Core.DTO.Systems.Actions.JoinNode dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/LibraryPackageFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/LibraryPackageFactory.cs
index 45d1da0d1..0f587998c 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/LibraryPackageFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/LibraryPackageFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class LibraryPackageFactory
+ public static class LibraryPackageFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class LibraryPackageFactory
///
/// thrown when is null
///
- public Core.POCO.Kernel.Packages.LibraryPackage Create(Core.DTO.Kernel.Packages.LibraryPackage dto)
+ public static Core.POCO.Kernel.Packages.LibraryPackage Create(Core.DTO.Kernel.Packages.LibraryPackage dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/LiteralBooleanFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/LiteralBooleanFactory.cs
index 76f9f8f42..f7f13eb04 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/LiteralBooleanFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/LiteralBooleanFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class LiteralBooleanFactory
+ public static class LiteralBooleanFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class LiteralBooleanFactory
///
/// thrown when is null
///
- public Core.POCO.Kernel.Expressions.LiteralBoolean Create(Core.DTO.Kernel.Expressions.LiteralBoolean dto)
+ public static Core.POCO.Kernel.Expressions.LiteralBoolean Create(Core.DTO.Kernel.Expressions.LiteralBoolean dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/LiteralExpressionFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/LiteralExpressionFactory.cs
index 9eca65de4..651fee1c6 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/LiteralExpressionFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/LiteralExpressionFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class LiteralExpressionFactory
+ public static class LiteralExpressionFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class LiteralExpressionFactory
///
/// thrown when is null
///
- public Core.POCO.Kernel.Expressions.LiteralExpression Create(Core.DTO.Kernel.Expressions.LiteralExpression dto)
+ public static Core.POCO.Kernel.Expressions.LiteralExpression Create(Core.DTO.Kernel.Expressions.LiteralExpression dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/LiteralInfinityFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/LiteralInfinityFactory.cs
index 5a9a3ceeb..5bf4b2bf4 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/LiteralInfinityFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/LiteralInfinityFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class LiteralInfinityFactory
+ public static class LiteralInfinityFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class LiteralInfinityFactory
///
/// thrown when is null
///
- public Core.POCO.Kernel.Expressions.LiteralInfinity Create(Core.DTO.Kernel.Expressions.LiteralInfinity dto)
+ public static Core.POCO.Kernel.Expressions.LiteralInfinity Create(Core.DTO.Kernel.Expressions.LiteralInfinity dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/LiteralIntegerFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/LiteralIntegerFactory.cs
index e0e455074..15b7e7ec9 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/LiteralIntegerFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/LiteralIntegerFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class LiteralIntegerFactory
+ public static class LiteralIntegerFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class LiteralIntegerFactory
///
/// thrown when is null
///
- public Core.POCO.Kernel.Expressions.LiteralInteger Create(Core.DTO.Kernel.Expressions.LiteralInteger dto)
+ public static Core.POCO.Kernel.Expressions.LiteralInteger Create(Core.DTO.Kernel.Expressions.LiteralInteger dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/LiteralRationalFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/LiteralRationalFactory.cs
index 9f682ba73..be29082f3 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/LiteralRationalFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/LiteralRationalFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class LiteralRationalFactory
+ public static class LiteralRationalFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class LiteralRationalFactory
///
/// thrown when is null
///
- public Core.POCO.Kernel.Expressions.LiteralRational Create(Core.DTO.Kernel.Expressions.LiteralRational dto)
+ public static Core.POCO.Kernel.Expressions.LiteralRational Create(Core.DTO.Kernel.Expressions.LiteralRational dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/LiteralStringFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/LiteralStringFactory.cs
index e715d9146..813cf58d1 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/LiteralStringFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/LiteralStringFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class LiteralStringFactory
+ public static class LiteralStringFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class LiteralStringFactory
///
/// thrown when is null
///
- public Core.POCO.Kernel.Expressions.LiteralString Create(Core.DTO.Kernel.Expressions.LiteralString dto)
+ public static Core.POCO.Kernel.Expressions.LiteralString Create(Core.DTO.Kernel.Expressions.LiteralString dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/MembershipExposeFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/MembershipExposeFactory.cs
index 66eafa9b0..3f0d151ea 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/MembershipExposeFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/MembershipExposeFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class MembershipExposeFactory
+ public static class MembershipExposeFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class MembershipExposeFactory
///
/// thrown when is null
///
- public Core.POCO.Systems.Views.MembershipExpose Create(Core.DTO.Systems.Views.MembershipExpose dto)
+ public static Core.POCO.Systems.Views.MembershipExpose Create(Core.DTO.Systems.Views.MembershipExpose dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/MembershipFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/MembershipFactory.cs
index c2320d813..14be3f189 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/MembershipFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/MembershipFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class MembershipFactory
+ public static class MembershipFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class MembershipFactory
///
/// thrown when is null
///
- public Core.POCO.Root.Namespaces.Membership Create(Core.DTO.Root.Namespaces.Membership dto)
+ public static Core.POCO.Root.Namespaces.Membership Create(Core.DTO.Root.Namespaces.Membership dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/MembershipImportFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/MembershipImportFactory.cs
index 9442f162e..b1e8b6231 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/MembershipImportFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/MembershipImportFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class MembershipImportFactory
+ public static class MembershipImportFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class MembershipImportFactory
///
/// thrown when is null
///
- public Core.POCO.Root.Namespaces.MembershipImport Create(Core.DTO.Root.Namespaces.MembershipImport dto)
+ public static Core.POCO.Root.Namespaces.MembershipImport Create(Core.DTO.Root.Namespaces.MembershipImport dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/MergeNodeFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/MergeNodeFactory.cs
index 4a3968dec..16d8ad4f5 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/MergeNodeFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/MergeNodeFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class MergeNodeFactory
+ public static class MergeNodeFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class MergeNodeFactory
///
/// thrown when is null
///
- public Core.POCO.Systems.Actions.MergeNode Create(Core.DTO.Systems.Actions.MergeNode dto)
+ public static Core.POCO.Systems.Actions.MergeNode Create(Core.DTO.Systems.Actions.MergeNode dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/MetaclassFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/MetaclassFactory.cs
index 42c2cc821..4628d380d 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/MetaclassFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/MetaclassFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class MetaclassFactory
+ public static class MetaclassFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class MetaclassFactory
///
/// thrown when is null
///
- public Core.POCO.Kernel.Metadata.Metaclass Create(Core.DTO.Kernel.Metadata.Metaclass dto)
+ public static Core.POCO.Kernel.Metadata.Metaclass Create(Core.DTO.Kernel.Metadata.Metaclass dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/MetadataAccessExpressionFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/MetadataAccessExpressionFactory.cs
index 952aa9acf..88817fa25 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/MetadataAccessExpressionFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/MetadataAccessExpressionFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class MetadataAccessExpressionFactory
+ public static class MetadataAccessExpressionFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class MetadataAccessExpressionFactory
///
/// thrown when is null
///
- public Core.POCO.Kernel.Expressions.MetadataAccessExpression Create(Core.DTO.Kernel.Expressions.MetadataAccessExpression dto)
+ public static Core.POCO.Kernel.Expressions.MetadataAccessExpression Create(Core.DTO.Kernel.Expressions.MetadataAccessExpression dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/MetadataDefinitionFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/MetadataDefinitionFactory.cs
index 36c9fc2ef..61ca1c03e 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/MetadataDefinitionFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/MetadataDefinitionFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class MetadataDefinitionFactory
+ public static class MetadataDefinitionFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class MetadataDefinitionFactory
///
/// thrown when is null
///
- public Core.POCO.Systems.Metadata.MetadataDefinition Create(Core.DTO.Systems.Metadata.MetadataDefinition dto)
+ public static Core.POCO.Systems.Metadata.MetadataDefinition Create(Core.DTO.Systems.Metadata.MetadataDefinition dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/MetadataFeatureFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/MetadataFeatureFactory.cs
index 3239eb3c7..47390146c 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/MetadataFeatureFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/MetadataFeatureFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class MetadataFeatureFactory
+ public static class MetadataFeatureFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class MetadataFeatureFactory
///
/// thrown when is null
///
- public Core.POCO.Kernel.Metadata.MetadataFeature Create(Core.DTO.Kernel.Metadata.MetadataFeature dto)
+ public static Core.POCO.Kernel.Metadata.MetadataFeature Create(Core.DTO.Kernel.Metadata.MetadataFeature dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/MetadataUsageFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/MetadataUsageFactory.cs
index 69eb2e21a..17ee92dcf 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/MetadataUsageFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/MetadataUsageFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class MetadataUsageFactory
+ public static class MetadataUsageFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class MetadataUsageFactory
///
/// thrown when is null
///
- public Core.POCO.Systems.Metadata.MetadataUsage Create(Core.DTO.Systems.Metadata.MetadataUsage dto)
+ public static Core.POCO.Systems.Metadata.MetadataUsage Create(Core.DTO.Systems.Metadata.MetadataUsage dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/MultiplicityFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/MultiplicityFactory.cs
index 9800aa7c1..39186924c 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/MultiplicityFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/MultiplicityFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class MultiplicityFactory
+ public static class MultiplicityFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class MultiplicityFactory
///
/// thrown when is null
///
- public Core.POCO.Core.Types.Multiplicity Create(Core.DTO.Core.Types.Multiplicity dto)
+ public static Core.POCO.Core.Types.Multiplicity Create(Core.DTO.Core.Types.Multiplicity dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/MultiplicityRangeFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/MultiplicityRangeFactory.cs
index e9730e975..c16ae2a36 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/MultiplicityRangeFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/MultiplicityRangeFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class MultiplicityRangeFactory
+ public static class MultiplicityRangeFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class MultiplicityRangeFactory
///
/// thrown when is null
///
- public Core.POCO.Kernel.Multiplicities.MultiplicityRange Create(Core.DTO.Kernel.Multiplicities.MultiplicityRange dto)
+ public static Core.POCO.Kernel.Multiplicities.MultiplicityRange Create(Core.DTO.Kernel.Multiplicities.MultiplicityRange dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/NamespaceExposeFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/NamespaceExposeFactory.cs
index c8f14e0da..6992e6e04 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/NamespaceExposeFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/NamespaceExposeFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class NamespaceExposeFactory
+ public static class NamespaceExposeFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class NamespaceExposeFactory
///
/// thrown when is null
///
- public Core.POCO.Systems.Views.NamespaceExpose Create(Core.DTO.Systems.Views.NamespaceExpose dto)
+ public static Core.POCO.Systems.Views.NamespaceExpose Create(Core.DTO.Systems.Views.NamespaceExpose dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/NamespaceFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/NamespaceFactory.cs
index 89d2e83a5..1eb8ee00e 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/NamespaceFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/NamespaceFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class NamespaceFactory
+ public static class NamespaceFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class NamespaceFactory
///
/// thrown when is null
///
- public Core.POCO.Root.Namespaces.Namespace Create(Core.DTO.Root.Namespaces.Namespace dto)
+ public static Core.POCO.Root.Namespaces.Namespace Create(Core.DTO.Root.Namespaces.Namespace dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/NamespaceImportFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/NamespaceImportFactory.cs
index 02abc7ead..278e33f8e 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/NamespaceImportFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/NamespaceImportFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class NamespaceImportFactory
+ public static class NamespaceImportFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class NamespaceImportFactory
///
/// thrown when is null
///
- public Core.POCO.Root.Namespaces.NamespaceImport Create(Core.DTO.Root.Namespaces.NamespaceImport dto)
+ public static Core.POCO.Root.Namespaces.NamespaceImport Create(Core.DTO.Root.Namespaces.NamespaceImport dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/NullExpressionFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/NullExpressionFactory.cs
index c438529bd..ef8ca4178 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/NullExpressionFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/NullExpressionFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class NullExpressionFactory
+ public static class NullExpressionFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class NullExpressionFactory
///
/// thrown when is null
///
- public Core.POCO.Kernel.Expressions.NullExpression Create(Core.DTO.Kernel.Expressions.NullExpression dto)
+ public static Core.POCO.Kernel.Expressions.NullExpression Create(Core.DTO.Kernel.Expressions.NullExpression dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/ObjectiveMembershipFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/ObjectiveMembershipFactory.cs
index f6fbd0a7d..701e94654 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/ObjectiveMembershipFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/ObjectiveMembershipFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class ObjectiveMembershipFactory
+ public static class ObjectiveMembershipFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class ObjectiveMembershipFactory
///
/// thrown when is null
///
- public Core.POCO.Systems.Cases.ObjectiveMembership Create(Core.DTO.Systems.Cases.ObjectiveMembership dto)
+ public static Core.POCO.Systems.Cases.ObjectiveMembership Create(Core.DTO.Systems.Cases.ObjectiveMembership dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/OccurrenceDefinitionFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/OccurrenceDefinitionFactory.cs
index 579734342..ac07ad807 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/OccurrenceDefinitionFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/OccurrenceDefinitionFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class OccurrenceDefinitionFactory
+ public static class OccurrenceDefinitionFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class OccurrenceDefinitionFactory
///
/// thrown when is null
///
- public Core.POCO.Systems.Occurrences.OccurrenceDefinition Create(Core.DTO.Systems.Occurrences.OccurrenceDefinition dto)
+ public static Core.POCO.Systems.Occurrences.OccurrenceDefinition Create(Core.DTO.Systems.Occurrences.OccurrenceDefinition dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/OccurrenceUsageFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/OccurrenceUsageFactory.cs
index f1cc85127..6a9f82b17 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/OccurrenceUsageFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/OccurrenceUsageFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class OccurrenceUsageFactory
+ public static class OccurrenceUsageFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class OccurrenceUsageFactory
///
/// thrown when is null
///
- public Core.POCO.Systems.Occurrences.OccurrenceUsage Create(Core.DTO.Systems.Occurrences.OccurrenceUsage dto)
+ public static Core.POCO.Systems.Occurrences.OccurrenceUsage Create(Core.DTO.Systems.Occurrences.OccurrenceUsage dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/OperatorExpressionFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/OperatorExpressionFactory.cs
index 3af306a72..4cda9256f 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/OperatorExpressionFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/OperatorExpressionFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class OperatorExpressionFactory
+ public static class OperatorExpressionFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class OperatorExpressionFactory
///
/// thrown when is null
///
- public Core.POCO.Kernel.Expressions.OperatorExpression Create(Core.DTO.Kernel.Expressions.OperatorExpression dto)
+ public static Core.POCO.Kernel.Expressions.OperatorExpression Create(Core.DTO.Kernel.Expressions.OperatorExpression dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/OwningMembershipFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/OwningMembershipFactory.cs
index 95e0f1174..0a8f583d7 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/OwningMembershipFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/OwningMembershipFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class OwningMembershipFactory
+ public static class OwningMembershipFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class OwningMembershipFactory
///
/// thrown when is null
///
- public Core.POCO.Root.Namespaces.OwningMembership Create(Core.DTO.Root.Namespaces.OwningMembership dto)
+ public static Core.POCO.Root.Namespaces.OwningMembership Create(Core.DTO.Root.Namespaces.OwningMembership dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/PackageFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/PackageFactory.cs
index 5a9ba5c19..636167944 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/PackageFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/PackageFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class PackageFactory
+ public static class PackageFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class PackageFactory
///
/// thrown when is null
///
- public Core.POCO.Kernel.Packages.Package Create(Core.DTO.Kernel.Packages.Package dto)
+ public static Core.POCO.Kernel.Packages.Package Create(Core.DTO.Kernel.Packages.Package dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/ParameterMembershipFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/ParameterMembershipFactory.cs
index dab6dd408..daca095d7 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/ParameterMembershipFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/ParameterMembershipFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class ParameterMembershipFactory
+ public static class ParameterMembershipFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class ParameterMembershipFactory
///
/// thrown when is null
///
- public Core.POCO.Kernel.Behaviors.ParameterMembership Create(Core.DTO.Kernel.Behaviors.ParameterMembership dto)
+ public static Core.POCO.Kernel.Behaviors.ParameterMembership Create(Core.DTO.Kernel.Behaviors.ParameterMembership dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/PartDefinitionFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/PartDefinitionFactory.cs
index 63af4a6a3..ae4fb3aea 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/PartDefinitionFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/PartDefinitionFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class PartDefinitionFactory
+ public static class PartDefinitionFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class PartDefinitionFactory
///
/// thrown when is null
///
- public Core.POCO.Systems.Parts.PartDefinition Create(Core.DTO.Systems.Parts.PartDefinition dto)
+ public static Core.POCO.Systems.Parts.PartDefinition Create(Core.DTO.Systems.Parts.PartDefinition dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/PartUsageFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/PartUsageFactory.cs
index 065833e41..cd6689d45 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/PartUsageFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/PartUsageFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class PartUsageFactory
+ public static class PartUsageFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class PartUsageFactory
///
/// thrown when is null
///
- public Core.POCO.Systems.Parts.PartUsage Create(Core.DTO.Systems.Parts.PartUsage dto)
+ public static Core.POCO.Systems.Parts.PartUsage Create(Core.DTO.Systems.Parts.PartUsage dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/PayloadFeatureFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/PayloadFeatureFactory.cs
index fe4166691..a097e5efa 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/PayloadFeatureFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/PayloadFeatureFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class PayloadFeatureFactory
+ public static class PayloadFeatureFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class PayloadFeatureFactory
///
/// thrown when is null
///
- public Core.POCO.Kernel.Interactions.PayloadFeature Create(Core.DTO.Kernel.Interactions.PayloadFeature dto)
+ public static Core.POCO.Kernel.Interactions.PayloadFeature Create(Core.DTO.Kernel.Interactions.PayloadFeature dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/PerformActionUsageFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/PerformActionUsageFactory.cs
index b550dc51c..44af96b01 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/PerformActionUsageFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/PerformActionUsageFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class PerformActionUsageFactory
+ public static class PerformActionUsageFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class PerformActionUsageFactory
///
/// thrown when is null
///
- public Core.POCO.Systems.Actions.PerformActionUsage Create(Core.DTO.Systems.Actions.PerformActionUsage dto)
+ public static Core.POCO.Systems.Actions.PerformActionUsage Create(Core.DTO.Systems.Actions.PerformActionUsage dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/PortConjugationFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/PortConjugationFactory.cs
index 4834a85a9..9e1064935 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/PortConjugationFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/PortConjugationFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class PortConjugationFactory
+ public static class PortConjugationFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class PortConjugationFactory
///
/// thrown when is null
///
- public Core.POCO.Systems.Ports.PortConjugation Create(Core.DTO.Systems.Ports.PortConjugation dto)
+ public static Core.POCO.Systems.Ports.PortConjugation Create(Core.DTO.Systems.Ports.PortConjugation dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/PortDefinitionFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/PortDefinitionFactory.cs
index 1e135eedf..9e5a505b4 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/PortDefinitionFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/PortDefinitionFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class PortDefinitionFactory
+ public static class PortDefinitionFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class PortDefinitionFactory
///
/// thrown when is null
///
- public Core.POCO.Systems.Ports.PortDefinition Create(Core.DTO.Systems.Ports.PortDefinition dto)
+ public static Core.POCO.Systems.Ports.PortDefinition Create(Core.DTO.Systems.Ports.PortDefinition dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/PortUsageFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/PortUsageFactory.cs
index 8c119f654..710cbaf28 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/PortUsageFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/PortUsageFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class PortUsageFactory
+ public static class PortUsageFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class PortUsageFactory
///
/// thrown when is null
///
- public Core.POCO.Systems.Ports.PortUsage Create(Core.DTO.Systems.Ports.PortUsage dto)
+ public static Core.POCO.Systems.Ports.PortUsage Create(Core.DTO.Systems.Ports.PortUsage dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/PredicateFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/PredicateFactory.cs
index 83cfbb519..ea17e819a 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/PredicateFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/PredicateFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class PredicateFactory
+ public static class PredicateFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class PredicateFactory
///
/// thrown when is null
///
- public Core.POCO.Kernel.Functions.Predicate Create(Core.DTO.Kernel.Functions.Predicate dto)
+ public static Core.POCO.Kernel.Functions.Predicate Create(Core.DTO.Kernel.Functions.Predicate dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/RedefinitionFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/RedefinitionFactory.cs
index b7232bea6..6152b8dcb 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/RedefinitionFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/RedefinitionFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class RedefinitionFactory
+ public static class RedefinitionFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class RedefinitionFactory
///
/// thrown when is null
///
- public Core.POCO.Core.Features.Redefinition Create(Core.DTO.Core.Features.Redefinition dto)
+ public static Core.POCO.Core.Features.Redefinition Create(Core.DTO.Core.Features.Redefinition dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/ReferenceSubsettingFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/ReferenceSubsettingFactory.cs
index 7e5d0a225..85fcf3edb 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/ReferenceSubsettingFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/ReferenceSubsettingFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class ReferenceSubsettingFactory
+ public static class ReferenceSubsettingFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class ReferenceSubsettingFactory
///
/// thrown when is null
///
- public Core.POCO.Core.Features.ReferenceSubsetting Create(Core.DTO.Core.Features.ReferenceSubsetting dto)
+ public static Core.POCO.Core.Features.ReferenceSubsetting Create(Core.DTO.Core.Features.ReferenceSubsetting dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/ReferenceUsageFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/ReferenceUsageFactory.cs
index 93e412ed4..5a8b38c42 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/ReferenceUsageFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/ReferenceUsageFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class ReferenceUsageFactory
+ public static class ReferenceUsageFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class ReferenceUsageFactory
///
/// thrown when is null
///
- public Core.POCO.Systems.DefinitionAndUsage.ReferenceUsage Create(Core.DTO.Systems.DefinitionAndUsage.ReferenceUsage dto)
+ public static Core.POCO.Systems.DefinitionAndUsage.ReferenceUsage Create(Core.DTO.Systems.DefinitionAndUsage.ReferenceUsage dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/RenderingDefinitionFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/RenderingDefinitionFactory.cs
index 1829f74d2..40706d636 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/RenderingDefinitionFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/RenderingDefinitionFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class RenderingDefinitionFactory
+ public static class RenderingDefinitionFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class RenderingDefinitionFactory
///
/// thrown when is null
///
- public Core.POCO.Systems.Views.RenderingDefinition Create(Core.DTO.Systems.Views.RenderingDefinition dto)
+ public static Core.POCO.Systems.Views.RenderingDefinition Create(Core.DTO.Systems.Views.RenderingDefinition dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/RenderingUsageFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/RenderingUsageFactory.cs
index aad7c7e99..47eb0c127 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/RenderingUsageFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/RenderingUsageFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class RenderingUsageFactory
+ public static class RenderingUsageFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class RenderingUsageFactory
///
/// thrown when is null
///
- public Core.POCO.Systems.Views.RenderingUsage Create(Core.DTO.Systems.Views.RenderingUsage dto)
+ public static Core.POCO.Systems.Views.RenderingUsage Create(Core.DTO.Systems.Views.RenderingUsage dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/RequirementConstraintMembershipFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/RequirementConstraintMembershipFactory.cs
index 5d3ddac7d..b33e0f79e 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/RequirementConstraintMembershipFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/RequirementConstraintMembershipFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class RequirementConstraintMembershipFactory
+ public static class RequirementConstraintMembershipFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class RequirementConstraintMembershipFactory
///
/// thrown when is null
///
- public Core.POCO.Systems.Requirements.RequirementConstraintMembership Create(Core.DTO.Systems.Requirements.RequirementConstraintMembership dto)
+ public static Core.POCO.Systems.Requirements.RequirementConstraintMembership Create(Core.DTO.Systems.Requirements.RequirementConstraintMembership dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/RequirementDefinitionFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/RequirementDefinitionFactory.cs
index 7594ade6f..4d36cf0be 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/RequirementDefinitionFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/RequirementDefinitionFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class RequirementDefinitionFactory
+ public static class RequirementDefinitionFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class RequirementDefinitionFactory
///
/// thrown when is null
///
- public Core.POCO.Systems.Requirements.RequirementDefinition Create(Core.DTO.Systems.Requirements.RequirementDefinition dto)
+ public static Core.POCO.Systems.Requirements.RequirementDefinition Create(Core.DTO.Systems.Requirements.RequirementDefinition dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/RequirementUsageFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/RequirementUsageFactory.cs
index 2bd2dd51e..42ed6aa12 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/RequirementUsageFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/RequirementUsageFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class RequirementUsageFactory
+ public static class RequirementUsageFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class RequirementUsageFactory
///
/// thrown when is null
///
- public Core.POCO.Systems.Requirements.RequirementUsage Create(Core.DTO.Systems.Requirements.RequirementUsage dto)
+ public static Core.POCO.Systems.Requirements.RequirementUsage Create(Core.DTO.Systems.Requirements.RequirementUsage dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/RequirementVerificationMembershipFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/RequirementVerificationMembershipFactory.cs
index 825c21f55..22737dd1b 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/RequirementVerificationMembershipFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/RequirementVerificationMembershipFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class RequirementVerificationMembershipFactory
+ public static class RequirementVerificationMembershipFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class RequirementVerificationMembershipFactory
///
/// thrown when is null
///
- public Core.POCO.Systems.VerificationCases.RequirementVerificationMembership Create(Core.DTO.Systems.VerificationCases.RequirementVerificationMembership dto)
+ public static Core.POCO.Systems.VerificationCases.RequirementVerificationMembership Create(Core.DTO.Systems.VerificationCases.RequirementVerificationMembership dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/ResultExpressionMembershipFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/ResultExpressionMembershipFactory.cs
index 3c6eb5752..71deb0390 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/ResultExpressionMembershipFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/ResultExpressionMembershipFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class ResultExpressionMembershipFactory
+ public static class ResultExpressionMembershipFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class ResultExpressionMembershipFactory
///
/// thrown when is null
///
- public Core.POCO.Kernel.Functions.ResultExpressionMembership Create(Core.DTO.Kernel.Functions.ResultExpressionMembership dto)
+ public static Core.POCO.Kernel.Functions.ResultExpressionMembership Create(Core.DTO.Kernel.Functions.ResultExpressionMembership dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/ReturnParameterMembershipFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/ReturnParameterMembershipFactory.cs
index 92d8a468e..a83335cc8 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/ReturnParameterMembershipFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/ReturnParameterMembershipFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class ReturnParameterMembershipFactory
+ public static class ReturnParameterMembershipFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class ReturnParameterMembershipFactory
///
/// thrown when is null
///
- public Core.POCO.Kernel.Functions.ReturnParameterMembership Create(Core.DTO.Kernel.Functions.ReturnParameterMembership dto)
+ public static Core.POCO.Kernel.Functions.ReturnParameterMembership Create(Core.DTO.Kernel.Functions.ReturnParameterMembership dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/SatisfyRequirementUsageFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/SatisfyRequirementUsageFactory.cs
index 6cfb3a770..b2e82ae2d 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/SatisfyRequirementUsageFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/SatisfyRequirementUsageFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class SatisfyRequirementUsageFactory
+ public static class SatisfyRequirementUsageFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class SatisfyRequirementUsageFactory
///
/// thrown when is null
///
- public Core.POCO.Systems.Requirements.SatisfyRequirementUsage Create(Core.DTO.Systems.Requirements.SatisfyRequirementUsage dto)
+ public static Core.POCO.Systems.Requirements.SatisfyRequirementUsage Create(Core.DTO.Systems.Requirements.SatisfyRequirementUsage dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/SelectExpressionFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/SelectExpressionFactory.cs
index 9603de206..235ffa0c8 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/SelectExpressionFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/SelectExpressionFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class SelectExpressionFactory
+ public static class SelectExpressionFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class SelectExpressionFactory
///
/// thrown when is null
///
- public Core.POCO.Kernel.Expressions.SelectExpression Create(Core.DTO.Kernel.Expressions.SelectExpression dto)
+ public static Core.POCO.Kernel.Expressions.SelectExpression Create(Core.DTO.Kernel.Expressions.SelectExpression dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/SendActionUsageFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/SendActionUsageFactory.cs
index 1d1c60cea..aa02b863c 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/SendActionUsageFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/SendActionUsageFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class SendActionUsageFactory
+ public static class SendActionUsageFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class SendActionUsageFactory
///
/// thrown when is null
///
- public Core.POCO.Systems.Actions.SendActionUsage Create(Core.DTO.Systems.Actions.SendActionUsage dto)
+ public static Core.POCO.Systems.Actions.SendActionUsage Create(Core.DTO.Systems.Actions.SendActionUsage dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/SpecializationFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/SpecializationFactory.cs
index 0ffb039c4..ab7dcfbbb 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/SpecializationFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/SpecializationFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class SpecializationFactory
+ public static class SpecializationFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class SpecializationFactory
///
/// thrown when is null
///
- public Core.POCO.Core.Types.Specialization Create(Core.DTO.Core.Types.Specialization dto)
+ public static Core.POCO.Core.Types.Specialization Create(Core.DTO.Core.Types.Specialization dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/StakeholderMembershipFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/StakeholderMembershipFactory.cs
index 4bea22caf..642e62bfa 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/StakeholderMembershipFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/StakeholderMembershipFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class StakeholderMembershipFactory
+ public static class StakeholderMembershipFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class StakeholderMembershipFactory
///
/// thrown when is null
///
- public Core.POCO.Systems.Requirements.StakeholderMembership Create(Core.DTO.Systems.Requirements.StakeholderMembership dto)
+ public static Core.POCO.Systems.Requirements.StakeholderMembership Create(Core.DTO.Systems.Requirements.StakeholderMembership dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/StateDefinitionFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/StateDefinitionFactory.cs
index c697ba479..3a9eb9d51 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/StateDefinitionFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/StateDefinitionFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class StateDefinitionFactory
+ public static class StateDefinitionFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class StateDefinitionFactory
///
/// thrown when is null
///
- public Core.POCO.Systems.States.StateDefinition Create(Core.DTO.Systems.States.StateDefinition dto)
+ public static Core.POCO.Systems.States.StateDefinition Create(Core.DTO.Systems.States.StateDefinition dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/StateSubactionMembershipFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/StateSubactionMembershipFactory.cs
index 602ac4c2e..1145860ad 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/StateSubactionMembershipFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/StateSubactionMembershipFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class StateSubactionMembershipFactory
+ public static class StateSubactionMembershipFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class StateSubactionMembershipFactory
///
/// thrown when is null
///
- public Core.POCO.Systems.States.StateSubactionMembership Create(Core.DTO.Systems.States.StateSubactionMembership dto)
+ public static Core.POCO.Systems.States.StateSubactionMembership Create(Core.DTO.Systems.States.StateSubactionMembership dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/StateUsageFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/StateUsageFactory.cs
index 7861d2957..9c5b8cceb 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/StateUsageFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/StateUsageFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class StateUsageFactory
+ public static class StateUsageFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class StateUsageFactory
///
/// thrown when is null
///
- public Core.POCO.Systems.States.StateUsage Create(Core.DTO.Systems.States.StateUsage dto)
+ public static Core.POCO.Systems.States.StateUsage Create(Core.DTO.Systems.States.StateUsage dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/StepFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/StepFactory.cs
index 0bd3d1808..da4925503 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/StepFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/StepFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class StepFactory
+ public static class StepFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class StepFactory
///
/// thrown when is null
///
- public Core.POCO.Kernel.Behaviors.Step Create(Core.DTO.Kernel.Behaviors.Step dto)
+ public static Core.POCO.Kernel.Behaviors.Step Create(Core.DTO.Kernel.Behaviors.Step dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/StructureFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/StructureFactory.cs
index 2eb8b385e..e33880e62 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/StructureFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/StructureFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class StructureFactory
+ public static class StructureFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class StructureFactory
///
/// thrown when is null
///
- public Core.POCO.Kernel.Structures.Structure Create(Core.DTO.Kernel.Structures.Structure dto)
+ public static Core.POCO.Kernel.Structures.Structure Create(Core.DTO.Kernel.Structures.Structure dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/SubclassificationFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/SubclassificationFactory.cs
index 6937e5848..27e12aee3 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/SubclassificationFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/SubclassificationFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class SubclassificationFactory
+ public static class SubclassificationFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class SubclassificationFactory
///
/// thrown when is null
///
- public Core.POCO.Core.Classifiers.Subclassification Create(Core.DTO.Core.Classifiers.Subclassification dto)
+ public static Core.POCO.Core.Classifiers.Subclassification Create(Core.DTO.Core.Classifiers.Subclassification dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/SubjectMembershipFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/SubjectMembershipFactory.cs
index 377ac9eec..1431f20a7 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/SubjectMembershipFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/SubjectMembershipFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class SubjectMembershipFactory
+ public static class SubjectMembershipFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class SubjectMembershipFactory
///
/// thrown when is null
///
- public Core.POCO.Systems.Requirements.SubjectMembership Create(Core.DTO.Systems.Requirements.SubjectMembership dto)
+ public static Core.POCO.Systems.Requirements.SubjectMembership Create(Core.DTO.Systems.Requirements.SubjectMembership dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/SubsettingFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/SubsettingFactory.cs
index dccaba0fb..c9bf1b676 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/SubsettingFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/SubsettingFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class SubsettingFactory
+ public static class SubsettingFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class SubsettingFactory
///
/// thrown when is null
///
- public Core.POCO.Core.Features.Subsetting Create(Core.DTO.Core.Features.Subsetting dto)
+ public static Core.POCO.Core.Features.Subsetting Create(Core.DTO.Core.Features.Subsetting dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/SuccessionAsUsageFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/SuccessionAsUsageFactory.cs
index e52c2d70d..50f5423e3 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/SuccessionAsUsageFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/SuccessionAsUsageFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class SuccessionAsUsageFactory
+ public static class SuccessionAsUsageFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class SuccessionAsUsageFactory
///
/// thrown when is null
///
- public Core.POCO.Systems.Connections.SuccessionAsUsage Create(Core.DTO.Systems.Connections.SuccessionAsUsage dto)
+ public static Core.POCO.Systems.Connections.SuccessionAsUsage Create(Core.DTO.Systems.Connections.SuccessionAsUsage dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/SuccessionFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/SuccessionFactory.cs
index d379bb62b..5fcbcf41d 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/SuccessionFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/SuccessionFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class SuccessionFactory
+ public static class SuccessionFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class SuccessionFactory
///
/// thrown when is null
///
- public Core.POCO.Kernel.Connectors.Succession Create(Core.DTO.Kernel.Connectors.Succession dto)
+ public static Core.POCO.Kernel.Connectors.Succession Create(Core.DTO.Kernel.Connectors.Succession dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/SuccessionFlowFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/SuccessionFlowFactory.cs
index 7c799218a..0fb9ed244 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/SuccessionFlowFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/SuccessionFlowFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class SuccessionFlowFactory
+ public static class SuccessionFlowFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class SuccessionFlowFactory
///
/// thrown when is null
///
- public Core.POCO.Kernel.Interactions.SuccessionFlow Create(Core.DTO.Kernel.Interactions.SuccessionFlow dto)
+ public static Core.POCO.Kernel.Interactions.SuccessionFlow Create(Core.DTO.Kernel.Interactions.SuccessionFlow dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/SuccessionFlowUsageFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/SuccessionFlowUsageFactory.cs
index f04e43ba2..14362590e 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/SuccessionFlowUsageFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/SuccessionFlowUsageFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class SuccessionFlowUsageFactory
+ public static class SuccessionFlowUsageFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class SuccessionFlowUsageFactory
///
/// thrown when is null
///
- public Core.POCO.Systems.Flows.SuccessionFlowUsage Create(Core.DTO.Systems.Flows.SuccessionFlowUsage dto)
+ public static Core.POCO.Systems.Flows.SuccessionFlowUsage Create(Core.DTO.Systems.Flows.SuccessionFlowUsage dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/TerminateActionUsageFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/TerminateActionUsageFactory.cs
index b1ce3a2af..bc690f203 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/TerminateActionUsageFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/TerminateActionUsageFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class TerminateActionUsageFactory
+ public static class TerminateActionUsageFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class TerminateActionUsageFactory
///
/// thrown when is null
///
- public Core.POCO.Systems.Actions.TerminateActionUsage Create(Core.DTO.Systems.Actions.TerminateActionUsage dto)
+ public static Core.POCO.Systems.Actions.TerminateActionUsage Create(Core.DTO.Systems.Actions.TerminateActionUsage dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/TextualRepresentationFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/TextualRepresentationFactory.cs
index 261bff532..04b4c6b2f 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/TextualRepresentationFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/TextualRepresentationFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class TextualRepresentationFactory
+ public static class TextualRepresentationFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class TextualRepresentationFactory
///
/// thrown when is null
///
- public Core.POCO.Root.Annotations.TextualRepresentation Create(Core.DTO.Root.Annotations.TextualRepresentation dto)
+ public static Core.POCO.Root.Annotations.TextualRepresentation Create(Core.DTO.Root.Annotations.TextualRepresentation dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/TransitionFeatureMembershipFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/TransitionFeatureMembershipFactory.cs
index 6dc74076e..812f41b48 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/TransitionFeatureMembershipFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/TransitionFeatureMembershipFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class TransitionFeatureMembershipFactory
+ public static class TransitionFeatureMembershipFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class TransitionFeatureMembershipFactory
///
/// thrown when is null
///
- public Core.POCO.Systems.States.TransitionFeatureMembership Create(Core.DTO.Systems.States.TransitionFeatureMembership dto)
+ public static Core.POCO.Systems.States.TransitionFeatureMembership Create(Core.DTO.Systems.States.TransitionFeatureMembership dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/TransitionUsageFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/TransitionUsageFactory.cs
index 83c63405c..32b82c7f4 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/TransitionUsageFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/TransitionUsageFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class TransitionUsageFactory
+ public static class TransitionUsageFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class TransitionUsageFactory
///
/// thrown when is null
///
- public Core.POCO.Systems.States.TransitionUsage Create(Core.DTO.Systems.States.TransitionUsage dto)
+ public static Core.POCO.Systems.States.TransitionUsage Create(Core.DTO.Systems.States.TransitionUsage dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/TriggerInvocationExpressionFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/TriggerInvocationExpressionFactory.cs
index a7b104eee..04b8a803c 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/TriggerInvocationExpressionFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/TriggerInvocationExpressionFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class TriggerInvocationExpressionFactory
+ public static class TriggerInvocationExpressionFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class TriggerInvocationExpressionFactory
///
/// thrown when is null
///
- public Core.POCO.Systems.Actions.TriggerInvocationExpression Create(Core.DTO.Systems.Actions.TriggerInvocationExpression dto)
+ public static Core.POCO.Systems.Actions.TriggerInvocationExpression Create(Core.DTO.Systems.Actions.TriggerInvocationExpression dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/TypeFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/TypeFactory.cs
index deb0bff43..8f336e007 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/TypeFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/TypeFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class TypeFactory
+ public static class TypeFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class TypeFactory
///
/// thrown when is null
///
- public Core.POCO.Core.Types.Type Create(Core.DTO.Core.Types.Type dto)
+ public static Core.POCO.Core.Types.Type Create(Core.DTO.Core.Types.Type dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/TypeFeaturingFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/TypeFeaturingFactory.cs
index 6dc614b63..46a2a6116 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/TypeFeaturingFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/TypeFeaturingFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class TypeFeaturingFactory
+ public static class TypeFeaturingFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class TypeFeaturingFactory
///
/// thrown when is null
///
- public Core.POCO.Core.Features.TypeFeaturing Create(Core.DTO.Core.Features.TypeFeaturing dto)
+ public static Core.POCO.Core.Features.TypeFeaturing Create(Core.DTO.Core.Features.TypeFeaturing dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/UnioningFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/UnioningFactory.cs
index 4849bc3d3..7c53d8273 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/UnioningFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/UnioningFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class UnioningFactory
+ public static class UnioningFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class UnioningFactory
///
/// thrown when is null
///
- public Core.POCO.Core.Types.Unioning Create(Core.DTO.Core.Types.Unioning dto)
+ public static Core.POCO.Core.Types.Unioning Create(Core.DTO.Core.Types.Unioning dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/UsageFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/UsageFactory.cs
index 5f081bd23..63680db83 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/UsageFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/UsageFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class UsageFactory
+ public static class UsageFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class UsageFactory
///
/// thrown when is null
///
- public Core.POCO.Systems.DefinitionAndUsage.Usage Create(Core.DTO.Systems.DefinitionAndUsage.Usage dto)
+ public static Core.POCO.Systems.DefinitionAndUsage.Usage Create(Core.DTO.Systems.DefinitionAndUsage.Usage dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/UseCaseDefinitionFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/UseCaseDefinitionFactory.cs
index 1c032c42c..97b31e36d 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/UseCaseDefinitionFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/UseCaseDefinitionFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class UseCaseDefinitionFactory
+ public static class UseCaseDefinitionFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class UseCaseDefinitionFactory
///
/// thrown when is null
///
- public Core.POCO.Systems.UseCases.UseCaseDefinition Create(Core.DTO.Systems.UseCases.UseCaseDefinition dto)
+ public static Core.POCO.Systems.UseCases.UseCaseDefinition Create(Core.DTO.Systems.UseCases.UseCaseDefinition dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/UseCaseUsageFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/UseCaseUsageFactory.cs
index 647042578..b2621d27c 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/UseCaseUsageFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/UseCaseUsageFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class UseCaseUsageFactory
+ public static class UseCaseUsageFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class UseCaseUsageFactory
///
/// thrown when is null
///
- public Core.POCO.Systems.UseCases.UseCaseUsage Create(Core.DTO.Systems.UseCases.UseCaseUsage dto)
+ public static Core.POCO.Systems.UseCases.UseCaseUsage Create(Core.DTO.Systems.UseCases.UseCaseUsage dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/VariantMembershipFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/VariantMembershipFactory.cs
index bdaf68867..3a5c5b608 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/VariantMembershipFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/VariantMembershipFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class VariantMembershipFactory
+ public static class VariantMembershipFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class VariantMembershipFactory
///
/// thrown when is null
///
- public Core.POCO.Systems.DefinitionAndUsage.VariantMembership Create(Core.DTO.Systems.DefinitionAndUsage.VariantMembership dto)
+ public static Core.POCO.Systems.DefinitionAndUsage.VariantMembership Create(Core.DTO.Systems.DefinitionAndUsage.VariantMembership dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/VerificationCaseDefinitionFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/VerificationCaseDefinitionFactory.cs
index 053c2617d..9af6f52bf 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/VerificationCaseDefinitionFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/VerificationCaseDefinitionFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class VerificationCaseDefinitionFactory
+ public static class VerificationCaseDefinitionFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class VerificationCaseDefinitionFactory
///
/// thrown when is null
///
- public Core.POCO.Systems.VerificationCases.VerificationCaseDefinition Create(Core.DTO.Systems.VerificationCases.VerificationCaseDefinition dto)
+ public static Core.POCO.Systems.VerificationCases.VerificationCaseDefinition Create(Core.DTO.Systems.VerificationCases.VerificationCaseDefinition dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/VerificationCaseUsageFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/VerificationCaseUsageFactory.cs
index 40fad2523..eb88a8945 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/VerificationCaseUsageFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/VerificationCaseUsageFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class VerificationCaseUsageFactory
+ public static class VerificationCaseUsageFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class VerificationCaseUsageFactory
///
/// thrown when is null
///
- public Core.POCO.Systems.VerificationCases.VerificationCaseUsage Create(Core.DTO.Systems.VerificationCases.VerificationCaseUsage dto)
+ public static Core.POCO.Systems.VerificationCases.VerificationCaseUsage Create(Core.DTO.Systems.VerificationCases.VerificationCaseUsage dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/ViewDefinitionFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/ViewDefinitionFactory.cs
index 2159a6440..fd95b87aa 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/ViewDefinitionFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/ViewDefinitionFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class ViewDefinitionFactory
+ public static class ViewDefinitionFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class ViewDefinitionFactory
///
/// thrown when is null
///
- public Core.POCO.Systems.Views.ViewDefinition Create(Core.DTO.Systems.Views.ViewDefinition dto)
+ public static Core.POCO.Systems.Views.ViewDefinition Create(Core.DTO.Systems.Views.ViewDefinition dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/ViewRenderingMembershipFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/ViewRenderingMembershipFactory.cs
index 642b76609..a9b55be14 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/ViewRenderingMembershipFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/ViewRenderingMembershipFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class ViewRenderingMembershipFactory
+ public static class ViewRenderingMembershipFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class ViewRenderingMembershipFactory
///
/// thrown when is null
///
- public Core.POCO.Systems.Views.ViewRenderingMembership Create(Core.DTO.Systems.Views.ViewRenderingMembership dto)
+ public static Core.POCO.Systems.Views.ViewRenderingMembership Create(Core.DTO.Systems.Views.ViewRenderingMembership dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/ViewUsageFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/ViewUsageFactory.cs
index 876e0c6d3..7c9cd9652 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/ViewUsageFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/ViewUsageFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class ViewUsageFactory
+ public static class ViewUsageFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class ViewUsageFactory
///
/// thrown when is null
///
- public Core.POCO.Systems.Views.ViewUsage Create(Core.DTO.Systems.Views.ViewUsage dto)
+ public static Core.POCO.Systems.Views.ViewUsage Create(Core.DTO.Systems.Views.ViewUsage dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/ViewpointDefinitionFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/ViewpointDefinitionFactory.cs
index 3d2f38fc9..eeccd8fdf 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/ViewpointDefinitionFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/ViewpointDefinitionFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class ViewpointDefinitionFactory
+ public static class ViewpointDefinitionFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class ViewpointDefinitionFactory
///
/// thrown when is null
///
- public Core.POCO.Systems.Views.ViewpointDefinition Create(Core.DTO.Systems.Views.ViewpointDefinition dto)
+ public static Core.POCO.Systems.Views.ViewpointDefinition Create(Core.DTO.Systems.Views.ViewpointDefinition dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/ViewpointUsageFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/ViewpointUsageFactory.cs
index fdb77be8b..036e16bd8 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/ViewpointUsageFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/ViewpointUsageFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class ViewpointUsageFactory
+ public static class ViewpointUsageFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class ViewpointUsageFactory
///
/// thrown when is null
///
- public Core.POCO.Systems.Views.ViewpointUsage Create(Core.DTO.Systems.Views.ViewpointUsage dto)
+ public static Core.POCO.Systems.Views.ViewpointUsage Create(Core.DTO.Systems.Views.ViewpointUsage dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenElementFactory/WhileLoopActionUsageFactory.cs b/SysML2.NET.Dal/Core/AutoGenElementFactory/WhileLoopActionUsageFactory.cs
index a25d52469..e629e1ea9 100644
--- a/SysML2.NET.Dal/Core/AutoGenElementFactory/WhileLoopActionUsageFactory.cs
+++ b/SysML2.NET.Dal/Core/AutoGenElementFactory/WhileLoopActionUsageFactory.cs
@@ -30,7 +30,7 @@ namespace SysML2.NET.Dal
/// The purpose of the is to create a new instance of a
/// based on a
///
- public class WhileLoopActionUsageFactory
+ public static class WhileLoopActionUsageFactory
{
///
/// Creates an instance of the and sets the value properties
@@ -45,7 +45,7 @@ public class WhileLoopActionUsageFactory
///
/// thrown when is null
///
- public Core.POCO.Systems.Actions.WhileLoopActionUsage Create(Core.DTO.Systems.Actions.WhileLoopActionUsage dto)
+ public static Core.POCO.Systems.Actions.WhileLoopActionUsage Create(Core.DTO.Systems.Actions.WhileLoopActionUsage dto)
{
if (dto == null)
{
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/AcceptActionUsageExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/AcceptActionUsageExtensions.cs
index 89b1fdfe1..36394eb6a 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/AcceptActionUsageExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/AcceptActionUsageExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Systems.Actions;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class AcceptActionUsageExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -117,17 +117,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -177,10 +177,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Actions.Acce
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Systems.Actions.AcceptActionUsage ToDto(this Core.POCO.Systems.Actions.AcceptActionUsage poco)
+ public static Core.DTO.Systems.Actions.AcceptActionUsage ToDto(this Core.POCO.Systems.Actions.AcceptActionUsage poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Systems.Actions.AcceptActionUsage();
@@ -206,6 +209,104 @@ public static Core.DTO.Systems.Actions.AcceptActionUsage ToDto(this Core.POCO.Sy
dto.OwningRelationship = poco.OwningRelationship?.Id;
dto.PortionKind = poco.PortionKind;
+ if (includeDerivedProperties)
+ {
+ dto.actionDefinition = poco.actionDefinition.Select(x => x.Id).ToList();
+ dto.chainingFeature = poco.chainingFeature.Select(x => x.Id).ToList();
+ dto.crossFeature = poco.crossFeature?.Id;
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.directedUsage = poco.directedUsage.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endFeature = poco.endFeature.Select(x => x.Id).ToList();
+ dto.endOwningType = poco.endOwningType?.Id;
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.featureTarget = poco.featureTarget.Id;
+ dto.featuringType = poco.featuringType.Select(x => x.Id).ToList();
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.individualDefinition = poco.individualDefinition?.Id;
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.isReference = poco.isReference;
+ dto.mayTimeVary = poco.mayTimeVary;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.nestedAction = poco.nestedAction.Select(x => x.Id).ToList();
+ dto.nestedAllocation = poco.nestedAllocation.Select(x => x.Id).ToList();
+ dto.nestedAnalysisCase = poco.nestedAnalysisCase.Select(x => x.Id).ToList();
+ dto.nestedAttribute = poco.nestedAttribute.Select(x => x.Id).ToList();
+ dto.nestedCalculation = poco.nestedCalculation.Select(x => x.Id).ToList();
+ dto.nestedCase = poco.nestedCase.Select(x => x.Id).ToList();
+ dto.nestedConcern = poco.nestedConcern.Select(x => x.Id).ToList();
+ dto.nestedConnection = poco.nestedConnection.Select(x => x.Id).ToList();
+ dto.nestedConstraint = poco.nestedConstraint.Select(x => x.Id).ToList();
+ dto.nestedEnumeration = poco.nestedEnumeration.Select(x => x.Id).ToList();
+ dto.nestedFlow = poco.nestedFlow.Select(x => x.Id).ToList();
+ dto.nestedInterface = poco.nestedInterface.Select(x => x.Id).ToList();
+ dto.nestedItem = poco.nestedItem.Select(x => x.Id).ToList();
+ dto.nestedMetadata = poco.nestedMetadata.Select(x => x.Id).ToList();
+ dto.nestedOccurrence = poco.nestedOccurrence.Select(x => x.Id).ToList();
+ dto.nestedPart = poco.nestedPart.Select(x => x.Id).ToList();
+ dto.nestedPort = poco.nestedPort.Select(x => x.Id).ToList();
+ dto.nestedReference = poco.nestedReference.Select(x => x.Id).ToList();
+ dto.nestedRendering = poco.nestedRendering.Select(x => x.Id).ToList();
+ dto.nestedRequirement = poco.nestedRequirement.Select(x => x.Id).ToList();
+ dto.nestedState = poco.nestedState.Select(x => x.Id).ToList();
+ dto.nestedTransition = poco.nestedTransition.Select(x => x.Id).ToList();
+ dto.nestedUsage = poco.nestedUsage.Select(x => x.Id).ToList();
+ dto.nestedUseCase = poco.nestedUseCase.Select(x => x.Id).ToList();
+ dto.nestedVerificationCase = poco.nestedVerificationCase.Select(x => x.Id).ToList();
+ dto.nestedView = poco.nestedView.Select(x => x.Id).ToList();
+ dto.nestedViewpoint = poco.nestedViewpoint.Select(x => x.Id).ToList();
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedCrossSubsetting = poco.ownedCrossSubsetting?.Id;
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureChaining = poco.ownedFeatureChaining.Select(x => x.Id).ToList();
+ dto.ownedFeatureInverting = poco.ownedFeatureInverting.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedRedefinition = poco.ownedRedefinition.Select(x => x.Id).ToList();
+ dto.ownedReferenceSubsetting = poco.ownedReferenceSubsetting?.Id;
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedSubsetting = poco.ownedSubsetting.Select(x => x.Id).ToList();
+ dto.ownedTypeFeaturing = poco.ownedTypeFeaturing.Select(x => x.Id).ToList();
+ dto.ownedTyping = poco.ownedTyping.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningDefinition = poco.owningDefinition?.Id;
+ dto.owningFeatureMembership = poco.owningFeatureMembership?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType?.Id;
+ dto.owningUsage = poco.owningUsage?.Id;
+ dto.parameter = poco.parameter.Select(x => x.Id).ToList();
+ dto.payloadArgument = poco.payloadArgument?.Id;
+ dto.payloadParameter = poco.payloadParameter.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.receiverArgument = poco.receiverArgument?.Id;
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ dto.usage = poco.usage.Select(x => x.Id).ToList();
+ dto.variant = poco.variant.Select(x => x.Id).ToList();
+ dto.variantMembership = poco.variantMembership.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ActionDefinitionExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ActionDefinitionExtensions.cs
index 5d3ddcd59..42d6b7c14 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ActionDefinitionExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ActionDefinitionExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Systems.Actions;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class ActionDefinitionExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -99,17 +99,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -159,10 +159,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Actions.Acti
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Systems.Actions.ActionDefinition ToDto(this Core.POCO.Systems.Actions.ActionDefinition poco)
+ public static Core.DTO.Systems.Actions.ActionDefinition ToDto(this Core.POCO.Systems.Actions.ActionDefinition poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Systems.Actions.ActionDefinition();
@@ -179,6 +182,83 @@ public static Core.DTO.Systems.Actions.ActionDefinition ToDto(this Core.POCO.Sys
dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList();
dto.OwningRelationship = poco.OwningRelationship?.Id;
+ if (includeDerivedProperties)
+ {
+ dto.action = poco.action.Select(x => x.Id).ToList();
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.directedUsage = poco.directedUsage.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endFeature = poco.endFeature.Select(x => x.Id).ToList();
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAction = poco.ownedAction.Select(x => x.Id).ToList();
+ dto.ownedAllocation = poco.ownedAllocation.Select(x => x.Id).ToList();
+ dto.ownedAnalysisCase = poco.ownedAnalysisCase.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedAttribute = poco.ownedAttribute.Select(x => x.Id).ToList();
+ dto.ownedCalculation = poco.ownedCalculation.Select(x => x.Id).ToList();
+ dto.ownedCase = poco.ownedCase.Select(x => x.Id).ToList();
+ dto.ownedConcern = poco.ownedConcern.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedConnection = poco.ownedConnection.Select(x => x.Id).ToList();
+ dto.ownedConstraint = poco.ownedConstraint.Select(x => x.Id).ToList();
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedEnumeration = poco.ownedEnumeration.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedFlow = poco.ownedFlow.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedInterface = poco.ownedInterface.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedItem = poco.ownedItem.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedMetadata = poco.ownedMetadata.Select(x => x.Id).ToList();
+ dto.ownedOccurrence = poco.ownedOccurrence.Select(x => x.Id).ToList();
+ dto.ownedPart = poco.ownedPart.Select(x => x.Id).ToList();
+ dto.ownedPort = poco.ownedPort.Select(x => x.Id).ToList();
+ dto.ownedReference = poco.ownedReference.Select(x => x.Id).ToList();
+ dto.ownedRendering = poco.ownedRendering.Select(x => x.Id).ToList();
+ dto.ownedRequirement = poco.ownedRequirement.Select(x => x.Id).ToList();
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedState = poco.ownedState.Select(x => x.Id).ToList();
+ dto.ownedSubclassification = poco.ownedSubclassification.Select(x => x.Id).ToList();
+ dto.ownedTransition = poco.ownedTransition.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.ownedUsage = poco.ownedUsage.Select(x => x.Id).ToList();
+ dto.ownedUseCase = poco.ownedUseCase.Select(x => x.Id).ToList();
+ dto.ownedVerificationCase = poco.ownedVerificationCase.Select(x => x.Id).ToList();
+ dto.ownedView = poco.ownedView.Select(x => x.Id).ToList();
+ dto.ownedViewpoint = poco.ownedViewpoint.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.parameter = poco.parameter.Select(x => x.Id).ToList();
+ dto.qualifiedName = poco.qualifiedName;
+ dto.shortName = poco.shortName;
+ dto.step = poco.step.Select(x => x.Id).ToList();
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ dto.usage = poco.usage.Select(x => x.Id).ToList();
+ dto.variant = poco.variant.Select(x => x.Id).ToList();
+ dto.variantMembership = poco.variantMembership.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ActionUsageExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ActionUsageExtensions.cs
index f4c24e9c7..cd039bf13 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ActionUsageExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ActionUsageExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Systems.Actions;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class ActionUsageExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -117,17 +117,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -177,10 +177,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Actions.Acti
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Systems.Actions.ActionUsage ToDto(this Core.POCO.Systems.Actions.ActionUsage poco)
+ public static Core.DTO.Systems.Actions.ActionUsage ToDto(this Core.POCO.Systems.Actions.ActionUsage poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Systems.Actions.ActionUsage();
@@ -206,6 +209,101 @@ public static Core.DTO.Systems.Actions.ActionUsage ToDto(this Core.POCO.Systems.
dto.OwningRelationship = poco.OwningRelationship?.Id;
dto.PortionKind = poco.PortionKind;
+ if (includeDerivedProperties)
+ {
+ dto.actionDefinition = poco.actionDefinition.Select(x => x.Id).ToList();
+ dto.chainingFeature = poco.chainingFeature.Select(x => x.Id).ToList();
+ dto.crossFeature = poco.crossFeature?.Id;
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.directedUsage = poco.directedUsage.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endFeature = poco.endFeature.Select(x => x.Id).ToList();
+ dto.endOwningType = poco.endOwningType?.Id;
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.featureTarget = poco.featureTarget.Id;
+ dto.featuringType = poco.featuringType.Select(x => x.Id).ToList();
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.individualDefinition = poco.individualDefinition?.Id;
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.isReference = poco.isReference;
+ dto.mayTimeVary = poco.mayTimeVary;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.nestedAction = poco.nestedAction.Select(x => x.Id).ToList();
+ dto.nestedAllocation = poco.nestedAllocation.Select(x => x.Id).ToList();
+ dto.nestedAnalysisCase = poco.nestedAnalysisCase.Select(x => x.Id).ToList();
+ dto.nestedAttribute = poco.nestedAttribute.Select(x => x.Id).ToList();
+ dto.nestedCalculation = poco.nestedCalculation.Select(x => x.Id).ToList();
+ dto.nestedCase = poco.nestedCase.Select(x => x.Id).ToList();
+ dto.nestedConcern = poco.nestedConcern.Select(x => x.Id).ToList();
+ dto.nestedConnection = poco.nestedConnection.Select(x => x.Id).ToList();
+ dto.nestedConstraint = poco.nestedConstraint.Select(x => x.Id).ToList();
+ dto.nestedEnumeration = poco.nestedEnumeration.Select(x => x.Id).ToList();
+ dto.nestedFlow = poco.nestedFlow.Select(x => x.Id).ToList();
+ dto.nestedInterface = poco.nestedInterface.Select(x => x.Id).ToList();
+ dto.nestedItem = poco.nestedItem.Select(x => x.Id).ToList();
+ dto.nestedMetadata = poco.nestedMetadata.Select(x => x.Id).ToList();
+ dto.nestedOccurrence = poco.nestedOccurrence.Select(x => x.Id).ToList();
+ dto.nestedPart = poco.nestedPart.Select(x => x.Id).ToList();
+ dto.nestedPort = poco.nestedPort.Select(x => x.Id).ToList();
+ dto.nestedReference = poco.nestedReference.Select(x => x.Id).ToList();
+ dto.nestedRendering = poco.nestedRendering.Select(x => x.Id).ToList();
+ dto.nestedRequirement = poco.nestedRequirement.Select(x => x.Id).ToList();
+ dto.nestedState = poco.nestedState.Select(x => x.Id).ToList();
+ dto.nestedTransition = poco.nestedTransition.Select(x => x.Id).ToList();
+ dto.nestedUsage = poco.nestedUsage.Select(x => x.Id).ToList();
+ dto.nestedUseCase = poco.nestedUseCase.Select(x => x.Id).ToList();
+ dto.nestedVerificationCase = poco.nestedVerificationCase.Select(x => x.Id).ToList();
+ dto.nestedView = poco.nestedView.Select(x => x.Id).ToList();
+ dto.nestedViewpoint = poco.nestedViewpoint.Select(x => x.Id).ToList();
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedCrossSubsetting = poco.ownedCrossSubsetting?.Id;
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureChaining = poco.ownedFeatureChaining.Select(x => x.Id).ToList();
+ dto.ownedFeatureInverting = poco.ownedFeatureInverting.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedRedefinition = poco.ownedRedefinition.Select(x => x.Id).ToList();
+ dto.ownedReferenceSubsetting = poco.ownedReferenceSubsetting?.Id;
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedSubsetting = poco.ownedSubsetting.Select(x => x.Id).ToList();
+ dto.ownedTypeFeaturing = poco.ownedTypeFeaturing.Select(x => x.Id).ToList();
+ dto.ownedTyping = poco.ownedTyping.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningDefinition = poco.owningDefinition?.Id;
+ dto.owningFeatureMembership = poco.owningFeatureMembership?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType?.Id;
+ dto.owningUsage = poco.owningUsage?.Id;
+ dto.parameter = poco.parameter.Select(x => x.Id).ToList();
+ dto.qualifiedName = poco.qualifiedName;
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ dto.usage = poco.usage.Select(x => x.Id).ToList();
+ dto.variant = poco.variant.Select(x => x.Id).ToList();
+ dto.variantMembership = poco.variantMembership.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ActorMembershipExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ActorMembershipExtensions.cs
index 1d031e1e1..7d51a4ae7 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ActorMembershipExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ActorMembershipExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Systems.Requirements;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class ActorMembershipExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -104,17 +104,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -143,7 +143,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Requirements
{
if (cache.TryGetValue(identifier, out lazyPoco))
{
- poco.OwnedRelatedElement.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value);
+ poco.OwnedRelatedElement.Add(lazyPoco.Value);
}
}
@@ -159,7 +159,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Requirements
if (dto.OwningRelatedElement.HasValue && cache.TryGetValue(dto.OwningRelatedElement.Value, out lazyPoco))
{
- poco.OwningRelatedElement = (Core.POCO.Root.Elements.IElement)lazyPoco.Value;
+ poco.OwningRelatedElement = lazyPoco.Value;
}
else
{
@@ -183,10 +183,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Requirements
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Systems.Requirements.ActorMembership ToDto(this Core.POCO.Systems.Requirements.ActorMembership poco)
+ public static Core.DTO.Systems.Requirements.ActorMembership ToDto(this Core.POCO.Systems.Requirements.ActorMembership poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Systems.Requirements.ActorMembership();
@@ -203,6 +206,27 @@ public static Core.DTO.Systems.Requirements.ActorMembership ToDto(this Core.POCO
dto.OwningRelationship = poco.OwningRelationship?.Id;
dto.Visibility = poco.Visibility;
+ if (includeDerivedProperties)
+ {
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.name = poco.name;
+ dto.ownedActorParameter = poco.ownedActorParameter.Id;
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedMemberElementId = poco.ownedMemberElementId;
+ dto.ownedMemberName = poco.ownedMemberName;
+ dto.ownedMemberShortName = poco.ownedMemberShortName;
+ dto.owner = poco.owner?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.relatedElement = poco.relatedElement.Select(x => x.Id).ToList();
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/AllocationDefinitionExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/AllocationDefinitionExtensions.cs
index 507522316..482d89e02 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/AllocationDefinitionExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/AllocationDefinitionExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Systems.Allocations;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class AllocationDefinitionExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -110,17 +110,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -149,7 +149,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Allocations.
{
if (cache.TryGetValue(identifier, out lazyPoco))
{
- poco.OwnedRelatedElement.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value);
+ poco.OwnedRelatedElement.Add(lazyPoco.Value);
}
}
@@ -165,7 +165,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Allocations.
if (dto.OwningRelatedElement.HasValue && cache.TryGetValue(dto.OwningRelatedElement.Value, out lazyPoco))
{
- poco.OwningRelatedElement = (Core.POCO.Root.Elements.IElement)lazyPoco.Value;
+ poco.OwningRelatedElement = lazyPoco.Value;
}
else
{
@@ -189,10 +189,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Allocations.
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Systems.Allocations.AllocationDefinition ToDto(this Core.POCO.Systems.Allocations.AllocationDefinition poco)
+ public static Core.DTO.Systems.Allocations.AllocationDefinition ToDto(this Core.POCO.Systems.Allocations.AllocationDefinition poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Systems.Allocations.AllocationDefinition();
@@ -212,6 +215,85 @@ public static Core.DTO.Systems.Allocations.AllocationDefinition ToDto(this Core.
dto.OwningRelatedElement = poco.OwningRelatedElement?.Id;
dto.OwningRelationship = poco.OwningRelationship?.Id;
+ if (includeDerivedProperties)
+ {
+ dto.allocation = poco.allocation.Select(x => x.Id).ToList();
+ dto.connectionEnd = poco.connectionEnd.Select(x => x.Id).ToList();
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.directedFeature = poco.directedFeature.Select(x => x.Id).ToList();
+ dto.directedUsage = poco.directedUsage.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAction = poco.ownedAction.Select(x => x.Id).ToList();
+ dto.ownedAllocation = poco.ownedAllocation.Select(x => x.Id).ToList();
+ dto.ownedAnalysisCase = poco.ownedAnalysisCase.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedAttribute = poco.ownedAttribute.Select(x => x.Id).ToList();
+ dto.ownedCalculation = poco.ownedCalculation.Select(x => x.Id).ToList();
+ dto.ownedCase = poco.ownedCase.Select(x => x.Id).ToList();
+ dto.ownedConcern = poco.ownedConcern.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedConnection = poco.ownedConnection.Select(x => x.Id).ToList();
+ dto.ownedConstraint = poco.ownedConstraint.Select(x => x.Id).ToList();
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedEnumeration = poco.ownedEnumeration.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedFlow = poco.ownedFlow.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedInterface = poco.ownedInterface.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedItem = poco.ownedItem.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedMetadata = poco.ownedMetadata.Select(x => x.Id).ToList();
+ dto.ownedOccurrence = poco.ownedOccurrence.Select(x => x.Id).ToList();
+ dto.ownedPart = poco.ownedPart.Select(x => x.Id).ToList();
+ dto.ownedPort = poco.ownedPort.Select(x => x.Id).ToList();
+ dto.ownedReference = poco.ownedReference.Select(x => x.Id).ToList();
+ dto.ownedRendering = poco.ownedRendering.Select(x => x.Id).ToList();
+ dto.ownedRequirement = poco.ownedRequirement.Select(x => x.Id).ToList();
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedState = poco.ownedState.Select(x => x.Id).ToList();
+ dto.ownedSubclassification = poco.ownedSubclassification.Select(x => x.Id).ToList();
+ dto.ownedTransition = poco.ownedTransition.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.ownedUsage = poco.ownedUsage.Select(x => x.Id).ToList();
+ dto.ownedUseCase = poco.ownedUseCase.Select(x => x.Id).ToList();
+ dto.ownedVerificationCase = poco.ownedVerificationCase.Select(x => x.Id).ToList();
+ dto.ownedView = poco.ownedView.Select(x => x.Id).ToList();
+ dto.ownedViewpoint = poco.ownedViewpoint.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.relatedType = poco.relatedType.Select(x => x.Id).ToList();
+ dto.shortName = poco.shortName;
+ dto.sourceType = poco.sourceType?.Id;
+ dto.targetType = poco.targetType.Select(x => x.Id).ToList();
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ dto.usage = poco.usage.Select(x => x.Id).ToList();
+ dto.variant = poco.variant.Select(x => x.Id).ToList();
+ dto.variantMembership = poco.variantMembership.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/AllocationUsageExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/AllocationUsageExtensions.cs
index 011b8f244..44058e837 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/AllocationUsageExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/AllocationUsageExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Systems.Allocations;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class AllocationUsageExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -128,17 +128,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -167,7 +167,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Allocations.
{
if (cache.TryGetValue(identifier, out lazyPoco))
{
- poco.OwnedRelatedElement.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value);
+ poco.OwnedRelatedElement.Add(lazyPoco.Value);
}
}
@@ -183,7 +183,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Allocations.
if (dto.OwningRelatedElement.HasValue && cache.TryGetValue(dto.OwningRelatedElement.Value, out lazyPoco))
{
- poco.OwningRelatedElement = (Core.POCO.Root.Elements.IElement)lazyPoco.Value;
+ poco.OwningRelatedElement = lazyPoco.Value;
}
else
{
@@ -207,10 +207,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Allocations.
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Systems.Allocations.AllocationUsage ToDto(this Core.POCO.Systems.Allocations.AllocationUsage poco)
+ public static Core.DTO.Systems.Allocations.AllocationUsage ToDto(this Core.POCO.Systems.Allocations.AllocationUsage poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Systems.Allocations.AllocationUsage();
@@ -239,6 +242,108 @@ public static Core.DTO.Systems.Allocations.AllocationUsage ToDto(this Core.POCO.
dto.OwningRelationship = poco.OwningRelationship?.Id;
dto.PortionKind = poco.PortionKind;
+ if (includeDerivedProperties)
+ {
+ dto.allocationDefinition = poco.allocationDefinition.Select(x => x.Id).ToList();
+ dto.chainingFeature = poco.chainingFeature.Select(x => x.Id).ToList();
+ dto.connectorEnd = poco.connectorEnd.Select(x => x.Id).ToList();
+ dto.crossFeature = poco.crossFeature?.Id;
+ dto.defaultFeaturingType = poco.defaultFeaturingType?.Id;
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.directedFeature = poco.directedFeature.Select(x => x.Id).ToList();
+ dto.directedUsage = poco.directedUsage.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endOwningType = poco.endOwningType?.Id;
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.featureTarget = poco.featureTarget.Id;
+ dto.featuringType = poco.featuringType.Select(x => x.Id).ToList();
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.individualDefinition = poco.individualDefinition?.Id;
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.isReference = poco.isReference;
+ dto.itemDefinition = poco.itemDefinition.Select(x => x.Id).ToList();
+ dto.mayTimeVary = poco.mayTimeVary;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.nestedAction = poco.nestedAction.Select(x => x.Id).ToList();
+ dto.nestedAllocation = poco.nestedAllocation.Select(x => x.Id).ToList();
+ dto.nestedAnalysisCase = poco.nestedAnalysisCase.Select(x => x.Id).ToList();
+ dto.nestedAttribute = poco.nestedAttribute.Select(x => x.Id).ToList();
+ dto.nestedCalculation = poco.nestedCalculation.Select(x => x.Id).ToList();
+ dto.nestedCase = poco.nestedCase.Select(x => x.Id).ToList();
+ dto.nestedConcern = poco.nestedConcern.Select(x => x.Id).ToList();
+ dto.nestedConnection = poco.nestedConnection.Select(x => x.Id).ToList();
+ dto.nestedConstraint = poco.nestedConstraint.Select(x => x.Id).ToList();
+ dto.nestedEnumeration = poco.nestedEnumeration.Select(x => x.Id).ToList();
+ dto.nestedFlow = poco.nestedFlow.Select(x => x.Id).ToList();
+ dto.nestedInterface = poco.nestedInterface.Select(x => x.Id).ToList();
+ dto.nestedItem = poco.nestedItem.Select(x => x.Id).ToList();
+ dto.nestedMetadata = poco.nestedMetadata.Select(x => x.Id).ToList();
+ dto.nestedOccurrence = poco.nestedOccurrence.Select(x => x.Id).ToList();
+ dto.nestedPart = poco.nestedPart.Select(x => x.Id).ToList();
+ dto.nestedPort = poco.nestedPort.Select(x => x.Id).ToList();
+ dto.nestedReference = poco.nestedReference.Select(x => x.Id).ToList();
+ dto.nestedRendering = poco.nestedRendering.Select(x => x.Id).ToList();
+ dto.nestedRequirement = poco.nestedRequirement.Select(x => x.Id).ToList();
+ dto.nestedState = poco.nestedState.Select(x => x.Id).ToList();
+ dto.nestedTransition = poco.nestedTransition.Select(x => x.Id).ToList();
+ dto.nestedUsage = poco.nestedUsage.Select(x => x.Id).ToList();
+ dto.nestedUseCase = poco.nestedUseCase.Select(x => x.Id).ToList();
+ dto.nestedVerificationCase = poco.nestedVerificationCase.Select(x => x.Id).ToList();
+ dto.nestedView = poco.nestedView.Select(x => x.Id).ToList();
+ dto.nestedViewpoint = poco.nestedViewpoint.Select(x => x.Id).ToList();
+ dto.occurrenceDefinition = poco.occurrenceDefinition.Select(x => x.Id).ToList();
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedCrossSubsetting = poco.ownedCrossSubsetting?.Id;
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureChaining = poco.ownedFeatureChaining.Select(x => x.Id).ToList();
+ dto.ownedFeatureInverting = poco.ownedFeatureInverting.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedRedefinition = poco.ownedRedefinition.Select(x => x.Id).ToList();
+ dto.ownedReferenceSubsetting = poco.ownedReferenceSubsetting?.Id;
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedSubsetting = poco.ownedSubsetting.Select(x => x.Id).ToList();
+ dto.ownedTypeFeaturing = poco.ownedTypeFeaturing.Select(x => x.Id).ToList();
+ dto.ownedTyping = poco.ownedTyping.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningDefinition = poco.owningDefinition?.Id;
+ dto.owningFeatureMembership = poco.owningFeatureMembership?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType?.Id;
+ dto.owningUsage = poco.owningUsage?.Id;
+ dto.partDefinition = poco.partDefinition.Select(x => x.Id).ToList();
+ dto.qualifiedName = poco.qualifiedName;
+ dto.relatedFeature = poco.relatedFeature.Select(x => x.Id).ToList();
+ dto.shortName = poco.shortName;
+ dto.sourceFeature = poco.sourceFeature?.Id;
+ dto.targetFeature = poco.targetFeature.Select(x => x.Id).ToList();
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ dto.usage = poco.usage.Select(x => x.Id).ToList();
+ dto.variant = poco.variant.Select(x => x.Id).ToList();
+ dto.variantMembership = poco.variantMembership.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/AnalysisCaseDefinitionExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/AnalysisCaseDefinitionExtensions.cs
index 5ada24a13..23a721174 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/AnalysisCaseDefinitionExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/AnalysisCaseDefinitionExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Systems.AnalysisCases;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class AnalysisCaseDefinitionExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -99,17 +99,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -159,10 +159,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.AnalysisCase
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Systems.AnalysisCases.AnalysisCaseDefinition ToDto(this Core.POCO.Systems.AnalysisCases.AnalysisCaseDefinition poco)
+ public static Core.DTO.Systems.AnalysisCases.AnalysisCaseDefinition ToDto(this Core.POCO.Systems.AnalysisCases.AnalysisCaseDefinition poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Systems.AnalysisCases.AnalysisCaseDefinition();
@@ -179,6 +182,91 @@ public static Core.DTO.Systems.AnalysisCases.AnalysisCaseDefinition ToDto(this C
dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList();
dto.OwningRelationship = poco.OwningRelationship?.Id;
+ if (includeDerivedProperties)
+ {
+ dto.action = poco.action.Select(x => x.Id).ToList();
+ dto.actorParameter = poco.actorParameter.Select(x => x.Id).ToList();
+ dto.calculation = poco.calculation.Select(x => x.Id).ToList();
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.directedUsage = poco.directedUsage.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endFeature = poco.endFeature.Select(x => x.Id).ToList();
+ dto.expression = poco.expression.Select(x => x.Id).ToList();
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.isModelLevelEvaluable = poco.isModelLevelEvaluable;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.objectiveRequirement = poco.objectiveRequirement?.Id;
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAction = poco.ownedAction.Select(x => x.Id).ToList();
+ dto.ownedAllocation = poco.ownedAllocation.Select(x => x.Id).ToList();
+ dto.ownedAnalysisCase = poco.ownedAnalysisCase.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedAttribute = poco.ownedAttribute.Select(x => x.Id).ToList();
+ dto.ownedCalculation = poco.ownedCalculation.Select(x => x.Id).ToList();
+ dto.ownedCase = poco.ownedCase.Select(x => x.Id).ToList();
+ dto.ownedConcern = poco.ownedConcern.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedConnection = poco.ownedConnection.Select(x => x.Id).ToList();
+ dto.ownedConstraint = poco.ownedConstraint.Select(x => x.Id).ToList();
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedEnumeration = poco.ownedEnumeration.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedFlow = poco.ownedFlow.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedInterface = poco.ownedInterface.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedItem = poco.ownedItem.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedMetadata = poco.ownedMetadata.Select(x => x.Id).ToList();
+ dto.ownedOccurrence = poco.ownedOccurrence.Select(x => x.Id).ToList();
+ dto.ownedPart = poco.ownedPart.Select(x => x.Id).ToList();
+ dto.ownedPort = poco.ownedPort.Select(x => x.Id).ToList();
+ dto.ownedReference = poco.ownedReference.Select(x => x.Id).ToList();
+ dto.ownedRendering = poco.ownedRendering.Select(x => x.Id).ToList();
+ dto.ownedRequirement = poco.ownedRequirement.Select(x => x.Id).ToList();
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedState = poco.ownedState.Select(x => x.Id).ToList();
+ dto.ownedSubclassification = poco.ownedSubclassification.Select(x => x.Id).ToList();
+ dto.ownedTransition = poco.ownedTransition.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.ownedUsage = poco.ownedUsage.Select(x => x.Id).ToList();
+ dto.ownedUseCase = poco.ownedUseCase.Select(x => x.Id).ToList();
+ dto.ownedVerificationCase = poco.ownedVerificationCase.Select(x => x.Id).ToList();
+ dto.ownedView = poco.ownedView.Select(x => x.Id).ToList();
+ dto.ownedViewpoint = poco.ownedViewpoint.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.parameter = poco.parameter.Select(x => x.Id).ToList();
+ dto.qualifiedName = poco.qualifiedName;
+ dto.result = poco.result.Id;
+ dto.resultExpression = poco.resultExpression?.Id;
+ dto.shortName = poco.shortName;
+ dto.step = poco.step.Select(x => x.Id).ToList();
+ dto.subjectParameter = poco.subjectParameter.Id;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ dto.usage = poco.usage.Select(x => x.Id).ToList();
+ dto.variant = poco.variant.Select(x => x.Id).ToList();
+ dto.variantMembership = poco.variantMembership.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/AnalysisCaseUsageExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/AnalysisCaseUsageExtensions.cs
index 57169f4c7..c95fa5d5f 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/AnalysisCaseUsageExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/AnalysisCaseUsageExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Systems.AnalysisCases;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class AnalysisCaseUsageExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -117,17 +117,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -177,10 +177,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.AnalysisCase
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Systems.AnalysisCases.AnalysisCaseUsage ToDto(this Core.POCO.Systems.AnalysisCases.AnalysisCaseUsage poco)
+ public static Core.DTO.Systems.AnalysisCases.AnalysisCaseUsage ToDto(this Core.POCO.Systems.AnalysisCases.AnalysisCaseUsage poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Systems.AnalysisCases.AnalysisCaseUsage();
@@ -206,6 +209,107 @@ public static Core.DTO.Systems.AnalysisCases.AnalysisCaseUsage ToDto(this Core.P
dto.OwningRelationship = poco.OwningRelationship?.Id;
dto.PortionKind = poco.PortionKind;
+ if (includeDerivedProperties)
+ {
+ dto.actorParameter = poco.actorParameter.Select(x => x.Id).ToList();
+ dto.analysisCaseDefinition = poco.analysisCaseDefinition?.Id;
+ dto.chainingFeature = poco.chainingFeature.Select(x => x.Id).ToList();
+ dto.crossFeature = poco.crossFeature?.Id;
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.directedUsage = poco.directedUsage.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endFeature = poco.endFeature.Select(x => x.Id).ToList();
+ dto.endOwningType = poco.endOwningType?.Id;
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.featureTarget = poco.featureTarget.Id;
+ dto.featuringType = poco.featuringType.Select(x => x.Id).ToList();
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.individualDefinition = poco.individualDefinition?.Id;
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.isModelLevelEvaluable = poco.isModelLevelEvaluable;
+ dto.isReference = poco.isReference;
+ dto.mayTimeVary = poco.mayTimeVary;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.nestedAction = poco.nestedAction.Select(x => x.Id).ToList();
+ dto.nestedAllocation = poco.nestedAllocation.Select(x => x.Id).ToList();
+ dto.nestedAnalysisCase = poco.nestedAnalysisCase.Select(x => x.Id).ToList();
+ dto.nestedAttribute = poco.nestedAttribute.Select(x => x.Id).ToList();
+ dto.nestedCalculation = poco.nestedCalculation.Select(x => x.Id).ToList();
+ dto.nestedCase = poco.nestedCase.Select(x => x.Id).ToList();
+ dto.nestedConcern = poco.nestedConcern.Select(x => x.Id).ToList();
+ dto.nestedConnection = poco.nestedConnection.Select(x => x.Id).ToList();
+ dto.nestedConstraint = poco.nestedConstraint.Select(x => x.Id).ToList();
+ dto.nestedEnumeration = poco.nestedEnumeration.Select(x => x.Id).ToList();
+ dto.nestedFlow = poco.nestedFlow.Select(x => x.Id).ToList();
+ dto.nestedInterface = poco.nestedInterface.Select(x => x.Id).ToList();
+ dto.nestedItem = poco.nestedItem.Select(x => x.Id).ToList();
+ dto.nestedMetadata = poco.nestedMetadata.Select(x => x.Id).ToList();
+ dto.nestedOccurrence = poco.nestedOccurrence.Select(x => x.Id).ToList();
+ dto.nestedPart = poco.nestedPart.Select(x => x.Id).ToList();
+ dto.nestedPort = poco.nestedPort.Select(x => x.Id).ToList();
+ dto.nestedReference = poco.nestedReference.Select(x => x.Id).ToList();
+ dto.nestedRendering = poco.nestedRendering.Select(x => x.Id).ToList();
+ dto.nestedRequirement = poco.nestedRequirement.Select(x => x.Id).ToList();
+ dto.nestedState = poco.nestedState.Select(x => x.Id).ToList();
+ dto.nestedTransition = poco.nestedTransition.Select(x => x.Id).ToList();
+ dto.nestedUsage = poco.nestedUsage.Select(x => x.Id).ToList();
+ dto.nestedUseCase = poco.nestedUseCase.Select(x => x.Id).ToList();
+ dto.nestedVerificationCase = poco.nestedVerificationCase.Select(x => x.Id).ToList();
+ dto.nestedView = poco.nestedView.Select(x => x.Id).ToList();
+ dto.nestedViewpoint = poco.nestedViewpoint.Select(x => x.Id).ToList();
+ dto.objectiveRequirement = poco.objectiveRequirement?.Id;
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedCrossSubsetting = poco.ownedCrossSubsetting?.Id;
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureChaining = poco.ownedFeatureChaining.Select(x => x.Id).ToList();
+ dto.ownedFeatureInverting = poco.ownedFeatureInverting.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedRedefinition = poco.ownedRedefinition.Select(x => x.Id).ToList();
+ dto.ownedReferenceSubsetting = poco.ownedReferenceSubsetting?.Id;
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedSubsetting = poco.ownedSubsetting.Select(x => x.Id).ToList();
+ dto.ownedTypeFeaturing = poco.ownedTypeFeaturing.Select(x => x.Id).ToList();
+ dto.ownedTyping = poco.ownedTyping.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningDefinition = poco.owningDefinition?.Id;
+ dto.owningFeatureMembership = poco.owningFeatureMembership?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType?.Id;
+ dto.owningUsage = poco.owningUsage?.Id;
+ dto.parameter = poco.parameter.Select(x => x.Id).ToList();
+ dto.qualifiedName = poco.qualifiedName;
+ dto.result = poco.result.Id;
+ dto.resultExpression = poco.resultExpression?.Id;
+ dto.shortName = poco.shortName;
+ dto.subjectParameter = poco.subjectParameter.Id;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ dto.usage = poco.usage.Select(x => x.Id).ToList();
+ dto.variant = poco.variant.Select(x => x.Id).ToList();
+ dto.variantMembership = poco.variantMembership.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/AnnotatingElementExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/AnnotatingElementExtensions.cs
index 2972cfc48..d6c75f9ae 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/AnnotatingElementExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/AnnotatingElementExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Root.Annotations;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class AnnotatingElementExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -91,17 +91,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -151,10 +151,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Root.Annotations.Ann
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Root.Annotations.AnnotatingElement ToDto(this Core.POCO.Root.Annotations.AnnotatingElement poco)
+ public static Core.DTO.Root.Annotations.AnnotatingElement ToDto(this Core.POCO.Root.Annotations.AnnotatingElement poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Root.Annotations.AnnotatingElement();
@@ -167,6 +170,25 @@ public static Core.DTO.Root.Annotations.AnnotatingElement ToDto(this Core.POCO.R
dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList();
dto.OwningRelationship = poco.OwningRelationship?.Id;
+ if (includeDerivedProperties)
+ {
+ dto.annotatedElement = poco.annotatedElement.Select(x => x.Id).ToList();
+ dto.annotation = poco.annotation.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.name = poco.name;
+ dto.ownedAnnotatingRelationship = poco.ownedAnnotatingRelationship.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningAnnotatingRelationship = poco.owningAnnotatingRelationship?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/AnnotationExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/AnnotationExtensions.cs
index 54a7cf068..63859eeb0 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/AnnotationExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/AnnotationExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Root.Annotations;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class AnnotationExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -102,17 +102,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -137,7 +137,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Root.Annotations.Ann
if (cache.TryGetValue(dto.AnnotatedElement, out lazyPoco))
{
- poco.AnnotatedElement = (Core.POCO.Root.Elements.IElement)lazyPoco.Value;
+ poco.AnnotatedElement = lazyPoco.Value;
}
else
{
@@ -150,7 +150,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Root.Annotations.Ann
{
if (cache.TryGetValue(identifier, out lazyPoco))
{
- poco.OwnedRelatedElement.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value);
+ poco.OwnedRelatedElement.Add(lazyPoco.Value);
}
}
@@ -166,7 +166,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Root.Annotations.Ann
if (dto.OwningRelatedElement.HasValue && cache.TryGetValue(dto.OwningRelatedElement.Value, out lazyPoco))
{
- poco.OwningRelatedElement = (Core.POCO.Root.Elements.IElement)lazyPoco.Value;
+ poco.OwningRelatedElement = lazyPoco.Value;
}
else
{
@@ -190,10 +190,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Root.Annotations.Ann
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Root.Annotations.Annotation ToDto(this Core.POCO.Root.Annotations.Annotation poco)
+ public static Core.DTO.Root.Annotations.Annotation ToDto(this Core.POCO.Root.Annotations.Annotation poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Root.Annotations.Annotation();
@@ -210,6 +213,26 @@ public static Core.DTO.Root.Annotations.Annotation ToDto(this Core.POCO.Root.Ann
dto.OwningRelatedElement = poco.OwningRelatedElement?.Id;
dto.OwningRelationship = poco.OwningRelationship?.Id;
+ if (includeDerivedProperties)
+ {
+ dto.annotatingElement = poco.annotatingElement.Id;
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.name = poco.name;
+ dto.ownedAnnotatingElement = poco.ownedAnnotatingElement?.Id;
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningAnnotatedElement = poco.owningAnnotatedElement?.Id;
+ dto.owningAnnotatingElement = poco.owningAnnotatingElement?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.relatedElement = poco.relatedElement.Select(x => x.Id).ToList();
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/AssertConstraintUsageExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/AssertConstraintUsageExtensions.cs
index ca912f5f2..24b3be20f 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/AssertConstraintUsageExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/AssertConstraintUsageExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Systems.Constraints;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class AssertConstraintUsageExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -119,17 +119,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -179,10 +179,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Constraints.
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Systems.Constraints.AssertConstraintUsage ToDto(this Core.POCO.Systems.Constraints.AssertConstraintUsage poco)
+ public static Core.DTO.Systems.Constraints.AssertConstraintUsage ToDto(this Core.POCO.Systems.Constraints.AssertConstraintUsage poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Systems.Constraints.AssertConstraintUsage();
@@ -209,6 +212,105 @@ public static Core.DTO.Systems.Constraints.AssertConstraintUsage ToDto(this Core
dto.OwningRelationship = poco.OwningRelationship?.Id;
dto.PortionKind = poco.PortionKind;
+ if (includeDerivedProperties)
+ {
+ dto.assertedConstraint = poco.assertedConstraint.Id;
+ dto.chainingFeature = poco.chainingFeature.Select(x => x.Id).ToList();
+ dto.constraintDefinition = poco.constraintDefinition?.Id;
+ dto.crossFeature = poco.crossFeature?.Id;
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.directedUsage = poco.directedUsage.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endFeature = poco.endFeature.Select(x => x.Id).ToList();
+ dto.endOwningType = poco.endOwningType?.Id;
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.featureTarget = poco.featureTarget.Id;
+ dto.featuringType = poco.featuringType.Select(x => x.Id).ToList();
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.individualDefinition = poco.individualDefinition?.Id;
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.isModelLevelEvaluable = poco.isModelLevelEvaluable;
+ dto.isReference = poco.isReference;
+ dto.mayTimeVary = poco.mayTimeVary;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.nestedAction = poco.nestedAction.Select(x => x.Id).ToList();
+ dto.nestedAllocation = poco.nestedAllocation.Select(x => x.Id).ToList();
+ dto.nestedAnalysisCase = poco.nestedAnalysisCase.Select(x => x.Id).ToList();
+ dto.nestedAttribute = poco.nestedAttribute.Select(x => x.Id).ToList();
+ dto.nestedCalculation = poco.nestedCalculation.Select(x => x.Id).ToList();
+ dto.nestedCase = poco.nestedCase.Select(x => x.Id).ToList();
+ dto.nestedConcern = poco.nestedConcern.Select(x => x.Id).ToList();
+ dto.nestedConnection = poco.nestedConnection.Select(x => x.Id).ToList();
+ dto.nestedConstraint = poco.nestedConstraint.Select(x => x.Id).ToList();
+ dto.nestedEnumeration = poco.nestedEnumeration.Select(x => x.Id).ToList();
+ dto.nestedFlow = poco.nestedFlow.Select(x => x.Id).ToList();
+ dto.nestedInterface = poco.nestedInterface.Select(x => x.Id).ToList();
+ dto.nestedItem = poco.nestedItem.Select(x => x.Id).ToList();
+ dto.nestedMetadata = poco.nestedMetadata.Select(x => x.Id).ToList();
+ dto.nestedOccurrence = poco.nestedOccurrence.Select(x => x.Id).ToList();
+ dto.nestedPart = poco.nestedPart.Select(x => x.Id).ToList();
+ dto.nestedPort = poco.nestedPort.Select(x => x.Id).ToList();
+ dto.nestedReference = poco.nestedReference.Select(x => x.Id).ToList();
+ dto.nestedRendering = poco.nestedRendering.Select(x => x.Id).ToList();
+ dto.nestedRequirement = poco.nestedRequirement.Select(x => x.Id).ToList();
+ dto.nestedState = poco.nestedState.Select(x => x.Id).ToList();
+ dto.nestedTransition = poco.nestedTransition.Select(x => x.Id).ToList();
+ dto.nestedUsage = poco.nestedUsage.Select(x => x.Id).ToList();
+ dto.nestedUseCase = poco.nestedUseCase.Select(x => x.Id).ToList();
+ dto.nestedVerificationCase = poco.nestedVerificationCase.Select(x => x.Id).ToList();
+ dto.nestedView = poco.nestedView.Select(x => x.Id).ToList();
+ dto.nestedViewpoint = poco.nestedViewpoint.Select(x => x.Id).ToList();
+ dto.occurrenceDefinition = poco.occurrenceDefinition.Select(x => x.Id).ToList();
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedCrossSubsetting = poco.ownedCrossSubsetting?.Id;
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureChaining = poco.ownedFeatureChaining.Select(x => x.Id).ToList();
+ dto.ownedFeatureInverting = poco.ownedFeatureInverting.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedRedefinition = poco.ownedRedefinition.Select(x => x.Id).ToList();
+ dto.ownedReferenceSubsetting = poco.ownedReferenceSubsetting?.Id;
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedSubsetting = poco.ownedSubsetting.Select(x => x.Id).ToList();
+ dto.ownedTypeFeaturing = poco.ownedTypeFeaturing.Select(x => x.Id).ToList();
+ dto.ownedTyping = poco.ownedTyping.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningDefinition = poco.owningDefinition?.Id;
+ dto.owningFeatureMembership = poco.owningFeatureMembership?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType?.Id;
+ dto.owningUsage = poco.owningUsage?.Id;
+ dto.parameter = poco.parameter.Select(x => x.Id).ToList();
+ dto.qualifiedName = poco.qualifiedName;
+ dto.result = poco.result.Id;
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ dto.usage = poco.usage.Select(x => x.Id).ToList();
+ dto.variant = poco.variant.Select(x => x.Id).ToList();
+ dto.variantMembership = poco.variantMembership.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/AssignmentActionUsageExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/AssignmentActionUsageExtensions.cs
index c0b01b1eb..e80b2e97a 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/AssignmentActionUsageExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/AssignmentActionUsageExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Systems.Actions;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class AssignmentActionUsageExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -117,17 +117,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -177,10 +177,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Actions.Assi
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Systems.Actions.AssignmentActionUsage ToDto(this Core.POCO.Systems.Actions.AssignmentActionUsage poco)
+ public static Core.DTO.Systems.Actions.AssignmentActionUsage ToDto(this Core.POCO.Systems.Actions.AssignmentActionUsage poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Systems.Actions.AssignmentActionUsage();
@@ -206,6 +209,104 @@ public static Core.DTO.Systems.Actions.AssignmentActionUsage ToDto(this Core.POC
dto.OwningRelationship = poco.OwningRelationship?.Id;
dto.PortionKind = poco.PortionKind;
+ if (includeDerivedProperties)
+ {
+ dto.actionDefinition = poco.actionDefinition.Select(x => x.Id).ToList();
+ dto.chainingFeature = poco.chainingFeature.Select(x => x.Id).ToList();
+ dto.crossFeature = poco.crossFeature?.Id;
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.directedUsage = poco.directedUsage.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endFeature = poco.endFeature.Select(x => x.Id).ToList();
+ dto.endOwningType = poco.endOwningType?.Id;
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.featureTarget = poco.featureTarget.Id;
+ dto.featuringType = poco.featuringType.Select(x => x.Id).ToList();
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.individualDefinition = poco.individualDefinition?.Id;
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.isReference = poco.isReference;
+ dto.mayTimeVary = poco.mayTimeVary;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.nestedAction = poco.nestedAction.Select(x => x.Id).ToList();
+ dto.nestedAllocation = poco.nestedAllocation.Select(x => x.Id).ToList();
+ dto.nestedAnalysisCase = poco.nestedAnalysisCase.Select(x => x.Id).ToList();
+ dto.nestedAttribute = poco.nestedAttribute.Select(x => x.Id).ToList();
+ dto.nestedCalculation = poco.nestedCalculation.Select(x => x.Id).ToList();
+ dto.nestedCase = poco.nestedCase.Select(x => x.Id).ToList();
+ dto.nestedConcern = poco.nestedConcern.Select(x => x.Id).ToList();
+ dto.nestedConnection = poco.nestedConnection.Select(x => x.Id).ToList();
+ dto.nestedConstraint = poco.nestedConstraint.Select(x => x.Id).ToList();
+ dto.nestedEnumeration = poco.nestedEnumeration.Select(x => x.Id).ToList();
+ dto.nestedFlow = poco.nestedFlow.Select(x => x.Id).ToList();
+ dto.nestedInterface = poco.nestedInterface.Select(x => x.Id).ToList();
+ dto.nestedItem = poco.nestedItem.Select(x => x.Id).ToList();
+ dto.nestedMetadata = poco.nestedMetadata.Select(x => x.Id).ToList();
+ dto.nestedOccurrence = poco.nestedOccurrence.Select(x => x.Id).ToList();
+ dto.nestedPart = poco.nestedPart.Select(x => x.Id).ToList();
+ dto.nestedPort = poco.nestedPort.Select(x => x.Id).ToList();
+ dto.nestedReference = poco.nestedReference.Select(x => x.Id).ToList();
+ dto.nestedRendering = poco.nestedRendering.Select(x => x.Id).ToList();
+ dto.nestedRequirement = poco.nestedRequirement.Select(x => x.Id).ToList();
+ dto.nestedState = poco.nestedState.Select(x => x.Id).ToList();
+ dto.nestedTransition = poco.nestedTransition.Select(x => x.Id).ToList();
+ dto.nestedUsage = poco.nestedUsage.Select(x => x.Id).ToList();
+ dto.nestedUseCase = poco.nestedUseCase.Select(x => x.Id).ToList();
+ dto.nestedVerificationCase = poco.nestedVerificationCase.Select(x => x.Id).ToList();
+ dto.nestedView = poco.nestedView.Select(x => x.Id).ToList();
+ dto.nestedViewpoint = poco.nestedViewpoint.Select(x => x.Id).ToList();
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedCrossSubsetting = poco.ownedCrossSubsetting?.Id;
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureChaining = poco.ownedFeatureChaining.Select(x => x.Id).ToList();
+ dto.ownedFeatureInverting = poco.ownedFeatureInverting.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedRedefinition = poco.ownedRedefinition.Select(x => x.Id).ToList();
+ dto.ownedReferenceSubsetting = poco.ownedReferenceSubsetting?.Id;
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedSubsetting = poco.ownedSubsetting.Select(x => x.Id).ToList();
+ dto.ownedTypeFeaturing = poco.ownedTypeFeaturing.Select(x => x.Id).ToList();
+ dto.ownedTyping = poco.ownedTyping.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningDefinition = poco.owningDefinition?.Id;
+ dto.owningFeatureMembership = poco.owningFeatureMembership?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType?.Id;
+ dto.owningUsage = poco.owningUsage?.Id;
+ dto.parameter = poco.parameter.Select(x => x.Id).ToList();
+ dto.qualifiedName = poco.qualifiedName;
+ dto.referent = poco.referent.Id;
+ dto.shortName = poco.shortName;
+ dto.targetArgument = poco.targetArgument?.Id;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ dto.usage = poco.usage.Select(x => x.Id).ToList();
+ dto.valueExpression = poco.valueExpression?.Id;
+ dto.variant = poco.variant.Select(x => x.Id).ToList();
+ dto.variantMembership = poco.variantMembership.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/AssociationExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/AssociationExtensions.cs
index b3322d3d0..3f9739591 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/AssociationExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/AssociationExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Kernel.Associations;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class AssociationExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -106,17 +106,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -145,7 +145,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.Associations.
{
if (cache.TryGetValue(identifier, out lazyPoco))
{
- poco.OwnedRelatedElement.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value);
+ poco.OwnedRelatedElement.Add(lazyPoco.Value);
}
}
@@ -161,7 +161,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.Associations.
if (dto.OwningRelatedElement.HasValue && cache.TryGetValue(dto.OwningRelatedElement.Value, out lazyPoco))
{
- poco.OwningRelatedElement = (Core.POCO.Root.Elements.IElement)lazyPoco.Value;
+ poco.OwningRelatedElement = lazyPoco.Value;
}
else
{
@@ -185,10 +185,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.Associations.
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Kernel.Associations.Association ToDto(this Core.POCO.Kernel.Associations.Association poco)
+ public static Core.DTO.Kernel.Associations.Association ToDto(this Core.POCO.Kernel.Associations.Association poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Kernel.Associations.Association();
@@ -206,6 +209,53 @@ public static Core.DTO.Kernel.Associations.Association ToDto(this Core.POCO.Kern
dto.OwningRelatedElement = poco.OwningRelatedElement?.Id;
dto.OwningRelationship = poco.OwningRelationship?.Id;
+ if (includeDerivedProperties)
+ {
+ dto.associationEnd = poco.associationEnd.Select(x => x.Id).ToList();
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.directedFeature = poco.directedFeature.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedSubclassification = poco.ownedSubclassification.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.relatedType = poco.relatedType.Select(x => x.Id).ToList();
+ dto.shortName = poco.shortName;
+ dto.sourceType = poco.sourceType?.Id;
+ dto.targetType = poco.targetType.Select(x => x.Id).ToList();
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/AssociationStructureExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/AssociationStructureExtensions.cs
index 375ec967c..4674199b2 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/AssociationStructureExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/AssociationStructureExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Kernel.Associations;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class AssociationStructureExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -106,17 +106,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -145,7 +145,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.Associations.
{
if (cache.TryGetValue(identifier, out lazyPoco))
{
- poco.OwnedRelatedElement.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value);
+ poco.OwnedRelatedElement.Add(lazyPoco.Value);
}
}
@@ -161,7 +161,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.Associations.
if (dto.OwningRelatedElement.HasValue && cache.TryGetValue(dto.OwningRelatedElement.Value, out lazyPoco))
{
- poco.OwningRelatedElement = (Core.POCO.Root.Elements.IElement)lazyPoco.Value;
+ poco.OwningRelatedElement = lazyPoco.Value;
}
else
{
@@ -185,10 +185,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.Associations.
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Kernel.Associations.AssociationStructure ToDto(this Core.POCO.Kernel.Associations.AssociationStructure poco)
+ public static Core.DTO.Kernel.Associations.AssociationStructure ToDto(this Core.POCO.Kernel.Associations.AssociationStructure poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Kernel.Associations.AssociationStructure();
@@ -206,6 +209,53 @@ public static Core.DTO.Kernel.Associations.AssociationStructure ToDto(this Core.
dto.OwningRelatedElement = poco.OwningRelatedElement?.Id;
dto.OwningRelationship = poco.OwningRelationship?.Id;
+ if (includeDerivedProperties)
+ {
+ dto.associationEnd = poco.associationEnd.Select(x => x.Id).ToList();
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.directedFeature = poco.directedFeature.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedSubclassification = poco.ownedSubclassification.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.relatedType = poco.relatedType.Select(x => x.Id).ToList();
+ dto.shortName = poco.shortName;
+ dto.sourceType = poco.sourceType?.Id;
+ dto.targetType = poco.targetType.Select(x => x.Id).ToList();
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/AttributeDefinitionExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/AttributeDefinitionExtensions.cs
index 4e772abf0..a2f844eb7 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/AttributeDefinitionExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/AttributeDefinitionExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Systems.Attributes;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class AttributeDefinitionExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -97,17 +97,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -157,10 +157,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Attributes.A
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Systems.Attributes.AttributeDefinition ToDto(this Core.POCO.Systems.Attributes.AttributeDefinition poco)
+ public static Core.DTO.Systems.Attributes.AttributeDefinition ToDto(this Core.POCO.Systems.Attributes.AttributeDefinition poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Systems.Attributes.AttributeDefinition();
@@ -176,6 +179,81 @@ public static Core.DTO.Systems.Attributes.AttributeDefinition ToDto(this Core.PO
dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList();
dto.OwningRelationship = poco.OwningRelationship?.Id;
+ if (includeDerivedProperties)
+ {
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.directedFeature = poco.directedFeature.Select(x => x.Id).ToList();
+ dto.directedUsage = poco.directedUsage.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endFeature = poco.endFeature.Select(x => x.Id).ToList();
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAction = poco.ownedAction.Select(x => x.Id).ToList();
+ dto.ownedAllocation = poco.ownedAllocation.Select(x => x.Id).ToList();
+ dto.ownedAnalysisCase = poco.ownedAnalysisCase.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedAttribute = poco.ownedAttribute.Select(x => x.Id).ToList();
+ dto.ownedCalculation = poco.ownedCalculation.Select(x => x.Id).ToList();
+ dto.ownedCase = poco.ownedCase.Select(x => x.Id).ToList();
+ dto.ownedConcern = poco.ownedConcern.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedConnection = poco.ownedConnection.Select(x => x.Id).ToList();
+ dto.ownedConstraint = poco.ownedConstraint.Select(x => x.Id).ToList();
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedEnumeration = poco.ownedEnumeration.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedFlow = poco.ownedFlow.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedInterface = poco.ownedInterface.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedItem = poco.ownedItem.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedMetadata = poco.ownedMetadata.Select(x => x.Id).ToList();
+ dto.ownedOccurrence = poco.ownedOccurrence.Select(x => x.Id).ToList();
+ dto.ownedPart = poco.ownedPart.Select(x => x.Id).ToList();
+ dto.ownedPort = poco.ownedPort.Select(x => x.Id).ToList();
+ dto.ownedReference = poco.ownedReference.Select(x => x.Id).ToList();
+ dto.ownedRendering = poco.ownedRendering.Select(x => x.Id).ToList();
+ dto.ownedRequirement = poco.ownedRequirement.Select(x => x.Id).ToList();
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedState = poco.ownedState.Select(x => x.Id).ToList();
+ dto.ownedSubclassification = poco.ownedSubclassification.Select(x => x.Id).ToList();
+ dto.ownedTransition = poco.ownedTransition.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.ownedUsage = poco.ownedUsage.Select(x => x.Id).ToList();
+ dto.ownedUseCase = poco.ownedUseCase.Select(x => x.Id).ToList();
+ dto.ownedVerificationCase = poco.ownedVerificationCase.Select(x => x.Id).ToList();
+ dto.ownedView = poco.ownedView.Select(x => x.Id).ToList();
+ dto.ownedViewpoint = poco.ownedViewpoint.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ dto.usage = poco.usage.Select(x => x.Id).ToList();
+ dto.variant = poco.variant.Select(x => x.Id).ToList();
+ dto.variantMembership = poco.variantMembership.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/AttributeUsageExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/AttributeUsageExtensions.cs
index 6fc8055f0..0ab175cad 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/AttributeUsageExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/AttributeUsageExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Systems.Attributes;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class AttributeUsageExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -113,17 +113,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -173,10 +173,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Attributes.A
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Systems.Attributes.AttributeUsage ToDto(this Core.POCO.Systems.Attributes.AttributeUsage poco)
+ public static Core.DTO.Systems.Attributes.AttributeUsage ToDto(this Core.POCO.Systems.Attributes.AttributeUsage poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Systems.Attributes.AttributeUsage();
@@ -200,6 +203,100 @@ public static Core.DTO.Systems.Attributes.AttributeUsage ToDto(this Core.POCO.Sy
dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList();
dto.OwningRelationship = poco.OwningRelationship?.Id;
+ if (includeDerivedProperties)
+ {
+ dto.attributeDefinition = poco.attributeDefinition.Select(x => x.Id).ToList();
+ dto.chainingFeature = poco.chainingFeature.Select(x => x.Id).ToList();
+ dto.crossFeature = poco.crossFeature?.Id;
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.directedFeature = poco.directedFeature.Select(x => x.Id).ToList();
+ dto.directedUsage = poco.directedUsage.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endFeature = poco.endFeature.Select(x => x.Id).ToList();
+ dto.endOwningType = poco.endOwningType?.Id;
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.featureTarget = poco.featureTarget.Id;
+ dto.featuringType = poco.featuringType.Select(x => x.Id).ToList();
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.isReference = poco.isReference;
+ dto.mayTimeVary = poco.mayTimeVary;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.nestedAction = poco.nestedAction.Select(x => x.Id).ToList();
+ dto.nestedAllocation = poco.nestedAllocation.Select(x => x.Id).ToList();
+ dto.nestedAnalysisCase = poco.nestedAnalysisCase.Select(x => x.Id).ToList();
+ dto.nestedAttribute = poco.nestedAttribute.Select(x => x.Id).ToList();
+ dto.nestedCalculation = poco.nestedCalculation.Select(x => x.Id).ToList();
+ dto.nestedCase = poco.nestedCase.Select(x => x.Id).ToList();
+ dto.nestedConcern = poco.nestedConcern.Select(x => x.Id).ToList();
+ dto.nestedConnection = poco.nestedConnection.Select(x => x.Id).ToList();
+ dto.nestedConstraint = poco.nestedConstraint.Select(x => x.Id).ToList();
+ dto.nestedEnumeration = poco.nestedEnumeration.Select(x => x.Id).ToList();
+ dto.nestedFlow = poco.nestedFlow.Select(x => x.Id).ToList();
+ dto.nestedInterface = poco.nestedInterface.Select(x => x.Id).ToList();
+ dto.nestedItem = poco.nestedItem.Select(x => x.Id).ToList();
+ dto.nestedMetadata = poco.nestedMetadata.Select(x => x.Id).ToList();
+ dto.nestedOccurrence = poco.nestedOccurrence.Select(x => x.Id).ToList();
+ dto.nestedPart = poco.nestedPart.Select(x => x.Id).ToList();
+ dto.nestedPort = poco.nestedPort.Select(x => x.Id).ToList();
+ dto.nestedReference = poco.nestedReference.Select(x => x.Id).ToList();
+ dto.nestedRendering = poco.nestedRendering.Select(x => x.Id).ToList();
+ dto.nestedRequirement = poco.nestedRequirement.Select(x => x.Id).ToList();
+ dto.nestedState = poco.nestedState.Select(x => x.Id).ToList();
+ dto.nestedTransition = poco.nestedTransition.Select(x => x.Id).ToList();
+ dto.nestedUsage = poco.nestedUsage.Select(x => x.Id).ToList();
+ dto.nestedUseCase = poco.nestedUseCase.Select(x => x.Id).ToList();
+ dto.nestedVerificationCase = poco.nestedVerificationCase.Select(x => x.Id).ToList();
+ dto.nestedView = poco.nestedView.Select(x => x.Id).ToList();
+ dto.nestedViewpoint = poco.nestedViewpoint.Select(x => x.Id).ToList();
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedCrossSubsetting = poco.ownedCrossSubsetting?.Id;
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureChaining = poco.ownedFeatureChaining.Select(x => x.Id).ToList();
+ dto.ownedFeatureInverting = poco.ownedFeatureInverting.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedRedefinition = poco.ownedRedefinition.Select(x => x.Id).ToList();
+ dto.ownedReferenceSubsetting = poco.ownedReferenceSubsetting?.Id;
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedSubsetting = poco.ownedSubsetting.Select(x => x.Id).ToList();
+ dto.ownedTypeFeaturing = poco.ownedTypeFeaturing.Select(x => x.Id).ToList();
+ dto.ownedTyping = poco.ownedTyping.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningDefinition = poco.owningDefinition?.Id;
+ dto.owningFeatureMembership = poco.owningFeatureMembership?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType?.Id;
+ dto.owningUsage = poco.owningUsage?.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ dto.usage = poco.usage.Select(x => x.Id).ToList();
+ dto.variant = poco.variant.Select(x => x.Id).ToList();
+ dto.variantMembership = poco.variantMembership.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/BehaviorExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/BehaviorExtensions.cs
index 6c24bf113..c1ce450dd 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/BehaviorExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/BehaviorExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Kernel.Behaviors;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class BehaviorExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -95,17 +95,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -155,10 +155,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.Behaviors.Beh
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Kernel.Behaviors.Behavior ToDto(this Core.POCO.Kernel.Behaviors.Behavior poco)
+ public static Core.DTO.Kernel.Behaviors.Behavior ToDto(this Core.POCO.Kernel.Behaviors.Behavior poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Kernel.Behaviors.Behavior();
@@ -173,6 +176,51 @@ public static Core.DTO.Kernel.Behaviors.Behavior ToDto(this Core.POCO.Kernel.Beh
dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList();
dto.OwningRelationship = poco.OwningRelationship?.Id;
+ if (includeDerivedProperties)
+ {
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endFeature = poco.endFeature.Select(x => x.Id).ToList();
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedSubclassification = poco.ownedSubclassification.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.parameter = poco.parameter.Select(x => x.Id).ToList();
+ dto.qualifiedName = poco.qualifiedName;
+ dto.shortName = poco.shortName;
+ dto.step = poco.step.Select(x => x.Id).ToList();
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/BindingConnectorAsUsageExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/BindingConnectorAsUsageExtensions.cs
index 2f55d2f4b..466f5a23d 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/BindingConnectorAsUsageExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/BindingConnectorAsUsageExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Systems.Connections;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class BindingConnectorAsUsageExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -124,17 +124,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -163,7 +163,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Connections.
{
if (cache.TryGetValue(identifier, out lazyPoco))
{
- poco.OwnedRelatedElement.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value);
+ poco.OwnedRelatedElement.Add(lazyPoco.Value);
}
}
@@ -179,7 +179,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Connections.
if (dto.OwningRelatedElement.HasValue && cache.TryGetValue(dto.OwningRelatedElement.Value, out lazyPoco))
{
- poco.OwningRelatedElement = (Core.POCO.Root.Elements.IElement)lazyPoco.Value;
+ poco.OwningRelatedElement = lazyPoco.Value;
}
else
{
@@ -203,10 +203,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Connections.
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Systems.Connections.BindingConnectorAsUsage ToDto(this Core.POCO.Systems.Connections.BindingConnectorAsUsage poco)
+ public static Core.DTO.Systems.Connections.BindingConnectorAsUsage ToDto(this Core.POCO.Systems.Connections.BindingConnectorAsUsage poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Systems.Connections.BindingConnectorAsUsage();
@@ -233,6 +236,105 @@ public static Core.DTO.Systems.Connections.BindingConnectorAsUsage ToDto(this Co
dto.OwningRelatedElement = poco.OwningRelatedElement?.Id;
dto.OwningRelationship = poco.OwningRelationship?.Id;
+ if (includeDerivedProperties)
+ {
+ dto.association = poco.association.Select(x => x.Id).ToList();
+ dto.chainingFeature = poco.chainingFeature.Select(x => x.Id).ToList();
+ dto.connectorEnd = poco.connectorEnd.Select(x => x.Id).ToList();
+ dto.crossFeature = poco.crossFeature?.Id;
+ dto.defaultFeaturingType = poco.defaultFeaturingType?.Id;
+ dto.definition = poco.definition.Select(x => x.Id).ToList();
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.directedFeature = poco.directedFeature.Select(x => x.Id).ToList();
+ dto.directedUsage = poco.directedUsage.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endOwningType = poco.endOwningType?.Id;
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.featureTarget = poco.featureTarget.Id;
+ dto.featuringType = poco.featuringType.Select(x => x.Id).ToList();
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.isReference = poco.isReference;
+ dto.mayTimeVary = poco.mayTimeVary;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.nestedAction = poco.nestedAction.Select(x => x.Id).ToList();
+ dto.nestedAllocation = poco.nestedAllocation.Select(x => x.Id).ToList();
+ dto.nestedAnalysisCase = poco.nestedAnalysisCase.Select(x => x.Id).ToList();
+ dto.nestedAttribute = poco.nestedAttribute.Select(x => x.Id).ToList();
+ dto.nestedCalculation = poco.nestedCalculation.Select(x => x.Id).ToList();
+ dto.nestedCase = poco.nestedCase.Select(x => x.Id).ToList();
+ dto.nestedConcern = poco.nestedConcern.Select(x => x.Id).ToList();
+ dto.nestedConnection = poco.nestedConnection.Select(x => x.Id).ToList();
+ dto.nestedConstraint = poco.nestedConstraint.Select(x => x.Id).ToList();
+ dto.nestedEnumeration = poco.nestedEnumeration.Select(x => x.Id).ToList();
+ dto.nestedFlow = poco.nestedFlow.Select(x => x.Id).ToList();
+ dto.nestedInterface = poco.nestedInterface.Select(x => x.Id).ToList();
+ dto.nestedItem = poco.nestedItem.Select(x => x.Id).ToList();
+ dto.nestedMetadata = poco.nestedMetadata.Select(x => x.Id).ToList();
+ dto.nestedOccurrence = poco.nestedOccurrence.Select(x => x.Id).ToList();
+ dto.nestedPart = poco.nestedPart.Select(x => x.Id).ToList();
+ dto.nestedPort = poco.nestedPort.Select(x => x.Id).ToList();
+ dto.nestedReference = poco.nestedReference.Select(x => x.Id).ToList();
+ dto.nestedRendering = poco.nestedRendering.Select(x => x.Id).ToList();
+ dto.nestedRequirement = poco.nestedRequirement.Select(x => x.Id).ToList();
+ dto.nestedState = poco.nestedState.Select(x => x.Id).ToList();
+ dto.nestedTransition = poco.nestedTransition.Select(x => x.Id).ToList();
+ dto.nestedUsage = poco.nestedUsage.Select(x => x.Id).ToList();
+ dto.nestedUseCase = poco.nestedUseCase.Select(x => x.Id).ToList();
+ dto.nestedVerificationCase = poco.nestedVerificationCase.Select(x => x.Id).ToList();
+ dto.nestedView = poco.nestedView.Select(x => x.Id).ToList();
+ dto.nestedViewpoint = poco.nestedViewpoint.Select(x => x.Id).ToList();
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedCrossSubsetting = poco.ownedCrossSubsetting?.Id;
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureChaining = poco.ownedFeatureChaining.Select(x => x.Id).ToList();
+ dto.ownedFeatureInverting = poco.ownedFeatureInverting.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedRedefinition = poco.ownedRedefinition.Select(x => x.Id).ToList();
+ dto.ownedReferenceSubsetting = poco.ownedReferenceSubsetting?.Id;
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedSubsetting = poco.ownedSubsetting.Select(x => x.Id).ToList();
+ dto.ownedTypeFeaturing = poco.ownedTypeFeaturing.Select(x => x.Id).ToList();
+ dto.ownedTyping = poco.ownedTyping.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningDefinition = poco.owningDefinition?.Id;
+ dto.owningFeatureMembership = poco.owningFeatureMembership?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType?.Id;
+ dto.owningUsage = poco.owningUsage?.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.relatedFeature = poco.relatedFeature.Select(x => x.Id).ToList();
+ dto.shortName = poco.shortName;
+ dto.sourceFeature = poco.sourceFeature?.Id;
+ dto.targetFeature = poco.targetFeature.Select(x => x.Id).ToList();
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ dto.usage = poco.usage.Select(x => x.Id).ToList();
+ dto.variant = poco.variant.Select(x => x.Id).ToList();
+ dto.variantMembership = poco.variantMembership.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/BindingConnectorExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/BindingConnectorExtensions.cs
index 57e9e1add..82187c04a 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/BindingConnectorExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/BindingConnectorExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Kernel.Connectors;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class BindingConnectorExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -124,17 +124,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -163,7 +163,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.Connectors.Bi
{
if (cache.TryGetValue(identifier, out lazyPoco))
{
- poco.OwnedRelatedElement.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value);
+ poco.OwnedRelatedElement.Add(lazyPoco.Value);
}
}
@@ -179,7 +179,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.Connectors.Bi
if (dto.OwningRelatedElement.HasValue && cache.TryGetValue(dto.OwningRelatedElement.Value, out lazyPoco))
{
- poco.OwningRelatedElement = (Core.POCO.Root.Elements.IElement)lazyPoco.Value;
+ poco.OwningRelatedElement = lazyPoco.Value;
}
else
{
@@ -203,10 +203,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.Connectors.Bi
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Kernel.Connectors.BindingConnector ToDto(this Core.POCO.Kernel.Connectors.BindingConnector poco)
+ public static Core.DTO.Kernel.Connectors.BindingConnector ToDto(this Core.POCO.Kernel.Connectors.BindingConnector poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Kernel.Connectors.BindingConnector();
@@ -233,6 +236,69 @@ public static Core.DTO.Kernel.Connectors.BindingConnector ToDto(this Core.POCO.K
dto.OwningRelatedElement = poco.OwningRelatedElement?.Id;
dto.OwningRelationship = poco.OwningRelationship?.Id;
+ if (includeDerivedProperties)
+ {
+ dto.association = poco.association.Select(x => x.Id).ToList();
+ dto.chainingFeature = poco.chainingFeature.Select(x => x.Id).ToList();
+ dto.connectorEnd = poco.connectorEnd.Select(x => x.Id).ToList();
+ dto.crossFeature = poco.crossFeature?.Id;
+ dto.defaultFeaturingType = poco.defaultFeaturingType?.Id;
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.directedFeature = poco.directedFeature.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endOwningType = poco.endOwningType?.Id;
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.featureTarget = poco.featureTarget.Id;
+ dto.featuringType = poco.featuringType.Select(x => x.Id).ToList();
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedCrossSubsetting = poco.ownedCrossSubsetting?.Id;
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureChaining = poco.ownedFeatureChaining.Select(x => x.Id).ToList();
+ dto.ownedFeatureInverting = poco.ownedFeatureInverting.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedRedefinition = poco.ownedRedefinition.Select(x => x.Id).ToList();
+ dto.ownedReferenceSubsetting = poco.ownedReferenceSubsetting?.Id;
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedSubsetting = poco.ownedSubsetting.Select(x => x.Id).ToList();
+ dto.ownedTypeFeaturing = poco.ownedTypeFeaturing.Select(x => x.Id).ToList();
+ dto.ownedTyping = poco.ownedTyping.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningFeatureMembership = poco.owningFeatureMembership?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType?.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.relatedFeature = poco.relatedFeature.Select(x => x.Id).ToList();
+ dto.shortName = poco.shortName;
+ dto.sourceFeature = poco.sourceFeature?.Id;
+ dto.targetFeature = poco.targetFeature.Select(x => x.Id).ToList();
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/BooleanExpressionExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/BooleanExpressionExtensions.cs
index da4bcfd04..79af6f799 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/BooleanExpressionExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/BooleanExpressionExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Kernel.Functions;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class BooleanExpressionExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -113,17 +113,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -173,10 +173,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.Functions.Boo
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Kernel.Functions.BooleanExpression ToDto(this Core.POCO.Kernel.Functions.BooleanExpression poco)
+ public static Core.DTO.Kernel.Functions.BooleanExpression ToDto(this Core.POCO.Kernel.Functions.BooleanExpression poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Kernel.Functions.BooleanExpression();
@@ -200,6 +203,68 @@ public static Core.DTO.Kernel.Functions.BooleanExpression ToDto(this Core.POCO.K
dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList();
dto.OwningRelationship = poco.OwningRelationship?.Id;
+ if (includeDerivedProperties)
+ {
+ dto.chainingFeature = poco.chainingFeature.Select(x => x.Id).ToList();
+ dto.crossFeature = poco.crossFeature?.Id;
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endFeature = poco.endFeature.Select(x => x.Id).ToList();
+ dto.endOwningType = poco.endOwningType?.Id;
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.featureTarget = poco.featureTarget.Id;
+ dto.featuringType = poco.featuringType.Select(x => x.Id).ToList();
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.isModelLevelEvaluable = poco.isModelLevelEvaluable;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedCrossSubsetting = poco.ownedCrossSubsetting?.Id;
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureChaining = poco.ownedFeatureChaining.Select(x => x.Id).ToList();
+ dto.ownedFeatureInverting = poco.ownedFeatureInverting.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedRedefinition = poco.ownedRedefinition.Select(x => x.Id).ToList();
+ dto.ownedReferenceSubsetting = poco.ownedReferenceSubsetting?.Id;
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedSubsetting = poco.ownedSubsetting.Select(x => x.Id).ToList();
+ dto.ownedTypeFeaturing = poco.ownedTypeFeaturing.Select(x => x.Id).ToList();
+ dto.ownedTyping = poco.ownedTyping.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningFeatureMembership = poco.owningFeatureMembership?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType?.Id;
+ dto.parameter = poco.parameter.Select(x => x.Id).ToList();
+ dto.predicate = poco.predicate?.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.result = poco.result.Id;
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.type = poco.type.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/CalculationDefinitionExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/CalculationDefinitionExtensions.cs
index 28b65f19c..ed2fc7b48 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/CalculationDefinitionExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/CalculationDefinitionExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Systems.Calculations;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class CalculationDefinitionExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -99,17 +99,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -159,10 +159,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Calculations
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Systems.Calculations.CalculationDefinition ToDto(this Core.POCO.Systems.Calculations.CalculationDefinition poco)
+ public static Core.DTO.Systems.Calculations.CalculationDefinition ToDto(this Core.POCO.Systems.Calculations.CalculationDefinition poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Systems.Calculations.CalculationDefinition();
@@ -179,6 +182,87 @@ public static Core.DTO.Systems.Calculations.CalculationDefinition ToDto(this Cor
dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList();
dto.OwningRelationship = poco.OwningRelationship?.Id;
+ if (includeDerivedProperties)
+ {
+ dto.action = poco.action.Select(x => x.Id).ToList();
+ dto.calculation = poco.calculation.Select(x => x.Id).ToList();
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.directedUsage = poco.directedUsage.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endFeature = poco.endFeature.Select(x => x.Id).ToList();
+ dto.expression = poco.expression.Select(x => x.Id).ToList();
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.isModelLevelEvaluable = poco.isModelLevelEvaluable;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAction = poco.ownedAction.Select(x => x.Id).ToList();
+ dto.ownedAllocation = poco.ownedAllocation.Select(x => x.Id).ToList();
+ dto.ownedAnalysisCase = poco.ownedAnalysisCase.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedAttribute = poco.ownedAttribute.Select(x => x.Id).ToList();
+ dto.ownedCalculation = poco.ownedCalculation.Select(x => x.Id).ToList();
+ dto.ownedCase = poco.ownedCase.Select(x => x.Id).ToList();
+ dto.ownedConcern = poco.ownedConcern.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedConnection = poco.ownedConnection.Select(x => x.Id).ToList();
+ dto.ownedConstraint = poco.ownedConstraint.Select(x => x.Id).ToList();
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedEnumeration = poco.ownedEnumeration.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedFlow = poco.ownedFlow.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedInterface = poco.ownedInterface.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedItem = poco.ownedItem.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedMetadata = poco.ownedMetadata.Select(x => x.Id).ToList();
+ dto.ownedOccurrence = poco.ownedOccurrence.Select(x => x.Id).ToList();
+ dto.ownedPart = poco.ownedPart.Select(x => x.Id).ToList();
+ dto.ownedPort = poco.ownedPort.Select(x => x.Id).ToList();
+ dto.ownedReference = poco.ownedReference.Select(x => x.Id).ToList();
+ dto.ownedRendering = poco.ownedRendering.Select(x => x.Id).ToList();
+ dto.ownedRequirement = poco.ownedRequirement.Select(x => x.Id).ToList();
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedState = poco.ownedState.Select(x => x.Id).ToList();
+ dto.ownedSubclassification = poco.ownedSubclassification.Select(x => x.Id).ToList();
+ dto.ownedTransition = poco.ownedTransition.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.ownedUsage = poco.ownedUsage.Select(x => x.Id).ToList();
+ dto.ownedUseCase = poco.ownedUseCase.Select(x => x.Id).ToList();
+ dto.ownedVerificationCase = poco.ownedVerificationCase.Select(x => x.Id).ToList();
+ dto.ownedView = poco.ownedView.Select(x => x.Id).ToList();
+ dto.ownedViewpoint = poco.ownedViewpoint.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.parameter = poco.parameter.Select(x => x.Id).ToList();
+ dto.qualifiedName = poco.qualifiedName;
+ dto.result = poco.result.Id;
+ dto.shortName = poco.shortName;
+ dto.step = poco.step.Select(x => x.Id).ToList();
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ dto.usage = poco.usage.Select(x => x.Id).ToList();
+ dto.variant = poco.variant.Select(x => x.Id).ToList();
+ dto.variantMembership = poco.variantMembership.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/CalculationUsageExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/CalculationUsageExtensions.cs
index 605cf9c9b..a31959915 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/CalculationUsageExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/CalculationUsageExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Systems.Calculations;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class CalculationUsageExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -117,17 +117,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -177,10 +177,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Calculations
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Systems.Calculations.CalculationUsage ToDto(this Core.POCO.Systems.Calculations.CalculationUsage poco)
+ public static Core.DTO.Systems.Calculations.CalculationUsage ToDto(this Core.POCO.Systems.Calculations.CalculationUsage poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Systems.Calculations.CalculationUsage();
@@ -206,6 +209,103 @@ public static Core.DTO.Systems.Calculations.CalculationUsage ToDto(this Core.POC
dto.OwningRelationship = poco.OwningRelationship?.Id;
dto.PortionKind = poco.PortionKind;
+ if (includeDerivedProperties)
+ {
+ dto.calculationDefinition = poco.calculationDefinition?.Id;
+ dto.chainingFeature = poco.chainingFeature.Select(x => x.Id).ToList();
+ dto.crossFeature = poco.crossFeature?.Id;
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.directedUsage = poco.directedUsage.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endFeature = poco.endFeature.Select(x => x.Id).ToList();
+ dto.endOwningType = poco.endOwningType?.Id;
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.featureTarget = poco.featureTarget.Id;
+ dto.featuringType = poco.featuringType.Select(x => x.Id).ToList();
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.individualDefinition = poco.individualDefinition?.Id;
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.isModelLevelEvaluable = poco.isModelLevelEvaluable;
+ dto.isReference = poco.isReference;
+ dto.mayTimeVary = poco.mayTimeVary;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.nestedAction = poco.nestedAction.Select(x => x.Id).ToList();
+ dto.nestedAllocation = poco.nestedAllocation.Select(x => x.Id).ToList();
+ dto.nestedAnalysisCase = poco.nestedAnalysisCase.Select(x => x.Id).ToList();
+ dto.nestedAttribute = poco.nestedAttribute.Select(x => x.Id).ToList();
+ dto.nestedCalculation = poco.nestedCalculation.Select(x => x.Id).ToList();
+ dto.nestedCase = poco.nestedCase.Select(x => x.Id).ToList();
+ dto.nestedConcern = poco.nestedConcern.Select(x => x.Id).ToList();
+ dto.nestedConnection = poco.nestedConnection.Select(x => x.Id).ToList();
+ dto.nestedConstraint = poco.nestedConstraint.Select(x => x.Id).ToList();
+ dto.nestedEnumeration = poco.nestedEnumeration.Select(x => x.Id).ToList();
+ dto.nestedFlow = poco.nestedFlow.Select(x => x.Id).ToList();
+ dto.nestedInterface = poco.nestedInterface.Select(x => x.Id).ToList();
+ dto.nestedItem = poco.nestedItem.Select(x => x.Id).ToList();
+ dto.nestedMetadata = poco.nestedMetadata.Select(x => x.Id).ToList();
+ dto.nestedOccurrence = poco.nestedOccurrence.Select(x => x.Id).ToList();
+ dto.nestedPart = poco.nestedPart.Select(x => x.Id).ToList();
+ dto.nestedPort = poco.nestedPort.Select(x => x.Id).ToList();
+ dto.nestedReference = poco.nestedReference.Select(x => x.Id).ToList();
+ dto.nestedRendering = poco.nestedRendering.Select(x => x.Id).ToList();
+ dto.nestedRequirement = poco.nestedRequirement.Select(x => x.Id).ToList();
+ dto.nestedState = poco.nestedState.Select(x => x.Id).ToList();
+ dto.nestedTransition = poco.nestedTransition.Select(x => x.Id).ToList();
+ dto.nestedUsage = poco.nestedUsage.Select(x => x.Id).ToList();
+ dto.nestedUseCase = poco.nestedUseCase.Select(x => x.Id).ToList();
+ dto.nestedVerificationCase = poco.nestedVerificationCase.Select(x => x.Id).ToList();
+ dto.nestedView = poco.nestedView.Select(x => x.Id).ToList();
+ dto.nestedViewpoint = poco.nestedViewpoint.Select(x => x.Id).ToList();
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedCrossSubsetting = poco.ownedCrossSubsetting?.Id;
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureChaining = poco.ownedFeatureChaining.Select(x => x.Id).ToList();
+ dto.ownedFeatureInverting = poco.ownedFeatureInverting.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedRedefinition = poco.ownedRedefinition.Select(x => x.Id).ToList();
+ dto.ownedReferenceSubsetting = poco.ownedReferenceSubsetting?.Id;
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedSubsetting = poco.ownedSubsetting.Select(x => x.Id).ToList();
+ dto.ownedTypeFeaturing = poco.ownedTypeFeaturing.Select(x => x.Id).ToList();
+ dto.ownedTyping = poco.ownedTyping.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningDefinition = poco.owningDefinition?.Id;
+ dto.owningFeatureMembership = poco.owningFeatureMembership?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType?.Id;
+ dto.owningUsage = poco.owningUsage?.Id;
+ dto.parameter = poco.parameter.Select(x => x.Id).ToList();
+ dto.qualifiedName = poco.qualifiedName;
+ dto.result = poco.result.Id;
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ dto.usage = poco.usage.Select(x => x.Id).ToList();
+ dto.variant = poco.variant.Select(x => x.Id).ToList();
+ dto.variantMembership = poco.variantMembership.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/CaseDefinitionExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/CaseDefinitionExtensions.cs
index 2214c77bd..9876418d1 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/CaseDefinitionExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/CaseDefinitionExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Systems.Cases;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class CaseDefinitionExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -99,17 +99,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -159,10 +159,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Cases.CaseDe
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Systems.Cases.CaseDefinition ToDto(this Core.POCO.Systems.Cases.CaseDefinition poco)
+ public static Core.DTO.Systems.Cases.CaseDefinition ToDto(this Core.POCO.Systems.Cases.CaseDefinition poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Systems.Cases.CaseDefinition();
@@ -179,6 +182,90 @@ public static Core.DTO.Systems.Cases.CaseDefinition ToDto(this Core.POCO.Systems
dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList();
dto.OwningRelationship = poco.OwningRelationship?.Id;
+ if (includeDerivedProperties)
+ {
+ dto.action = poco.action.Select(x => x.Id).ToList();
+ dto.actorParameter = poco.actorParameter.Select(x => x.Id).ToList();
+ dto.calculation = poco.calculation.Select(x => x.Id).ToList();
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.directedUsage = poco.directedUsage.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endFeature = poco.endFeature.Select(x => x.Id).ToList();
+ dto.expression = poco.expression.Select(x => x.Id).ToList();
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.isModelLevelEvaluable = poco.isModelLevelEvaluable;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.objectiveRequirement = poco.objectiveRequirement?.Id;
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAction = poco.ownedAction.Select(x => x.Id).ToList();
+ dto.ownedAllocation = poco.ownedAllocation.Select(x => x.Id).ToList();
+ dto.ownedAnalysisCase = poco.ownedAnalysisCase.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedAttribute = poco.ownedAttribute.Select(x => x.Id).ToList();
+ dto.ownedCalculation = poco.ownedCalculation.Select(x => x.Id).ToList();
+ dto.ownedCase = poco.ownedCase.Select(x => x.Id).ToList();
+ dto.ownedConcern = poco.ownedConcern.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedConnection = poco.ownedConnection.Select(x => x.Id).ToList();
+ dto.ownedConstraint = poco.ownedConstraint.Select(x => x.Id).ToList();
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedEnumeration = poco.ownedEnumeration.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedFlow = poco.ownedFlow.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedInterface = poco.ownedInterface.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedItem = poco.ownedItem.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedMetadata = poco.ownedMetadata.Select(x => x.Id).ToList();
+ dto.ownedOccurrence = poco.ownedOccurrence.Select(x => x.Id).ToList();
+ dto.ownedPart = poco.ownedPart.Select(x => x.Id).ToList();
+ dto.ownedPort = poco.ownedPort.Select(x => x.Id).ToList();
+ dto.ownedReference = poco.ownedReference.Select(x => x.Id).ToList();
+ dto.ownedRendering = poco.ownedRendering.Select(x => x.Id).ToList();
+ dto.ownedRequirement = poco.ownedRequirement.Select(x => x.Id).ToList();
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedState = poco.ownedState.Select(x => x.Id).ToList();
+ dto.ownedSubclassification = poco.ownedSubclassification.Select(x => x.Id).ToList();
+ dto.ownedTransition = poco.ownedTransition.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.ownedUsage = poco.ownedUsage.Select(x => x.Id).ToList();
+ dto.ownedUseCase = poco.ownedUseCase.Select(x => x.Id).ToList();
+ dto.ownedVerificationCase = poco.ownedVerificationCase.Select(x => x.Id).ToList();
+ dto.ownedView = poco.ownedView.Select(x => x.Id).ToList();
+ dto.ownedViewpoint = poco.ownedViewpoint.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.parameter = poco.parameter.Select(x => x.Id).ToList();
+ dto.qualifiedName = poco.qualifiedName;
+ dto.result = poco.result.Id;
+ dto.shortName = poco.shortName;
+ dto.step = poco.step.Select(x => x.Id).ToList();
+ dto.subjectParameter = poco.subjectParameter.Id;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ dto.usage = poco.usage.Select(x => x.Id).ToList();
+ dto.variant = poco.variant.Select(x => x.Id).ToList();
+ dto.variantMembership = poco.variantMembership.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/CaseUsageExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/CaseUsageExtensions.cs
index 77a107e02..e1d909673 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/CaseUsageExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/CaseUsageExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Systems.Cases;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class CaseUsageExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -117,17 +117,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -177,10 +177,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Cases.CaseUs
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Systems.Cases.CaseUsage ToDto(this Core.POCO.Systems.Cases.CaseUsage poco)
+ public static Core.DTO.Systems.Cases.CaseUsage ToDto(this Core.POCO.Systems.Cases.CaseUsage poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Systems.Cases.CaseUsage();
@@ -206,6 +209,106 @@ public static Core.DTO.Systems.Cases.CaseUsage ToDto(this Core.POCO.Systems.Case
dto.OwningRelationship = poco.OwningRelationship?.Id;
dto.PortionKind = poco.PortionKind;
+ if (includeDerivedProperties)
+ {
+ dto.actorParameter = poco.actorParameter.Select(x => x.Id).ToList();
+ dto.caseDefinition = poco.caseDefinition?.Id;
+ dto.chainingFeature = poco.chainingFeature.Select(x => x.Id).ToList();
+ dto.crossFeature = poco.crossFeature?.Id;
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.directedUsage = poco.directedUsage.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endFeature = poco.endFeature.Select(x => x.Id).ToList();
+ dto.endOwningType = poco.endOwningType?.Id;
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.featureTarget = poco.featureTarget.Id;
+ dto.featuringType = poco.featuringType.Select(x => x.Id).ToList();
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.individualDefinition = poco.individualDefinition?.Id;
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.isModelLevelEvaluable = poco.isModelLevelEvaluable;
+ dto.isReference = poco.isReference;
+ dto.mayTimeVary = poco.mayTimeVary;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.nestedAction = poco.nestedAction.Select(x => x.Id).ToList();
+ dto.nestedAllocation = poco.nestedAllocation.Select(x => x.Id).ToList();
+ dto.nestedAnalysisCase = poco.nestedAnalysisCase.Select(x => x.Id).ToList();
+ dto.nestedAttribute = poco.nestedAttribute.Select(x => x.Id).ToList();
+ dto.nestedCalculation = poco.nestedCalculation.Select(x => x.Id).ToList();
+ dto.nestedCase = poco.nestedCase.Select(x => x.Id).ToList();
+ dto.nestedConcern = poco.nestedConcern.Select(x => x.Id).ToList();
+ dto.nestedConnection = poco.nestedConnection.Select(x => x.Id).ToList();
+ dto.nestedConstraint = poco.nestedConstraint.Select(x => x.Id).ToList();
+ dto.nestedEnumeration = poco.nestedEnumeration.Select(x => x.Id).ToList();
+ dto.nestedFlow = poco.nestedFlow.Select(x => x.Id).ToList();
+ dto.nestedInterface = poco.nestedInterface.Select(x => x.Id).ToList();
+ dto.nestedItem = poco.nestedItem.Select(x => x.Id).ToList();
+ dto.nestedMetadata = poco.nestedMetadata.Select(x => x.Id).ToList();
+ dto.nestedOccurrence = poco.nestedOccurrence.Select(x => x.Id).ToList();
+ dto.nestedPart = poco.nestedPart.Select(x => x.Id).ToList();
+ dto.nestedPort = poco.nestedPort.Select(x => x.Id).ToList();
+ dto.nestedReference = poco.nestedReference.Select(x => x.Id).ToList();
+ dto.nestedRendering = poco.nestedRendering.Select(x => x.Id).ToList();
+ dto.nestedRequirement = poco.nestedRequirement.Select(x => x.Id).ToList();
+ dto.nestedState = poco.nestedState.Select(x => x.Id).ToList();
+ dto.nestedTransition = poco.nestedTransition.Select(x => x.Id).ToList();
+ dto.nestedUsage = poco.nestedUsage.Select(x => x.Id).ToList();
+ dto.nestedUseCase = poco.nestedUseCase.Select(x => x.Id).ToList();
+ dto.nestedVerificationCase = poco.nestedVerificationCase.Select(x => x.Id).ToList();
+ dto.nestedView = poco.nestedView.Select(x => x.Id).ToList();
+ dto.nestedViewpoint = poco.nestedViewpoint.Select(x => x.Id).ToList();
+ dto.objectiveRequirement = poco.objectiveRequirement?.Id;
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedCrossSubsetting = poco.ownedCrossSubsetting?.Id;
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureChaining = poco.ownedFeatureChaining.Select(x => x.Id).ToList();
+ dto.ownedFeatureInverting = poco.ownedFeatureInverting.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedRedefinition = poco.ownedRedefinition.Select(x => x.Id).ToList();
+ dto.ownedReferenceSubsetting = poco.ownedReferenceSubsetting?.Id;
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedSubsetting = poco.ownedSubsetting.Select(x => x.Id).ToList();
+ dto.ownedTypeFeaturing = poco.ownedTypeFeaturing.Select(x => x.Id).ToList();
+ dto.ownedTyping = poco.ownedTyping.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningDefinition = poco.owningDefinition?.Id;
+ dto.owningFeatureMembership = poco.owningFeatureMembership?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType?.Id;
+ dto.owningUsage = poco.owningUsage?.Id;
+ dto.parameter = poco.parameter.Select(x => x.Id).ToList();
+ dto.qualifiedName = poco.qualifiedName;
+ dto.result = poco.result.Id;
+ dto.shortName = poco.shortName;
+ dto.subjectParameter = poco.subjectParameter.Id;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ dto.usage = poco.usage.Select(x => x.Id).ToList();
+ dto.variant = poco.variant.Select(x => x.Id).ToList();
+ dto.variantMembership = poco.variantMembership.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ClassExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ClassExtensions.cs
index d2ced00aa..b55c545b2 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ClassExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ClassExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Kernel.Classes;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class ClassExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -95,17 +95,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -155,10 +155,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.Classes.Class
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Kernel.Classes.Class ToDto(this Core.POCO.Kernel.Classes.Class poco)
+ public static Core.DTO.Kernel.Classes.Class ToDto(this Core.POCO.Kernel.Classes.Class poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Kernel.Classes.Class();
@@ -173,6 +176,50 @@ public static Core.DTO.Kernel.Classes.Class ToDto(this Core.POCO.Kernel.Classes.
dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList();
dto.OwningRelationship = poco.OwningRelationship?.Id;
+ if (includeDerivedProperties)
+ {
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.directedFeature = poco.directedFeature.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endFeature = poco.endFeature.Select(x => x.Id).ToList();
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedSubclassification = poco.ownedSubclassification.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ClassifierExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ClassifierExtensions.cs
index 658452724..7c053fb4d 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ClassifierExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ClassifierExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Core.Classifiers;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class ClassifierExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -95,17 +95,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -155,10 +155,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Classifiers.Cla
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Core.Classifiers.Classifier ToDto(this Core.POCO.Core.Classifiers.Classifier poco)
+ public static Core.DTO.Core.Classifiers.Classifier ToDto(this Core.POCO.Core.Classifiers.Classifier poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Core.Classifiers.Classifier();
@@ -173,6 +176,50 @@ public static Core.DTO.Core.Classifiers.Classifier ToDto(this Core.POCO.Core.Cla
dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList();
dto.OwningRelationship = poco.OwningRelationship?.Id;
+ if (includeDerivedProperties)
+ {
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.directedFeature = poco.directedFeature.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endFeature = poco.endFeature.Select(x => x.Id).ToList();
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedSubclassification = poco.ownedSubclassification.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/CollectExpressionExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/CollectExpressionExtensions.cs
index 5d0e07f80..7b008dc3f 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/CollectExpressionExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/CollectExpressionExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Kernel.Expressions;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class CollectExpressionExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -115,17 +115,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -175,10 +175,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.Expressions.C
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Kernel.Expressions.CollectExpression ToDto(this Core.POCO.Kernel.Expressions.CollectExpression poco)
+ public static Core.DTO.Kernel.Expressions.CollectExpression ToDto(this Core.POCO.Kernel.Expressions.CollectExpression poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Kernel.Expressions.CollectExpression();
@@ -203,6 +206,70 @@ public static Core.DTO.Kernel.Expressions.CollectExpression ToDto(this Core.POCO
dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList();
dto.OwningRelationship = poco.OwningRelationship?.Id;
+ if (includeDerivedProperties)
+ {
+ dto.argument = poco.argument.Select(x => x.Id).ToList();
+ dto.chainingFeature = poco.chainingFeature.Select(x => x.Id).ToList();
+ dto.crossFeature = poco.crossFeature?.Id;
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endFeature = poco.endFeature.Select(x => x.Id).ToList();
+ dto.endOwningType = poco.endOwningType?.Id;
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.featureTarget = poco.featureTarget.Id;
+ dto.featuringType = poco.featuringType.Select(x => x.Id).ToList();
+ dto.function = poco.function?.Id;
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.instantiatedType = poco.instantiatedType.Id;
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.isModelLevelEvaluable = poco.isModelLevelEvaluable;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedCrossSubsetting = poco.ownedCrossSubsetting?.Id;
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureChaining = poco.ownedFeatureChaining.Select(x => x.Id).ToList();
+ dto.ownedFeatureInverting = poco.ownedFeatureInverting.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedRedefinition = poco.ownedRedefinition.Select(x => x.Id).ToList();
+ dto.ownedReferenceSubsetting = poco.ownedReferenceSubsetting?.Id;
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedSubsetting = poco.ownedSubsetting.Select(x => x.Id).ToList();
+ dto.ownedTypeFeaturing = poco.ownedTypeFeaturing.Select(x => x.Id).ToList();
+ dto.ownedTyping = poco.ownedTyping.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningFeatureMembership = poco.owningFeatureMembership?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType?.Id;
+ dto.parameter = poco.parameter.Select(x => x.Id).ToList();
+ dto.qualifiedName = poco.qualifiedName;
+ dto.result = poco.result.Id;
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.type = poco.type.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/CommentExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/CommentExtensions.cs
index 14798571e..9ad9e447b 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/CommentExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/CommentExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Root.Annotations;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class CommentExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -95,17 +95,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -155,10 +155,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Root.Annotations.Com
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Root.Annotations.Comment ToDto(this Core.POCO.Root.Annotations.Comment poco)
+ public static Core.DTO.Root.Annotations.Comment ToDto(this Core.POCO.Root.Annotations.Comment poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Root.Annotations.Comment();
@@ -173,6 +176,25 @@ public static Core.DTO.Root.Annotations.Comment ToDto(this Core.POCO.Root.Annota
dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList();
dto.OwningRelationship = poco.OwningRelationship?.Id;
+ if (includeDerivedProperties)
+ {
+ dto.annotatedElement = poco.annotatedElement.Select(x => x.Id).ToList();
+ dto.annotation = poco.annotation.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.name = poco.name;
+ dto.ownedAnnotatingRelationship = poco.ownedAnnotatingRelationship.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningAnnotatingRelationship = poco.owningAnnotatingRelationship?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ConcernDefinitionExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ConcernDefinitionExtensions.cs
index 937a488cb..9c7ecc371 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ConcernDefinitionExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ConcernDefinitionExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Systems.Requirements;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class ConcernDefinitionExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -99,17 +99,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -159,10 +159,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Requirements
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Systems.Requirements.ConcernDefinition ToDto(this Core.POCO.Systems.Requirements.ConcernDefinition poco)
+ public static Core.DTO.Systems.Requirements.ConcernDefinition ToDto(this Core.POCO.Systems.Requirements.ConcernDefinition poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Systems.Requirements.ConcernDefinition();
@@ -179,6 +182,92 @@ public static Core.DTO.Systems.Requirements.ConcernDefinition ToDto(this Core.PO
dto.OwningRelationship = poco.OwningRelationship?.Id;
dto.ReqId = poco.ReqId;
+ if (includeDerivedProperties)
+ {
+ dto.actorParameter = poco.actorParameter.Select(x => x.Id).ToList();
+ dto.assumedConstraint = poco.assumedConstraint.Select(x => x.Id).ToList();
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.directedUsage = poco.directedUsage.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endFeature = poco.endFeature.Select(x => x.Id).ToList();
+ dto.expression = poco.expression.Select(x => x.Id).ToList();
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.framedConcern = poco.framedConcern.Select(x => x.Id).ToList();
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.isModelLevelEvaluable = poco.isModelLevelEvaluable;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAction = poco.ownedAction.Select(x => x.Id).ToList();
+ dto.ownedAllocation = poco.ownedAllocation.Select(x => x.Id).ToList();
+ dto.ownedAnalysisCase = poco.ownedAnalysisCase.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedAttribute = poco.ownedAttribute.Select(x => x.Id).ToList();
+ dto.ownedCalculation = poco.ownedCalculation.Select(x => x.Id).ToList();
+ dto.ownedCase = poco.ownedCase.Select(x => x.Id).ToList();
+ dto.ownedConcern = poco.ownedConcern.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedConnection = poco.ownedConnection.Select(x => x.Id).ToList();
+ dto.ownedConstraint = poco.ownedConstraint.Select(x => x.Id).ToList();
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedEnumeration = poco.ownedEnumeration.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedFlow = poco.ownedFlow.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedInterface = poco.ownedInterface.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedItem = poco.ownedItem.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedMetadata = poco.ownedMetadata.Select(x => x.Id).ToList();
+ dto.ownedOccurrence = poco.ownedOccurrence.Select(x => x.Id).ToList();
+ dto.ownedPart = poco.ownedPart.Select(x => x.Id).ToList();
+ dto.ownedPort = poco.ownedPort.Select(x => x.Id).ToList();
+ dto.ownedReference = poco.ownedReference.Select(x => x.Id).ToList();
+ dto.ownedRendering = poco.ownedRendering.Select(x => x.Id).ToList();
+ dto.ownedRequirement = poco.ownedRequirement.Select(x => x.Id).ToList();
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedState = poco.ownedState.Select(x => x.Id).ToList();
+ dto.ownedSubclassification = poco.ownedSubclassification.Select(x => x.Id).ToList();
+ dto.ownedTransition = poco.ownedTransition.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.ownedUsage = poco.ownedUsage.Select(x => x.Id).ToList();
+ dto.ownedUseCase = poco.ownedUseCase.Select(x => x.Id).ToList();
+ dto.ownedVerificationCase = poco.ownedVerificationCase.Select(x => x.Id).ToList();
+ dto.ownedView = poco.ownedView.Select(x => x.Id).ToList();
+ dto.ownedViewpoint = poco.ownedViewpoint.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.parameter = poco.parameter.Select(x => x.Id).ToList();
+ dto.qualifiedName = poco.qualifiedName;
+ dto.requiredConstraint = poco.requiredConstraint.Select(x => x.Id).ToList();
+ dto.result = poco.result.Id;
+ dto.shortName = poco.shortName;
+ dto.stakeholderParameter = poco.stakeholderParameter.Select(x => x.Id).ToList();
+ dto.step = poco.step.Select(x => x.Id).ToList();
+ dto.subjectParameter = poco.subjectParameter.Id;
+ dto.text = poco.text;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ dto.usage = poco.usage.Select(x => x.Id).ToList();
+ dto.variant = poco.variant.Select(x => x.Id).ToList();
+ dto.variantMembership = poco.variantMembership.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ConcernUsageExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ConcernUsageExtensions.cs
index 5aca4320a..520ed815c 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ConcernUsageExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ConcernUsageExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Systems.Requirements;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class ConcernUsageExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -117,17 +117,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -177,10 +177,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Requirements
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Systems.Requirements.ConcernUsage ToDto(this Core.POCO.Systems.Requirements.ConcernUsage poco)
+ public static Core.DTO.Systems.Requirements.ConcernUsage ToDto(this Core.POCO.Systems.Requirements.ConcernUsage poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Systems.Requirements.ConcernUsage();
@@ -206,6 +209,111 @@ public static Core.DTO.Systems.Requirements.ConcernUsage ToDto(this Core.POCO.Sy
dto.PortionKind = poco.PortionKind;
dto.ReqId = poco.ReqId;
+ if (includeDerivedProperties)
+ {
+ dto.actorParameter = poco.actorParameter.Select(x => x.Id).ToList();
+ dto.assumedConstraint = poco.assumedConstraint.Select(x => x.Id).ToList();
+ dto.chainingFeature = poco.chainingFeature.Select(x => x.Id).ToList();
+ dto.concernDefinition = poco.concernDefinition?.Id;
+ dto.crossFeature = poco.crossFeature?.Id;
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.directedUsage = poco.directedUsage.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endFeature = poco.endFeature.Select(x => x.Id).ToList();
+ dto.endOwningType = poco.endOwningType?.Id;
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.featureTarget = poco.featureTarget.Id;
+ dto.featuringType = poco.featuringType.Select(x => x.Id).ToList();
+ dto.framedConcern = poco.framedConcern.Select(x => x.Id).ToList();
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.individualDefinition = poco.individualDefinition?.Id;
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.isModelLevelEvaluable = poco.isModelLevelEvaluable;
+ dto.isReference = poco.isReference;
+ dto.mayTimeVary = poco.mayTimeVary;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.nestedAction = poco.nestedAction.Select(x => x.Id).ToList();
+ dto.nestedAllocation = poco.nestedAllocation.Select(x => x.Id).ToList();
+ dto.nestedAnalysisCase = poco.nestedAnalysisCase.Select(x => x.Id).ToList();
+ dto.nestedAttribute = poco.nestedAttribute.Select(x => x.Id).ToList();
+ dto.nestedCalculation = poco.nestedCalculation.Select(x => x.Id).ToList();
+ dto.nestedCase = poco.nestedCase.Select(x => x.Id).ToList();
+ dto.nestedConcern = poco.nestedConcern.Select(x => x.Id).ToList();
+ dto.nestedConnection = poco.nestedConnection.Select(x => x.Id).ToList();
+ dto.nestedConstraint = poco.nestedConstraint.Select(x => x.Id).ToList();
+ dto.nestedEnumeration = poco.nestedEnumeration.Select(x => x.Id).ToList();
+ dto.nestedFlow = poco.nestedFlow.Select(x => x.Id).ToList();
+ dto.nestedInterface = poco.nestedInterface.Select(x => x.Id).ToList();
+ dto.nestedItem = poco.nestedItem.Select(x => x.Id).ToList();
+ dto.nestedMetadata = poco.nestedMetadata.Select(x => x.Id).ToList();
+ dto.nestedOccurrence = poco.nestedOccurrence.Select(x => x.Id).ToList();
+ dto.nestedPart = poco.nestedPart.Select(x => x.Id).ToList();
+ dto.nestedPort = poco.nestedPort.Select(x => x.Id).ToList();
+ dto.nestedReference = poco.nestedReference.Select(x => x.Id).ToList();
+ dto.nestedRendering = poco.nestedRendering.Select(x => x.Id).ToList();
+ dto.nestedRequirement = poco.nestedRequirement.Select(x => x.Id).ToList();
+ dto.nestedState = poco.nestedState.Select(x => x.Id).ToList();
+ dto.nestedTransition = poco.nestedTransition.Select(x => x.Id).ToList();
+ dto.nestedUsage = poco.nestedUsage.Select(x => x.Id).ToList();
+ dto.nestedUseCase = poco.nestedUseCase.Select(x => x.Id).ToList();
+ dto.nestedVerificationCase = poco.nestedVerificationCase.Select(x => x.Id).ToList();
+ dto.nestedView = poco.nestedView.Select(x => x.Id).ToList();
+ dto.nestedViewpoint = poco.nestedViewpoint.Select(x => x.Id).ToList();
+ dto.occurrenceDefinition = poco.occurrenceDefinition.Select(x => x.Id).ToList();
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedCrossSubsetting = poco.ownedCrossSubsetting?.Id;
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureChaining = poco.ownedFeatureChaining.Select(x => x.Id).ToList();
+ dto.ownedFeatureInverting = poco.ownedFeatureInverting.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedRedefinition = poco.ownedRedefinition.Select(x => x.Id).ToList();
+ dto.ownedReferenceSubsetting = poco.ownedReferenceSubsetting?.Id;
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedSubsetting = poco.ownedSubsetting.Select(x => x.Id).ToList();
+ dto.ownedTypeFeaturing = poco.ownedTypeFeaturing.Select(x => x.Id).ToList();
+ dto.ownedTyping = poco.ownedTyping.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningDefinition = poco.owningDefinition?.Id;
+ dto.owningFeatureMembership = poco.owningFeatureMembership?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType?.Id;
+ dto.owningUsage = poco.owningUsage?.Id;
+ dto.parameter = poco.parameter.Select(x => x.Id).ToList();
+ dto.qualifiedName = poco.qualifiedName;
+ dto.requiredConstraint = poco.requiredConstraint.Select(x => x.Id).ToList();
+ dto.result = poco.result.Id;
+ dto.shortName = poco.shortName;
+ dto.stakeholderParameter = poco.stakeholderParameter.Select(x => x.Id).ToList();
+ dto.subjectParameter = poco.subjectParameter.Id;
+ dto.text = poco.text;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ dto.usage = poco.usage.Select(x => x.Id).ToList();
+ dto.variant = poco.variant.Select(x => x.Id).ToList();
+ dto.variantMembership = poco.variantMembership.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ConjugatedPortDefinitionExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ConjugatedPortDefinitionExtensions.cs
index c2502266e..82e944e03 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ConjugatedPortDefinitionExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ConjugatedPortDefinitionExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Systems.Ports;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class ConjugatedPortDefinitionExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -99,17 +99,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -159,10 +159,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Ports.Conjug
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Systems.Ports.ConjugatedPortDefinition ToDto(this Core.POCO.Systems.Ports.ConjugatedPortDefinition poco)
+ public static Core.DTO.Systems.Ports.ConjugatedPortDefinition ToDto(this Core.POCO.Systems.Ports.ConjugatedPortDefinition poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Systems.Ports.ConjugatedPortDefinition();
@@ -179,6 +182,82 @@ public static Core.DTO.Systems.Ports.ConjugatedPortDefinition ToDto(this Core.PO
dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList();
dto.OwningRelationship = poco.OwningRelationship?.Id;
+ if (includeDerivedProperties)
+ {
+ dto.conjugatedPortDefinition = poco.conjugatedPortDefinition?.Id;
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.directedFeature = poco.directedFeature.Select(x => x.Id).ToList();
+ dto.directedUsage = poco.directedUsage.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endFeature = poco.endFeature.Select(x => x.Id).ToList();
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.originalPortDefinition = poco.originalPortDefinition.Id;
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAction = poco.ownedAction.Select(x => x.Id).ToList();
+ dto.ownedAllocation = poco.ownedAllocation.Select(x => x.Id).ToList();
+ dto.ownedAnalysisCase = poco.ownedAnalysisCase.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedAttribute = poco.ownedAttribute.Select(x => x.Id).ToList();
+ dto.ownedCalculation = poco.ownedCalculation.Select(x => x.Id).ToList();
+ dto.ownedCase = poco.ownedCase.Select(x => x.Id).ToList();
+ dto.ownedConcern = poco.ownedConcern.Select(x => x.Id).ToList();
+ dto.ownedConnection = poco.ownedConnection.Select(x => x.Id).ToList();
+ dto.ownedConstraint = poco.ownedConstraint.Select(x => x.Id).ToList();
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedEnumeration = poco.ownedEnumeration.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedFlow = poco.ownedFlow.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedInterface = poco.ownedInterface.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedItem = poco.ownedItem.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedMetadata = poco.ownedMetadata.Select(x => x.Id).ToList();
+ dto.ownedOccurrence = poco.ownedOccurrence.Select(x => x.Id).ToList();
+ dto.ownedPart = poco.ownedPart.Select(x => x.Id).ToList();
+ dto.ownedPort = poco.ownedPort.Select(x => x.Id).ToList();
+ dto.ownedPortConjugator = poco.ownedPortConjugator.Id;
+ dto.ownedReference = poco.ownedReference.Select(x => x.Id).ToList();
+ dto.ownedRendering = poco.ownedRendering.Select(x => x.Id).ToList();
+ dto.ownedRequirement = poco.ownedRequirement.Select(x => x.Id).ToList();
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedState = poco.ownedState.Select(x => x.Id).ToList();
+ dto.ownedSubclassification = poco.ownedSubclassification.Select(x => x.Id).ToList();
+ dto.ownedTransition = poco.ownedTransition.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.ownedUsage = poco.ownedUsage.Select(x => x.Id).ToList();
+ dto.ownedUseCase = poco.ownedUseCase.Select(x => x.Id).ToList();
+ dto.ownedVerificationCase = poco.ownedVerificationCase.Select(x => x.Id).ToList();
+ dto.ownedView = poco.ownedView.Select(x => x.Id).ToList();
+ dto.ownedViewpoint = poco.ownedViewpoint.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ dto.usage = poco.usage.Select(x => x.Id).ToList();
+ dto.variant = poco.variant.Select(x => x.Id).ToList();
+ dto.variantMembership = poco.variantMembership.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ConjugatedPortTypingExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ConjugatedPortTypingExtensions.cs
index 08dde542c..3121ed89b 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ConjugatedPortTypingExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ConjugatedPortTypingExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Systems.Ports;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class ConjugatedPortTypingExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -102,17 +102,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -150,7 +150,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Ports.Conjug
{
if (cache.TryGetValue(identifier, out lazyPoco))
{
- poco.OwnedRelatedElement.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value);
+ poco.OwnedRelatedElement.Add(lazyPoco.Value);
}
}
@@ -166,7 +166,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Ports.Conjug
if (dto.OwningRelatedElement.HasValue && cache.TryGetValue(dto.OwningRelatedElement.Value, out lazyPoco))
{
- poco.OwningRelatedElement = (Core.POCO.Root.Elements.IElement)lazyPoco.Value;
+ poco.OwningRelatedElement = lazyPoco.Value;
}
else
{
@@ -199,10 +199,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Ports.Conjug
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Systems.Ports.ConjugatedPortTyping ToDto(this Core.POCO.Systems.Ports.ConjugatedPortTyping poco)
+ public static Core.DTO.Systems.Ports.ConjugatedPortTyping ToDto(this Core.POCO.Systems.Ports.ConjugatedPortTyping poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Systems.Ports.ConjugatedPortTyping();
@@ -220,6 +223,24 @@ public static Core.DTO.Systems.Ports.ConjugatedPortTyping ToDto(this Core.POCO.S
dto.OwningRelationship = poco.OwningRelationship?.Id;
dto.TypedFeature = poco.TypedFeature.Id;
+ if (includeDerivedProperties)
+ {
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.name = poco.name;
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningFeature = poco.owningFeature?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.portDefinition = poco.portDefinition.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.relatedElement = poco.relatedElement.Select(x => x.Id).ToList();
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ConjugationExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ConjugationExtensions.cs
index 1710d9ef7..5a65b55ec 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ConjugationExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ConjugationExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Core.Types;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class ConjugationExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -102,17 +102,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -159,7 +159,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Types.Conjugati
{
if (cache.TryGetValue(identifier, out lazyPoco))
{
- poco.OwnedRelatedElement.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value);
+ poco.OwnedRelatedElement.Add(lazyPoco.Value);
}
}
@@ -175,7 +175,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Types.Conjugati
if (dto.OwningRelatedElement.HasValue && cache.TryGetValue(dto.OwningRelatedElement.Value, out lazyPoco))
{
- poco.OwningRelatedElement = (Core.POCO.Root.Elements.IElement)lazyPoco.Value;
+ poco.OwningRelatedElement = lazyPoco.Value;
}
else
{
@@ -199,10 +199,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Types.Conjugati
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Core.Types.Conjugation ToDto(this Core.POCO.Core.Types.Conjugation poco)
+ public static Core.DTO.Core.Types.Conjugation ToDto(this Core.POCO.Core.Types.Conjugation poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Core.Types.Conjugation();
@@ -220,6 +223,23 @@ public static Core.DTO.Core.Types.Conjugation ToDto(this Core.POCO.Core.Types.Co
dto.OwningRelatedElement = poco.OwningRelatedElement?.Id;
dto.OwningRelationship = poco.OwningRelationship?.Id;
+ if (includeDerivedProperties)
+ {
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.name = poco.name;
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType?.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.relatedElement = poco.relatedElement.Select(x => x.Id).ToList();
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ConnectionDefinitionExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ConnectionDefinitionExtensions.cs
index d49ccd049..095df0e98 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ConnectionDefinitionExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ConnectionDefinitionExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Systems.Connections;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class ConnectionDefinitionExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -110,17 +110,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -149,7 +149,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Connections.
{
if (cache.TryGetValue(identifier, out lazyPoco))
{
- poco.OwnedRelatedElement.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value);
+ poco.OwnedRelatedElement.Add(lazyPoco.Value);
}
}
@@ -165,7 +165,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Connections.
if (dto.OwningRelatedElement.HasValue && cache.TryGetValue(dto.OwningRelatedElement.Value, out lazyPoco))
{
- poco.OwningRelatedElement = (Core.POCO.Root.Elements.IElement)lazyPoco.Value;
+ poco.OwningRelatedElement = lazyPoco.Value;
}
else
{
@@ -189,10 +189,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Connections.
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Systems.Connections.ConnectionDefinition ToDto(this Core.POCO.Systems.Connections.ConnectionDefinition poco)
+ public static Core.DTO.Systems.Connections.ConnectionDefinition ToDto(this Core.POCO.Systems.Connections.ConnectionDefinition poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Systems.Connections.ConnectionDefinition();
@@ -212,6 +215,84 @@ public static Core.DTO.Systems.Connections.ConnectionDefinition ToDto(this Core.
dto.OwningRelatedElement = poco.OwningRelatedElement?.Id;
dto.OwningRelationship = poco.OwningRelationship?.Id;
+ if (includeDerivedProperties)
+ {
+ dto.connectionEnd = poco.connectionEnd.Select(x => x.Id).ToList();
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.directedFeature = poco.directedFeature.Select(x => x.Id).ToList();
+ dto.directedUsage = poco.directedUsage.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAction = poco.ownedAction.Select(x => x.Id).ToList();
+ dto.ownedAllocation = poco.ownedAllocation.Select(x => x.Id).ToList();
+ dto.ownedAnalysisCase = poco.ownedAnalysisCase.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedAttribute = poco.ownedAttribute.Select(x => x.Id).ToList();
+ dto.ownedCalculation = poco.ownedCalculation.Select(x => x.Id).ToList();
+ dto.ownedCase = poco.ownedCase.Select(x => x.Id).ToList();
+ dto.ownedConcern = poco.ownedConcern.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedConnection = poco.ownedConnection.Select(x => x.Id).ToList();
+ dto.ownedConstraint = poco.ownedConstraint.Select(x => x.Id).ToList();
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedEnumeration = poco.ownedEnumeration.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedFlow = poco.ownedFlow.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedInterface = poco.ownedInterface.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedItem = poco.ownedItem.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedMetadata = poco.ownedMetadata.Select(x => x.Id).ToList();
+ dto.ownedOccurrence = poco.ownedOccurrence.Select(x => x.Id).ToList();
+ dto.ownedPart = poco.ownedPart.Select(x => x.Id).ToList();
+ dto.ownedPort = poco.ownedPort.Select(x => x.Id).ToList();
+ dto.ownedReference = poco.ownedReference.Select(x => x.Id).ToList();
+ dto.ownedRendering = poco.ownedRendering.Select(x => x.Id).ToList();
+ dto.ownedRequirement = poco.ownedRequirement.Select(x => x.Id).ToList();
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedState = poco.ownedState.Select(x => x.Id).ToList();
+ dto.ownedSubclassification = poco.ownedSubclassification.Select(x => x.Id).ToList();
+ dto.ownedTransition = poco.ownedTransition.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.ownedUsage = poco.ownedUsage.Select(x => x.Id).ToList();
+ dto.ownedUseCase = poco.ownedUseCase.Select(x => x.Id).ToList();
+ dto.ownedVerificationCase = poco.ownedVerificationCase.Select(x => x.Id).ToList();
+ dto.ownedView = poco.ownedView.Select(x => x.Id).ToList();
+ dto.ownedViewpoint = poco.ownedViewpoint.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.relatedType = poco.relatedType.Select(x => x.Id).ToList();
+ dto.shortName = poco.shortName;
+ dto.sourceType = poco.sourceType?.Id;
+ dto.targetType = poco.targetType.Select(x => x.Id).ToList();
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ dto.usage = poco.usage.Select(x => x.Id).ToList();
+ dto.variant = poco.variant.Select(x => x.Id).ToList();
+ dto.variantMembership = poco.variantMembership.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ConnectionUsageExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ConnectionUsageExtensions.cs
index 806dd22d4..cebe0c2a4 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ConnectionUsageExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ConnectionUsageExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Systems.Connections;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class ConnectionUsageExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -128,17 +128,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -167,7 +167,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Connections.
{
if (cache.TryGetValue(identifier, out lazyPoco))
{
- poco.OwnedRelatedElement.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value);
+ poco.OwnedRelatedElement.Add(lazyPoco.Value);
}
}
@@ -183,7 +183,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Connections.
if (dto.OwningRelatedElement.HasValue && cache.TryGetValue(dto.OwningRelatedElement.Value, out lazyPoco))
{
- poco.OwningRelatedElement = (Core.POCO.Root.Elements.IElement)lazyPoco.Value;
+ poco.OwningRelatedElement = lazyPoco.Value;
}
else
{
@@ -207,10 +207,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Connections.
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Systems.Connections.ConnectionUsage ToDto(this Core.POCO.Systems.Connections.ConnectionUsage poco)
+ public static Core.DTO.Systems.Connections.ConnectionUsage ToDto(this Core.POCO.Systems.Connections.ConnectionUsage poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Systems.Connections.ConnectionUsage();
@@ -239,6 +242,108 @@ public static Core.DTO.Systems.Connections.ConnectionUsage ToDto(this Core.POCO.
dto.OwningRelationship = poco.OwningRelationship?.Id;
dto.PortionKind = poco.PortionKind;
+ if (includeDerivedProperties)
+ {
+ dto.chainingFeature = poco.chainingFeature.Select(x => x.Id).ToList();
+ dto.connectionDefinition = poco.connectionDefinition.Select(x => x.Id).ToList();
+ dto.connectorEnd = poco.connectorEnd.Select(x => x.Id).ToList();
+ dto.crossFeature = poco.crossFeature?.Id;
+ dto.defaultFeaturingType = poco.defaultFeaturingType?.Id;
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.directedFeature = poco.directedFeature.Select(x => x.Id).ToList();
+ dto.directedUsage = poco.directedUsage.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endOwningType = poco.endOwningType?.Id;
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.featureTarget = poco.featureTarget.Id;
+ dto.featuringType = poco.featuringType.Select(x => x.Id).ToList();
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.individualDefinition = poco.individualDefinition?.Id;
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.isReference = poco.isReference;
+ dto.itemDefinition = poco.itemDefinition.Select(x => x.Id).ToList();
+ dto.mayTimeVary = poco.mayTimeVary;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.nestedAction = poco.nestedAction.Select(x => x.Id).ToList();
+ dto.nestedAllocation = poco.nestedAllocation.Select(x => x.Id).ToList();
+ dto.nestedAnalysisCase = poco.nestedAnalysisCase.Select(x => x.Id).ToList();
+ dto.nestedAttribute = poco.nestedAttribute.Select(x => x.Id).ToList();
+ dto.nestedCalculation = poco.nestedCalculation.Select(x => x.Id).ToList();
+ dto.nestedCase = poco.nestedCase.Select(x => x.Id).ToList();
+ dto.nestedConcern = poco.nestedConcern.Select(x => x.Id).ToList();
+ dto.nestedConnection = poco.nestedConnection.Select(x => x.Id).ToList();
+ dto.nestedConstraint = poco.nestedConstraint.Select(x => x.Id).ToList();
+ dto.nestedEnumeration = poco.nestedEnumeration.Select(x => x.Id).ToList();
+ dto.nestedFlow = poco.nestedFlow.Select(x => x.Id).ToList();
+ dto.nestedInterface = poco.nestedInterface.Select(x => x.Id).ToList();
+ dto.nestedItem = poco.nestedItem.Select(x => x.Id).ToList();
+ dto.nestedMetadata = poco.nestedMetadata.Select(x => x.Id).ToList();
+ dto.nestedOccurrence = poco.nestedOccurrence.Select(x => x.Id).ToList();
+ dto.nestedPart = poco.nestedPart.Select(x => x.Id).ToList();
+ dto.nestedPort = poco.nestedPort.Select(x => x.Id).ToList();
+ dto.nestedReference = poco.nestedReference.Select(x => x.Id).ToList();
+ dto.nestedRendering = poco.nestedRendering.Select(x => x.Id).ToList();
+ dto.nestedRequirement = poco.nestedRequirement.Select(x => x.Id).ToList();
+ dto.nestedState = poco.nestedState.Select(x => x.Id).ToList();
+ dto.nestedTransition = poco.nestedTransition.Select(x => x.Id).ToList();
+ dto.nestedUsage = poco.nestedUsage.Select(x => x.Id).ToList();
+ dto.nestedUseCase = poco.nestedUseCase.Select(x => x.Id).ToList();
+ dto.nestedVerificationCase = poco.nestedVerificationCase.Select(x => x.Id).ToList();
+ dto.nestedView = poco.nestedView.Select(x => x.Id).ToList();
+ dto.nestedViewpoint = poco.nestedViewpoint.Select(x => x.Id).ToList();
+ dto.occurrenceDefinition = poco.occurrenceDefinition.Select(x => x.Id).ToList();
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedCrossSubsetting = poco.ownedCrossSubsetting?.Id;
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureChaining = poco.ownedFeatureChaining.Select(x => x.Id).ToList();
+ dto.ownedFeatureInverting = poco.ownedFeatureInverting.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedRedefinition = poco.ownedRedefinition.Select(x => x.Id).ToList();
+ dto.ownedReferenceSubsetting = poco.ownedReferenceSubsetting?.Id;
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedSubsetting = poco.ownedSubsetting.Select(x => x.Id).ToList();
+ dto.ownedTypeFeaturing = poco.ownedTypeFeaturing.Select(x => x.Id).ToList();
+ dto.ownedTyping = poco.ownedTyping.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningDefinition = poco.owningDefinition?.Id;
+ dto.owningFeatureMembership = poco.owningFeatureMembership?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType?.Id;
+ dto.owningUsage = poco.owningUsage?.Id;
+ dto.partDefinition = poco.partDefinition.Select(x => x.Id).ToList();
+ dto.qualifiedName = poco.qualifiedName;
+ dto.relatedFeature = poco.relatedFeature.Select(x => x.Id).ToList();
+ dto.shortName = poco.shortName;
+ dto.sourceFeature = poco.sourceFeature?.Id;
+ dto.targetFeature = poco.targetFeature.Select(x => x.Id).ToList();
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ dto.usage = poco.usage.Select(x => x.Id).ToList();
+ dto.variant = poco.variant.Select(x => x.Id).ToList();
+ dto.variantMembership = poco.variantMembership.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ConnectorExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ConnectorExtensions.cs
index 2c9d47e52..09bfc477d 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ConnectorExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ConnectorExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Kernel.Connectors;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class ConnectorExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -124,17 +124,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -163,7 +163,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.Connectors.Co
{
if (cache.TryGetValue(identifier, out lazyPoco))
{
- poco.OwnedRelatedElement.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value);
+ poco.OwnedRelatedElement.Add(lazyPoco.Value);
}
}
@@ -179,7 +179,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.Connectors.Co
if (dto.OwningRelatedElement.HasValue && cache.TryGetValue(dto.OwningRelatedElement.Value, out lazyPoco))
{
- poco.OwningRelatedElement = (Core.POCO.Root.Elements.IElement)lazyPoco.Value;
+ poco.OwningRelatedElement = lazyPoco.Value;
}
else
{
@@ -203,10 +203,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.Connectors.Co
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Kernel.Connectors.Connector ToDto(this Core.POCO.Kernel.Connectors.Connector poco)
+ public static Core.DTO.Kernel.Connectors.Connector ToDto(this Core.POCO.Kernel.Connectors.Connector poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Kernel.Connectors.Connector();
@@ -233,6 +236,69 @@ public static Core.DTO.Kernel.Connectors.Connector ToDto(this Core.POCO.Kernel.C
dto.OwningRelatedElement = poco.OwningRelatedElement?.Id;
dto.OwningRelationship = poco.OwningRelationship?.Id;
+ if (includeDerivedProperties)
+ {
+ dto.association = poco.association.Select(x => x.Id).ToList();
+ dto.chainingFeature = poco.chainingFeature.Select(x => x.Id).ToList();
+ dto.connectorEnd = poco.connectorEnd.Select(x => x.Id).ToList();
+ dto.crossFeature = poco.crossFeature?.Id;
+ dto.defaultFeaturingType = poco.defaultFeaturingType?.Id;
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.directedFeature = poco.directedFeature.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endOwningType = poco.endOwningType?.Id;
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.featureTarget = poco.featureTarget.Id;
+ dto.featuringType = poco.featuringType.Select(x => x.Id).ToList();
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedCrossSubsetting = poco.ownedCrossSubsetting?.Id;
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureChaining = poco.ownedFeatureChaining.Select(x => x.Id).ToList();
+ dto.ownedFeatureInverting = poco.ownedFeatureInverting.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedRedefinition = poco.ownedRedefinition.Select(x => x.Id).ToList();
+ dto.ownedReferenceSubsetting = poco.ownedReferenceSubsetting?.Id;
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedSubsetting = poco.ownedSubsetting.Select(x => x.Id).ToList();
+ dto.ownedTypeFeaturing = poco.ownedTypeFeaturing.Select(x => x.Id).ToList();
+ dto.ownedTyping = poco.ownedTyping.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningFeatureMembership = poco.owningFeatureMembership?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType?.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.relatedFeature = poco.relatedFeature.Select(x => x.Id).ToList();
+ dto.shortName = poco.shortName;
+ dto.sourceFeature = poco.sourceFeature?.Id;
+ dto.targetFeature = poco.targetFeature.Select(x => x.Id).ToList();
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ConstraintDefinitionExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ConstraintDefinitionExtensions.cs
index 97d927016..2bd31c1f9 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ConstraintDefinitionExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ConstraintDefinitionExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Systems.Constraints;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class ConstraintDefinitionExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -99,17 +99,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -159,10 +159,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Constraints.
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Systems.Constraints.ConstraintDefinition ToDto(this Core.POCO.Systems.Constraints.ConstraintDefinition poco)
+ public static Core.DTO.Systems.Constraints.ConstraintDefinition ToDto(this Core.POCO.Systems.Constraints.ConstraintDefinition poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Systems.Constraints.ConstraintDefinition();
@@ -179,6 +182,85 @@ public static Core.DTO.Systems.Constraints.ConstraintDefinition ToDto(this Core.
dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList();
dto.OwningRelationship = poco.OwningRelationship?.Id;
+ if (includeDerivedProperties)
+ {
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.directedUsage = poco.directedUsage.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endFeature = poco.endFeature.Select(x => x.Id).ToList();
+ dto.expression = poco.expression.Select(x => x.Id).ToList();
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.isModelLevelEvaluable = poco.isModelLevelEvaluable;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAction = poco.ownedAction.Select(x => x.Id).ToList();
+ dto.ownedAllocation = poco.ownedAllocation.Select(x => x.Id).ToList();
+ dto.ownedAnalysisCase = poco.ownedAnalysisCase.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedAttribute = poco.ownedAttribute.Select(x => x.Id).ToList();
+ dto.ownedCalculation = poco.ownedCalculation.Select(x => x.Id).ToList();
+ dto.ownedCase = poco.ownedCase.Select(x => x.Id).ToList();
+ dto.ownedConcern = poco.ownedConcern.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedConnection = poco.ownedConnection.Select(x => x.Id).ToList();
+ dto.ownedConstraint = poco.ownedConstraint.Select(x => x.Id).ToList();
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedEnumeration = poco.ownedEnumeration.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedFlow = poco.ownedFlow.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedInterface = poco.ownedInterface.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedItem = poco.ownedItem.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedMetadata = poco.ownedMetadata.Select(x => x.Id).ToList();
+ dto.ownedOccurrence = poco.ownedOccurrence.Select(x => x.Id).ToList();
+ dto.ownedPart = poco.ownedPart.Select(x => x.Id).ToList();
+ dto.ownedPort = poco.ownedPort.Select(x => x.Id).ToList();
+ dto.ownedReference = poco.ownedReference.Select(x => x.Id).ToList();
+ dto.ownedRendering = poco.ownedRendering.Select(x => x.Id).ToList();
+ dto.ownedRequirement = poco.ownedRequirement.Select(x => x.Id).ToList();
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedState = poco.ownedState.Select(x => x.Id).ToList();
+ dto.ownedSubclassification = poco.ownedSubclassification.Select(x => x.Id).ToList();
+ dto.ownedTransition = poco.ownedTransition.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.ownedUsage = poco.ownedUsage.Select(x => x.Id).ToList();
+ dto.ownedUseCase = poco.ownedUseCase.Select(x => x.Id).ToList();
+ dto.ownedVerificationCase = poco.ownedVerificationCase.Select(x => x.Id).ToList();
+ dto.ownedView = poco.ownedView.Select(x => x.Id).ToList();
+ dto.ownedViewpoint = poco.ownedViewpoint.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.parameter = poco.parameter.Select(x => x.Id).ToList();
+ dto.qualifiedName = poco.qualifiedName;
+ dto.result = poco.result.Id;
+ dto.shortName = poco.shortName;
+ dto.step = poco.step.Select(x => x.Id).ToList();
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ dto.usage = poco.usage.Select(x => x.Id).ToList();
+ dto.variant = poco.variant.Select(x => x.Id).ToList();
+ dto.variantMembership = poco.variantMembership.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ConstraintUsageExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ConstraintUsageExtensions.cs
index fd38cba98..df49ff5c6 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ConstraintUsageExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ConstraintUsageExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Systems.Constraints;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class ConstraintUsageExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -117,17 +117,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -177,10 +177,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Constraints.
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Systems.Constraints.ConstraintUsage ToDto(this Core.POCO.Systems.Constraints.ConstraintUsage poco)
+ public static Core.DTO.Systems.Constraints.ConstraintUsage ToDto(this Core.POCO.Systems.Constraints.ConstraintUsage poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Systems.Constraints.ConstraintUsage();
@@ -206,6 +209,104 @@ public static Core.DTO.Systems.Constraints.ConstraintUsage ToDto(this Core.POCO.
dto.OwningRelationship = poco.OwningRelationship?.Id;
dto.PortionKind = poco.PortionKind;
+ if (includeDerivedProperties)
+ {
+ dto.chainingFeature = poco.chainingFeature.Select(x => x.Id).ToList();
+ dto.constraintDefinition = poco.constraintDefinition?.Id;
+ dto.crossFeature = poco.crossFeature?.Id;
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.directedUsage = poco.directedUsage.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endFeature = poco.endFeature.Select(x => x.Id).ToList();
+ dto.endOwningType = poco.endOwningType?.Id;
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.featureTarget = poco.featureTarget.Id;
+ dto.featuringType = poco.featuringType.Select(x => x.Id).ToList();
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.individualDefinition = poco.individualDefinition?.Id;
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.isModelLevelEvaluable = poco.isModelLevelEvaluable;
+ dto.isReference = poco.isReference;
+ dto.mayTimeVary = poco.mayTimeVary;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.nestedAction = poco.nestedAction.Select(x => x.Id).ToList();
+ dto.nestedAllocation = poco.nestedAllocation.Select(x => x.Id).ToList();
+ dto.nestedAnalysisCase = poco.nestedAnalysisCase.Select(x => x.Id).ToList();
+ dto.nestedAttribute = poco.nestedAttribute.Select(x => x.Id).ToList();
+ dto.nestedCalculation = poco.nestedCalculation.Select(x => x.Id).ToList();
+ dto.nestedCase = poco.nestedCase.Select(x => x.Id).ToList();
+ dto.nestedConcern = poco.nestedConcern.Select(x => x.Id).ToList();
+ dto.nestedConnection = poco.nestedConnection.Select(x => x.Id).ToList();
+ dto.nestedConstraint = poco.nestedConstraint.Select(x => x.Id).ToList();
+ dto.nestedEnumeration = poco.nestedEnumeration.Select(x => x.Id).ToList();
+ dto.nestedFlow = poco.nestedFlow.Select(x => x.Id).ToList();
+ dto.nestedInterface = poco.nestedInterface.Select(x => x.Id).ToList();
+ dto.nestedItem = poco.nestedItem.Select(x => x.Id).ToList();
+ dto.nestedMetadata = poco.nestedMetadata.Select(x => x.Id).ToList();
+ dto.nestedOccurrence = poco.nestedOccurrence.Select(x => x.Id).ToList();
+ dto.nestedPart = poco.nestedPart.Select(x => x.Id).ToList();
+ dto.nestedPort = poco.nestedPort.Select(x => x.Id).ToList();
+ dto.nestedReference = poco.nestedReference.Select(x => x.Id).ToList();
+ dto.nestedRendering = poco.nestedRendering.Select(x => x.Id).ToList();
+ dto.nestedRequirement = poco.nestedRequirement.Select(x => x.Id).ToList();
+ dto.nestedState = poco.nestedState.Select(x => x.Id).ToList();
+ dto.nestedTransition = poco.nestedTransition.Select(x => x.Id).ToList();
+ dto.nestedUsage = poco.nestedUsage.Select(x => x.Id).ToList();
+ dto.nestedUseCase = poco.nestedUseCase.Select(x => x.Id).ToList();
+ dto.nestedVerificationCase = poco.nestedVerificationCase.Select(x => x.Id).ToList();
+ dto.nestedView = poco.nestedView.Select(x => x.Id).ToList();
+ dto.nestedViewpoint = poco.nestedViewpoint.Select(x => x.Id).ToList();
+ dto.occurrenceDefinition = poco.occurrenceDefinition.Select(x => x.Id).ToList();
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedCrossSubsetting = poco.ownedCrossSubsetting?.Id;
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureChaining = poco.ownedFeatureChaining.Select(x => x.Id).ToList();
+ dto.ownedFeatureInverting = poco.ownedFeatureInverting.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedRedefinition = poco.ownedRedefinition.Select(x => x.Id).ToList();
+ dto.ownedReferenceSubsetting = poco.ownedReferenceSubsetting?.Id;
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedSubsetting = poco.ownedSubsetting.Select(x => x.Id).ToList();
+ dto.ownedTypeFeaturing = poco.ownedTypeFeaturing.Select(x => x.Id).ToList();
+ dto.ownedTyping = poco.ownedTyping.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningDefinition = poco.owningDefinition?.Id;
+ dto.owningFeatureMembership = poco.owningFeatureMembership?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType?.Id;
+ dto.owningUsage = poco.owningUsage?.Id;
+ dto.parameter = poco.parameter.Select(x => x.Id).ToList();
+ dto.qualifiedName = poco.qualifiedName;
+ dto.result = poco.result.Id;
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ dto.usage = poco.usage.Select(x => x.Id).ToList();
+ dto.variant = poco.variant.Select(x => x.Id).ToList();
+ dto.variantMembership = poco.variantMembership.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ConstructorExpressionExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ConstructorExpressionExtensions.cs
index 35b6e88aa..145772fb8 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ConstructorExpressionExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ConstructorExpressionExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Kernel.Expressions;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class ConstructorExpressionExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -113,17 +113,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -173,10 +173,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.Expressions.C
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Kernel.Expressions.ConstructorExpression ToDto(this Core.POCO.Kernel.Expressions.ConstructorExpression poco)
+ public static Core.DTO.Kernel.Expressions.ConstructorExpression ToDto(this Core.POCO.Kernel.Expressions.ConstructorExpression poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Kernel.Expressions.ConstructorExpression();
@@ -200,6 +203,70 @@ public static Core.DTO.Kernel.Expressions.ConstructorExpression ToDto(this Core.
dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList();
dto.OwningRelationship = poco.OwningRelationship?.Id;
+ if (includeDerivedProperties)
+ {
+ dto.argument = poco.argument.Select(x => x.Id).ToList();
+ dto.chainingFeature = poco.chainingFeature.Select(x => x.Id).ToList();
+ dto.crossFeature = poco.crossFeature?.Id;
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endFeature = poco.endFeature.Select(x => x.Id).ToList();
+ dto.endOwningType = poco.endOwningType?.Id;
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.featureTarget = poco.featureTarget.Id;
+ dto.featuringType = poco.featuringType.Select(x => x.Id).ToList();
+ dto.function = poco.function?.Id;
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.instantiatedType = poco.instantiatedType.Id;
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.isModelLevelEvaluable = poco.isModelLevelEvaluable;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedCrossSubsetting = poco.ownedCrossSubsetting?.Id;
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureChaining = poco.ownedFeatureChaining.Select(x => x.Id).ToList();
+ dto.ownedFeatureInverting = poco.ownedFeatureInverting.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedRedefinition = poco.ownedRedefinition.Select(x => x.Id).ToList();
+ dto.ownedReferenceSubsetting = poco.ownedReferenceSubsetting?.Id;
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedSubsetting = poco.ownedSubsetting.Select(x => x.Id).ToList();
+ dto.ownedTypeFeaturing = poco.ownedTypeFeaturing.Select(x => x.Id).ToList();
+ dto.ownedTyping = poco.ownedTyping.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningFeatureMembership = poco.owningFeatureMembership?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType?.Id;
+ dto.parameter = poco.parameter.Select(x => x.Id).ToList();
+ dto.qualifiedName = poco.qualifiedName;
+ dto.result = poco.result.Id;
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.type = poco.type.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/CrossSubsettingExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/CrossSubsettingExtensions.cs
index aa2d8d376..70990f0f4 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/CrossSubsettingExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/CrossSubsettingExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Core.Features;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class CrossSubsettingExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -102,17 +102,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -150,7 +150,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Features.CrossS
{
if (cache.TryGetValue(identifier, out lazyPoco))
{
- poco.OwnedRelatedElement.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value);
+ poco.OwnedRelatedElement.Add(lazyPoco.Value);
}
}
@@ -166,7 +166,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Features.CrossS
if (dto.OwningRelatedElement.HasValue && cache.TryGetValue(dto.OwningRelatedElement.Value, out lazyPoco))
{
- poco.OwningRelatedElement = (Core.POCO.Root.Elements.IElement)lazyPoco.Value;
+ poco.OwningRelatedElement = lazyPoco.Value;
}
else
{
@@ -190,10 +190,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Features.CrossS
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Core.Features.CrossSubsetting ToDto(this Core.POCO.Core.Features.CrossSubsetting poco)
+ public static Core.DTO.Core.Features.CrossSubsetting ToDto(this Core.POCO.Core.Features.CrossSubsetting poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Core.Features.CrossSubsetting();
@@ -210,6 +213,23 @@ public static Core.DTO.Core.Features.CrossSubsetting ToDto(this Core.POCO.Core.F
dto.OwningRelatedElement = poco.OwningRelatedElement?.Id;
dto.OwningRelationship = poco.OwningRelationship?.Id;
+ if (includeDerivedProperties)
+ {
+ dto.crossingFeature = poco.crossingFeature.Id;
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.name = poco.name;
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.relatedElement = poco.relatedElement.Select(x => x.Id).ToList();
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/DataTypeExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/DataTypeExtensions.cs
index ec49678a3..f5731f807 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/DataTypeExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/DataTypeExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Kernel.DataTypes;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class DataTypeExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -95,17 +95,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -155,10 +155,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.DataTypes.Dat
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Kernel.DataTypes.DataType ToDto(this Core.POCO.Kernel.DataTypes.DataType poco)
+ public static Core.DTO.Kernel.DataTypes.DataType ToDto(this Core.POCO.Kernel.DataTypes.DataType poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Kernel.DataTypes.DataType();
@@ -173,6 +176,50 @@ public static Core.DTO.Kernel.DataTypes.DataType ToDto(this Core.POCO.Kernel.Dat
dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList();
dto.OwningRelationship = poco.OwningRelationship?.Id;
+ if (includeDerivedProperties)
+ {
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.directedFeature = poco.directedFeature.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endFeature = poco.endFeature.Select(x => x.Id).ToList();
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedSubclassification = poco.ownedSubclassification.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/DecisionNodeExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/DecisionNodeExtensions.cs
index 971406d8a..f79b212d9 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/DecisionNodeExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/DecisionNodeExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Systems.Actions;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class DecisionNodeExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -117,17 +117,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -177,10 +177,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Actions.Deci
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Systems.Actions.DecisionNode ToDto(this Core.POCO.Systems.Actions.DecisionNode poco)
+ public static Core.DTO.Systems.Actions.DecisionNode ToDto(this Core.POCO.Systems.Actions.DecisionNode poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Systems.Actions.DecisionNode();
@@ -206,6 +209,101 @@ public static Core.DTO.Systems.Actions.DecisionNode ToDto(this Core.POCO.Systems
dto.OwningRelationship = poco.OwningRelationship?.Id;
dto.PortionKind = poco.PortionKind;
+ if (includeDerivedProperties)
+ {
+ dto.actionDefinition = poco.actionDefinition.Select(x => x.Id).ToList();
+ dto.chainingFeature = poco.chainingFeature.Select(x => x.Id).ToList();
+ dto.crossFeature = poco.crossFeature?.Id;
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.directedUsage = poco.directedUsage.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endFeature = poco.endFeature.Select(x => x.Id).ToList();
+ dto.endOwningType = poco.endOwningType?.Id;
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.featureTarget = poco.featureTarget.Id;
+ dto.featuringType = poco.featuringType.Select(x => x.Id).ToList();
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.individualDefinition = poco.individualDefinition?.Id;
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.isReference = poco.isReference;
+ dto.mayTimeVary = poco.mayTimeVary;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.nestedAction = poco.nestedAction.Select(x => x.Id).ToList();
+ dto.nestedAllocation = poco.nestedAllocation.Select(x => x.Id).ToList();
+ dto.nestedAnalysisCase = poco.nestedAnalysisCase.Select(x => x.Id).ToList();
+ dto.nestedAttribute = poco.nestedAttribute.Select(x => x.Id).ToList();
+ dto.nestedCalculation = poco.nestedCalculation.Select(x => x.Id).ToList();
+ dto.nestedCase = poco.nestedCase.Select(x => x.Id).ToList();
+ dto.nestedConcern = poco.nestedConcern.Select(x => x.Id).ToList();
+ dto.nestedConnection = poco.nestedConnection.Select(x => x.Id).ToList();
+ dto.nestedConstraint = poco.nestedConstraint.Select(x => x.Id).ToList();
+ dto.nestedEnumeration = poco.nestedEnumeration.Select(x => x.Id).ToList();
+ dto.nestedFlow = poco.nestedFlow.Select(x => x.Id).ToList();
+ dto.nestedInterface = poco.nestedInterface.Select(x => x.Id).ToList();
+ dto.nestedItem = poco.nestedItem.Select(x => x.Id).ToList();
+ dto.nestedMetadata = poco.nestedMetadata.Select(x => x.Id).ToList();
+ dto.nestedOccurrence = poco.nestedOccurrence.Select(x => x.Id).ToList();
+ dto.nestedPart = poco.nestedPart.Select(x => x.Id).ToList();
+ dto.nestedPort = poco.nestedPort.Select(x => x.Id).ToList();
+ dto.nestedReference = poco.nestedReference.Select(x => x.Id).ToList();
+ dto.nestedRendering = poco.nestedRendering.Select(x => x.Id).ToList();
+ dto.nestedRequirement = poco.nestedRequirement.Select(x => x.Id).ToList();
+ dto.nestedState = poco.nestedState.Select(x => x.Id).ToList();
+ dto.nestedTransition = poco.nestedTransition.Select(x => x.Id).ToList();
+ dto.nestedUsage = poco.nestedUsage.Select(x => x.Id).ToList();
+ dto.nestedUseCase = poco.nestedUseCase.Select(x => x.Id).ToList();
+ dto.nestedVerificationCase = poco.nestedVerificationCase.Select(x => x.Id).ToList();
+ dto.nestedView = poco.nestedView.Select(x => x.Id).ToList();
+ dto.nestedViewpoint = poco.nestedViewpoint.Select(x => x.Id).ToList();
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedCrossSubsetting = poco.ownedCrossSubsetting?.Id;
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureChaining = poco.ownedFeatureChaining.Select(x => x.Id).ToList();
+ dto.ownedFeatureInverting = poco.ownedFeatureInverting.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedRedefinition = poco.ownedRedefinition.Select(x => x.Id).ToList();
+ dto.ownedReferenceSubsetting = poco.ownedReferenceSubsetting?.Id;
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedSubsetting = poco.ownedSubsetting.Select(x => x.Id).ToList();
+ dto.ownedTypeFeaturing = poco.ownedTypeFeaturing.Select(x => x.Id).ToList();
+ dto.ownedTyping = poco.ownedTyping.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningDefinition = poco.owningDefinition?.Id;
+ dto.owningFeatureMembership = poco.owningFeatureMembership?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType?.Id;
+ dto.owningUsage = poco.owningUsage?.Id;
+ dto.parameter = poco.parameter.Select(x => x.Id).ToList();
+ dto.qualifiedName = poco.qualifiedName;
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ dto.usage = poco.usage.Select(x => x.Id).ToList();
+ dto.variant = poco.variant.Select(x => x.Id).ToList();
+ dto.variantMembership = poco.variantMembership.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/DefinitionExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/DefinitionExtensions.cs
index 2c358cda8..bf6263b33 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/DefinitionExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/DefinitionExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Systems.DefinitionAndUsage;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class DefinitionExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -97,17 +97,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -157,10 +157,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.DefinitionAn
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Systems.DefinitionAndUsage.Definition ToDto(this Core.POCO.Systems.DefinitionAndUsage.Definition poco)
+ public static Core.DTO.Systems.DefinitionAndUsage.Definition ToDto(this Core.POCO.Systems.DefinitionAndUsage.Definition poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Systems.DefinitionAndUsage.Definition();
@@ -176,6 +179,81 @@ public static Core.DTO.Systems.DefinitionAndUsage.Definition ToDto(this Core.POC
dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList();
dto.OwningRelationship = poco.OwningRelationship?.Id;
+ if (includeDerivedProperties)
+ {
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.directedFeature = poco.directedFeature.Select(x => x.Id).ToList();
+ dto.directedUsage = poco.directedUsage.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endFeature = poco.endFeature.Select(x => x.Id).ToList();
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAction = poco.ownedAction.Select(x => x.Id).ToList();
+ dto.ownedAllocation = poco.ownedAllocation.Select(x => x.Id).ToList();
+ dto.ownedAnalysisCase = poco.ownedAnalysisCase.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedAttribute = poco.ownedAttribute.Select(x => x.Id).ToList();
+ dto.ownedCalculation = poco.ownedCalculation.Select(x => x.Id).ToList();
+ dto.ownedCase = poco.ownedCase.Select(x => x.Id).ToList();
+ dto.ownedConcern = poco.ownedConcern.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedConnection = poco.ownedConnection.Select(x => x.Id).ToList();
+ dto.ownedConstraint = poco.ownedConstraint.Select(x => x.Id).ToList();
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedEnumeration = poco.ownedEnumeration.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedFlow = poco.ownedFlow.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedInterface = poco.ownedInterface.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedItem = poco.ownedItem.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedMetadata = poco.ownedMetadata.Select(x => x.Id).ToList();
+ dto.ownedOccurrence = poco.ownedOccurrence.Select(x => x.Id).ToList();
+ dto.ownedPart = poco.ownedPart.Select(x => x.Id).ToList();
+ dto.ownedPort = poco.ownedPort.Select(x => x.Id).ToList();
+ dto.ownedReference = poco.ownedReference.Select(x => x.Id).ToList();
+ dto.ownedRendering = poco.ownedRendering.Select(x => x.Id).ToList();
+ dto.ownedRequirement = poco.ownedRequirement.Select(x => x.Id).ToList();
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedState = poco.ownedState.Select(x => x.Id).ToList();
+ dto.ownedSubclassification = poco.ownedSubclassification.Select(x => x.Id).ToList();
+ dto.ownedTransition = poco.ownedTransition.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.ownedUsage = poco.ownedUsage.Select(x => x.Id).ToList();
+ dto.ownedUseCase = poco.ownedUseCase.Select(x => x.Id).ToList();
+ dto.ownedVerificationCase = poco.ownedVerificationCase.Select(x => x.Id).ToList();
+ dto.ownedView = poco.ownedView.Select(x => x.Id).ToList();
+ dto.ownedViewpoint = poco.ownedViewpoint.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ dto.usage = poco.usage.Select(x => x.Id).ToList();
+ dto.variant = poco.variant.Select(x => x.Id).ToList();
+ dto.variantMembership = poco.variantMembership.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/DependencyExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/DependencyExtensions.cs
index 971bc13c8..2a8148de9 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/DependencyExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/DependencyExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Root.Dependencies;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class DependencyExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -118,17 +118,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -157,7 +157,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Root.Dependencies.De
{
if (cache.TryGetValue(identifier, out lazyPoco))
{
- poco.Client.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value);
+ poco.Client.Add(lazyPoco.Value);
}
}
@@ -167,7 +167,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Root.Dependencies.De
{
if (cache.TryGetValue(identifier, out lazyPoco))
{
- poco.OwnedRelatedElement.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value);
+ poco.OwnedRelatedElement.Add(lazyPoco.Value);
}
}
@@ -183,7 +183,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Root.Dependencies.De
if (dto.OwningRelatedElement.HasValue && cache.TryGetValue(dto.OwningRelatedElement.Value, out lazyPoco))
{
- poco.OwningRelatedElement = (Core.POCO.Root.Elements.IElement)lazyPoco.Value;
+ poco.OwningRelatedElement = lazyPoco.Value;
}
else
{
@@ -205,7 +205,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Root.Dependencies.De
{
if (cache.TryGetValue(identifier, out lazyPoco))
{
- poco.Supplier.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value);
+ poco.Supplier.Add(lazyPoco.Value);
}
}
@@ -217,10 +217,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Root.Dependencies.De
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Root.Dependencies.Dependency ToDto(this Core.POCO.Root.Dependencies.Dependency poco)
+ public static Core.DTO.Root.Dependencies.Dependency ToDto(this Core.POCO.Root.Dependencies.Dependency poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Root.Dependencies.Dependency();
@@ -238,6 +241,22 @@ public static Core.DTO.Root.Dependencies.Dependency ToDto(this Core.POCO.Root.De
dto.OwningRelationship = poco.OwningRelationship?.Id;
dto.Supplier = poco.Supplier.Select(x => x.Id).ToList();
+ if (includeDerivedProperties)
+ {
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.name = poco.name;
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.relatedElement = poco.relatedElement.Select(x => x.Id).ToList();
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/DifferencingExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/DifferencingExtensions.cs
index 6e1cc0963..d671ea1d1 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/DifferencingExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/DifferencingExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Core.Types;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class DifferencingExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -102,17 +102,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -150,7 +150,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Types.Differenc
{
if (cache.TryGetValue(identifier, out lazyPoco))
{
- poco.OwnedRelatedElement.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value);
+ poco.OwnedRelatedElement.Add(lazyPoco.Value);
}
}
@@ -166,7 +166,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Types.Differenc
if (dto.OwningRelatedElement.HasValue && cache.TryGetValue(dto.OwningRelatedElement.Value, out lazyPoco))
{
- poco.OwningRelatedElement = (Core.POCO.Root.Elements.IElement)lazyPoco.Value;
+ poco.OwningRelatedElement = lazyPoco.Value;
}
else
{
@@ -190,10 +190,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Types.Differenc
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Core.Types.Differencing ToDto(this Core.POCO.Core.Types.Differencing poco)
+ public static Core.DTO.Core.Types.Differencing ToDto(this Core.POCO.Core.Types.Differencing poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Core.Types.Differencing();
@@ -210,6 +213,23 @@ public static Core.DTO.Core.Types.Differencing ToDto(this Core.POCO.Core.Types.D
dto.OwningRelatedElement = poco.OwningRelatedElement?.Id;
dto.OwningRelationship = poco.OwningRelationship?.Id;
+ if (includeDerivedProperties)
+ {
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.name = poco.name;
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.relatedElement = poco.relatedElement.Select(x => x.Id).ToList();
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.typeDifferenced = poco.typeDifferenced.Id;
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/DisjoiningExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/DisjoiningExtensions.cs
index 02527c1ec..9f698f51d 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/DisjoiningExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/DisjoiningExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Core.Types;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class DisjoiningExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -102,17 +102,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -150,7 +150,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Types.Disjoinin
{
if (cache.TryGetValue(identifier, out lazyPoco))
{
- poco.OwnedRelatedElement.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value);
+ poco.OwnedRelatedElement.Add(lazyPoco.Value);
}
}
@@ -166,7 +166,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Types.Disjoinin
if (dto.OwningRelatedElement.HasValue && cache.TryGetValue(dto.OwningRelatedElement.Value, out lazyPoco))
{
- poco.OwningRelatedElement = (Core.POCO.Root.Elements.IElement)lazyPoco.Value;
+ poco.OwningRelatedElement = lazyPoco.Value;
}
else
{
@@ -199,10 +199,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Types.Disjoinin
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Core.Types.Disjoining ToDto(this Core.POCO.Core.Types.Disjoining poco)
+ public static Core.DTO.Core.Types.Disjoining ToDto(this Core.POCO.Core.Types.Disjoining poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Core.Types.Disjoining();
@@ -220,6 +223,23 @@ public static Core.DTO.Core.Types.Disjoining ToDto(this Core.POCO.Core.Types.Dis
dto.OwningRelationship = poco.OwningRelationship?.Id;
dto.TypeDisjoined = poco.TypeDisjoined.Id;
+ if (includeDerivedProperties)
+ {
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.name = poco.name;
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType?.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.relatedElement = poco.relatedElement.Select(x => x.Id).ToList();
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/DocumentationExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/DocumentationExtensions.cs
index b52da3759..2b85babd5 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/DocumentationExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/DocumentationExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Root.Annotations;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class DocumentationExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -95,17 +95,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -155,10 +155,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Root.Annotations.Doc
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Root.Annotations.Documentation ToDto(this Core.POCO.Root.Annotations.Documentation poco)
+ public static Core.DTO.Root.Annotations.Documentation ToDto(this Core.POCO.Root.Annotations.Documentation poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Root.Annotations.Documentation();
@@ -173,6 +176,25 @@ public static Core.DTO.Root.Annotations.Documentation ToDto(this Core.POCO.Root.
dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList();
dto.OwningRelationship = poco.OwningRelationship?.Id;
+ if (includeDerivedProperties)
+ {
+ dto.annotation = poco.annotation.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.documentedElement = poco.documentedElement.Id;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.name = poco.name;
+ dto.ownedAnnotatingRelationship = poco.ownedAnnotatingRelationship.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningAnnotatingRelationship = poco.owningAnnotatingRelationship?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ElementExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ElementExtensions.cs
index 671f58df1..8db53e8ab 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ElementExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ElementExtensions.cs
@@ -240,14 +240,14 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
- /// s that are know and cached.
+ /// The that contains the
+ /// ModelThings that are know and cached.
///
///
public static void UpdateReferenceProperties(this Core.POCO.Root.Elements.IElement poco, Core.DTO.Root.Elements.IElement dto, ConcurrentDictionary> cache)
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ElementFilterMembershipExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ElementFilterMembershipExtensions.cs
index 01fb15952..c9b17596d 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ElementFilterMembershipExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ElementFilterMembershipExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Kernel.Packages;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class ElementFilterMembershipExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -104,17 +104,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -143,7 +143,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.Packages.Elem
{
if (cache.TryGetValue(identifier, out lazyPoco))
{
- poco.OwnedRelatedElement.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value);
+ poco.OwnedRelatedElement.Add(lazyPoco.Value);
}
}
@@ -159,7 +159,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.Packages.Elem
if (dto.OwningRelatedElement.HasValue && cache.TryGetValue(dto.OwningRelatedElement.Value, out lazyPoco))
{
- poco.OwningRelatedElement = (Core.POCO.Root.Elements.IElement)lazyPoco.Value;
+ poco.OwningRelatedElement = lazyPoco.Value;
}
else
{
@@ -183,10 +183,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.Packages.Elem
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Kernel.Packages.ElementFilterMembership ToDto(this Core.POCO.Kernel.Packages.ElementFilterMembership poco)
+ public static Core.DTO.Kernel.Packages.ElementFilterMembership ToDto(this Core.POCO.Kernel.Packages.ElementFilterMembership poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Kernel.Packages.ElementFilterMembership();
@@ -203,6 +206,27 @@ public static Core.DTO.Kernel.Packages.ElementFilterMembership ToDto(this Core.P
dto.OwningRelationship = poco.OwningRelationship?.Id;
dto.Visibility = poco.Visibility;
+ if (includeDerivedProperties)
+ {
+ dto.condition = poco.condition.Id;
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.membershipOwningNamespace = poco.membershipOwningNamespace.Id;
+ dto.name = poco.name;
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedMemberElementId = poco.ownedMemberElementId;
+ dto.ownedMemberName = poco.ownedMemberName;
+ dto.ownedMemberShortName = poco.ownedMemberShortName;
+ dto.owner = poco.owner?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.relatedElement = poco.relatedElement.Select(x => x.Id).ToList();
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/EndFeatureMembershipExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/EndFeatureMembershipExtensions.cs
index 71bba2588..73c07fb3b 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/EndFeatureMembershipExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/EndFeatureMembershipExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Core.Features;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class EndFeatureMembershipExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -104,17 +104,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -143,7 +143,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Features.EndFea
{
if (cache.TryGetValue(identifier, out lazyPoco))
{
- poco.OwnedRelatedElement.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value);
+ poco.OwnedRelatedElement.Add(lazyPoco.Value);
}
}
@@ -159,7 +159,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Features.EndFea
if (dto.OwningRelatedElement.HasValue && cache.TryGetValue(dto.OwningRelatedElement.Value, out lazyPoco))
{
- poco.OwningRelatedElement = (Core.POCO.Root.Elements.IElement)lazyPoco.Value;
+ poco.OwningRelatedElement = lazyPoco.Value;
}
else
{
@@ -183,10 +183,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Features.EndFea
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Core.Features.EndFeatureMembership ToDto(this Core.POCO.Core.Features.EndFeatureMembership poco)
+ public static Core.DTO.Core.Features.EndFeatureMembership ToDto(this Core.POCO.Core.Features.EndFeatureMembership poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Core.Features.EndFeatureMembership();
@@ -203,6 +206,27 @@ public static Core.DTO.Core.Features.EndFeatureMembership ToDto(this Core.POCO.C
dto.OwningRelationship = poco.OwningRelationship?.Id;
dto.Visibility = poco.Visibility;
+ if (includeDerivedProperties)
+ {
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.name = poco.name;
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedMemberElementId = poco.ownedMemberElementId;
+ dto.ownedMemberFeature = poco.ownedMemberFeature.Id;
+ dto.ownedMemberName = poco.ownedMemberName;
+ dto.ownedMemberShortName = poco.ownedMemberShortName;
+ dto.owner = poco.owner?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.relatedElement = poco.relatedElement.Select(x => x.Id).ToList();
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/EnumerationDefinitionExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/EnumerationDefinitionExtensions.cs
index de2516dea..e011e6fec 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/EnumerationDefinitionExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/EnumerationDefinitionExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Systems.Enumerations;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class EnumerationDefinitionExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -97,17 +97,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -157,10 +157,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Enumerations
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Systems.Enumerations.EnumerationDefinition ToDto(this Core.POCO.Systems.Enumerations.EnumerationDefinition poco)
+ public static Core.DTO.Systems.Enumerations.EnumerationDefinition ToDto(this Core.POCO.Systems.Enumerations.EnumerationDefinition poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Systems.Enumerations.EnumerationDefinition();
@@ -176,6 +179,81 @@ public static Core.DTO.Systems.Enumerations.EnumerationDefinition ToDto(this Cor
dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList();
dto.OwningRelationship = poco.OwningRelationship?.Id;
+ if (includeDerivedProperties)
+ {
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.directedFeature = poco.directedFeature.Select(x => x.Id).ToList();
+ dto.directedUsage = poco.directedUsage.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endFeature = poco.endFeature.Select(x => x.Id).ToList();
+ dto.enumeratedValue = poco.enumeratedValue.Select(x => x.Id).ToList();
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAction = poco.ownedAction.Select(x => x.Id).ToList();
+ dto.ownedAllocation = poco.ownedAllocation.Select(x => x.Id).ToList();
+ dto.ownedAnalysisCase = poco.ownedAnalysisCase.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedAttribute = poco.ownedAttribute.Select(x => x.Id).ToList();
+ dto.ownedCalculation = poco.ownedCalculation.Select(x => x.Id).ToList();
+ dto.ownedCase = poco.ownedCase.Select(x => x.Id).ToList();
+ dto.ownedConcern = poco.ownedConcern.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedConnection = poco.ownedConnection.Select(x => x.Id).ToList();
+ dto.ownedConstraint = poco.ownedConstraint.Select(x => x.Id).ToList();
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedEnumeration = poco.ownedEnumeration.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedFlow = poco.ownedFlow.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedInterface = poco.ownedInterface.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedItem = poco.ownedItem.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedMetadata = poco.ownedMetadata.Select(x => x.Id).ToList();
+ dto.ownedOccurrence = poco.ownedOccurrence.Select(x => x.Id).ToList();
+ dto.ownedPart = poco.ownedPart.Select(x => x.Id).ToList();
+ dto.ownedPort = poco.ownedPort.Select(x => x.Id).ToList();
+ dto.ownedReference = poco.ownedReference.Select(x => x.Id).ToList();
+ dto.ownedRendering = poco.ownedRendering.Select(x => x.Id).ToList();
+ dto.ownedRequirement = poco.ownedRequirement.Select(x => x.Id).ToList();
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedState = poco.ownedState.Select(x => x.Id).ToList();
+ dto.ownedSubclassification = poco.ownedSubclassification.Select(x => x.Id).ToList();
+ dto.ownedTransition = poco.ownedTransition.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.ownedUsage = poco.ownedUsage.Select(x => x.Id).ToList();
+ dto.ownedUseCase = poco.ownedUseCase.Select(x => x.Id).ToList();
+ dto.ownedVerificationCase = poco.ownedVerificationCase.Select(x => x.Id).ToList();
+ dto.ownedView = poco.ownedView.Select(x => x.Id).ToList();
+ dto.ownedViewpoint = poco.ownedViewpoint.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ dto.usage = poco.usage.Select(x => x.Id).ToList();
+ dto.variantMembership = poco.variantMembership.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/EnumerationUsageExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/EnumerationUsageExtensions.cs
index e89ac1c9d..3bd0ed5d3 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/EnumerationUsageExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/EnumerationUsageExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Systems.Enumerations;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class EnumerationUsageExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -113,17 +113,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -173,10 +173,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Enumerations
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Systems.Enumerations.EnumerationUsage ToDto(this Core.POCO.Systems.Enumerations.EnumerationUsage poco)
+ public static Core.DTO.Systems.Enumerations.EnumerationUsage ToDto(this Core.POCO.Systems.Enumerations.EnumerationUsage poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Systems.Enumerations.EnumerationUsage();
@@ -200,6 +203,100 @@ public static Core.DTO.Systems.Enumerations.EnumerationUsage ToDto(this Core.POC
dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList();
dto.OwningRelationship = poco.OwningRelationship?.Id;
+ if (includeDerivedProperties)
+ {
+ dto.chainingFeature = poco.chainingFeature.Select(x => x.Id).ToList();
+ dto.crossFeature = poco.crossFeature?.Id;
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.directedFeature = poco.directedFeature.Select(x => x.Id).ToList();
+ dto.directedUsage = poco.directedUsage.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endFeature = poco.endFeature.Select(x => x.Id).ToList();
+ dto.endOwningType = poco.endOwningType?.Id;
+ dto.enumerationDefinition = poco.enumerationDefinition.Id;
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.featureTarget = poco.featureTarget.Id;
+ dto.featuringType = poco.featuringType.Select(x => x.Id).ToList();
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.isReference = poco.isReference;
+ dto.mayTimeVary = poco.mayTimeVary;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.nestedAction = poco.nestedAction.Select(x => x.Id).ToList();
+ dto.nestedAllocation = poco.nestedAllocation.Select(x => x.Id).ToList();
+ dto.nestedAnalysisCase = poco.nestedAnalysisCase.Select(x => x.Id).ToList();
+ dto.nestedAttribute = poco.nestedAttribute.Select(x => x.Id).ToList();
+ dto.nestedCalculation = poco.nestedCalculation.Select(x => x.Id).ToList();
+ dto.nestedCase = poco.nestedCase.Select(x => x.Id).ToList();
+ dto.nestedConcern = poco.nestedConcern.Select(x => x.Id).ToList();
+ dto.nestedConnection = poco.nestedConnection.Select(x => x.Id).ToList();
+ dto.nestedConstraint = poco.nestedConstraint.Select(x => x.Id).ToList();
+ dto.nestedEnumeration = poco.nestedEnumeration.Select(x => x.Id).ToList();
+ dto.nestedFlow = poco.nestedFlow.Select(x => x.Id).ToList();
+ dto.nestedInterface = poco.nestedInterface.Select(x => x.Id).ToList();
+ dto.nestedItem = poco.nestedItem.Select(x => x.Id).ToList();
+ dto.nestedMetadata = poco.nestedMetadata.Select(x => x.Id).ToList();
+ dto.nestedOccurrence = poco.nestedOccurrence.Select(x => x.Id).ToList();
+ dto.nestedPart = poco.nestedPart.Select(x => x.Id).ToList();
+ dto.nestedPort = poco.nestedPort.Select(x => x.Id).ToList();
+ dto.nestedReference = poco.nestedReference.Select(x => x.Id).ToList();
+ dto.nestedRendering = poco.nestedRendering.Select(x => x.Id).ToList();
+ dto.nestedRequirement = poco.nestedRequirement.Select(x => x.Id).ToList();
+ dto.nestedState = poco.nestedState.Select(x => x.Id).ToList();
+ dto.nestedTransition = poco.nestedTransition.Select(x => x.Id).ToList();
+ dto.nestedUsage = poco.nestedUsage.Select(x => x.Id).ToList();
+ dto.nestedUseCase = poco.nestedUseCase.Select(x => x.Id).ToList();
+ dto.nestedVerificationCase = poco.nestedVerificationCase.Select(x => x.Id).ToList();
+ dto.nestedView = poco.nestedView.Select(x => x.Id).ToList();
+ dto.nestedViewpoint = poco.nestedViewpoint.Select(x => x.Id).ToList();
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedCrossSubsetting = poco.ownedCrossSubsetting?.Id;
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureChaining = poco.ownedFeatureChaining.Select(x => x.Id).ToList();
+ dto.ownedFeatureInverting = poco.ownedFeatureInverting.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedRedefinition = poco.ownedRedefinition.Select(x => x.Id).ToList();
+ dto.ownedReferenceSubsetting = poco.ownedReferenceSubsetting?.Id;
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedSubsetting = poco.ownedSubsetting.Select(x => x.Id).ToList();
+ dto.ownedTypeFeaturing = poco.ownedTypeFeaturing.Select(x => x.Id).ToList();
+ dto.ownedTyping = poco.ownedTyping.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningDefinition = poco.owningDefinition?.Id;
+ dto.owningFeatureMembership = poco.owningFeatureMembership?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType?.Id;
+ dto.owningUsage = poco.owningUsage?.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ dto.usage = poco.usage.Select(x => x.Id).ToList();
+ dto.variant = poco.variant.Select(x => x.Id).ToList();
+ dto.variantMembership = poco.variantMembership.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/EventOccurrenceUsageExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/EventOccurrenceUsageExtensions.cs
index 957917855..68db62e1e 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/EventOccurrenceUsageExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/EventOccurrenceUsageExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Systems.Occurrences;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class EventOccurrenceUsageExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -117,17 +117,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -177,10 +177,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Occurrences.
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Systems.Occurrences.EventOccurrenceUsage ToDto(this Core.POCO.Systems.Occurrences.EventOccurrenceUsage poco)
+ public static Core.DTO.Systems.Occurrences.EventOccurrenceUsage ToDto(this Core.POCO.Systems.Occurrences.EventOccurrenceUsage poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Systems.Occurrences.EventOccurrenceUsage();
@@ -206,6 +209,102 @@ public static Core.DTO.Systems.Occurrences.EventOccurrenceUsage ToDto(this Core.
dto.OwningRelationship = poco.OwningRelationship?.Id;
dto.PortionKind = poco.PortionKind;
+ if (includeDerivedProperties)
+ {
+ dto.chainingFeature = poco.chainingFeature.Select(x => x.Id).ToList();
+ dto.crossFeature = poco.crossFeature?.Id;
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.directedFeature = poco.directedFeature.Select(x => x.Id).ToList();
+ dto.directedUsage = poco.directedUsage.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endFeature = poco.endFeature.Select(x => x.Id).ToList();
+ dto.endOwningType = poco.endOwningType?.Id;
+ dto.eventOccurrence = poco.eventOccurrence.Id;
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.featureTarget = poco.featureTarget.Id;
+ dto.featuringType = poco.featuringType.Select(x => x.Id).ToList();
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.individualDefinition = poco.individualDefinition?.Id;
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.isReference = poco.isReference;
+ dto.mayTimeVary = poco.mayTimeVary;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.nestedAction = poco.nestedAction.Select(x => x.Id).ToList();
+ dto.nestedAllocation = poco.nestedAllocation.Select(x => x.Id).ToList();
+ dto.nestedAnalysisCase = poco.nestedAnalysisCase.Select(x => x.Id).ToList();
+ dto.nestedAttribute = poco.nestedAttribute.Select(x => x.Id).ToList();
+ dto.nestedCalculation = poco.nestedCalculation.Select(x => x.Id).ToList();
+ dto.nestedCase = poco.nestedCase.Select(x => x.Id).ToList();
+ dto.nestedConcern = poco.nestedConcern.Select(x => x.Id).ToList();
+ dto.nestedConnection = poco.nestedConnection.Select(x => x.Id).ToList();
+ dto.nestedConstraint = poco.nestedConstraint.Select(x => x.Id).ToList();
+ dto.nestedEnumeration = poco.nestedEnumeration.Select(x => x.Id).ToList();
+ dto.nestedFlow = poco.nestedFlow.Select(x => x.Id).ToList();
+ dto.nestedInterface = poco.nestedInterface.Select(x => x.Id).ToList();
+ dto.nestedItem = poco.nestedItem.Select(x => x.Id).ToList();
+ dto.nestedMetadata = poco.nestedMetadata.Select(x => x.Id).ToList();
+ dto.nestedOccurrence = poco.nestedOccurrence.Select(x => x.Id).ToList();
+ dto.nestedPart = poco.nestedPart.Select(x => x.Id).ToList();
+ dto.nestedPort = poco.nestedPort.Select(x => x.Id).ToList();
+ dto.nestedReference = poco.nestedReference.Select(x => x.Id).ToList();
+ dto.nestedRendering = poco.nestedRendering.Select(x => x.Id).ToList();
+ dto.nestedRequirement = poco.nestedRequirement.Select(x => x.Id).ToList();
+ dto.nestedState = poco.nestedState.Select(x => x.Id).ToList();
+ dto.nestedTransition = poco.nestedTransition.Select(x => x.Id).ToList();
+ dto.nestedUsage = poco.nestedUsage.Select(x => x.Id).ToList();
+ dto.nestedUseCase = poco.nestedUseCase.Select(x => x.Id).ToList();
+ dto.nestedVerificationCase = poco.nestedVerificationCase.Select(x => x.Id).ToList();
+ dto.nestedView = poco.nestedView.Select(x => x.Id).ToList();
+ dto.nestedViewpoint = poco.nestedViewpoint.Select(x => x.Id).ToList();
+ dto.occurrenceDefinition = poco.occurrenceDefinition.Select(x => x.Id).ToList();
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedCrossSubsetting = poco.ownedCrossSubsetting?.Id;
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureChaining = poco.ownedFeatureChaining.Select(x => x.Id).ToList();
+ dto.ownedFeatureInverting = poco.ownedFeatureInverting.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedRedefinition = poco.ownedRedefinition.Select(x => x.Id).ToList();
+ dto.ownedReferenceSubsetting = poco.ownedReferenceSubsetting?.Id;
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedSubsetting = poco.ownedSubsetting.Select(x => x.Id).ToList();
+ dto.ownedTypeFeaturing = poco.ownedTypeFeaturing.Select(x => x.Id).ToList();
+ dto.ownedTyping = poco.ownedTyping.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningDefinition = poco.owningDefinition?.Id;
+ dto.owningFeatureMembership = poco.owningFeatureMembership?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType?.Id;
+ dto.owningUsage = poco.owningUsage?.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ dto.usage = poco.usage.Select(x => x.Id).ToList();
+ dto.variant = poco.variant.Select(x => x.Id).ToList();
+ dto.variantMembership = poco.variantMembership.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ExhibitStateUsageExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ExhibitStateUsageExtensions.cs
index 5a54bece6..5de5f829b 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ExhibitStateUsageExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ExhibitStateUsageExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Systems.States;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class ExhibitStateUsageExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -119,17 +119,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -179,10 +179,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.States.Exhib
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Systems.States.ExhibitStateUsage ToDto(this Core.POCO.Systems.States.ExhibitStateUsage poco)
+ public static Core.DTO.Systems.States.ExhibitStateUsage ToDto(this Core.POCO.Systems.States.ExhibitStateUsage poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Systems.States.ExhibitStateUsage();
@@ -209,6 +212,105 @@ public static Core.DTO.Systems.States.ExhibitStateUsage ToDto(this Core.POCO.Sys
dto.OwningRelationship = poco.OwningRelationship?.Id;
dto.PortionKind = poco.PortionKind;
+ if (includeDerivedProperties)
+ {
+ dto.chainingFeature = poco.chainingFeature.Select(x => x.Id).ToList();
+ dto.crossFeature = poco.crossFeature?.Id;
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.directedUsage = poco.directedUsage.Select(x => x.Id).ToList();
+ dto.doAction = poco.doAction?.Id;
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endFeature = poco.endFeature.Select(x => x.Id).ToList();
+ dto.endOwningType = poco.endOwningType?.Id;
+ dto.entryAction = poco.entryAction?.Id;
+ dto.exhibitedState = poco.exhibitedState.Id;
+ dto.exitAction = poco.exitAction?.Id;
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.featureTarget = poco.featureTarget.Id;
+ dto.featuringType = poco.featuringType.Select(x => x.Id).ToList();
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.individualDefinition = poco.individualDefinition?.Id;
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.isReference = poco.isReference;
+ dto.mayTimeVary = poco.mayTimeVary;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.nestedAction = poco.nestedAction.Select(x => x.Id).ToList();
+ dto.nestedAllocation = poco.nestedAllocation.Select(x => x.Id).ToList();
+ dto.nestedAnalysisCase = poco.nestedAnalysisCase.Select(x => x.Id).ToList();
+ dto.nestedAttribute = poco.nestedAttribute.Select(x => x.Id).ToList();
+ dto.nestedCalculation = poco.nestedCalculation.Select(x => x.Id).ToList();
+ dto.nestedCase = poco.nestedCase.Select(x => x.Id).ToList();
+ dto.nestedConcern = poco.nestedConcern.Select(x => x.Id).ToList();
+ dto.nestedConnection = poco.nestedConnection.Select(x => x.Id).ToList();
+ dto.nestedConstraint = poco.nestedConstraint.Select(x => x.Id).ToList();
+ dto.nestedEnumeration = poco.nestedEnumeration.Select(x => x.Id).ToList();
+ dto.nestedFlow = poco.nestedFlow.Select(x => x.Id).ToList();
+ dto.nestedInterface = poco.nestedInterface.Select(x => x.Id).ToList();
+ dto.nestedItem = poco.nestedItem.Select(x => x.Id).ToList();
+ dto.nestedMetadata = poco.nestedMetadata.Select(x => x.Id).ToList();
+ dto.nestedOccurrence = poco.nestedOccurrence.Select(x => x.Id).ToList();
+ dto.nestedPart = poco.nestedPart.Select(x => x.Id).ToList();
+ dto.nestedPort = poco.nestedPort.Select(x => x.Id).ToList();
+ dto.nestedReference = poco.nestedReference.Select(x => x.Id).ToList();
+ dto.nestedRendering = poco.nestedRendering.Select(x => x.Id).ToList();
+ dto.nestedRequirement = poco.nestedRequirement.Select(x => x.Id).ToList();
+ dto.nestedState = poco.nestedState.Select(x => x.Id).ToList();
+ dto.nestedTransition = poco.nestedTransition.Select(x => x.Id).ToList();
+ dto.nestedUsage = poco.nestedUsage.Select(x => x.Id).ToList();
+ dto.nestedUseCase = poco.nestedUseCase.Select(x => x.Id).ToList();
+ dto.nestedVerificationCase = poco.nestedVerificationCase.Select(x => x.Id).ToList();
+ dto.nestedView = poco.nestedView.Select(x => x.Id).ToList();
+ dto.nestedViewpoint = poco.nestedViewpoint.Select(x => x.Id).ToList();
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedCrossSubsetting = poco.ownedCrossSubsetting?.Id;
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureChaining = poco.ownedFeatureChaining.Select(x => x.Id).ToList();
+ dto.ownedFeatureInverting = poco.ownedFeatureInverting.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedRedefinition = poco.ownedRedefinition.Select(x => x.Id).ToList();
+ dto.ownedReferenceSubsetting = poco.ownedReferenceSubsetting?.Id;
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedSubsetting = poco.ownedSubsetting.Select(x => x.Id).ToList();
+ dto.ownedTypeFeaturing = poco.ownedTypeFeaturing.Select(x => x.Id).ToList();
+ dto.ownedTyping = poco.ownedTyping.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningDefinition = poco.owningDefinition?.Id;
+ dto.owningFeatureMembership = poco.owningFeatureMembership?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType?.Id;
+ dto.owningUsage = poco.owningUsage?.Id;
+ dto.parameter = poco.parameter.Select(x => x.Id).ToList();
+ dto.qualifiedName = poco.qualifiedName;
+ dto.shortName = poco.shortName;
+ dto.stateDefinition = poco.stateDefinition.Select(x => x.Id).ToList();
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ dto.usage = poco.usage.Select(x => x.Id).ToList();
+ dto.variant = poco.variant.Select(x => x.Id).ToList();
+ dto.variantMembership = poco.variantMembership.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ExpressionExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ExpressionExtensions.cs
index d4db25d18..c706afdb7 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ExpressionExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ExpressionExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Kernel.Functions;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class ExpressionExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -113,17 +113,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -173,10 +173,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.Functions.Exp
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Kernel.Functions.Expression ToDto(this Core.POCO.Kernel.Functions.Expression poco)
+ public static Core.DTO.Kernel.Functions.Expression ToDto(this Core.POCO.Kernel.Functions.Expression poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Kernel.Functions.Expression();
@@ -200,6 +203,68 @@ public static Core.DTO.Kernel.Functions.Expression ToDto(this Core.POCO.Kernel.F
dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList();
dto.OwningRelationship = poco.OwningRelationship?.Id;
+ if (includeDerivedProperties)
+ {
+ dto.chainingFeature = poco.chainingFeature.Select(x => x.Id).ToList();
+ dto.crossFeature = poco.crossFeature?.Id;
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endFeature = poco.endFeature.Select(x => x.Id).ToList();
+ dto.endOwningType = poco.endOwningType?.Id;
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.featureTarget = poco.featureTarget.Id;
+ dto.featuringType = poco.featuringType.Select(x => x.Id).ToList();
+ dto.function = poco.function?.Id;
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.isModelLevelEvaluable = poco.isModelLevelEvaluable;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedCrossSubsetting = poco.ownedCrossSubsetting?.Id;
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureChaining = poco.ownedFeatureChaining.Select(x => x.Id).ToList();
+ dto.ownedFeatureInverting = poco.ownedFeatureInverting.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedRedefinition = poco.ownedRedefinition.Select(x => x.Id).ToList();
+ dto.ownedReferenceSubsetting = poco.ownedReferenceSubsetting?.Id;
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedSubsetting = poco.ownedSubsetting.Select(x => x.Id).ToList();
+ dto.ownedTypeFeaturing = poco.ownedTypeFeaturing.Select(x => x.Id).ToList();
+ dto.ownedTyping = poco.ownedTyping.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningFeatureMembership = poco.owningFeatureMembership?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType?.Id;
+ dto.parameter = poco.parameter.Select(x => x.Id).ToList();
+ dto.qualifiedName = poco.qualifiedName;
+ dto.result = poco.result.Id;
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.type = poco.type.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/FeatureChainExpressionExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/FeatureChainExpressionExtensions.cs
index fc6ce6c92..6300559db 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/FeatureChainExpressionExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/FeatureChainExpressionExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Kernel.Expressions;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class FeatureChainExpressionExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -115,17 +115,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -175,10 +175,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.Expressions.F
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Kernel.Expressions.FeatureChainExpression ToDto(this Core.POCO.Kernel.Expressions.FeatureChainExpression poco)
+ public static Core.DTO.Kernel.Expressions.FeatureChainExpression ToDto(this Core.POCO.Kernel.Expressions.FeatureChainExpression poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Kernel.Expressions.FeatureChainExpression();
@@ -203,6 +206,71 @@ public static Core.DTO.Kernel.Expressions.FeatureChainExpression ToDto(this Core
dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList();
dto.OwningRelationship = poco.OwningRelationship?.Id;
+ if (includeDerivedProperties)
+ {
+ dto.argument = poco.argument.Select(x => x.Id).ToList();
+ dto.chainingFeature = poco.chainingFeature.Select(x => x.Id).ToList();
+ dto.crossFeature = poco.crossFeature?.Id;
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endFeature = poco.endFeature.Select(x => x.Id).ToList();
+ dto.endOwningType = poco.endOwningType?.Id;
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.featureTarget = poco.featureTarget.Id;
+ dto.featuringType = poco.featuringType.Select(x => x.Id).ToList();
+ dto.function = poco.function?.Id;
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.instantiatedType = poco.instantiatedType.Id;
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.isModelLevelEvaluable = poco.isModelLevelEvaluable;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedCrossSubsetting = poco.ownedCrossSubsetting?.Id;
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureChaining = poco.ownedFeatureChaining.Select(x => x.Id).ToList();
+ dto.ownedFeatureInverting = poco.ownedFeatureInverting.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedRedefinition = poco.ownedRedefinition.Select(x => x.Id).ToList();
+ dto.ownedReferenceSubsetting = poco.ownedReferenceSubsetting?.Id;
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedSubsetting = poco.ownedSubsetting.Select(x => x.Id).ToList();
+ dto.ownedTypeFeaturing = poco.ownedTypeFeaturing.Select(x => x.Id).ToList();
+ dto.ownedTyping = poco.ownedTyping.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningFeatureMembership = poco.owningFeatureMembership?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType?.Id;
+ dto.parameter = poco.parameter.Select(x => x.Id).ToList();
+ dto.qualifiedName = poco.qualifiedName;
+ dto.result = poco.result.Id;
+ dto.shortName = poco.shortName;
+ dto.targetFeature = poco.targetFeature.Id;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.type = poco.type.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/FeatureChainingExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/FeatureChainingExtensions.cs
index d46b8bac7..c3ca51b02 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/FeatureChainingExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/FeatureChainingExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Core.Features;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class FeatureChainingExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -102,17 +102,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -150,7 +150,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Features.Featur
{
if (cache.TryGetValue(identifier, out lazyPoco))
{
- poco.OwnedRelatedElement.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value);
+ poco.OwnedRelatedElement.Add(lazyPoco.Value);
}
}
@@ -166,7 +166,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Features.Featur
if (dto.OwningRelatedElement.HasValue && cache.TryGetValue(dto.OwningRelatedElement.Value, out lazyPoco))
{
- poco.OwningRelatedElement = (Core.POCO.Root.Elements.IElement)lazyPoco.Value;
+ poco.OwningRelatedElement = lazyPoco.Value;
}
else
{
@@ -190,10 +190,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Features.Featur
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Core.Features.FeatureChaining ToDto(this Core.POCO.Core.Features.FeatureChaining poco)
+ public static Core.DTO.Core.Features.FeatureChaining ToDto(this Core.POCO.Core.Features.FeatureChaining poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Core.Features.FeatureChaining();
@@ -210,6 +213,23 @@ public static Core.DTO.Core.Features.FeatureChaining ToDto(this Core.POCO.Core.F
dto.OwningRelatedElement = poco.OwningRelatedElement?.Id;
dto.OwningRelationship = poco.OwningRelationship?.Id;
+ if (includeDerivedProperties)
+ {
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.featureChained = poco.featureChained.Id;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.name = poco.name;
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.relatedElement = poco.relatedElement.Select(x => x.Id).ToList();
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/FeatureExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/FeatureExtensions.cs
index e17516dc0..1220c774a 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/FeatureExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/FeatureExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Core.Features;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class FeatureExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -113,17 +113,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -173,10 +173,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Features.Featur
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Core.Features.Feature ToDto(this Core.POCO.Core.Features.Feature poco)
+ public static Core.DTO.Core.Features.Feature ToDto(this Core.POCO.Core.Features.Feature poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Core.Features.Feature();
@@ -200,6 +203,65 @@ public static Core.DTO.Core.Features.Feature ToDto(this Core.POCO.Core.Features.
dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList();
dto.OwningRelationship = poco.OwningRelationship?.Id;
+ if (includeDerivedProperties)
+ {
+ dto.chainingFeature = poco.chainingFeature.Select(x => x.Id).ToList();
+ dto.crossFeature = poco.crossFeature?.Id;
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.directedFeature = poco.directedFeature.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endFeature = poco.endFeature.Select(x => x.Id).ToList();
+ dto.endOwningType = poco.endOwningType?.Id;
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.featureTarget = poco.featureTarget.Id;
+ dto.featuringType = poco.featuringType.Select(x => x.Id).ToList();
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedCrossSubsetting = poco.ownedCrossSubsetting?.Id;
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureChaining = poco.ownedFeatureChaining.Select(x => x.Id).ToList();
+ dto.ownedFeatureInverting = poco.ownedFeatureInverting.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedRedefinition = poco.ownedRedefinition.Select(x => x.Id).ToList();
+ dto.ownedReferenceSubsetting = poco.ownedReferenceSubsetting?.Id;
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedSubsetting = poco.ownedSubsetting.Select(x => x.Id).ToList();
+ dto.ownedTypeFeaturing = poco.ownedTypeFeaturing.Select(x => x.Id).ToList();
+ dto.ownedTyping = poco.ownedTyping.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningFeatureMembership = poco.owningFeatureMembership?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType?.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.type = poco.type.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/FeatureInvertingExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/FeatureInvertingExtensions.cs
index 52c12318b..fd1909c84 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/FeatureInvertingExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/FeatureInvertingExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Core.Features;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class FeatureInvertingExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -102,17 +102,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -159,7 +159,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Features.Featur
{
if (cache.TryGetValue(identifier, out lazyPoco))
{
- poco.OwnedRelatedElement.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value);
+ poco.OwnedRelatedElement.Add(lazyPoco.Value);
}
}
@@ -175,7 +175,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Features.Featur
if (dto.OwningRelatedElement.HasValue && cache.TryGetValue(dto.OwningRelatedElement.Value, out lazyPoco))
{
- poco.OwningRelatedElement = (Core.POCO.Root.Elements.IElement)lazyPoco.Value;
+ poco.OwningRelatedElement = lazyPoco.Value;
}
else
{
@@ -199,10 +199,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Features.Featur
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Core.Features.FeatureInverting ToDto(this Core.POCO.Core.Features.FeatureInverting poco)
+ public static Core.DTO.Core.Features.FeatureInverting ToDto(this Core.POCO.Core.Features.FeatureInverting poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Core.Features.FeatureInverting();
@@ -220,6 +223,23 @@ public static Core.DTO.Core.Features.FeatureInverting ToDto(this Core.POCO.Core.
dto.OwningRelatedElement = poco.OwningRelatedElement?.Id;
dto.OwningRelationship = poco.OwningRelationship?.Id;
+ if (includeDerivedProperties)
+ {
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.name = poco.name;
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningFeature = poco.owningFeature?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.relatedElement = poco.relatedElement.Select(x => x.Id).ToList();
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/FeatureMembershipExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/FeatureMembershipExtensions.cs
index 25cea2355..c0e0b21b2 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/FeatureMembershipExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/FeatureMembershipExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Core.Types;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class FeatureMembershipExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -104,17 +104,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -143,7 +143,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Types.FeatureMe
{
if (cache.TryGetValue(identifier, out lazyPoco))
{
- poco.OwnedRelatedElement.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value);
+ poco.OwnedRelatedElement.Add(lazyPoco.Value);
}
}
@@ -159,7 +159,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Types.FeatureMe
if (dto.OwningRelatedElement.HasValue && cache.TryGetValue(dto.OwningRelatedElement.Value, out lazyPoco))
{
- poco.OwningRelatedElement = (Core.POCO.Root.Elements.IElement)lazyPoco.Value;
+ poco.OwningRelatedElement = lazyPoco.Value;
}
else
{
@@ -183,10 +183,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Types.FeatureMe
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Core.Types.FeatureMembership ToDto(this Core.POCO.Core.Types.FeatureMembership poco)
+ public static Core.DTO.Core.Types.FeatureMembership ToDto(this Core.POCO.Core.Types.FeatureMembership poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Core.Types.FeatureMembership();
@@ -203,6 +206,27 @@ public static Core.DTO.Core.Types.FeatureMembership ToDto(this Core.POCO.Core.Ty
dto.OwningRelationship = poco.OwningRelationship?.Id;
dto.Visibility = poco.Visibility;
+ if (includeDerivedProperties)
+ {
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.name = poco.name;
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedMemberElementId = poco.ownedMemberElementId;
+ dto.ownedMemberFeature = poco.ownedMemberFeature.Id;
+ dto.ownedMemberName = poco.ownedMemberName;
+ dto.ownedMemberShortName = poco.ownedMemberShortName;
+ dto.owner = poco.owner?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.relatedElement = poco.relatedElement.Select(x => x.Id).ToList();
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/FeatureReferenceExpressionExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/FeatureReferenceExpressionExtensions.cs
index 6500cc0d5..429f5a7ab 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/FeatureReferenceExpressionExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/FeatureReferenceExpressionExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Kernel.Expressions;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class FeatureReferenceExpressionExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -113,17 +113,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -173,10 +173,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.Expressions.F
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Kernel.Expressions.FeatureReferenceExpression ToDto(this Core.POCO.Kernel.Expressions.FeatureReferenceExpression poco)
+ public static Core.DTO.Kernel.Expressions.FeatureReferenceExpression ToDto(this Core.POCO.Kernel.Expressions.FeatureReferenceExpression poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Kernel.Expressions.FeatureReferenceExpression();
@@ -200,6 +203,69 @@ public static Core.DTO.Kernel.Expressions.FeatureReferenceExpression ToDto(this
dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList();
dto.OwningRelationship = poco.OwningRelationship?.Id;
+ if (includeDerivedProperties)
+ {
+ dto.chainingFeature = poco.chainingFeature.Select(x => x.Id).ToList();
+ dto.crossFeature = poco.crossFeature?.Id;
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endFeature = poco.endFeature.Select(x => x.Id).ToList();
+ dto.endOwningType = poco.endOwningType?.Id;
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.featureTarget = poco.featureTarget.Id;
+ dto.featuringType = poco.featuringType.Select(x => x.Id).ToList();
+ dto.function = poco.function?.Id;
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.isModelLevelEvaluable = poco.isModelLevelEvaluable;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedCrossSubsetting = poco.ownedCrossSubsetting?.Id;
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureChaining = poco.ownedFeatureChaining.Select(x => x.Id).ToList();
+ dto.ownedFeatureInverting = poco.ownedFeatureInverting.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedRedefinition = poco.ownedRedefinition.Select(x => x.Id).ToList();
+ dto.ownedReferenceSubsetting = poco.ownedReferenceSubsetting?.Id;
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedSubsetting = poco.ownedSubsetting.Select(x => x.Id).ToList();
+ dto.ownedTypeFeaturing = poco.ownedTypeFeaturing.Select(x => x.Id).ToList();
+ dto.ownedTyping = poco.ownedTyping.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningFeatureMembership = poco.owningFeatureMembership?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType?.Id;
+ dto.parameter = poco.parameter.Select(x => x.Id).ToList();
+ dto.qualifiedName = poco.qualifiedName;
+ dto.referent = poco.referent.Id;
+ dto.result = poco.result.Id;
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.type = poco.type.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/FeatureTypingExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/FeatureTypingExtensions.cs
index 45b4d58bc..bac5daaf9 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/FeatureTypingExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/FeatureTypingExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Core.Features;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class FeatureTypingExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -102,17 +102,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -141,7 +141,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Features.Featur
{
if (cache.TryGetValue(identifier, out lazyPoco))
{
- poco.OwnedRelatedElement.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value);
+ poco.OwnedRelatedElement.Add(lazyPoco.Value);
}
}
@@ -157,7 +157,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Features.Featur
if (dto.OwningRelatedElement.HasValue && cache.TryGetValue(dto.OwningRelatedElement.Value, out lazyPoco))
{
- poco.OwningRelatedElement = (Core.POCO.Root.Elements.IElement)lazyPoco.Value;
+ poco.OwningRelatedElement = lazyPoco.Value;
}
else
{
@@ -199,10 +199,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Features.Featur
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Core.Features.FeatureTyping ToDto(this Core.POCO.Core.Features.FeatureTyping poco)
+ public static Core.DTO.Core.Features.FeatureTyping ToDto(this Core.POCO.Core.Features.FeatureTyping poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Core.Features.FeatureTyping();
@@ -220,6 +223,23 @@ public static Core.DTO.Core.Features.FeatureTyping ToDto(this Core.POCO.Core.Fea
dto.Type = poco.Type.Id;
dto.TypedFeature = poco.TypedFeature.Id;
+ if (includeDerivedProperties)
+ {
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.name = poco.name;
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningFeature = poco.owningFeature?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.relatedElement = poco.relatedElement.Select(x => x.Id).ToList();
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/FeatureValueExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/FeatureValueExtensions.cs
index 3607f4834..89861837e 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/FeatureValueExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/FeatureValueExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Kernel.FeatureValues;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class FeatureValueExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -108,17 +108,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -147,7 +147,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.FeatureValues
{
if (cache.TryGetValue(identifier, out lazyPoco))
{
- poco.OwnedRelatedElement.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value);
+ poco.OwnedRelatedElement.Add(lazyPoco.Value);
}
}
@@ -163,7 +163,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.FeatureValues
if (dto.OwningRelatedElement.HasValue && cache.TryGetValue(dto.OwningRelatedElement.Value, out lazyPoco))
{
- poco.OwningRelatedElement = (Core.POCO.Root.Elements.IElement)lazyPoco.Value;
+ poco.OwningRelatedElement = lazyPoco.Value;
}
else
{
@@ -187,10 +187,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.FeatureValues
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Kernel.FeatureValues.FeatureValue ToDto(this Core.POCO.Kernel.FeatureValues.FeatureValue poco)
+ public static Core.DTO.Kernel.FeatureValues.FeatureValue ToDto(this Core.POCO.Kernel.FeatureValues.FeatureValue poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Kernel.FeatureValues.FeatureValue();
@@ -209,6 +212,28 @@ public static Core.DTO.Kernel.FeatureValues.FeatureValue ToDto(this Core.POCO.Ke
dto.OwningRelationship = poco.OwningRelationship?.Id;
dto.Visibility = poco.Visibility;
+ if (includeDerivedProperties)
+ {
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.featureWithValue = poco.featureWithValue.Id;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.membershipOwningNamespace = poco.membershipOwningNamespace.Id;
+ dto.name = poco.name;
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedMemberElementId = poco.ownedMemberElementId;
+ dto.ownedMemberName = poco.ownedMemberName;
+ dto.ownedMemberShortName = poco.ownedMemberShortName;
+ dto.owner = poco.owner?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.relatedElement = poco.relatedElement.Select(x => x.Id).ToList();
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.value = poco.value.Id;
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/FlowDefinitionExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/FlowDefinitionExtensions.cs
index 1d6898048..08dad4ee9 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/FlowDefinitionExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/FlowDefinitionExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Systems.Flows;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class FlowDefinitionExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -110,17 +110,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -149,7 +149,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Flows.FlowDe
{
if (cache.TryGetValue(identifier, out lazyPoco))
{
- poco.OwnedRelatedElement.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value);
+ poco.OwnedRelatedElement.Add(lazyPoco.Value);
}
}
@@ -165,7 +165,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Flows.FlowDe
if (dto.OwningRelatedElement.HasValue && cache.TryGetValue(dto.OwningRelatedElement.Value, out lazyPoco))
{
- poco.OwningRelatedElement = (Core.POCO.Root.Elements.IElement)lazyPoco.Value;
+ poco.OwningRelatedElement = lazyPoco.Value;
}
else
{
@@ -189,10 +189,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Flows.FlowDe
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Systems.Flows.FlowDefinition ToDto(this Core.POCO.Systems.Flows.FlowDefinition poco)
+ public static Core.DTO.Systems.Flows.FlowDefinition ToDto(this Core.POCO.Systems.Flows.FlowDefinition poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Systems.Flows.FlowDefinition();
@@ -212,6 +215,86 @@ public static Core.DTO.Systems.Flows.FlowDefinition ToDto(this Core.POCO.Systems
dto.OwningRelatedElement = poco.OwningRelatedElement?.Id;
dto.OwningRelationship = poco.OwningRelationship?.Id;
+ if (includeDerivedProperties)
+ {
+ dto.action = poco.action.Select(x => x.Id).ToList();
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.directedUsage = poco.directedUsage.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.flowEnd = poco.flowEnd.Select(x => x.Id).ToList();
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAction = poco.ownedAction.Select(x => x.Id).ToList();
+ dto.ownedAllocation = poco.ownedAllocation.Select(x => x.Id).ToList();
+ dto.ownedAnalysisCase = poco.ownedAnalysisCase.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedAttribute = poco.ownedAttribute.Select(x => x.Id).ToList();
+ dto.ownedCalculation = poco.ownedCalculation.Select(x => x.Id).ToList();
+ dto.ownedCase = poco.ownedCase.Select(x => x.Id).ToList();
+ dto.ownedConcern = poco.ownedConcern.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedConnection = poco.ownedConnection.Select(x => x.Id).ToList();
+ dto.ownedConstraint = poco.ownedConstraint.Select(x => x.Id).ToList();
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedEnumeration = poco.ownedEnumeration.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedFlow = poco.ownedFlow.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedInterface = poco.ownedInterface.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedItem = poco.ownedItem.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedMetadata = poco.ownedMetadata.Select(x => x.Id).ToList();
+ dto.ownedOccurrence = poco.ownedOccurrence.Select(x => x.Id).ToList();
+ dto.ownedPart = poco.ownedPart.Select(x => x.Id).ToList();
+ dto.ownedPort = poco.ownedPort.Select(x => x.Id).ToList();
+ dto.ownedReference = poco.ownedReference.Select(x => x.Id).ToList();
+ dto.ownedRendering = poco.ownedRendering.Select(x => x.Id).ToList();
+ dto.ownedRequirement = poco.ownedRequirement.Select(x => x.Id).ToList();
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedState = poco.ownedState.Select(x => x.Id).ToList();
+ dto.ownedSubclassification = poco.ownedSubclassification.Select(x => x.Id).ToList();
+ dto.ownedTransition = poco.ownedTransition.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.ownedUsage = poco.ownedUsage.Select(x => x.Id).ToList();
+ dto.ownedUseCase = poco.ownedUseCase.Select(x => x.Id).ToList();
+ dto.ownedVerificationCase = poco.ownedVerificationCase.Select(x => x.Id).ToList();
+ dto.ownedView = poco.ownedView.Select(x => x.Id).ToList();
+ dto.ownedViewpoint = poco.ownedViewpoint.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.parameter = poco.parameter.Select(x => x.Id).ToList();
+ dto.qualifiedName = poco.qualifiedName;
+ dto.relatedType = poco.relatedType.Select(x => x.Id).ToList();
+ dto.shortName = poco.shortName;
+ dto.sourceType = poco.sourceType?.Id;
+ dto.step = poco.step.Select(x => x.Id).ToList();
+ dto.targetType = poco.targetType.Select(x => x.Id).ToList();
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ dto.usage = poco.usage.Select(x => x.Id).ToList();
+ dto.variant = poco.variant.Select(x => x.Id).ToList();
+ dto.variantMembership = poco.variantMembership.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/FlowEndExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/FlowEndExtensions.cs
index 16a91fd12..af802dc98 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/FlowEndExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/FlowEndExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Kernel.Interactions;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class FlowEndExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -113,17 +113,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -173,10 +173,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.Interactions.
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Kernel.Interactions.FlowEnd ToDto(this Core.POCO.Kernel.Interactions.FlowEnd poco)
+ public static Core.DTO.Kernel.Interactions.FlowEnd ToDto(this Core.POCO.Kernel.Interactions.FlowEnd poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Kernel.Interactions.FlowEnd();
@@ -200,6 +203,65 @@ public static Core.DTO.Kernel.Interactions.FlowEnd ToDto(this Core.POCO.Kernel.I
dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList();
dto.OwningRelationship = poco.OwningRelationship?.Id;
+ if (includeDerivedProperties)
+ {
+ dto.chainingFeature = poco.chainingFeature.Select(x => x.Id).ToList();
+ dto.crossFeature = poco.crossFeature?.Id;
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.directedFeature = poco.directedFeature.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endFeature = poco.endFeature.Select(x => x.Id).ToList();
+ dto.endOwningType = poco.endOwningType?.Id;
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.featureTarget = poco.featureTarget.Id;
+ dto.featuringType = poco.featuringType.Select(x => x.Id).ToList();
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedCrossSubsetting = poco.ownedCrossSubsetting?.Id;
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureChaining = poco.ownedFeatureChaining.Select(x => x.Id).ToList();
+ dto.ownedFeatureInverting = poco.ownedFeatureInverting.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedRedefinition = poco.ownedRedefinition.Select(x => x.Id).ToList();
+ dto.ownedReferenceSubsetting = poco.ownedReferenceSubsetting?.Id;
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedSubsetting = poco.ownedSubsetting.Select(x => x.Id).ToList();
+ dto.ownedTypeFeaturing = poco.ownedTypeFeaturing.Select(x => x.Id).ToList();
+ dto.ownedTyping = poco.ownedTyping.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningFeatureMembership = poco.owningFeatureMembership?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType?.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.type = poco.type.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/FlowExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/FlowExtensions.cs
index 93d2d21d6..33c6ef800 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/FlowExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/FlowExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Kernel.Interactions;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class FlowExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -124,17 +124,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -163,7 +163,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.Interactions.
{
if (cache.TryGetValue(identifier, out lazyPoco))
{
- poco.OwnedRelatedElement.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value);
+ poco.OwnedRelatedElement.Add(lazyPoco.Value);
}
}
@@ -179,7 +179,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.Interactions.
if (dto.OwningRelatedElement.HasValue && cache.TryGetValue(dto.OwningRelatedElement.Value, out lazyPoco))
{
- poco.OwningRelatedElement = (Core.POCO.Root.Elements.IElement)lazyPoco.Value;
+ poco.OwningRelatedElement = lazyPoco.Value;
}
else
{
@@ -203,10 +203,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.Interactions.
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Kernel.Interactions.Flow ToDto(this Core.POCO.Kernel.Interactions.Flow poco)
+ public static Core.DTO.Kernel.Interactions.Flow ToDto(this Core.POCO.Kernel.Interactions.Flow poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Kernel.Interactions.Flow();
@@ -233,6 +236,74 @@ public static Core.DTO.Kernel.Interactions.Flow ToDto(this Core.POCO.Kernel.Inte
dto.OwningRelatedElement = poco.OwningRelatedElement?.Id;
dto.OwningRelationship = poco.OwningRelationship?.Id;
+ if (includeDerivedProperties)
+ {
+ dto.chainingFeature = poco.chainingFeature.Select(x => x.Id).ToList();
+ dto.connectorEnd = poco.connectorEnd.Select(x => x.Id).ToList();
+ dto.crossFeature = poco.crossFeature?.Id;
+ dto.defaultFeaturingType = poco.defaultFeaturingType?.Id;
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endOwningType = poco.endOwningType?.Id;
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.featureTarget = poco.featureTarget.Id;
+ dto.featuringType = poco.featuringType.Select(x => x.Id).ToList();
+ dto.flowEnd = poco.flowEnd.Select(x => x.Id).ToList();
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.interaction = poco.interaction.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedCrossSubsetting = poco.ownedCrossSubsetting?.Id;
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureChaining = poco.ownedFeatureChaining.Select(x => x.Id).ToList();
+ dto.ownedFeatureInverting = poco.ownedFeatureInverting.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedRedefinition = poco.ownedRedefinition.Select(x => x.Id).ToList();
+ dto.ownedReferenceSubsetting = poco.ownedReferenceSubsetting?.Id;
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedSubsetting = poco.ownedSubsetting.Select(x => x.Id).ToList();
+ dto.ownedTypeFeaturing = poco.ownedTypeFeaturing.Select(x => x.Id).ToList();
+ dto.ownedTyping = poco.ownedTyping.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningFeatureMembership = poco.owningFeatureMembership?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType?.Id;
+ dto.parameter = poco.parameter.Select(x => x.Id).ToList();
+ dto.payloadFeature = poco.payloadFeature?.Id;
+ dto.payloadType = poco.payloadType.Select(x => x.Id).ToList();
+ dto.qualifiedName = poco.qualifiedName;
+ dto.relatedFeature = poco.relatedFeature.Select(x => x.Id).ToList();
+ dto.shortName = poco.shortName;
+ dto.sourceFeature = poco.sourceFeature?.Id;
+ dto.sourceOutputFeature = poco.sourceOutputFeature?.Id;
+ dto.targetFeature = poco.targetFeature.Select(x => x.Id).ToList();
+ dto.targetInputFeature = poco.targetInputFeature?.Id;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/FlowUsageExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/FlowUsageExtensions.cs
index 9081c5cc7..8f47efe3f 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/FlowUsageExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/FlowUsageExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Systems.Flows;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class FlowUsageExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -128,17 +128,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -167,7 +167,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Flows.FlowUs
{
if (cache.TryGetValue(identifier, out lazyPoco))
{
- poco.OwnedRelatedElement.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value);
+ poco.OwnedRelatedElement.Add(lazyPoco.Value);
}
}
@@ -183,7 +183,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Flows.FlowUs
if (dto.OwningRelatedElement.HasValue && cache.TryGetValue(dto.OwningRelatedElement.Value, out lazyPoco))
{
- poco.OwningRelatedElement = (Core.POCO.Root.Elements.IElement)lazyPoco.Value;
+ poco.OwningRelatedElement = lazyPoco.Value;
}
else
{
@@ -207,10 +207,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Flows.FlowUs
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Systems.Flows.FlowUsage ToDto(this Core.POCO.Systems.Flows.FlowUsage poco)
+ public static Core.DTO.Systems.Flows.FlowUsage ToDto(this Core.POCO.Systems.Flows.FlowUsage poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Systems.Flows.FlowUsage();
@@ -239,6 +242,110 @@ public static Core.DTO.Systems.Flows.FlowUsage ToDto(this Core.POCO.Systems.Flow
dto.OwningRelationship = poco.OwningRelationship?.Id;
dto.PortionKind = poco.PortionKind;
+ if (includeDerivedProperties)
+ {
+ dto.chainingFeature = poco.chainingFeature.Select(x => x.Id).ToList();
+ dto.connectorEnd = poco.connectorEnd.Select(x => x.Id).ToList();
+ dto.crossFeature = poco.crossFeature?.Id;
+ dto.defaultFeaturingType = poco.defaultFeaturingType?.Id;
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.directedUsage = poco.directedUsage.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endOwningType = poco.endOwningType?.Id;
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.featureTarget = poco.featureTarget.Id;
+ dto.featuringType = poco.featuringType.Select(x => x.Id).ToList();
+ dto.flowDefinition = poco.flowDefinition.Select(x => x.Id).ToList();
+ dto.flowEnd = poco.flowEnd.Select(x => x.Id).ToList();
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.individualDefinition = poco.individualDefinition?.Id;
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.isReference = poco.isReference;
+ dto.mayTimeVary = poco.mayTimeVary;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.nestedAction = poco.nestedAction.Select(x => x.Id).ToList();
+ dto.nestedAllocation = poco.nestedAllocation.Select(x => x.Id).ToList();
+ dto.nestedAnalysisCase = poco.nestedAnalysisCase.Select(x => x.Id).ToList();
+ dto.nestedAttribute = poco.nestedAttribute.Select(x => x.Id).ToList();
+ dto.nestedCalculation = poco.nestedCalculation.Select(x => x.Id).ToList();
+ dto.nestedCase = poco.nestedCase.Select(x => x.Id).ToList();
+ dto.nestedConcern = poco.nestedConcern.Select(x => x.Id).ToList();
+ dto.nestedConnection = poco.nestedConnection.Select(x => x.Id).ToList();
+ dto.nestedConstraint = poco.nestedConstraint.Select(x => x.Id).ToList();
+ dto.nestedEnumeration = poco.nestedEnumeration.Select(x => x.Id).ToList();
+ dto.nestedFlow = poco.nestedFlow.Select(x => x.Id).ToList();
+ dto.nestedInterface = poco.nestedInterface.Select(x => x.Id).ToList();
+ dto.nestedItem = poco.nestedItem.Select(x => x.Id).ToList();
+ dto.nestedMetadata = poco.nestedMetadata.Select(x => x.Id).ToList();
+ dto.nestedOccurrence = poco.nestedOccurrence.Select(x => x.Id).ToList();
+ dto.nestedPart = poco.nestedPart.Select(x => x.Id).ToList();
+ dto.nestedPort = poco.nestedPort.Select(x => x.Id).ToList();
+ dto.nestedReference = poco.nestedReference.Select(x => x.Id).ToList();
+ dto.nestedRendering = poco.nestedRendering.Select(x => x.Id).ToList();
+ dto.nestedRequirement = poco.nestedRequirement.Select(x => x.Id).ToList();
+ dto.nestedState = poco.nestedState.Select(x => x.Id).ToList();
+ dto.nestedTransition = poco.nestedTransition.Select(x => x.Id).ToList();
+ dto.nestedUsage = poco.nestedUsage.Select(x => x.Id).ToList();
+ dto.nestedUseCase = poco.nestedUseCase.Select(x => x.Id).ToList();
+ dto.nestedVerificationCase = poco.nestedVerificationCase.Select(x => x.Id).ToList();
+ dto.nestedView = poco.nestedView.Select(x => x.Id).ToList();
+ dto.nestedViewpoint = poco.nestedViewpoint.Select(x => x.Id).ToList();
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedCrossSubsetting = poco.ownedCrossSubsetting?.Id;
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureChaining = poco.ownedFeatureChaining.Select(x => x.Id).ToList();
+ dto.ownedFeatureInverting = poco.ownedFeatureInverting.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedRedefinition = poco.ownedRedefinition.Select(x => x.Id).ToList();
+ dto.ownedReferenceSubsetting = poco.ownedReferenceSubsetting?.Id;
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedSubsetting = poco.ownedSubsetting.Select(x => x.Id).ToList();
+ dto.ownedTypeFeaturing = poco.ownedTypeFeaturing.Select(x => x.Id).ToList();
+ dto.ownedTyping = poco.ownedTyping.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningDefinition = poco.owningDefinition?.Id;
+ dto.owningFeatureMembership = poco.owningFeatureMembership?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType?.Id;
+ dto.owningUsage = poco.owningUsage?.Id;
+ dto.parameter = poco.parameter.Select(x => x.Id).ToList();
+ dto.payloadFeature = poco.payloadFeature?.Id;
+ dto.payloadType = poco.payloadType.Select(x => x.Id).ToList();
+ dto.qualifiedName = poco.qualifiedName;
+ dto.relatedFeature = poco.relatedFeature.Select(x => x.Id).ToList();
+ dto.shortName = poco.shortName;
+ dto.sourceFeature = poco.sourceFeature?.Id;
+ dto.sourceOutputFeature = poco.sourceOutputFeature?.Id;
+ dto.targetFeature = poco.targetFeature.Select(x => x.Id).ToList();
+ dto.targetInputFeature = poco.targetInputFeature?.Id;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ dto.usage = poco.usage.Select(x => x.Id).ToList();
+ dto.variant = poco.variant.Select(x => x.Id).ToList();
+ dto.variantMembership = poco.variantMembership.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ForLoopActionUsageExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ForLoopActionUsageExtensions.cs
index cdffa0ff0..0d9e63372 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ForLoopActionUsageExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ForLoopActionUsageExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Systems.Actions;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class ForLoopActionUsageExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -117,17 +117,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -177,10 +177,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Actions.ForL
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Systems.Actions.ForLoopActionUsage ToDto(this Core.POCO.Systems.Actions.ForLoopActionUsage poco)
+ public static Core.DTO.Systems.Actions.ForLoopActionUsage ToDto(this Core.POCO.Systems.Actions.ForLoopActionUsage poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Systems.Actions.ForLoopActionUsage();
@@ -206,6 +209,104 @@ public static Core.DTO.Systems.Actions.ForLoopActionUsage ToDto(this Core.POCO.S
dto.OwningRelationship = poco.OwningRelationship?.Id;
dto.PortionKind = poco.PortionKind;
+ if (includeDerivedProperties)
+ {
+ dto.actionDefinition = poco.actionDefinition.Select(x => x.Id).ToList();
+ dto.bodyAction = poco.bodyAction.Id;
+ dto.chainingFeature = poco.chainingFeature.Select(x => x.Id).ToList();
+ dto.crossFeature = poco.crossFeature?.Id;
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.directedUsage = poco.directedUsage.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endFeature = poco.endFeature.Select(x => x.Id).ToList();
+ dto.endOwningType = poco.endOwningType?.Id;
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.featureTarget = poco.featureTarget.Id;
+ dto.featuringType = poco.featuringType.Select(x => x.Id).ToList();
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.individualDefinition = poco.individualDefinition?.Id;
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.isReference = poco.isReference;
+ dto.loopVariable = poco.loopVariable.Id;
+ dto.mayTimeVary = poco.mayTimeVary;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.nestedAction = poco.nestedAction.Select(x => x.Id).ToList();
+ dto.nestedAllocation = poco.nestedAllocation.Select(x => x.Id).ToList();
+ dto.nestedAnalysisCase = poco.nestedAnalysisCase.Select(x => x.Id).ToList();
+ dto.nestedAttribute = poco.nestedAttribute.Select(x => x.Id).ToList();
+ dto.nestedCalculation = poco.nestedCalculation.Select(x => x.Id).ToList();
+ dto.nestedCase = poco.nestedCase.Select(x => x.Id).ToList();
+ dto.nestedConcern = poco.nestedConcern.Select(x => x.Id).ToList();
+ dto.nestedConnection = poco.nestedConnection.Select(x => x.Id).ToList();
+ dto.nestedConstraint = poco.nestedConstraint.Select(x => x.Id).ToList();
+ dto.nestedEnumeration = poco.nestedEnumeration.Select(x => x.Id).ToList();
+ dto.nestedFlow = poco.nestedFlow.Select(x => x.Id).ToList();
+ dto.nestedInterface = poco.nestedInterface.Select(x => x.Id).ToList();
+ dto.nestedItem = poco.nestedItem.Select(x => x.Id).ToList();
+ dto.nestedMetadata = poco.nestedMetadata.Select(x => x.Id).ToList();
+ dto.nestedOccurrence = poco.nestedOccurrence.Select(x => x.Id).ToList();
+ dto.nestedPart = poco.nestedPart.Select(x => x.Id).ToList();
+ dto.nestedPort = poco.nestedPort.Select(x => x.Id).ToList();
+ dto.nestedReference = poco.nestedReference.Select(x => x.Id).ToList();
+ dto.nestedRendering = poco.nestedRendering.Select(x => x.Id).ToList();
+ dto.nestedRequirement = poco.nestedRequirement.Select(x => x.Id).ToList();
+ dto.nestedState = poco.nestedState.Select(x => x.Id).ToList();
+ dto.nestedTransition = poco.nestedTransition.Select(x => x.Id).ToList();
+ dto.nestedUsage = poco.nestedUsage.Select(x => x.Id).ToList();
+ dto.nestedUseCase = poco.nestedUseCase.Select(x => x.Id).ToList();
+ dto.nestedVerificationCase = poco.nestedVerificationCase.Select(x => x.Id).ToList();
+ dto.nestedView = poco.nestedView.Select(x => x.Id).ToList();
+ dto.nestedViewpoint = poco.nestedViewpoint.Select(x => x.Id).ToList();
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedCrossSubsetting = poco.ownedCrossSubsetting?.Id;
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureChaining = poco.ownedFeatureChaining.Select(x => x.Id).ToList();
+ dto.ownedFeatureInverting = poco.ownedFeatureInverting.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedRedefinition = poco.ownedRedefinition.Select(x => x.Id).ToList();
+ dto.ownedReferenceSubsetting = poco.ownedReferenceSubsetting?.Id;
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedSubsetting = poco.ownedSubsetting.Select(x => x.Id).ToList();
+ dto.ownedTypeFeaturing = poco.ownedTypeFeaturing.Select(x => x.Id).ToList();
+ dto.ownedTyping = poco.ownedTyping.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningDefinition = poco.owningDefinition?.Id;
+ dto.owningFeatureMembership = poco.owningFeatureMembership?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType?.Id;
+ dto.owningUsage = poco.owningUsage?.Id;
+ dto.parameter = poco.parameter.Select(x => x.Id).ToList();
+ dto.qualifiedName = poco.qualifiedName;
+ dto.seqArgument = poco.seqArgument.Id;
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ dto.usage = poco.usage.Select(x => x.Id).ToList();
+ dto.variant = poco.variant.Select(x => x.Id).ToList();
+ dto.variantMembership = poco.variantMembership.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ForkNodeExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ForkNodeExtensions.cs
index 06e35e9ec..231847abf 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ForkNodeExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ForkNodeExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Systems.Actions;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class ForkNodeExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -117,17 +117,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -177,10 +177,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Actions.Fork
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Systems.Actions.ForkNode ToDto(this Core.POCO.Systems.Actions.ForkNode poco)
+ public static Core.DTO.Systems.Actions.ForkNode ToDto(this Core.POCO.Systems.Actions.ForkNode poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Systems.Actions.ForkNode();
@@ -206,6 +209,101 @@ public static Core.DTO.Systems.Actions.ForkNode ToDto(this Core.POCO.Systems.Act
dto.OwningRelationship = poco.OwningRelationship?.Id;
dto.PortionKind = poco.PortionKind;
+ if (includeDerivedProperties)
+ {
+ dto.actionDefinition = poco.actionDefinition.Select(x => x.Id).ToList();
+ dto.chainingFeature = poco.chainingFeature.Select(x => x.Id).ToList();
+ dto.crossFeature = poco.crossFeature?.Id;
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.directedUsage = poco.directedUsage.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endFeature = poco.endFeature.Select(x => x.Id).ToList();
+ dto.endOwningType = poco.endOwningType?.Id;
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.featureTarget = poco.featureTarget.Id;
+ dto.featuringType = poco.featuringType.Select(x => x.Id).ToList();
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.individualDefinition = poco.individualDefinition?.Id;
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.isReference = poco.isReference;
+ dto.mayTimeVary = poco.mayTimeVary;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.nestedAction = poco.nestedAction.Select(x => x.Id).ToList();
+ dto.nestedAllocation = poco.nestedAllocation.Select(x => x.Id).ToList();
+ dto.nestedAnalysisCase = poco.nestedAnalysisCase.Select(x => x.Id).ToList();
+ dto.nestedAttribute = poco.nestedAttribute.Select(x => x.Id).ToList();
+ dto.nestedCalculation = poco.nestedCalculation.Select(x => x.Id).ToList();
+ dto.nestedCase = poco.nestedCase.Select(x => x.Id).ToList();
+ dto.nestedConcern = poco.nestedConcern.Select(x => x.Id).ToList();
+ dto.nestedConnection = poco.nestedConnection.Select(x => x.Id).ToList();
+ dto.nestedConstraint = poco.nestedConstraint.Select(x => x.Id).ToList();
+ dto.nestedEnumeration = poco.nestedEnumeration.Select(x => x.Id).ToList();
+ dto.nestedFlow = poco.nestedFlow.Select(x => x.Id).ToList();
+ dto.nestedInterface = poco.nestedInterface.Select(x => x.Id).ToList();
+ dto.nestedItem = poco.nestedItem.Select(x => x.Id).ToList();
+ dto.nestedMetadata = poco.nestedMetadata.Select(x => x.Id).ToList();
+ dto.nestedOccurrence = poco.nestedOccurrence.Select(x => x.Id).ToList();
+ dto.nestedPart = poco.nestedPart.Select(x => x.Id).ToList();
+ dto.nestedPort = poco.nestedPort.Select(x => x.Id).ToList();
+ dto.nestedReference = poco.nestedReference.Select(x => x.Id).ToList();
+ dto.nestedRendering = poco.nestedRendering.Select(x => x.Id).ToList();
+ dto.nestedRequirement = poco.nestedRequirement.Select(x => x.Id).ToList();
+ dto.nestedState = poco.nestedState.Select(x => x.Id).ToList();
+ dto.nestedTransition = poco.nestedTransition.Select(x => x.Id).ToList();
+ dto.nestedUsage = poco.nestedUsage.Select(x => x.Id).ToList();
+ dto.nestedUseCase = poco.nestedUseCase.Select(x => x.Id).ToList();
+ dto.nestedVerificationCase = poco.nestedVerificationCase.Select(x => x.Id).ToList();
+ dto.nestedView = poco.nestedView.Select(x => x.Id).ToList();
+ dto.nestedViewpoint = poco.nestedViewpoint.Select(x => x.Id).ToList();
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedCrossSubsetting = poco.ownedCrossSubsetting?.Id;
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureChaining = poco.ownedFeatureChaining.Select(x => x.Id).ToList();
+ dto.ownedFeatureInverting = poco.ownedFeatureInverting.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedRedefinition = poco.ownedRedefinition.Select(x => x.Id).ToList();
+ dto.ownedReferenceSubsetting = poco.ownedReferenceSubsetting?.Id;
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedSubsetting = poco.ownedSubsetting.Select(x => x.Id).ToList();
+ dto.ownedTypeFeaturing = poco.ownedTypeFeaturing.Select(x => x.Id).ToList();
+ dto.ownedTyping = poco.ownedTyping.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningDefinition = poco.owningDefinition?.Id;
+ dto.owningFeatureMembership = poco.owningFeatureMembership?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType?.Id;
+ dto.owningUsage = poco.owningUsage?.Id;
+ dto.parameter = poco.parameter.Select(x => x.Id).ToList();
+ dto.qualifiedName = poco.qualifiedName;
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ dto.usage = poco.usage.Select(x => x.Id).ToList();
+ dto.variant = poco.variant.Select(x => x.Id).ToList();
+ dto.variantMembership = poco.variantMembership.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/FramedConcernMembershipExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/FramedConcernMembershipExtensions.cs
index 9f19b6196..f52c8f26e 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/FramedConcernMembershipExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/FramedConcernMembershipExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Systems.Requirements;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class FramedConcernMembershipExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -106,17 +106,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -145,7 +145,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Requirements
{
if (cache.TryGetValue(identifier, out lazyPoco))
{
- poco.OwnedRelatedElement.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value);
+ poco.OwnedRelatedElement.Add(lazyPoco.Value);
}
}
@@ -161,7 +161,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Requirements
if (dto.OwningRelatedElement.HasValue && cache.TryGetValue(dto.OwningRelatedElement.Value, out lazyPoco))
{
- poco.OwningRelatedElement = (Core.POCO.Root.Elements.IElement)lazyPoco.Value;
+ poco.OwningRelatedElement = lazyPoco.Value;
}
else
{
@@ -185,10 +185,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Requirements
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Systems.Requirements.FramedConcernMembership ToDto(this Core.POCO.Systems.Requirements.FramedConcernMembership poco)
+ public static Core.DTO.Systems.Requirements.FramedConcernMembership ToDto(this Core.POCO.Systems.Requirements.FramedConcernMembership poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Systems.Requirements.FramedConcernMembership();
@@ -206,6 +209,28 @@ public static Core.DTO.Systems.Requirements.FramedConcernMembership ToDto(this C
dto.OwningRelationship = poco.OwningRelationship?.Id;
dto.Visibility = poco.Visibility;
+ if (includeDerivedProperties)
+ {
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.name = poco.name;
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedConcern = poco.ownedConcern.Id;
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedMemberElementId = poco.ownedMemberElementId;
+ dto.ownedMemberName = poco.ownedMemberName;
+ dto.ownedMemberShortName = poco.ownedMemberShortName;
+ dto.owner = poco.owner?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.referencedConcern = poco.referencedConcern.Id;
+ dto.relatedElement = poco.relatedElement.Select(x => x.Id).ToList();
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/FunctionExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/FunctionExtensions.cs
index 8b16915e6..430ce72ac 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/FunctionExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/FunctionExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Kernel.Functions;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class FunctionExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -95,17 +95,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -155,10 +155,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.Functions.Fun
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Kernel.Functions.Function ToDto(this Core.POCO.Kernel.Functions.Function poco)
+ public static Core.DTO.Kernel.Functions.Function ToDto(this Core.POCO.Kernel.Functions.Function poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Kernel.Functions.Function();
@@ -173,6 +176,54 @@ public static Core.DTO.Kernel.Functions.Function ToDto(this Core.POCO.Kernel.Fun
dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList();
dto.OwningRelationship = poco.OwningRelationship?.Id;
+ if (includeDerivedProperties)
+ {
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endFeature = poco.endFeature.Select(x => x.Id).ToList();
+ dto.expression = poco.expression.Select(x => x.Id).ToList();
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.isModelLevelEvaluable = poco.isModelLevelEvaluable;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedSubclassification = poco.ownedSubclassification.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.parameter = poco.parameter.Select(x => x.Id).ToList();
+ dto.qualifiedName = poco.qualifiedName;
+ dto.result = poco.result.Id;
+ dto.shortName = poco.shortName;
+ dto.step = poco.step.Select(x => x.Id).ToList();
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/IfActionUsageExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/IfActionUsageExtensions.cs
index 94888cfe5..5dba2a43c 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/IfActionUsageExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/IfActionUsageExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Systems.Actions;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class IfActionUsageExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -117,17 +117,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -177,10 +177,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Actions.IfAc
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Systems.Actions.IfActionUsage ToDto(this Core.POCO.Systems.Actions.IfActionUsage poco)
+ public static Core.DTO.Systems.Actions.IfActionUsage ToDto(this Core.POCO.Systems.Actions.IfActionUsage poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Systems.Actions.IfActionUsage();
@@ -206,6 +209,104 @@ public static Core.DTO.Systems.Actions.IfActionUsage ToDto(this Core.POCO.System
dto.OwningRelationship = poco.OwningRelationship?.Id;
dto.PortionKind = poco.PortionKind;
+ if (includeDerivedProperties)
+ {
+ dto.actionDefinition = poco.actionDefinition.Select(x => x.Id).ToList();
+ dto.chainingFeature = poco.chainingFeature.Select(x => x.Id).ToList();
+ dto.crossFeature = poco.crossFeature?.Id;
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.directedUsage = poco.directedUsage.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.elseAction = poco.elseAction?.Id;
+ dto.endFeature = poco.endFeature.Select(x => x.Id).ToList();
+ dto.endOwningType = poco.endOwningType?.Id;
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.featureTarget = poco.featureTarget.Id;
+ dto.featuringType = poco.featuringType.Select(x => x.Id).ToList();
+ dto.ifArgument = poco.ifArgument.Id;
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.individualDefinition = poco.individualDefinition?.Id;
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.isReference = poco.isReference;
+ dto.mayTimeVary = poco.mayTimeVary;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.nestedAction = poco.nestedAction.Select(x => x.Id).ToList();
+ dto.nestedAllocation = poco.nestedAllocation.Select(x => x.Id).ToList();
+ dto.nestedAnalysisCase = poco.nestedAnalysisCase.Select(x => x.Id).ToList();
+ dto.nestedAttribute = poco.nestedAttribute.Select(x => x.Id).ToList();
+ dto.nestedCalculation = poco.nestedCalculation.Select(x => x.Id).ToList();
+ dto.nestedCase = poco.nestedCase.Select(x => x.Id).ToList();
+ dto.nestedConcern = poco.nestedConcern.Select(x => x.Id).ToList();
+ dto.nestedConnection = poco.nestedConnection.Select(x => x.Id).ToList();
+ dto.nestedConstraint = poco.nestedConstraint.Select(x => x.Id).ToList();
+ dto.nestedEnumeration = poco.nestedEnumeration.Select(x => x.Id).ToList();
+ dto.nestedFlow = poco.nestedFlow.Select(x => x.Id).ToList();
+ dto.nestedInterface = poco.nestedInterface.Select(x => x.Id).ToList();
+ dto.nestedItem = poco.nestedItem.Select(x => x.Id).ToList();
+ dto.nestedMetadata = poco.nestedMetadata.Select(x => x.Id).ToList();
+ dto.nestedOccurrence = poco.nestedOccurrence.Select(x => x.Id).ToList();
+ dto.nestedPart = poco.nestedPart.Select(x => x.Id).ToList();
+ dto.nestedPort = poco.nestedPort.Select(x => x.Id).ToList();
+ dto.nestedReference = poco.nestedReference.Select(x => x.Id).ToList();
+ dto.nestedRendering = poco.nestedRendering.Select(x => x.Id).ToList();
+ dto.nestedRequirement = poco.nestedRequirement.Select(x => x.Id).ToList();
+ dto.nestedState = poco.nestedState.Select(x => x.Id).ToList();
+ dto.nestedTransition = poco.nestedTransition.Select(x => x.Id).ToList();
+ dto.nestedUsage = poco.nestedUsage.Select(x => x.Id).ToList();
+ dto.nestedUseCase = poco.nestedUseCase.Select(x => x.Id).ToList();
+ dto.nestedVerificationCase = poco.nestedVerificationCase.Select(x => x.Id).ToList();
+ dto.nestedView = poco.nestedView.Select(x => x.Id).ToList();
+ dto.nestedViewpoint = poco.nestedViewpoint.Select(x => x.Id).ToList();
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedCrossSubsetting = poco.ownedCrossSubsetting?.Id;
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureChaining = poco.ownedFeatureChaining.Select(x => x.Id).ToList();
+ dto.ownedFeatureInverting = poco.ownedFeatureInverting.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedRedefinition = poco.ownedRedefinition.Select(x => x.Id).ToList();
+ dto.ownedReferenceSubsetting = poco.ownedReferenceSubsetting?.Id;
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedSubsetting = poco.ownedSubsetting.Select(x => x.Id).ToList();
+ dto.ownedTypeFeaturing = poco.ownedTypeFeaturing.Select(x => x.Id).ToList();
+ dto.ownedTyping = poco.ownedTyping.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningDefinition = poco.owningDefinition?.Id;
+ dto.owningFeatureMembership = poco.owningFeatureMembership?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType?.Id;
+ dto.owningUsage = poco.owningUsage?.Id;
+ dto.parameter = poco.parameter.Select(x => x.Id).ToList();
+ dto.qualifiedName = poco.qualifiedName;
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.thenAction = poco.thenAction.Id;
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ dto.usage = poco.usage.Select(x => x.Id).ToList();
+ dto.variant = poco.variant.Select(x => x.Id).ToList();
+ dto.variantMembership = poco.variantMembership.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/IncludeUseCaseUsageExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/IncludeUseCaseUsageExtensions.cs
index 603818f28..4c631cde8 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/IncludeUseCaseUsageExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/IncludeUseCaseUsageExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Systems.UseCases;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class IncludeUseCaseUsageExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -117,17 +117,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -177,10 +177,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.UseCases.Inc
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Systems.UseCases.IncludeUseCaseUsage ToDto(this Core.POCO.Systems.UseCases.IncludeUseCaseUsage poco)
+ public static Core.DTO.Systems.UseCases.IncludeUseCaseUsage ToDto(this Core.POCO.Systems.UseCases.IncludeUseCaseUsage poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Systems.UseCases.IncludeUseCaseUsage();
@@ -206,6 +209,108 @@ public static Core.DTO.Systems.UseCases.IncludeUseCaseUsage ToDto(this Core.POCO
dto.OwningRelationship = poco.OwningRelationship?.Id;
dto.PortionKind = poco.PortionKind;
+ if (includeDerivedProperties)
+ {
+ dto.actorParameter = poco.actorParameter.Select(x => x.Id).ToList();
+ dto.chainingFeature = poco.chainingFeature.Select(x => x.Id).ToList();
+ dto.crossFeature = poco.crossFeature?.Id;
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.directedUsage = poco.directedUsage.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endFeature = poco.endFeature.Select(x => x.Id).ToList();
+ dto.endOwningType = poco.endOwningType?.Id;
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.featureTarget = poco.featureTarget.Id;
+ dto.featuringType = poco.featuringType.Select(x => x.Id).ToList();
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.includedUseCase = poco.includedUseCase.Select(x => x.Id).ToList();
+ dto.individualDefinition = poco.individualDefinition?.Id;
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.isModelLevelEvaluable = poco.isModelLevelEvaluable;
+ dto.isReference = poco.isReference;
+ dto.mayTimeVary = poco.mayTimeVary;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.nestedAction = poco.nestedAction.Select(x => x.Id).ToList();
+ dto.nestedAllocation = poco.nestedAllocation.Select(x => x.Id).ToList();
+ dto.nestedAnalysisCase = poco.nestedAnalysisCase.Select(x => x.Id).ToList();
+ dto.nestedAttribute = poco.nestedAttribute.Select(x => x.Id).ToList();
+ dto.nestedCalculation = poco.nestedCalculation.Select(x => x.Id).ToList();
+ dto.nestedCase = poco.nestedCase.Select(x => x.Id).ToList();
+ dto.nestedConcern = poco.nestedConcern.Select(x => x.Id).ToList();
+ dto.nestedConnection = poco.nestedConnection.Select(x => x.Id).ToList();
+ dto.nestedConstraint = poco.nestedConstraint.Select(x => x.Id).ToList();
+ dto.nestedEnumeration = poco.nestedEnumeration.Select(x => x.Id).ToList();
+ dto.nestedFlow = poco.nestedFlow.Select(x => x.Id).ToList();
+ dto.nestedInterface = poco.nestedInterface.Select(x => x.Id).ToList();
+ dto.nestedItem = poco.nestedItem.Select(x => x.Id).ToList();
+ dto.nestedMetadata = poco.nestedMetadata.Select(x => x.Id).ToList();
+ dto.nestedOccurrence = poco.nestedOccurrence.Select(x => x.Id).ToList();
+ dto.nestedPart = poco.nestedPart.Select(x => x.Id).ToList();
+ dto.nestedPort = poco.nestedPort.Select(x => x.Id).ToList();
+ dto.nestedReference = poco.nestedReference.Select(x => x.Id).ToList();
+ dto.nestedRendering = poco.nestedRendering.Select(x => x.Id).ToList();
+ dto.nestedRequirement = poco.nestedRequirement.Select(x => x.Id).ToList();
+ dto.nestedState = poco.nestedState.Select(x => x.Id).ToList();
+ dto.nestedTransition = poco.nestedTransition.Select(x => x.Id).ToList();
+ dto.nestedUsage = poco.nestedUsage.Select(x => x.Id).ToList();
+ dto.nestedUseCase = poco.nestedUseCase.Select(x => x.Id).ToList();
+ dto.nestedVerificationCase = poco.nestedVerificationCase.Select(x => x.Id).ToList();
+ dto.nestedView = poco.nestedView.Select(x => x.Id).ToList();
+ dto.nestedViewpoint = poco.nestedViewpoint.Select(x => x.Id).ToList();
+ dto.objectiveRequirement = poco.objectiveRequirement?.Id;
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedCrossSubsetting = poco.ownedCrossSubsetting?.Id;
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureChaining = poco.ownedFeatureChaining.Select(x => x.Id).ToList();
+ dto.ownedFeatureInverting = poco.ownedFeatureInverting.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedRedefinition = poco.ownedRedefinition.Select(x => x.Id).ToList();
+ dto.ownedReferenceSubsetting = poco.ownedReferenceSubsetting?.Id;
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedSubsetting = poco.ownedSubsetting.Select(x => x.Id).ToList();
+ dto.ownedTypeFeaturing = poco.ownedTypeFeaturing.Select(x => x.Id).ToList();
+ dto.ownedTyping = poco.ownedTyping.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningDefinition = poco.owningDefinition?.Id;
+ dto.owningFeatureMembership = poco.owningFeatureMembership?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType?.Id;
+ dto.owningUsage = poco.owningUsage?.Id;
+ dto.parameter = poco.parameter.Select(x => x.Id).ToList();
+ dto.qualifiedName = poco.qualifiedName;
+ dto.result = poco.result.Id;
+ dto.shortName = poco.shortName;
+ dto.subjectParameter = poco.subjectParameter.Id;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ dto.usage = poco.usage.Select(x => x.Id).ToList();
+ dto.useCaseDefinition = poco.useCaseDefinition?.Id;
+ dto.useCaseIncluded = poco.useCaseIncluded.Id;
+ dto.variant = poco.variant.Select(x => x.Id).ToList();
+ dto.variantMembership = poco.variantMembership.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/IndexExpressionExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/IndexExpressionExtensions.cs
index 3d65c905c..8343cdb73 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/IndexExpressionExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/IndexExpressionExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Kernel.Expressions;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class IndexExpressionExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -115,17 +115,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -175,10 +175,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.Expressions.I
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Kernel.Expressions.IndexExpression ToDto(this Core.POCO.Kernel.Expressions.IndexExpression poco)
+ public static Core.DTO.Kernel.Expressions.IndexExpression ToDto(this Core.POCO.Kernel.Expressions.IndexExpression poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Kernel.Expressions.IndexExpression();
@@ -203,6 +206,70 @@ public static Core.DTO.Kernel.Expressions.IndexExpression ToDto(this Core.POCO.K
dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList();
dto.OwningRelationship = poco.OwningRelationship?.Id;
+ if (includeDerivedProperties)
+ {
+ dto.argument = poco.argument.Select(x => x.Id).ToList();
+ dto.chainingFeature = poco.chainingFeature.Select(x => x.Id).ToList();
+ dto.crossFeature = poco.crossFeature?.Id;
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endFeature = poco.endFeature.Select(x => x.Id).ToList();
+ dto.endOwningType = poco.endOwningType?.Id;
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.featureTarget = poco.featureTarget.Id;
+ dto.featuringType = poco.featuringType.Select(x => x.Id).ToList();
+ dto.function = poco.function?.Id;
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.instantiatedType = poco.instantiatedType.Id;
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.isModelLevelEvaluable = poco.isModelLevelEvaluable;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedCrossSubsetting = poco.ownedCrossSubsetting?.Id;
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureChaining = poco.ownedFeatureChaining.Select(x => x.Id).ToList();
+ dto.ownedFeatureInverting = poco.ownedFeatureInverting.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedRedefinition = poco.ownedRedefinition.Select(x => x.Id).ToList();
+ dto.ownedReferenceSubsetting = poco.ownedReferenceSubsetting?.Id;
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedSubsetting = poco.ownedSubsetting.Select(x => x.Id).ToList();
+ dto.ownedTypeFeaturing = poco.ownedTypeFeaturing.Select(x => x.Id).ToList();
+ dto.ownedTyping = poco.ownedTyping.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningFeatureMembership = poco.owningFeatureMembership?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType?.Id;
+ dto.parameter = poco.parameter.Select(x => x.Id).ToList();
+ dto.qualifiedName = poco.qualifiedName;
+ dto.result = poco.result.Id;
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.type = poco.type.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/InteractionExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/InteractionExtensions.cs
index 8b9f9b94f..d8b01f058 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/InteractionExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/InteractionExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Kernel.Interactions;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class InteractionExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -106,17 +106,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -145,7 +145,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.Interactions.
{
if (cache.TryGetValue(identifier, out lazyPoco))
{
- poco.OwnedRelatedElement.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value);
+ poco.OwnedRelatedElement.Add(lazyPoco.Value);
}
}
@@ -161,7 +161,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.Interactions.
if (dto.OwningRelatedElement.HasValue && cache.TryGetValue(dto.OwningRelatedElement.Value, out lazyPoco))
{
- poco.OwningRelatedElement = (Core.POCO.Root.Elements.IElement)lazyPoco.Value;
+ poco.OwningRelatedElement = lazyPoco.Value;
}
else
{
@@ -185,10 +185,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.Interactions.
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Kernel.Interactions.Interaction ToDto(this Core.POCO.Kernel.Interactions.Interaction poco)
+ public static Core.DTO.Kernel.Interactions.Interaction ToDto(this Core.POCO.Kernel.Interactions.Interaction poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Kernel.Interactions.Interaction();
@@ -206,6 +209,54 @@ public static Core.DTO.Kernel.Interactions.Interaction ToDto(this Core.POCO.Kern
dto.OwningRelatedElement = poco.OwningRelatedElement?.Id;
dto.OwningRelationship = poco.OwningRelationship?.Id;
+ if (includeDerivedProperties)
+ {
+ dto.associationEnd = poco.associationEnd.Select(x => x.Id).ToList();
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedSubclassification = poco.ownedSubclassification.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.parameter = poco.parameter.Select(x => x.Id).ToList();
+ dto.qualifiedName = poco.qualifiedName;
+ dto.relatedType = poco.relatedType.Select(x => x.Id).ToList();
+ dto.shortName = poco.shortName;
+ dto.sourceType = poco.sourceType?.Id;
+ dto.step = poco.step.Select(x => x.Id).ToList();
+ dto.targetType = poco.targetType.Select(x => x.Id).ToList();
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/InterfaceDefinitionExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/InterfaceDefinitionExtensions.cs
index 13f6fb401..228a7f66d 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/InterfaceDefinitionExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/InterfaceDefinitionExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Systems.Interfaces;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class InterfaceDefinitionExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -110,17 +110,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -149,7 +149,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Interfaces.I
{
if (cache.TryGetValue(identifier, out lazyPoco))
{
- poco.OwnedRelatedElement.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value);
+ poco.OwnedRelatedElement.Add(lazyPoco.Value);
}
}
@@ -165,7 +165,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Interfaces.I
if (dto.OwningRelatedElement.HasValue && cache.TryGetValue(dto.OwningRelatedElement.Value, out lazyPoco))
{
- poco.OwningRelatedElement = (Core.POCO.Root.Elements.IElement)lazyPoco.Value;
+ poco.OwningRelatedElement = lazyPoco.Value;
}
else
{
@@ -189,10 +189,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Interfaces.I
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Systems.Interfaces.InterfaceDefinition ToDto(this Core.POCO.Systems.Interfaces.InterfaceDefinition poco)
+ public static Core.DTO.Systems.Interfaces.InterfaceDefinition ToDto(this Core.POCO.Systems.Interfaces.InterfaceDefinition poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Systems.Interfaces.InterfaceDefinition();
@@ -212,6 +215,84 @@ public static Core.DTO.Systems.Interfaces.InterfaceDefinition ToDto(this Core.PO
dto.OwningRelatedElement = poco.OwningRelatedElement?.Id;
dto.OwningRelationship = poco.OwningRelationship?.Id;
+ if (includeDerivedProperties)
+ {
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.directedFeature = poco.directedFeature.Select(x => x.Id).ToList();
+ dto.directedUsage = poco.directedUsage.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.interfaceEnd = poco.interfaceEnd.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAction = poco.ownedAction.Select(x => x.Id).ToList();
+ dto.ownedAllocation = poco.ownedAllocation.Select(x => x.Id).ToList();
+ dto.ownedAnalysisCase = poco.ownedAnalysisCase.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedAttribute = poco.ownedAttribute.Select(x => x.Id).ToList();
+ dto.ownedCalculation = poco.ownedCalculation.Select(x => x.Id).ToList();
+ dto.ownedCase = poco.ownedCase.Select(x => x.Id).ToList();
+ dto.ownedConcern = poco.ownedConcern.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedConnection = poco.ownedConnection.Select(x => x.Id).ToList();
+ dto.ownedConstraint = poco.ownedConstraint.Select(x => x.Id).ToList();
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedEnumeration = poco.ownedEnumeration.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedFlow = poco.ownedFlow.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedInterface = poco.ownedInterface.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedItem = poco.ownedItem.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedMetadata = poco.ownedMetadata.Select(x => x.Id).ToList();
+ dto.ownedOccurrence = poco.ownedOccurrence.Select(x => x.Id).ToList();
+ dto.ownedPart = poco.ownedPart.Select(x => x.Id).ToList();
+ dto.ownedPort = poco.ownedPort.Select(x => x.Id).ToList();
+ dto.ownedReference = poco.ownedReference.Select(x => x.Id).ToList();
+ dto.ownedRendering = poco.ownedRendering.Select(x => x.Id).ToList();
+ dto.ownedRequirement = poco.ownedRequirement.Select(x => x.Id).ToList();
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedState = poco.ownedState.Select(x => x.Id).ToList();
+ dto.ownedSubclassification = poco.ownedSubclassification.Select(x => x.Id).ToList();
+ dto.ownedTransition = poco.ownedTransition.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.ownedUsage = poco.ownedUsage.Select(x => x.Id).ToList();
+ dto.ownedUseCase = poco.ownedUseCase.Select(x => x.Id).ToList();
+ dto.ownedVerificationCase = poco.ownedVerificationCase.Select(x => x.Id).ToList();
+ dto.ownedView = poco.ownedView.Select(x => x.Id).ToList();
+ dto.ownedViewpoint = poco.ownedViewpoint.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.relatedType = poco.relatedType.Select(x => x.Id).ToList();
+ dto.shortName = poco.shortName;
+ dto.sourceType = poco.sourceType?.Id;
+ dto.targetType = poco.targetType.Select(x => x.Id).ToList();
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ dto.usage = poco.usage.Select(x => x.Id).ToList();
+ dto.variant = poco.variant.Select(x => x.Id).ToList();
+ dto.variantMembership = poco.variantMembership.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/InterfaceUsageExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/InterfaceUsageExtensions.cs
index 883f8f04d..2631e1c67 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/InterfaceUsageExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/InterfaceUsageExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Systems.Interfaces;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class InterfaceUsageExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -128,17 +128,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -167,7 +167,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Interfaces.I
{
if (cache.TryGetValue(identifier, out lazyPoco))
{
- poco.OwnedRelatedElement.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value);
+ poco.OwnedRelatedElement.Add(lazyPoco.Value);
}
}
@@ -183,7 +183,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Interfaces.I
if (dto.OwningRelatedElement.HasValue && cache.TryGetValue(dto.OwningRelatedElement.Value, out lazyPoco))
{
- poco.OwningRelatedElement = (Core.POCO.Root.Elements.IElement)lazyPoco.Value;
+ poco.OwningRelatedElement = lazyPoco.Value;
}
else
{
@@ -207,10 +207,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Interfaces.I
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Systems.Interfaces.InterfaceUsage ToDto(this Core.POCO.Systems.Interfaces.InterfaceUsage poco)
+ public static Core.DTO.Systems.Interfaces.InterfaceUsage ToDto(this Core.POCO.Systems.Interfaces.InterfaceUsage poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Systems.Interfaces.InterfaceUsage();
@@ -239,6 +242,108 @@ public static Core.DTO.Systems.Interfaces.InterfaceUsage ToDto(this Core.POCO.Sy
dto.OwningRelationship = poco.OwningRelationship?.Id;
dto.PortionKind = poco.PortionKind;
+ if (includeDerivedProperties)
+ {
+ dto.chainingFeature = poco.chainingFeature.Select(x => x.Id).ToList();
+ dto.connectorEnd = poco.connectorEnd.Select(x => x.Id).ToList();
+ dto.crossFeature = poco.crossFeature?.Id;
+ dto.defaultFeaturingType = poco.defaultFeaturingType?.Id;
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.directedFeature = poco.directedFeature.Select(x => x.Id).ToList();
+ dto.directedUsage = poco.directedUsage.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endOwningType = poco.endOwningType?.Id;
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.featureTarget = poco.featureTarget.Id;
+ dto.featuringType = poco.featuringType.Select(x => x.Id).ToList();
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.individualDefinition = poco.individualDefinition?.Id;
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.interfaceDefinition = poco.interfaceDefinition.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.isReference = poco.isReference;
+ dto.itemDefinition = poco.itemDefinition.Select(x => x.Id).ToList();
+ dto.mayTimeVary = poco.mayTimeVary;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.nestedAction = poco.nestedAction.Select(x => x.Id).ToList();
+ dto.nestedAllocation = poco.nestedAllocation.Select(x => x.Id).ToList();
+ dto.nestedAnalysisCase = poco.nestedAnalysisCase.Select(x => x.Id).ToList();
+ dto.nestedAttribute = poco.nestedAttribute.Select(x => x.Id).ToList();
+ dto.nestedCalculation = poco.nestedCalculation.Select(x => x.Id).ToList();
+ dto.nestedCase = poco.nestedCase.Select(x => x.Id).ToList();
+ dto.nestedConcern = poco.nestedConcern.Select(x => x.Id).ToList();
+ dto.nestedConnection = poco.nestedConnection.Select(x => x.Id).ToList();
+ dto.nestedConstraint = poco.nestedConstraint.Select(x => x.Id).ToList();
+ dto.nestedEnumeration = poco.nestedEnumeration.Select(x => x.Id).ToList();
+ dto.nestedFlow = poco.nestedFlow.Select(x => x.Id).ToList();
+ dto.nestedInterface = poco.nestedInterface.Select(x => x.Id).ToList();
+ dto.nestedItem = poco.nestedItem.Select(x => x.Id).ToList();
+ dto.nestedMetadata = poco.nestedMetadata.Select(x => x.Id).ToList();
+ dto.nestedOccurrence = poco.nestedOccurrence.Select(x => x.Id).ToList();
+ dto.nestedPart = poco.nestedPart.Select(x => x.Id).ToList();
+ dto.nestedPort = poco.nestedPort.Select(x => x.Id).ToList();
+ dto.nestedReference = poco.nestedReference.Select(x => x.Id).ToList();
+ dto.nestedRendering = poco.nestedRendering.Select(x => x.Id).ToList();
+ dto.nestedRequirement = poco.nestedRequirement.Select(x => x.Id).ToList();
+ dto.nestedState = poco.nestedState.Select(x => x.Id).ToList();
+ dto.nestedTransition = poco.nestedTransition.Select(x => x.Id).ToList();
+ dto.nestedUsage = poco.nestedUsage.Select(x => x.Id).ToList();
+ dto.nestedUseCase = poco.nestedUseCase.Select(x => x.Id).ToList();
+ dto.nestedVerificationCase = poco.nestedVerificationCase.Select(x => x.Id).ToList();
+ dto.nestedView = poco.nestedView.Select(x => x.Id).ToList();
+ dto.nestedViewpoint = poco.nestedViewpoint.Select(x => x.Id).ToList();
+ dto.occurrenceDefinition = poco.occurrenceDefinition.Select(x => x.Id).ToList();
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedCrossSubsetting = poco.ownedCrossSubsetting?.Id;
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureChaining = poco.ownedFeatureChaining.Select(x => x.Id).ToList();
+ dto.ownedFeatureInverting = poco.ownedFeatureInverting.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedRedefinition = poco.ownedRedefinition.Select(x => x.Id).ToList();
+ dto.ownedReferenceSubsetting = poco.ownedReferenceSubsetting?.Id;
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedSubsetting = poco.ownedSubsetting.Select(x => x.Id).ToList();
+ dto.ownedTypeFeaturing = poco.ownedTypeFeaturing.Select(x => x.Id).ToList();
+ dto.ownedTyping = poco.ownedTyping.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningDefinition = poco.owningDefinition?.Id;
+ dto.owningFeatureMembership = poco.owningFeatureMembership?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType?.Id;
+ dto.owningUsage = poco.owningUsage?.Id;
+ dto.partDefinition = poco.partDefinition.Select(x => x.Id).ToList();
+ dto.qualifiedName = poco.qualifiedName;
+ dto.relatedFeature = poco.relatedFeature.Select(x => x.Id).ToList();
+ dto.shortName = poco.shortName;
+ dto.sourceFeature = poco.sourceFeature?.Id;
+ dto.targetFeature = poco.targetFeature.Select(x => x.Id).ToList();
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ dto.usage = poco.usage.Select(x => x.Id).ToList();
+ dto.variant = poco.variant.Select(x => x.Id).ToList();
+ dto.variantMembership = poco.variantMembership.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/IntersectingExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/IntersectingExtensions.cs
index b5b6ff7c2..3cbd204aa 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/IntersectingExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/IntersectingExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Core.Types;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class IntersectingExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -102,17 +102,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -150,7 +150,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Types.Intersect
{
if (cache.TryGetValue(identifier, out lazyPoco))
{
- poco.OwnedRelatedElement.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value);
+ poco.OwnedRelatedElement.Add(lazyPoco.Value);
}
}
@@ -166,7 +166,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Types.Intersect
if (dto.OwningRelatedElement.HasValue && cache.TryGetValue(dto.OwningRelatedElement.Value, out lazyPoco))
{
- poco.OwningRelatedElement = (Core.POCO.Root.Elements.IElement)lazyPoco.Value;
+ poco.OwningRelatedElement = lazyPoco.Value;
}
else
{
@@ -190,10 +190,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Types.Intersect
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Core.Types.Intersecting ToDto(this Core.POCO.Core.Types.Intersecting poco)
+ public static Core.DTO.Core.Types.Intersecting ToDto(this Core.POCO.Core.Types.Intersecting poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Core.Types.Intersecting();
@@ -210,6 +213,23 @@ public static Core.DTO.Core.Types.Intersecting ToDto(this Core.POCO.Core.Types.I
dto.OwningRelatedElement = poco.OwningRelatedElement?.Id;
dto.OwningRelationship = poco.OwningRelationship?.Id;
+ if (includeDerivedProperties)
+ {
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.name = poco.name;
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.relatedElement = poco.relatedElement.Select(x => x.Id).ToList();
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.typeIntersected = poco.typeIntersected.Id;
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/InvariantExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/InvariantExtensions.cs
index 8164c3bcc..94637b302 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/InvariantExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/InvariantExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Kernel.Functions;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class InvariantExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -115,17 +115,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -175,10 +175,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.Functions.Inv
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Kernel.Functions.Invariant ToDto(this Core.POCO.Kernel.Functions.Invariant poco)
+ public static Core.DTO.Kernel.Functions.Invariant ToDto(this Core.POCO.Kernel.Functions.Invariant poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Kernel.Functions.Invariant();
@@ -203,6 +206,68 @@ public static Core.DTO.Kernel.Functions.Invariant ToDto(this Core.POCO.Kernel.Fu
dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList();
dto.OwningRelationship = poco.OwningRelationship?.Id;
+ if (includeDerivedProperties)
+ {
+ dto.chainingFeature = poco.chainingFeature.Select(x => x.Id).ToList();
+ dto.crossFeature = poco.crossFeature?.Id;
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endFeature = poco.endFeature.Select(x => x.Id).ToList();
+ dto.endOwningType = poco.endOwningType?.Id;
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.featureTarget = poco.featureTarget.Id;
+ dto.featuringType = poco.featuringType.Select(x => x.Id).ToList();
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.isModelLevelEvaluable = poco.isModelLevelEvaluable;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedCrossSubsetting = poco.ownedCrossSubsetting?.Id;
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureChaining = poco.ownedFeatureChaining.Select(x => x.Id).ToList();
+ dto.ownedFeatureInverting = poco.ownedFeatureInverting.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedRedefinition = poco.ownedRedefinition.Select(x => x.Id).ToList();
+ dto.ownedReferenceSubsetting = poco.ownedReferenceSubsetting?.Id;
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedSubsetting = poco.ownedSubsetting.Select(x => x.Id).ToList();
+ dto.ownedTypeFeaturing = poco.ownedTypeFeaturing.Select(x => x.Id).ToList();
+ dto.ownedTyping = poco.ownedTyping.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningFeatureMembership = poco.owningFeatureMembership?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType?.Id;
+ dto.parameter = poco.parameter.Select(x => x.Id).ToList();
+ dto.predicate = poco.predicate?.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.result = poco.result.Id;
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.type = poco.type.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/InvocationExpressionExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/InvocationExpressionExtensions.cs
index 89dbcca6b..0a377206f 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/InvocationExpressionExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/InvocationExpressionExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Kernel.Expressions;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class InvocationExpressionExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -113,17 +113,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -173,10 +173,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.Expressions.I
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Kernel.Expressions.InvocationExpression ToDto(this Core.POCO.Kernel.Expressions.InvocationExpression poco)
+ public static Core.DTO.Kernel.Expressions.InvocationExpression ToDto(this Core.POCO.Kernel.Expressions.InvocationExpression poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Kernel.Expressions.InvocationExpression();
@@ -200,6 +203,70 @@ public static Core.DTO.Kernel.Expressions.InvocationExpression ToDto(this Core.P
dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList();
dto.OwningRelationship = poco.OwningRelationship?.Id;
+ if (includeDerivedProperties)
+ {
+ dto.argument = poco.argument.Select(x => x.Id).ToList();
+ dto.chainingFeature = poco.chainingFeature.Select(x => x.Id).ToList();
+ dto.crossFeature = poco.crossFeature?.Id;
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endFeature = poco.endFeature.Select(x => x.Id).ToList();
+ dto.endOwningType = poco.endOwningType?.Id;
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.featureTarget = poco.featureTarget.Id;
+ dto.featuringType = poco.featuringType.Select(x => x.Id).ToList();
+ dto.function = poco.function?.Id;
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.instantiatedType = poco.instantiatedType.Id;
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.isModelLevelEvaluable = poco.isModelLevelEvaluable;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedCrossSubsetting = poco.ownedCrossSubsetting?.Id;
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureChaining = poco.ownedFeatureChaining.Select(x => x.Id).ToList();
+ dto.ownedFeatureInverting = poco.ownedFeatureInverting.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedRedefinition = poco.ownedRedefinition.Select(x => x.Id).ToList();
+ dto.ownedReferenceSubsetting = poco.ownedReferenceSubsetting?.Id;
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedSubsetting = poco.ownedSubsetting.Select(x => x.Id).ToList();
+ dto.ownedTypeFeaturing = poco.ownedTypeFeaturing.Select(x => x.Id).ToList();
+ dto.ownedTyping = poco.ownedTyping.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningFeatureMembership = poco.owningFeatureMembership?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType?.Id;
+ dto.parameter = poco.parameter.Select(x => x.Id).ToList();
+ dto.qualifiedName = poco.qualifiedName;
+ dto.result = poco.result.Id;
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.type = poco.type.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ItemDefinitionExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ItemDefinitionExtensions.cs
index 79f0ca143..90f20084c 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ItemDefinitionExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ItemDefinitionExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Systems.Items;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class ItemDefinitionExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -99,17 +99,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -159,10 +159,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Items.ItemDe
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Systems.Items.ItemDefinition ToDto(this Core.POCO.Systems.Items.ItemDefinition poco)
+ public static Core.DTO.Systems.Items.ItemDefinition ToDto(this Core.POCO.Systems.Items.ItemDefinition poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Systems.Items.ItemDefinition();
@@ -179,6 +182,81 @@ public static Core.DTO.Systems.Items.ItemDefinition ToDto(this Core.POCO.Systems
dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList();
dto.OwningRelationship = poco.OwningRelationship?.Id;
+ if (includeDerivedProperties)
+ {
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.directedFeature = poco.directedFeature.Select(x => x.Id).ToList();
+ dto.directedUsage = poco.directedUsage.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endFeature = poco.endFeature.Select(x => x.Id).ToList();
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAction = poco.ownedAction.Select(x => x.Id).ToList();
+ dto.ownedAllocation = poco.ownedAllocation.Select(x => x.Id).ToList();
+ dto.ownedAnalysisCase = poco.ownedAnalysisCase.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedAttribute = poco.ownedAttribute.Select(x => x.Id).ToList();
+ dto.ownedCalculation = poco.ownedCalculation.Select(x => x.Id).ToList();
+ dto.ownedCase = poco.ownedCase.Select(x => x.Id).ToList();
+ dto.ownedConcern = poco.ownedConcern.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedConnection = poco.ownedConnection.Select(x => x.Id).ToList();
+ dto.ownedConstraint = poco.ownedConstraint.Select(x => x.Id).ToList();
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedEnumeration = poco.ownedEnumeration.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedFlow = poco.ownedFlow.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedInterface = poco.ownedInterface.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedItem = poco.ownedItem.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedMetadata = poco.ownedMetadata.Select(x => x.Id).ToList();
+ dto.ownedOccurrence = poco.ownedOccurrence.Select(x => x.Id).ToList();
+ dto.ownedPart = poco.ownedPart.Select(x => x.Id).ToList();
+ dto.ownedPort = poco.ownedPort.Select(x => x.Id).ToList();
+ dto.ownedReference = poco.ownedReference.Select(x => x.Id).ToList();
+ dto.ownedRendering = poco.ownedRendering.Select(x => x.Id).ToList();
+ dto.ownedRequirement = poco.ownedRequirement.Select(x => x.Id).ToList();
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedState = poco.ownedState.Select(x => x.Id).ToList();
+ dto.ownedSubclassification = poco.ownedSubclassification.Select(x => x.Id).ToList();
+ dto.ownedTransition = poco.ownedTransition.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.ownedUsage = poco.ownedUsage.Select(x => x.Id).ToList();
+ dto.ownedUseCase = poco.ownedUseCase.Select(x => x.Id).ToList();
+ dto.ownedVerificationCase = poco.ownedVerificationCase.Select(x => x.Id).ToList();
+ dto.ownedView = poco.ownedView.Select(x => x.Id).ToList();
+ dto.ownedViewpoint = poco.ownedViewpoint.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ dto.usage = poco.usage.Select(x => x.Id).ToList();
+ dto.variant = poco.variant.Select(x => x.Id).ToList();
+ dto.variantMembership = poco.variantMembership.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ItemUsageExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ItemUsageExtensions.cs
index 36eace0ca..92d7179b5 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ItemUsageExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ItemUsageExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Systems.Items;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class ItemUsageExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -117,17 +117,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -177,10 +177,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Items.ItemUs
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Systems.Items.ItemUsage ToDto(this Core.POCO.Systems.Items.ItemUsage poco)
+ public static Core.DTO.Systems.Items.ItemUsage ToDto(this Core.POCO.Systems.Items.ItemUsage poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Systems.Items.ItemUsage();
@@ -206,6 +209,102 @@ public static Core.DTO.Systems.Items.ItemUsage ToDto(this Core.POCO.Systems.Item
dto.OwningRelationship = poco.OwningRelationship?.Id;
dto.PortionKind = poco.PortionKind;
+ if (includeDerivedProperties)
+ {
+ dto.chainingFeature = poco.chainingFeature.Select(x => x.Id).ToList();
+ dto.crossFeature = poco.crossFeature?.Id;
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.directedFeature = poco.directedFeature.Select(x => x.Id).ToList();
+ dto.directedUsage = poco.directedUsage.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endFeature = poco.endFeature.Select(x => x.Id).ToList();
+ dto.endOwningType = poco.endOwningType?.Id;
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.featureTarget = poco.featureTarget.Id;
+ dto.featuringType = poco.featuringType.Select(x => x.Id).ToList();
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.individualDefinition = poco.individualDefinition?.Id;
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.isReference = poco.isReference;
+ dto.itemDefinition = poco.itemDefinition.Select(x => x.Id).ToList();
+ dto.mayTimeVary = poco.mayTimeVary;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.nestedAction = poco.nestedAction.Select(x => x.Id).ToList();
+ dto.nestedAllocation = poco.nestedAllocation.Select(x => x.Id).ToList();
+ dto.nestedAnalysisCase = poco.nestedAnalysisCase.Select(x => x.Id).ToList();
+ dto.nestedAttribute = poco.nestedAttribute.Select(x => x.Id).ToList();
+ dto.nestedCalculation = poco.nestedCalculation.Select(x => x.Id).ToList();
+ dto.nestedCase = poco.nestedCase.Select(x => x.Id).ToList();
+ dto.nestedConcern = poco.nestedConcern.Select(x => x.Id).ToList();
+ dto.nestedConnection = poco.nestedConnection.Select(x => x.Id).ToList();
+ dto.nestedConstraint = poco.nestedConstraint.Select(x => x.Id).ToList();
+ dto.nestedEnumeration = poco.nestedEnumeration.Select(x => x.Id).ToList();
+ dto.nestedFlow = poco.nestedFlow.Select(x => x.Id).ToList();
+ dto.nestedInterface = poco.nestedInterface.Select(x => x.Id).ToList();
+ dto.nestedItem = poco.nestedItem.Select(x => x.Id).ToList();
+ dto.nestedMetadata = poco.nestedMetadata.Select(x => x.Id).ToList();
+ dto.nestedOccurrence = poco.nestedOccurrence.Select(x => x.Id).ToList();
+ dto.nestedPart = poco.nestedPart.Select(x => x.Id).ToList();
+ dto.nestedPort = poco.nestedPort.Select(x => x.Id).ToList();
+ dto.nestedReference = poco.nestedReference.Select(x => x.Id).ToList();
+ dto.nestedRendering = poco.nestedRendering.Select(x => x.Id).ToList();
+ dto.nestedRequirement = poco.nestedRequirement.Select(x => x.Id).ToList();
+ dto.nestedState = poco.nestedState.Select(x => x.Id).ToList();
+ dto.nestedTransition = poco.nestedTransition.Select(x => x.Id).ToList();
+ dto.nestedUsage = poco.nestedUsage.Select(x => x.Id).ToList();
+ dto.nestedUseCase = poco.nestedUseCase.Select(x => x.Id).ToList();
+ dto.nestedVerificationCase = poco.nestedVerificationCase.Select(x => x.Id).ToList();
+ dto.nestedView = poco.nestedView.Select(x => x.Id).ToList();
+ dto.nestedViewpoint = poco.nestedViewpoint.Select(x => x.Id).ToList();
+ dto.occurrenceDefinition = poco.occurrenceDefinition.Select(x => x.Id).ToList();
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedCrossSubsetting = poco.ownedCrossSubsetting?.Id;
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureChaining = poco.ownedFeatureChaining.Select(x => x.Id).ToList();
+ dto.ownedFeatureInverting = poco.ownedFeatureInverting.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedRedefinition = poco.ownedRedefinition.Select(x => x.Id).ToList();
+ dto.ownedReferenceSubsetting = poco.ownedReferenceSubsetting?.Id;
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedSubsetting = poco.ownedSubsetting.Select(x => x.Id).ToList();
+ dto.ownedTypeFeaturing = poco.ownedTypeFeaturing.Select(x => x.Id).ToList();
+ dto.ownedTyping = poco.ownedTyping.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningDefinition = poco.owningDefinition?.Id;
+ dto.owningFeatureMembership = poco.owningFeatureMembership?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType?.Id;
+ dto.owningUsage = poco.owningUsage?.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ dto.usage = poco.usage.Select(x => x.Id).ToList();
+ dto.variant = poco.variant.Select(x => x.Id).ToList();
+ dto.variantMembership = poco.variantMembership.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/JoinNodeExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/JoinNodeExtensions.cs
index 24e720dba..95bd1535e 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/JoinNodeExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/JoinNodeExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Systems.Actions;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class JoinNodeExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -117,17 +117,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -177,10 +177,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Actions.Join
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Systems.Actions.JoinNode ToDto(this Core.POCO.Systems.Actions.JoinNode poco)
+ public static Core.DTO.Systems.Actions.JoinNode ToDto(this Core.POCO.Systems.Actions.JoinNode poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Systems.Actions.JoinNode();
@@ -206,6 +209,101 @@ public static Core.DTO.Systems.Actions.JoinNode ToDto(this Core.POCO.Systems.Act
dto.OwningRelationship = poco.OwningRelationship?.Id;
dto.PortionKind = poco.PortionKind;
+ if (includeDerivedProperties)
+ {
+ dto.actionDefinition = poco.actionDefinition.Select(x => x.Id).ToList();
+ dto.chainingFeature = poco.chainingFeature.Select(x => x.Id).ToList();
+ dto.crossFeature = poco.crossFeature?.Id;
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.directedUsage = poco.directedUsage.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endFeature = poco.endFeature.Select(x => x.Id).ToList();
+ dto.endOwningType = poco.endOwningType?.Id;
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.featureTarget = poco.featureTarget.Id;
+ dto.featuringType = poco.featuringType.Select(x => x.Id).ToList();
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.individualDefinition = poco.individualDefinition?.Id;
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.isReference = poco.isReference;
+ dto.mayTimeVary = poco.mayTimeVary;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.nestedAction = poco.nestedAction.Select(x => x.Id).ToList();
+ dto.nestedAllocation = poco.nestedAllocation.Select(x => x.Id).ToList();
+ dto.nestedAnalysisCase = poco.nestedAnalysisCase.Select(x => x.Id).ToList();
+ dto.nestedAttribute = poco.nestedAttribute.Select(x => x.Id).ToList();
+ dto.nestedCalculation = poco.nestedCalculation.Select(x => x.Id).ToList();
+ dto.nestedCase = poco.nestedCase.Select(x => x.Id).ToList();
+ dto.nestedConcern = poco.nestedConcern.Select(x => x.Id).ToList();
+ dto.nestedConnection = poco.nestedConnection.Select(x => x.Id).ToList();
+ dto.nestedConstraint = poco.nestedConstraint.Select(x => x.Id).ToList();
+ dto.nestedEnumeration = poco.nestedEnumeration.Select(x => x.Id).ToList();
+ dto.nestedFlow = poco.nestedFlow.Select(x => x.Id).ToList();
+ dto.nestedInterface = poco.nestedInterface.Select(x => x.Id).ToList();
+ dto.nestedItem = poco.nestedItem.Select(x => x.Id).ToList();
+ dto.nestedMetadata = poco.nestedMetadata.Select(x => x.Id).ToList();
+ dto.nestedOccurrence = poco.nestedOccurrence.Select(x => x.Id).ToList();
+ dto.nestedPart = poco.nestedPart.Select(x => x.Id).ToList();
+ dto.nestedPort = poco.nestedPort.Select(x => x.Id).ToList();
+ dto.nestedReference = poco.nestedReference.Select(x => x.Id).ToList();
+ dto.nestedRendering = poco.nestedRendering.Select(x => x.Id).ToList();
+ dto.nestedRequirement = poco.nestedRequirement.Select(x => x.Id).ToList();
+ dto.nestedState = poco.nestedState.Select(x => x.Id).ToList();
+ dto.nestedTransition = poco.nestedTransition.Select(x => x.Id).ToList();
+ dto.nestedUsage = poco.nestedUsage.Select(x => x.Id).ToList();
+ dto.nestedUseCase = poco.nestedUseCase.Select(x => x.Id).ToList();
+ dto.nestedVerificationCase = poco.nestedVerificationCase.Select(x => x.Id).ToList();
+ dto.nestedView = poco.nestedView.Select(x => x.Id).ToList();
+ dto.nestedViewpoint = poco.nestedViewpoint.Select(x => x.Id).ToList();
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedCrossSubsetting = poco.ownedCrossSubsetting?.Id;
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureChaining = poco.ownedFeatureChaining.Select(x => x.Id).ToList();
+ dto.ownedFeatureInverting = poco.ownedFeatureInverting.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedRedefinition = poco.ownedRedefinition.Select(x => x.Id).ToList();
+ dto.ownedReferenceSubsetting = poco.ownedReferenceSubsetting?.Id;
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedSubsetting = poco.ownedSubsetting.Select(x => x.Id).ToList();
+ dto.ownedTypeFeaturing = poco.ownedTypeFeaturing.Select(x => x.Id).ToList();
+ dto.ownedTyping = poco.ownedTyping.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningDefinition = poco.owningDefinition?.Id;
+ dto.owningFeatureMembership = poco.owningFeatureMembership?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType?.Id;
+ dto.owningUsage = poco.owningUsage?.Id;
+ dto.parameter = poco.parameter.Select(x => x.Id).ToList();
+ dto.qualifiedName = poco.qualifiedName;
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ dto.usage = poco.usage.Select(x => x.Id).ToList();
+ dto.variant = poco.variant.Select(x => x.Id).ToList();
+ dto.variantMembership = poco.variantMembership.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/LibraryPackageExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/LibraryPackageExtensions.cs
index 06b1dcfda..2b27d4f7b 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/LibraryPackageExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/LibraryPackageExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Kernel.Packages;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class LibraryPackageExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -93,17 +93,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -153,10 +153,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.Packages.Libr
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Kernel.Packages.LibraryPackage ToDto(this Core.POCO.Kernel.Packages.LibraryPackage poco)
+ public static Core.DTO.Kernel.Packages.LibraryPackage ToDto(this Core.POCO.Kernel.Packages.LibraryPackage poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Kernel.Packages.LibraryPackage();
@@ -170,6 +173,28 @@ public static Core.DTO.Kernel.Packages.LibraryPackage ToDto(this Core.POCO.Kerne
dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList();
dto.OwningRelationship = poco.OwningRelationship?.Id;
+ if (includeDerivedProperties)
+ {
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.filterCondition = poco.filterCondition.Select(x => x.Id).ToList();
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.name = poco.name;
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/LiteralBooleanExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/LiteralBooleanExtensions.cs
index 405bc201f..668b4e4ea 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/LiteralBooleanExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/LiteralBooleanExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Kernel.Expressions;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class LiteralBooleanExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -115,17 +115,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -175,10 +175,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.Expressions.L
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Kernel.Expressions.LiteralBoolean ToDto(this Core.POCO.Kernel.Expressions.LiteralBoolean poco)
+ public static Core.DTO.Kernel.Expressions.LiteralBoolean ToDto(this Core.POCO.Kernel.Expressions.LiteralBoolean poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Kernel.Expressions.LiteralBoolean();
@@ -203,6 +206,68 @@ public static Core.DTO.Kernel.Expressions.LiteralBoolean ToDto(this Core.POCO.Ke
dto.OwningRelationship = poco.OwningRelationship?.Id;
dto.Value = poco.Value;
+ if (includeDerivedProperties)
+ {
+ dto.chainingFeature = poco.chainingFeature.Select(x => x.Id).ToList();
+ dto.crossFeature = poco.crossFeature?.Id;
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endFeature = poco.endFeature.Select(x => x.Id).ToList();
+ dto.endOwningType = poco.endOwningType?.Id;
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.featureTarget = poco.featureTarget.Id;
+ dto.featuringType = poco.featuringType.Select(x => x.Id).ToList();
+ dto.function = poco.function?.Id;
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.isModelLevelEvaluable = poco.isModelLevelEvaluable;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedCrossSubsetting = poco.ownedCrossSubsetting?.Id;
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureChaining = poco.ownedFeatureChaining.Select(x => x.Id).ToList();
+ dto.ownedFeatureInverting = poco.ownedFeatureInverting.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedRedefinition = poco.ownedRedefinition.Select(x => x.Id).ToList();
+ dto.ownedReferenceSubsetting = poco.ownedReferenceSubsetting?.Id;
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedSubsetting = poco.ownedSubsetting.Select(x => x.Id).ToList();
+ dto.ownedTypeFeaturing = poco.ownedTypeFeaturing.Select(x => x.Id).ToList();
+ dto.ownedTyping = poco.ownedTyping.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningFeatureMembership = poco.owningFeatureMembership?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType?.Id;
+ dto.parameter = poco.parameter.Select(x => x.Id).ToList();
+ dto.qualifiedName = poco.qualifiedName;
+ dto.result = poco.result.Id;
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.type = poco.type.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/LiteralExpressionExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/LiteralExpressionExtensions.cs
index 5f1429801..b2d875ed4 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/LiteralExpressionExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/LiteralExpressionExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Kernel.Expressions;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class LiteralExpressionExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -113,17 +113,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -173,10 +173,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.Expressions.L
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Kernel.Expressions.LiteralExpression ToDto(this Core.POCO.Kernel.Expressions.LiteralExpression poco)
+ public static Core.DTO.Kernel.Expressions.LiteralExpression ToDto(this Core.POCO.Kernel.Expressions.LiteralExpression poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Kernel.Expressions.LiteralExpression();
@@ -200,6 +203,68 @@ public static Core.DTO.Kernel.Expressions.LiteralExpression ToDto(this Core.POCO
dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList();
dto.OwningRelationship = poco.OwningRelationship?.Id;
+ if (includeDerivedProperties)
+ {
+ dto.chainingFeature = poco.chainingFeature.Select(x => x.Id).ToList();
+ dto.crossFeature = poco.crossFeature?.Id;
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endFeature = poco.endFeature.Select(x => x.Id).ToList();
+ dto.endOwningType = poco.endOwningType?.Id;
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.featureTarget = poco.featureTarget.Id;
+ dto.featuringType = poco.featuringType.Select(x => x.Id).ToList();
+ dto.function = poco.function?.Id;
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.isModelLevelEvaluable = poco.isModelLevelEvaluable;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedCrossSubsetting = poco.ownedCrossSubsetting?.Id;
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureChaining = poco.ownedFeatureChaining.Select(x => x.Id).ToList();
+ dto.ownedFeatureInverting = poco.ownedFeatureInverting.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedRedefinition = poco.ownedRedefinition.Select(x => x.Id).ToList();
+ dto.ownedReferenceSubsetting = poco.ownedReferenceSubsetting?.Id;
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedSubsetting = poco.ownedSubsetting.Select(x => x.Id).ToList();
+ dto.ownedTypeFeaturing = poco.ownedTypeFeaturing.Select(x => x.Id).ToList();
+ dto.ownedTyping = poco.ownedTyping.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningFeatureMembership = poco.owningFeatureMembership?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType?.Id;
+ dto.parameter = poco.parameter.Select(x => x.Id).ToList();
+ dto.qualifiedName = poco.qualifiedName;
+ dto.result = poco.result.Id;
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.type = poco.type.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/LiteralInfinityExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/LiteralInfinityExtensions.cs
index d44d217c0..9301d6a0e 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/LiteralInfinityExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/LiteralInfinityExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Kernel.Expressions;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class LiteralInfinityExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -113,17 +113,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -173,10 +173,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.Expressions.L
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Kernel.Expressions.LiteralInfinity ToDto(this Core.POCO.Kernel.Expressions.LiteralInfinity poco)
+ public static Core.DTO.Kernel.Expressions.LiteralInfinity ToDto(this Core.POCO.Kernel.Expressions.LiteralInfinity poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Kernel.Expressions.LiteralInfinity();
@@ -200,6 +203,68 @@ public static Core.DTO.Kernel.Expressions.LiteralInfinity ToDto(this Core.POCO.K
dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList();
dto.OwningRelationship = poco.OwningRelationship?.Id;
+ if (includeDerivedProperties)
+ {
+ dto.chainingFeature = poco.chainingFeature.Select(x => x.Id).ToList();
+ dto.crossFeature = poco.crossFeature?.Id;
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endFeature = poco.endFeature.Select(x => x.Id).ToList();
+ dto.endOwningType = poco.endOwningType?.Id;
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.featureTarget = poco.featureTarget.Id;
+ dto.featuringType = poco.featuringType.Select(x => x.Id).ToList();
+ dto.function = poco.function?.Id;
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.isModelLevelEvaluable = poco.isModelLevelEvaluable;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedCrossSubsetting = poco.ownedCrossSubsetting?.Id;
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureChaining = poco.ownedFeatureChaining.Select(x => x.Id).ToList();
+ dto.ownedFeatureInverting = poco.ownedFeatureInverting.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedRedefinition = poco.ownedRedefinition.Select(x => x.Id).ToList();
+ dto.ownedReferenceSubsetting = poco.ownedReferenceSubsetting?.Id;
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedSubsetting = poco.ownedSubsetting.Select(x => x.Id).ToList();
+ dto.ownedTypeFeaturing = poco.ownedTypeFeaturing.Select(x => x.Id).ToList();
+ dto.ownedTyping = poco.ownedTyping.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningFeatureMembership = poco.owningFeatureMembership?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType?.Id;
+ dto.parameter = poco.parameter.Select(x => x.Id).ToList();
+ dto.qualifiedName = poco.qualifiedName;
+ dto.result = poco.result.Id;
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.type = poco.type.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/LiteralIntegerExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/LiteralIntegerExtensions.cs
index cb7765e87..67625c66c 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/LiteralIntegerExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/LiteralIntegerExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Kernel.Expressions;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class LiteralIntegerExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -115,17 +115,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -175,10 +175,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.Expressions.L
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Kernel.Expressions.LiteralInteger ToDto(this Core.POCO.Kernel.Expressions.LiteralInteger poco)
+ public static Core.DTO.Kernel.Expressions.LiteralInteger ToDto(this Core.POCO.Kernel.Expressions.LiteralInteger poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Kernel.Expressions.LiteralInteger();
@@ -203,6 +206,68 @@ public static Core.DTO.Kernel.Expressions.LiteralInteger ToDto(this Core.POCO.Ke
dto.OwningRelationship = poco.OwningRelationship?.Id;
dto.Value = poco.Value;
+ if (includeDerivedProperties)
+ {
+ dto.chainingFeature = poco.chainingFeature.Select(x => x.Id).ToList();
+ dto.crossFeature = poco.crossFeature?.Id;
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endFeature = poco.endFeature.Select(x => x.Id).ToList();
+ dto.endOwningType = poco.endOwningType?.Id;
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.featureTarget = poco.featureTarget.Id;
+ dto.featuringType = poco.featuringType.Select(x => x.Id).ToList();
+ dto.function = poco.function?.Id;
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.isModelLevelEvaluable = poco.isModelLevelEvaluable;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedCrossSubsetting = poco.ownedCrossSubsetting?.Id;
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureChaining = poco.ownedFeatureChaining.Select(x => x.Id).ToList();
+ dto.ownedFeatureInverting = poco.ownedFeatureInverting.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedRedefinition = poco.ownedRedefinition.Select(x => x.Id).ToList();
+ dto.ownedReferenceSubsetting = poco.ownedReferenceSubsetting?.Id;
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedSubsetting = poco.ownedSubsetting.Select(x => x.Id).ToList();
+ dto.ownedTypeFeaturing = poco.ownedTypeFeaturing.Select(x => x.Id).ToList();
+ dto.ownedTyping = poco.ownedTyping.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningFeatureMembership = poco.owningFeatureMembership?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType?.Id;
+ dto.parameter = poco.parameter.Select(x => x.Id).ToList();
+ dto.qualifiedName = poco.qualifiedName;
+ dto.result = poco.result.Id;
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.type = poco.type.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/LiteralRationalExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/LiteralRationalExtensions.cs
index 4feb33320..d428833a9 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/LiteralRationalExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/LiteralRationalExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Kernel.Expressions;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class LiteralRationalExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -115,17 +115,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -175,10 +175,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.Expressions.L
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Kernel.Expressions.LiteralRational ToDto(this Core.POCO.Kernel.Expressions.LiteralRational poco)
+ public static Core.DTO.Kernel.Expressions.LiteralRational ToDto(this Core.POCO.Kernel.Expressions.LiteralRational poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Kernel.Expressions.LiteralRational();
@@ -203,6 +206,68 @@ public static Core.DTO.Kernel.Expressions.LiteralRational ToDto(this Core.POCO.K
dto.OwningRelationship = poco.OwningRelationship?.Id;
dto.Value = poco.Value;
+ if (includeDerivedProperties)
+ {
+ dto.chainingFeature = poco.chainingFeature.Select(x => x.Id).ToList();
+ dto.crossFeature = poco.crossFeature?.Id;
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endFeature = poco.endFeature.Select(x => x.Id).ToList();
+ dto.endOwningType = poco.endOwningType?.Id;
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.featureTarget = poco.featureTarget.Id;
+ dto.featuringType = poco.featuringType.Select(x => x.Id).ToList();
+ dto.function = poco.function?.Id;
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.isModelLevelEvaluable = poco.isModelLevelEvaluable;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedCrossSubsetting = poco.ownedCrossSubsetting?.Id;
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureChaining = poco.ownedFeatureChaining.Select(x => x.Id).ToList();
+ dto.ownedFeatureInverting = poco.ownedFeatureInverting.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedRedefinition = poco.ownedRedefinition.Select(x => x.Id).ToList();
+ dto.ownedReferenceSubsetting = poco.ownedReferenceSubsetting?.Id;
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedSubsetting = poco.ownedSubsetting.Select(x => x.Id).ToList();
+ dto.ownedTypeFeaturing = poco.ownedTypeFeaturing.Select(x => x.Id).ToList();
+ dto.ownedTyping = poco.ownedTyping.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningFeatureMembership = poco.owningFeatureMembership?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType?.Id;
+ dto.parameter = poco.parameter.Select(x => x.Id).ToList();
+ dto.qualifiedName = poco.qualifiedName;
+ dto.result = poco.result.Id;
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.type = poco.type.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/LiteralStringExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/LiteralStringExtensions.cs
index 6007c914d..afde209f4 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/LiteralStringExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/LiteralStringExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Kernel.Expressions;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class LiteralStringExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -115,17 +115,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -175,10 +175,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.Expressions.L
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Kernel.Expressions.LiteralString ToDto(this Core.POCO.Kernel.Expressions.LiteralString poco)
+ public static Core.DTO.Kernel.Expressions.LiteralString ToDto(this Core.POCO.Kernel.Expressions.LiteralString poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Kernel.Expressions.LiteralString();
@@ -203,6 +206,68 @@ public static Core.DTO.Kernel.Expressions.LiteralString ToDto(this Core.POCO.Ker
dto.OwningRelationship = poco.OwningRelationship?.Id;
dto.Value = poco.Value;
+ if (includeDerivedProperties)
+ {
+ dto.chainingFeature = poco.chainingFeature.Select(x => x.Id).ToList();
+ dto.crossFeature = poco.crossFeature?.Id;
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endFeature = poco.endFeature.Select(x => x.Id).ToList();
+ dto.endOwningType = poco.endOwningType?.Id;
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.featureTarget = poco.featureTarget.Id;
+ dto.featuringType = poco.featuringType.Select(x => x.Id).ToList();
+ dto.function = poco.function?.Id;
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.isModelLevelEvaluable = poco.isModelLevelEvaluable;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedCrossSubsetting = poco.ownedCrossSubsetting?.Id;
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureChaining = poco.ownedFeatureChaining.Select(x => x.Id).ToList();
+ dto.ownedFeatureInverting = poco.ownedFeatureInverting.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedRedefinition = poco.ownedRedefinition.Select(x => x.Id).ToList();
+ dto.ownedReferenceSubsetting = poco.ownedReferenceSubsetting?.Id;
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedSubsetting = poco.ownedSubsetting.Select(x => x.Id).ToList();
+ dto.ownedTypeFeaturing = poco.ownedTypeFeaturing.Select(x => x.Id).ToList();
+ dto.ownedTyping = poco.ownedTyping.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningFeatureMembership = poco.owningFeatureMembership?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType?.Id;
+ dto.parameter = poco.parameter.Select(x => x.Id).ToList();
+ dto.qualifiedName = poco.qualifiedName;
+ dto.result = poco.result.Id;
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.type = poco.type.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/MembershipExposeExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/MembershipExposeExtensions.cs
index da622fd3f..530e77ce3 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/MembershipExposeExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/MembershipExposeExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Systems.Views;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class MembershipExposeExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -108,17 +108,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -156,7 +156,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Views.Member
{
if (cache.TryGetValue(identifier, out lazyPoco))
{
- poco.OwnedRelatedElement.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value);
+ poco.OwnedRelatedElement.Add(lazyPoco.Value);
}
}
@@ -172,7 +172,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Views.Member
if (dto.OwningRelatedElement.HasValue && cache.TryGetValue(dto.OwningRelatedElement.Value, out lazyPoco))
{
- poco.OwningRelatedElement = (Core.POCO.Root.Elements.IElement)lazyPoco.Value;
+ poco.OwningRelatedElement = lazyPoco.Value;
}
else
{
@@ -196,10 +196,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Views.Member
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Systems.Views.MembershipExpose ToDto(this Core.POCO.Systems.Views.MembershipExpose poco)
+ public static Core.DTO.Systems.Views.MembershipExpose ToDto(this Core.POCO.Systems.Views.MembershipExpose poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Systems.Views.MembershipExpose();
@@ -219,6 +222,24 @@ public static Core.DTO.Systems.Views.MembershipExpose ToDto(this Core.POCO.Syste
dto.OwningRelationship = poco.OwningRelationship?.Id;
dto.Visibility = poco.Visibility;
+ if (includeDerivedProperties)
+ {
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.importedElement = poco.importedElement.Id;
+ dto.importOwningNamespace = poco.importOwningNamespace.Id;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.name = poco.name;
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.relatedElement = poco.relatedElement.Select(x => x.Id).ToList();
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/MembershipExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/MembershipExtensions.cs
index 9561aa74d..3b3998698 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/MembershipExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/MembershipExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Root.Namespaces;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class MembershipExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -108,17 +108,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -143,7 +143,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Root.Namespaces.Memb
if (cache.TryGetValue(dto.MemberElement, out lazyPoco))
{
- poco.MemberElement = (Core.POCO.Root.Elements.IElement)lazyPoco.Value;
+ poco.MemberElement = lazyPoco.Value;
}
else
{
@@ -156,7 +156,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Root.Namespaces.Memb
{
if (cache.TryGetValue(identifier, out lazyPoco))
{
- poco.OwnedRelatedElement.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value);
+ poco.OwnedRelatedElement.Add(lazyPoco.Value);
}
}
@@ -172,7 +172,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Root.Namespaces.Memb
if (dto.OwningRelatedElement.HasValue && cache.TryGetValue(dto.OwningRelatedElement.Value, out lazyPoco))
{
- poco.OwningRelatedElement = (Core.POCO.Root.Elements.IElement)lazyPoco.Value;
+ poco.OwningRelatedElement = lazyPoco.Value;
}
else
{
@@ -196,10 +196,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Root.Namespaces.Memb
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Root.Namespaces.Membership ToDto(this Core.POCO.Root.Namespaces.Membership poco)
+ public static Core.DTO.Root.Namespaces.Membership ToDto(this Core.POCO.Root.Namespaces.Membership poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Root.Namespaces.Membership();
@@ -219,6 +222,24 @@ public static Core.DTO.Root.Namespaces.Membership ToDto(this Core.POCO.Root.Name
dto.OwningRelationship = poco.OwningRelationship?.Id;
dto.Visibility = poco.Visibility;
+ if (includeDerivedProperties)
+ {
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.memberElementId = poco.memberElementId;
+ dto.membershipOwningNamespace = poco.membershipOwningNamespace.Id;
+ dto.name = poco.name;
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.relatedElement = poco.relatedElement.Select(x => x.Id).ToList();
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/MembershipImportExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/MembershipImportExtensions.cs
index 7f432a53e..514da7370 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/MembershipImportExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/MembershipImportExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Root.Namespaces;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class MembershipImportExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -108,17 +108,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -156,7 +156,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Root.Namespaces.Memb
{
if (cache.TryGetValue(identifier, out lazyPoco))
{
- poco.OwnedRelatedElement.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value);
+ poco.OwnedRelatedElement.Add(lazyPoco.Value);
}
}
@@ -172,7 +172,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Root.Namespaces.Memb
if (dto.OwningRelatedElement.HasValue && cache.TryGetValue(dto.OwningRelatedElement.Value, out lazyPoco))
{
- poco.OwningRelatedElement = (Core.POCO.Root.Elements.IElement)lazyPoco.Value;
+ poco.OwningRelatedElement = lazyPoco.Value;
}
else
{
@@ -196,10 +196,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Root.Namespaces.Memb
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Root.Namespaces.MembershipImport ToDto(this Core.POCO.Root.Namespaces.MembershipImport poco)
+ public static Core.DTO.Root.Namespaces.MembershipImport ToDto(this Core.POCO.Root.Namespaces.MembershipImport poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Root.Namespaces.MembershipImport();
@@ -219,6 +222,24 @@ public static Core.DTO.Root.Namespaces.MembershipImport ToDto(this Core.POCO.Roo
dto.OwningRelationship = poco.OwningRelationship?.Id;
dto.Visibility = poco.Visibility;
+ if (includeDerivedProperties)
+ {
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.importedElement = poco.importedElement.Id;
+ dto.importOwningNamespace = poco.importOwningNamespace.Id;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.name = poco.name;
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.relatedElement = poco.relatedElement.Select(x => x.Id).ToList();
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/MergeNodeExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/MergeNodeExtensions.cs
index 9b1024a82..dff6a8254 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/MergeNodeExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/MergeNodeExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Systems.Actions;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class MergeNodeExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -117,17 +117,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -177,10 +177,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Actions.Merg
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Systems.Actions.MergeNode ToDto(this Core.POCO.Systems.Actions.MergeNode poco)
+ public static Core.DTO.Systems.Actions.MergeNode ToDto(this Core.POCO.Systems.Actions.MergeNode poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Systems.Actions.MergeNode();
@@ -206,6 +209,101 @@ public static Core.DTO.Systems.Actions.MergeNode ToDto(this Core.POCO.Systems.Ac
dto.OwningRelationship = poco.OwningRelationship?.Id;
dto.PortionKind = poco.PortionKind;
+ if (includeDerivedProperties)
+ {
+ dto.actionDefinition = poco.actionDefinition.Select(x => x.Id).ToList();
+ dto.chainingFeature = poco.chainingFeature.Select(x => x.Id).ToList();
+ dto.crossFeature = poco.crossFeature?.Id;
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.directedUsage = poco.directedUsage.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endFeature = poco.endFeature.Select(x => x.Id).ToList();
+ dto.endOwningType = poco.endOwningType?.Id;
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.featureTarget = poco.featureTarget.Id;
+ dto.featuringType = poco.featuringType.Select(x => x.Id).ToList();
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.individualDefinition = poco.individualDefinition?.Id;
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.isReference = poco.isReference;
+ dto.mayTimeVary = poco.mayTimeVary;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.nestedAction = poco.nestedAction.Select(x => x.Id).ToList();
+ dto.nestedAllocation = poco.nestedAllocation.Select(x => x.Id).ToList();
+ dto.nestedAnalysisCase = poco.nestedAnalysisCase.Select(x => x.Id).ToList();
+ dto.nestedAttribute = poco.nestedAttribute.Select(x => x.Id).ToList();
+ dto.nestedCalculation = poco.nestedCalculation.Select(x => x.Id).ToList();
+ dto.nestedCase = poco.nestedCase.Select(x => x.Id).ToList();
+ dto.nestedConcern = poco.nestedConcern.Select(x => x.Id).ToList();
+ dto.nestedConnection = poco.nestedConnection.Select(x => x.Id).ToList();
+ dto.nestedConstraint = poco.nestedConstraint.Select(x => x.Id).ToList();
+ dto.nestedEnumeration = poco.nestedEnumeration.Select(x => x.Id).ToList();
+ dto.nestedFlow = poco.nestedFlow.Select(x => x.Id).ToList();
+ dto.nestedInterface = poco.nestedInterface.Select(x => x.Id).ToList();
+ dto.nestedItem = poco.nestedItem.Select(x => x.Id).ToList();
+ dto.nestedMetadata = poco.nestedMetadata.Select(x => x.Id).ToList();
+ dto.nestedOccurrence = poco.nestedOccurrence.Select(x => x.Id).ToList();
+ dto.nestedPart = poco.nestedPart.Select(x => x.Id).ToList();
+ dto.nestedPort = poco.nestedPort.Select(x => x.Id).ToList();
+ dto.nestedReference = poco.nestedReference.Select(x => x.Id).ToList();
+ dto.nestedRendering = poco.nestedRendering.Select(x => x.Id).ToList();
+ dto.nestedRequirement = poco.nestedRequirement.Select(x => x.Id).ToList();
+ dto.nestedState = poco.nestedState.Select(x => x.Id).ToList();
+ dto.nestedTransition = poco.nestedTransition.Select(x => x.Id).ToList();
+ dto.nestedUsage = poco.nestedUsage.Select(x => x.Id).ToList();
+ dto.nestedUseCase = poco.nestedUseCase.Select(x => x.Id).ToList();
+ dto.nestedVerificationCase = poco.nestedVerificationCase.Select(x => x.Id).ToList();
+ dto.nestedView = poco.nestedView.Select(x => x.Id).ToList();
+ dto.nestedViewpoint = poco.nestedViewpoint.Select(x => x.Id).ToList();
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedCrossSubsetting = poco.ownedCrossSubsetting?.Id;
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureChaining = poco.ownedFeatureChaining.Select(x => x.Id).ToList();
+ dto.ownedFeatureInverting = poco.ownedFeatureInverting.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedRedefinition = poco.ownedRedefinition.Select(x => x.Id).ToList();
+ dto.ownedReferenceSubsetting = poco.ownedReferenceSubsetting?.Id;
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedSubsetting = poco.ownedSubsetting.Select(x => x.Id).ToList();
+ dto.ownedTypeFeaturing = poco.ownedTypeFeaturing.Select(x => x.Id).ToList();
+ dto.ownedTyping = poco.ownedTyping.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningDefinition = poco.owningDefinition?.Id;
+ dto.owningFeatureMembership = poco.owningFeatureMembership?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType?.Id;
+ dto.owningUsage = poco.owningUsage?.Id;
+ dto.parameter = poco.parameter.Select(x => x.Id).ToList();
+ dto.qualifiedName = poco.qualifiedName;
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ dto.usage = poco.usage.Select(x => x.Id).ToList();
+ dto.variant = poco.variant.Select(x => x.Id).ToList();
+ dto.variantMembership = poco.variantMembership.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/MetaclassExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/MetaclassExtensions.cs
index 645506616..48d15f74d 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/MetaclassExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/MetaclassExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Kernel.Metadata;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class MetaclassExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -95,17 +95,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -155,10 +155,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.Metadata.Meta
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Kernel.Metadata.Metaclass ToDto(this Core.POCO.Kernel.Metadata.Metaclass poco)
+ public static Core.DTO.Kernel.Metadata.Metaclass ToDto(this Core.POCO.Kernel.Metadata.Metaclass poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Kernel.Metadata.Metaclass();
@@ -173,6 +176,50 @@ public static Core.DTO.Kernel.Metadata.Metaclass ToDto(this Core.POCO.Kernel.Met
dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList();
dto.OwningRelationship = poco.OwningRelationship?.Id;
+ if (includeDerivedProperties)
+ {
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.directedFeature = poco.directedFeature.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endFeature = poco.endFeature.Select(x => x.Id).ToList();
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedSubclassification = poco.ownedSubclassification.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/MetadataAccessExpressionExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/MetadataAccessExpressionExtensions.cs
index cbb9c695f..651c072ff 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/MetadataAccessExpressionExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/MetadataAccessExpressionExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Kernel.Expressions;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class MetadataAccessExpressionExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -113,17 +113,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -173,10 +173,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.Expressions.M
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Kernel.Expressions.MetadataAccessExpression ToDto(this Core.POCO.Kernel.Expressions.MetadataAccessExpression poco)
+ public static Core.DTO.Kernel.Expressions.MetadataAccessExpression ToDto(this Core.POCO.Kernel.Expressions.MetadataAccessExpression poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Kernel.Expressions.MetadataAccessExpression();
@@ -200,6 +203,69 @@ public static Core.DTO.Kernel.Expressions.MetadataAccessExpression ToDto(this Co
dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList();
dto.OwningRelationship = poco.OwningRelationship?.Id;
+ if (includeDerivedProperties)
+ {
+ dto.chainingFeature = poco.chainingFeature.Select(x => x.Id).ToList();
+ dto.crossFeature = poco.crossFeature?.Id;
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endFeature = poco.endFeature.Select(x => x.Id).ToList();
+ dto.endOwningType = poco.endOwningType?.Id;
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.featureTarget = poco.featureTarget.Id;
+ dto.featuringType = poco.featuringType.Select(x => x.Id).ToList();
+ dto.function = poco.function?.Id;
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.isModelLevelEvaluable = poco.isModelLevelEvaluable;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedCrossSubsetting = poco.ownedCrossSubsetting?.Id;
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureChaining = poco.ownedFeatureChaining.Select(x => x.Id).ToList();
+ dto.ownedFeatureInverting = poco.ownedFeatureInverting.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedRedefinition = poco.ownedRedefinition.Select(x => x.Id).ToList();
+ dto.ownedReferenceSubsetting = poco.ownedReferenceSubsetting?.Id;
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedSubsetting = poco.ownedSubsetting.Select(x => x.Id).ToList();
+ dto.ownedTypeFeaturing = poco.ownedTypeFeaturing.Select(x => x.Id).ToList();
+ dto.ownedTyping = poco.ownedTyping.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningFeatureMembership = poco.owningFeatureMembership?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType?.Id;
+ dto.parameter = poco.parameter.Select(x => x.Id).ToList();
+ dto.qualifiedName = poco.qualifiedName;
+ dto.referencedElement = poco.referencedElement.Id;
+ dto.result = poco.result.Id;
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.type = poco.type.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/MetadataDefinitionExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/MetadataDefinitionExtensions.cs
index a60a5386c..eb0b1a8d8 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/MetadataDefinitionExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/MetadataDefinitionExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Systems.Metadata;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class MetadataDefinitionExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -99,17 +99,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -159,10 +159,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Metadata.Met
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Systems.Metadata.MetadataDefinition ToDto(this Core.POCO.Systems.Metadata.MetadataDefinition poco)
+ public static Core.DTO.Systems.Metadata.MetadataDefinition ToDto(this Core.POCO.Systems.Metadata.MetadataDefinition poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Systems.Metadata.MetadataDefinition();
@@ -179,6 +182,81 @@ public static Core.DTO.Systems.Metadata.MetadataDefinition ToDto(this Core.POCO.
dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList();
dto.OwningRelationship = poco.OwningRelationship?.Id;
+ if (includeDerivedProperties)
+ {
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.directedFeature = poco.directedFeature.Select(x => x.Id).ToList();
+ dto.directedUsage = poco.directedUsage.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endFeature = poco.endFeature.Select(x => x.Id).ToList();
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAction = poco.ownedAction.Select(x => x.Id).ToList();
+ dto.ownedAllocation = poco.ownedAllocation.Select(x => x.Id).ToList();
+ dto.ownedAnalysisCase = poco.ownedAnalysisCase.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedAttribute = poco.ownedAttribute.Select(x => x.Id).ToList();
+ dto.ownedCalculation = poco.ownedCalculation.Select(x => x.Id).ToList();
+ dto.ownedCase = poco.ownedCase.Select(x => x.Id).ToList();
+ dto.ownedConcern = poco.ownedConcern.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedConnection = poco.ownedConnection.Select(x => x.Id).ToList();
+ dto.ownedConstraint = poco.ownedConstraint.Select(x => x.Id).ToList();
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedEnumeration = poco.ownedEnumeration.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedFlow = poco.ownedFlow.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedInterface = poco.ownedInterface.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedItem = poco.ownedItem.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedMetadata = poco.ownedMetadata.Select(x => x.Id).ToList();
+ dto.ownedOccurrence = poco.ownedOccurrence.Select(x => x.Id).ToList();
+ dto.ownedPart = poco.ownedPart.Select(x => x.Id).ToList();
+ dto.ownedPort = poco.ownedPort.Select(x => x.Id).ToList();
+ dto.ownedReference = poco.ownedReference.Select(x => x.Id).ToList();
+ dto.ownedRendering = poco.ownedRendering.Select(x => x.Id).ToList();
+ dto.ownedRequirement = poco.ownedRequirement.Select(x => x.Id).ToList();
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedState = poco.ownedState.Select(x => x.Id).ToList();
+ dto.ownedSubclassification = poco.ownedSubclassification.Select(x => x.Id).ToList();
+ dto.ownedTransition = poco.ownedTransition.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.ownedUsage = poco.ownedUsage.Select(x => x.Id).ToList();
+ dto.ownedUseCase = poco.ownedUseCase.Select(x => x.Id).ToList();
+ dto.ownedVerificationCase = poco.ownedVerificationCase.Select(x => x.Id).ToList();
+ dto.ownedView = poco.ownedView.Select(x => x.Id).ToList();
+ dto.ownedViewpoint = poco.ownedViewpoint.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ dto.usage = poco.usage.Select(x => x.Id).ToList();
+ dto.variant = poco.variant.Select(x => x.Id).ToList();
+ dto.variantMembership = poco.variantMembership.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/MetadataFeatureExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/MetadataFeatureExtensions.cs
index 153477eb6..444be66bf 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/MetadataFeatureExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/MetadataFeatureExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Kernel.Metadata;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class MetadataFeatureExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -113,17 +113,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -173,10 +173,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.Metadata.Meta
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Kernel.Metadata.MetadataFeature ToDto(this Core.POCO.Kernel.Metadata.MetadataFeature poco)
+ public static Core.DTO.Kernel.Metadata.MetadataFeature ToDto(this Core.POCO.Kernel.Metadata.MetadataFeature poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Kernel.Metadata.MetadataFeature();
@@ -200,6 +203,70 @@ public static Core.DTO.Kernel.Metadata.MetadataFeature ToDto(this Core.POCO.Kern
dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList();
dto.OwningRelationship = poco.OwningRelationship?.Id;
+ if (includeDerivedProperties)
+ {
+ dto.annotatedElement = poco.annotatedElement.Select(x => x.Id).ToList();
+ dto.annotation = poco.annotation.Select(x => x.Id).ToList();
+ dto.chainingFeature = poco.chainingFeature.Select(x => x.Id).ToList();
+ dto.crossFeature = poco.crossFeature?.Id;
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.directedFeature = poco.directedFeature.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endFeature = poco.endFeature.Select(x => x.Id).ToList();
+ dto.endOwningType = poco.endOwningType?.Id;
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.featureTarget = poco.featureTarget.Id;
+ dto.featuringType = poco.featuringType.Select(x => x.Id).ToList();
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.metaclass = poco.metaclass?.Id;
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAnnotatingRelationship = poco.ownedAnnotatingRelationship.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedCrossSubsetting = poco.ownedCrossSubsetting?.Id;
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureChaining = poco.ownedFeatureChaining.Select(x => x.Id).ToList();
+ dto.ownedFeatureInverting = poco.ownedFeatureInverting.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedRedefinition = poco.ownedRedefinition.Select(x => x.Id).ToList();
+ dto.ownedReferenceSubsetting = poco.ownedReferenceSubsetting?.Id;
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedSubsetting = poco.ownedSubsetting.Select(x => x.Id).ToList();
+ dto.ownedTypeFeaturing = poco.ownedTypeFeaturing.Select(x => x.Id).ToList();
+ dto.ownedTyping = poco.ownedTyping.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningAnnotatingRelationship = poco.owningAnnotatingRelationship?.Id;
+ dto.owningFeatureMembership = poco.owningFeatureMembership?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType?.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.type = poco.type.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/MetadataUsageExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/MetadataUsageExtensions.cs
index c541a6389..fc1949295 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/MetadataUsageExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/MetadataUsageExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Systems.Metadata;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class MetadataUsageExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -117,17 +117,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -177,10 +177,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Metadata.Met
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Systems.Metadata.MetadataUsage ToDto(this Core.POCO.Systems.Metadata.MetadataUsage poco)
+ public static Core.DTO.Systems.Metadata.MetadataUsage ToDto(this Core.POCO.Systems.Metadata.MetadataUsage poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Systems.Metadata.MetadataUsage();
@@ -206,6 +209,106 @@ public static Core.DTO.Systems.Metadata.MetadataUsage ToDto(this Core.POCO.Syste
dto.OwningRelationship = poco.OwningRelationship?.Id;
dto.PortionKind = poco.PortionKind;
+ if (includeDerivedProperties)
+ {
+ dto.annotatedElement = poco.annotatedElement.Select(x => x.Id).ToList();
+ dto.annotation = poco.annotation.Select(x => x.Id).ToList();
+ dto.chainingFeature = poco.chainingFeature.Select(x => x.Id).ToList();
+ dto.crossFeature = poco.crossFeature?.Id;
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.directedFeature = poco.directedFeature.Select(x => x.Id).ToList();
+ dto.directedUsage = poco.directedUsage.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endFeature = poco.endFeature.Select(x => x.Id).ToList();
+ dto.endOwningType = poco.endOwningType?.Id;
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.featureTarget = poco.featureTarget.Id;
+ dto.featuringType = poco.featuringType.Select(x => x.Id).ToList();
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.individualDefinition = poco.individualDefinition?.Id;
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.isReference = poco.isReference;
+ dto.mayTimeVary = poco.mayTimeVary;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.metadataDefinition = poco.metadataDefinition?.Id;
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.nestedAction = poco.nestedAction.Select(x => x.Id).ToList();
+ dto.nestedAllocation = poco.nestedAllocation.Select(x => x.Id).ToList();
+ dto.nestedAnalysisCase = poco.nestedAnalysisCase.Select(x => x.Id).ToList();
+ dto.nestedAttribute = poco.nestedAttribute.Select(x => x.Id).ToList();
+ dto.nestedCalculation = poco.nestedCalculation.Select(x => x.Id).ToList();
+ dto.nestedCase = poco.nestedCase.Select(x => x.Id).ToList();
+ dto.nestedConcern = poco.nestedConcern.Select(x => x.Id).ToList();
+ dto.nestedConnection = poco.nestedConnection.Select(x => x.Id).ToList();
+ dto.nestedConstraint = poco.nestedConstraint.Select(x => x.Id).ToList();
+ dto.nestedEnumeration = poco.nestedEnumeration.Select(x => x.Id).ToList();
+ dto.nestedFlow = poco.nestedFlow.Select(x => x.Id).ToList();
+ dto.nestedInterface = poco.nestedInterface.Select(x => x.Id).ToList();
+ dto.nestedItem = poco.nestedItem.Select(x => x.Id).ToList();
+ dto.nestedMetadata = poco.nestedMetadata.Select(x => x.Id).ToList();
+ dto.nestedOccurrence = poco.nestedOccurrence.Select(x => x.Id).ToList();
+ dto.nestedPart = poco.nestedPart.Select(x => x.Id).ToList();
+ dto.nestedPort = poco.nestedPort.Select(x => x.Id).ToList();
+ dto.nestedReference = poco.nestedReference.Select(x => x.Id).ToList();
+ dto.nestedRendering = poco.nestedRendering.Select(x => x.Id).ToList();
+ dto.nestedRequirement = poco.nestedRequirement.Select(x => x.Id).ToList();
+ dto.nestedState = poco.nestedState.Select(x => x.Id).ToList();
+ dto.nestedTransition = poco.nestedTransition.Select(x => x.Id).ToList();
+ dto.nestedUsage = poco.nestedUsage.Select(x => x.Id).ToList();
+ dto.nestedUseCase = poco.nestedUseCase.Select(x => x.Id).ToList();
+ dto.nestedVerificationCase = poco.nestedVerificationCase.Select(x => x.Id).ToList();
+ dto.nestedView = poco.nestedView.Select(x => x.Id).ToList();
+ dto.nestedViewpoint = poco.nestedViewpoint.Select(x => x.Id).ToList();
+ dto.occurrenceDefinition = poco.occurrenceDefinition.Select(x => x.Id).ToList();
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAnnotatingRelationship = poco.ownedAnnotatingRelationship.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedCrossSubsetting = poco.ownedCrossSubsetting?.Id;
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureChaining = poco.ownedFeatureChaining.Select(x => x.Id).ToList();
+ dto.ownedFeatureInverting = poco.ownedFeatureInverting.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedRedefinition = poco.ownedRedefinition.Select(x => x.Id).ToList();
+ dto.ownedReferenceSubsetting = poco.ownedReferenceSubsetting?.Id;
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedSubsetting = poco.ownedSubsetting.Select(x => x.Id).ToList();
+ dto.ownedTypeFeaturing = poco.ownedTypeFeaturing.Select(x => x.Id).ToList();
+ dto.ownedTyping = poco.ownedTyping.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningAnnotatingRelationship = poco.owningAnnotatingRelationship?.Id;
+ dto.owningDefinition = poco.owningDefinition?.Id;
+ dto.owningFeatureMembership = poco.owningFeatureMembership?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType?.Id;
+ dto.owningUsage = poco.owningUsage?.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ dto.usage = poco.usage.Select(x => x.Id).ToList();
+ dto.variant = poco.variant.Select(x => x.Id).ToList();
+ dto.variantMembership = poco.variantMembership.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/MultiplicityExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/MultiplicityExtensions.cs
index 6ec49551f..7703fc802 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/MultiplicityExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/MultiplicityExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Core.Types;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class MultiplicityExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -113,17 +113,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -173,10 +173,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Types.Multiplic
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Core.Types.Multiplicity ToDto(this Core.POCO.Core.Types.Multiplicity poco)
+ public static Core.DTO.Core.Types.Multiplicity ToDto(this Core.POCO.Core.Types.Multiplicity poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Core.Types.Multiplicity();
@@ -200,6 +203,65 @@ public static Core.DTO.Core.Types.Multiplicity ToDto(this Core.POCO.Core.Types.M
dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList();
dto.OwningRelationship = poco.OwningRelationship?.Id;
+ if (includeDerivedProperties)
+ {
+ dto.chainingFeature = poco.chainingFeature.Select(x => x.Id).ToList();
+ dto.crossFeature = poco.crossFeature?.Id;
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.directedFeature = poco.directedFeature.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endFeature = poco.endFeature.Select(x => x.Id).ToList();
+ dto.endOwningType = poco.endOwningType?.Id;
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.featureTarget = poco.featureTarget.Id;
+ dto.featuringType = poco.featuringType.Select(x => x.Id).ToList();
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedCrossSubsetting = poco.ownedCrossSubsetting?.Id;
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureChaining = poco.ownedFeatureChaining.Select(x => x.Id).ToList();
+ dto.ownedFeatureInverting = poco.ownedFeatureInverting.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedRedefinition = poco.ownedRedefinition.Select(x => x.Id).ToList();
+ dto.ownedReferenceSubsetting = poco.ownedReferenceSubsetting?.Id;
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedSubsetting = poco.ownedSubsetting.Select(x => x.Id).ToList();
+ dto.ownedTypeFeaturing = poco.ownedTypeFeaturing.Select(x => x.Id).ToList();
+ dto.ownedTyping = poco.ownedTyping.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningFeatureMembership = poco.owningFeatureMembership?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType?.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.type = poco.type.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/MultiplicityRangeExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/MultiplicityRangeExtensions.cs
index 1338f490c..721f9dd94 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/MultiplicityRangeExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/MultiplicityRangeExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Kernel.Multiplicities;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class MultiplicityRangeExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -113,17 +113,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -173,10 +173,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.Multiplicitie
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Kernel.Multiplicities.MultiplicityRange ToDto(this Core.POCO.Kernel.Multiplicities.MultiplicityRange poco)
+ public static Core.DTO.Kernel.Multiplicities.MultiplicityRange ToDto(this Core.POCO.Kernel.Multiplicities.MultiplicityRange poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Kernel.Multiplicities.MultiplicityRange();
@@ -200,6 +203,68 @@ public static Core.DTO.Kernel.Multiplicities.MultiplicityRange ToDto(this Core.P
dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList();
dto.OwningRelationship = poco.OwningRelationship?.Id;
+ if (includeDerivedProperties)
+ {
+ dto.bound = poco.bound.Select(x => x.Id).ToList();
+ dto.chainingFeature = poco.chainingFeature.Select(x => x.Id).ToList();
+ dto.crossFeature = poco.crossFeature?.Id;
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.directedFeature = poco.directedFeature.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endFeature = poco.endFeature.Select(x => x.Id).ToList();
+ dto.endOwningType = poco.endOwningType?.Id;
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.featureTarget = poco.featureTarget.Id;
+ dto.featuringType = poco.featuringType.Select(x => x.Id).ToList();
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.lowerBound = poco.lowerBound?.Id;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedCrossSubsetting = poco.ownedCrossSubsetting?.Id;
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureChaining = poco.ownedFeatureChaining.Select(x => x.Id).ToList();
+ dto.ownedFeatureInverting = poco.ownedFeatureInverting.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedRedefinition = poco.ownedRedefinition.Select(x => x.Id).ToList();
+ dto.ownedReferenceSubsetting = poco.ownedReferenceSubsetting?.Id;
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedSubsetting = poco.ownedSubsetting.Select(x => x.Id).ToList();
+ dto.ownedTypeFeaturing = poco.ownedTypeFeaturing.Select(x => x.Id).ToList();
+ dto.ownedTyping = poco.ownedTyping.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningFeatureMembership = poco.owningFeatureMembership?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType?.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.type = poco.type.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ dto.upperBound = poco.upperBound.Id;
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/NamespaceExposeExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/NamespaceExposeExtensions.cs
index 59f472e7f..1480320b2 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/NamespaceExposeExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/NamespaceExposeExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Systems.Views;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class NamespaceExposeExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -108,17 +108,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -156,7 +156,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Views.Namesp
{
if (cache.TryGetValue(identifier, out lazyPoco))
{
- poco.OwnedRelatedElement.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value);
+ poco.OwnedRelatedElement.Add(lazyPoco.Value);
}
}
@@ -172,7 +172,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Views.Namesp
if (dto.OwningRelatedElement.HasValue && cache.TryGetValue(dto.OwningRelatedElement.Value, out lazyPoco))
{
- poco.OwningRelatedElement = (Core.POCO.Root.Elements.IElement)lazyPoco.Value;
+ poco.OwningRelatedElement = lazyPoco.Value;
}
else
{
@@ -196,10 +196,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Views.Namesp
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Systems.Views.NamespaceExpose ToDto(this Core.POCO.Systems.Views.NamespaceExpose poco)
+ public static Core.DTO.Systems.Views.NamespaceExpose ToDto(this Core.POCO.Systems.Views.NamespaceExpose poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Systems.Views.NamespaceExpose();
@@ -219,6 +222,24 @@ public static Core.DTO.Systems.Views.NamespaceExpose ToDto(this Core.POCO.System
dto.OwningRelationship = poco.OwningRelationship?.Id;
dto.Visibility = poco.Visibility;
+ if (includeDerivedProperties)
+ {
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.importedElement = poco.importedElement.Id;
+ dto.importOwningNamespace = poco.importOwningNamespace.Id;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.name = poco.name;
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.relatedElement = poco.relatedElement.Select(x => x.Id).ToList();
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/NamespaceExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/NamespaceExtensions.cs
index 54f94ca02..1e7dd697c 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/NamespaceExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/NamespaceExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Root.Namespaces;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class NamespaceExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -91,17 +91,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -151,10 +151,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Root.Namespaces.Name
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Root.Namespaces.Namespace ToDto(this Core.POCO.Root.Namespaces.Namespace poco)
+ public static Core.DTO.Root.Namespaces.Namespace ToDto(this Core.POCO.Root.Namespaces.Namespace poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Root.Namespaces.Namespace();
@@ -167,6 +170,27 @@ public static Core.DTO.Root.Namespaces.Namespace ToDto(this Core.POCO.Root.Names
dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList();
dto.OwningRelationship = poco.OwningRelationship?.Id;
+ if (includeDerivedProperties)
+ {
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.name = poco.name;
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/NamespaceImportExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/NamespaceImportExtensions.cs
index 28d050ef2..e97b7801c 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/NamespaceImportExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/NamespaceImportExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Root.Namespaces;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class NamespaceImportExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -108,17 +108,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -156,7 +156,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Root.Namespaces.Name
{
if (cache.TryGetValue(identifier, out lazyPoco))
{
- poco.OwnedRelatedElement.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value);
+ poco.OwnedRelatedElement.Add(lazyPoco.Value);
}
}
@@ -172,7 +172,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Root.Namespaces.Name
if (dto.OwningRelatedElement.HasValue && cache.TryGetValue(dto.OwningRelatedElement.Value, out lazyPoco))
{
- poco.OwningRelatedElement = (Core.POCO.Root.Elements.IElement)lazyPoco.Value;
+ poco.OwningRelatedElement = lazyPoco.Value;
}
else
{
@@ -196,10 +196,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Root.Namespaces.Name
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Root.Namespaces.NamespaceImport ToDto(this Core.POCO.Root.Namespaces.NamespaceImport poco)
+ public static Core.DTO.Root.Namespaces.NamespaceImport ToDto(this Core.POCO.Root.Namespaces.NamespaceImport poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Root.Namespaces.NamespaceImport();
@@ -219,6 +222,24 @@ public static Core.DTO.Root.Namespaces.NamespaceImport ToDto(this Core.POCO.Root
dto.OwningRelationship = poco.OwningRelationship?.Id;
dto.Visibility = poco.Visibility;
+ if (includeDerivedProperties)
+ {
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.importedElement = poco.importedElement.Id;
+ dto.importOwningNamespace = poco.importOwningNamespace.Id;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.name = poco.name;
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.relatedElement = poco.relatedElement.Select(x => x.Id).ToList();
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/NullExpressionExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/NullExpressionExtensions.cs
index 117578dc7..7c4438da9 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/NullExpressionExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/NullExpressionExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Kernel.Expressions;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class NullExpressionExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -113,17 +113,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -173,10 +173,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.Expressions.N
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Kernel.Expressions.NullExpression ToDto(this Core.POCO.Kernel.Expressions.NullExpression poco)
+ public static Core.DTO.Kernel.Expressions.NullExpression ToDto(this Core.POCO.Kernel.Expressions.NullExpression poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Kernel.Expressions.NullExpression();
@@ -200,6 +203,68 @@ public static Core.DTO.Kernel.Expressions.NullExpression ToDto(this Core.POCO.Ke
dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList();
dto.OwningRelationship = poco.OwningRelationship?.Id;
+ if (includeDerivedProperties)
+ {
+ dto.chainingFeature = poco.chainingFeature.Select(x => x.Id).ToList();
+ dto.crossFeature = poco.crossFeature?.Id;
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endFeature = poco.endFeature.Select(x => x.Id).ToList();
+ dto.endOwningType = poco.endOwningType?.Id;
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.featureTarget = poco.featureTarget.Id;
+ dto.featuringType = poco.featuringType.Select(x => x.Id).ToList();
+ dto.function = poco.function?.Id;
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.isModelLevelEvaluable = poco.isModelLevelEvaluable;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedCrossSubsetting = poco.ownedCrossSubsetting?.Id;
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureChaining = poco.ownedFeatureChaining.Select(x => x.Id).ToList();
+ dto.ownedFeatureInverting = poco.ownedFeatureInverting.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedRedefinition = poco.ownedRedefinition.Select(x => x.Id).ToList();
+ dto.ownedReferenceSubsetting = poco.ownedReferenceSubsetting?.Id;
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedSubsetting = poco.ownedSubsetting.Select(x => x.Id).ToList();
+ dto.ownedTypeFeaturing = poco.ownedTypeFeaturing.Select(x => x.Id).ToList();
+ dto.ownedTyping = poco.ownedTyping.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningFeatureMembership = poco.owningFeatureMembership?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType?.Id;
+ dto.parameter = poco.parameter.Select(x => x.Id).ToList();
+ dto.qualifiedName = poco.qualifiedName;
+ dto.result = poco.result.Id;
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.type = poco.type.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ObjectiveMembershipExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ObjectiveMembershipExtensions.cs
index af2cca058..c00d84fc4 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ObjectiveMembershipExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ObjectiveMembershipExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Systems.Cases;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class ObjectiveMembershipExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -104,17 +104,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -143,7 +143,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Cases.Object
{
if (cache.TryGetValue(identifier, out lazyPoco))
{
- poco.OwnedRelatedElement.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value);
+ poco.OwnedRelatedElement.Add(lazyPoco.Value);
}
}
@@ -159,7 +159,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Cases.Object
if (dto.OwningRelatedElement.HasValue && cache.TryGetValue(dto.OwningRelatedElement.Value, out lazyPoco))
{
- poco.OwningRelatedElement = (Core.POCO.Root.Elements.IElement)lazyPoco.Value;
+ poco.OwningRelatedElement = lazyPoco.Value;
}
else
{
@@ -183,10 +183,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Cases.Object
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Systems.Cases.ObjectiveMembership ToDto(this Core.POCO.Systems.Cases.ObjectiveMembership poco)
+ public static Core.DTO.Systems.Cases.ObjectiveMembership ToDto(this Core.POCO.Systems.Cases.ObjectiveMembership poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Systems.Cases.ObjectiveMembership();
@@ -203,6 +206,27 @@ public static Core.DTO.Systems.Cases.ObjectiveMembership ToDto(this Core.POCO.Sy
dto.OwningRelationship = poco.OwningRelationship?.Id;
dto.Visibility = poco.Visibility;
+ if (includeDerivedProperties)
+ {
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.name = poco.name;
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedMemberElementId = poco.ownedMemberElementId;
+ dto.ownedMemberName = poco.ownedMemberName;
+ dto.ownedMemberShortName = poco.ownedMemberShortName;
+ dto.ownedObjectiveRequirement = poco.ownedObjectiveRequirement.Id;
+ dto.owner = poco.owner?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.relatedElement = poco.relatedElement.Select(x => x.Id).ToList();
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/OccurrenceDefinitionExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/OccurrenceDefinitionExtensions.cs
index 95af2bcc2..fd2c73c4b 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/OccurrenceDefinitionExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/OccurrenceDefinitionExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Systems.Occurrences;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class OccurrenceDefinitionExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -99,17 +99,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -159,10 +159,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Occurrences.
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Systems.Occurrences.OccurrenceDefinition ToDto(this Core.POCO.Systems.Occurrences.OccurrenceDefinition poco)
+ public static Core.DTO.Systems.Occurrences.OccurrenceDefinition ToDto(this Core.POCO.Systems.Occurrences.OccurrenceDefinition poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Systems.Occurrences.OccurrenceDefinition();
@@ -179,6 +182,81 @@ public static Core.DTO.Systems.Occurrences.OccurrenceDefinition ToDto(this Core.
dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList();
dto.OwningRelationship = poco.OwningRelationship?.Id;
+ if (includeDerivedProperties)
+ {
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.directedFeature = poco.directedFeature.Select(x => x.Id).ToList();
+ dto.directedUsage = poco.directedUsage.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endFeature = poco.endFeature.Select(x => x.Id).ToList();
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAction = poco.ownedAction.Select(x => x.Id).ToList();
+ dto.ownedAllocation = poco.ownedAllocation.Select(x => x.Id).ToList();
+ dto.ownedAnalysisCase = poco.ownedAnalysisCase.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedAttribute = poco.ownedAttribute.Select(x => x.Id).ToList();
+ dto.ownedCalculation = poco.ownedCalculation.Select(x => x.Id).ToList();
+ dto.ownedCase = poco.ownedCase.Select(x => x.Id).ToList();
+ dto.ownedConcern = poco.ownedConcern.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedConnection = poco.ownedConnection.Select(x => x.Id).ToList();
+ dto.ownedConstraint = poco.ownedConstraint.Select(x => x.Id).ToList();
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedEnumeration = poco.ownedEnumeration.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedFlow = poco.ownedFlow.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedInterface = poco.ownedInterface.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedItem = poco.ownedItem.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedMetadata = poco.ownedMetadata.Select(x => x.Id).ToList();
+ dto.ownedOccurrence = poco.ownedOccurrence.Select(x => x.Id).ToList();
+ dto.ownedPart = poco.ownedPart.Select(x => x.Id).ToList();
+ dto.ownedPort = poco.ownedPort.Select(x => x.Id).ToList();
+ dto.ownedReference = poco.ownedReference.Select(x => x.Id).ToList();
+ dto.ownedRendering = poco.ownedRendering.Select(x => x.Id).ToList();
+ dto.ownedRequirement = poco.ownedRequirement.Select(x => x.Id).ToList();
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedState = poco.ownedState.Select(x => x.Id).ToList();
+ dto.ownedSubclassification = poco.ownedSubclassification.Select(x => x.Id).ToList();
+ dto.ownedTransition = poco.ownedTransition.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.ownedUsage = poco.ownedUsage.Select(x => x.Id).ToList();
+ dto.ownedUseCase = poco.ownedUseCase.Select(x => x.Id).ToList();
+ dto.ownedVerificationCase = poco.ownedVerificationCase.Select(x => x.Id).ToList();
+ dto.ownedView = poco.ownedView.Select(x => x.Id).ToList();
+ dto.ownedViewpoint = poco.ownedViewpoint.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ dto.usage = poco.usage.Select(x => x.Id).ToList();
+ dto.variant = poco.variant.Select(x => x.Id).ToList();
+ dto.variantMembership = poco.variantMembership.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/OccurrenceUsageExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/OccurrenceUsageExtensions.cs
index 8d94cd9f9..d071ae2ad 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/OccurrenceUsageExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/OccurrenceUsageExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Systems.Occurrences;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class OccurrenceUsageExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -117,17 +117,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -177,10 +177,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Occurrences.
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Systems.Occurrences.OccurrenceUsage ToDto(this Core.POCO.Systems.Occurrences.OccurrenceUsage poco)
+ public static Core.DTO.Systems.Occurrences.OccurrenceUsage ToDto(this Core.POCO.Systems.Occurrences.OccurrenceUsage poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Systems.Occurrences.OccurrenceUsage();
@@ -206,6 +209,101 @@ public static Core.DTO.Systems.Occurrences.OccurrenceUsage ToDto(this Core.POCO.
dto.OwningRelationship = poco.OwningRelationship?.Id;
dto.PortionKind = poco.PortionKind;
+ if (includeDerivedProperties)
+ {
+ dto.chainingFeature = poco.chainingFeature.Select(x => x.Id).ToList();
+ dto.crossFeature = poco.crossFeature?.Id;
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.directedFeature = poco.directedFeature.Select(x => x.Id).ToList();
+ dto.directedUsage = poco.directedUsage.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endFeature = poco.endFeature.Select(x => x.Id).ToList();
+ dto.endOwningType = poco.endOwningType?.Id;
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.featureTarget = poco.featureTarget.Id;
+ dto.featuringType = poco.featuringType.Select(x => x.Id).ToList();
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.individualDefinition = poco.individualDefinition?.Id;
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.isReference = poco.isReference;
+ dto.mayTimeVary = poco.mayTimeVary;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.nestedAction = poco.nestedAction.Select(x => x.Id).ToList();
+ dto.nestedAllocation = poco.nestedAllocation.Select(x => x.Id).ToList();
+ dto.nestedAnalysisCase = poco.nestedAnalysisCase.Select(x => x.Id).ToList();
+ dto.nestedAttribute = poco.nestedAttribute.Select(x => x.Id).ToList();
+ dto.nestedCalculation = poco.nestedCalculation.Select(x => x.Id).ToList();
+ dto.nestedCase = poco.nestedCase.Select(x => x.Id).ToList();
+ dto.nestedConcern = poco.nestedConcern.Select(x => x.Id).ToList();
+ dto.nestedConnection = poco.nestedConnection.Select(x => x.Id).ToList();
+ dto.nestedConstraint = poco.nestedConstraint.Select(x => x.Id).ToList();
+ dto.nestedEnumeration = poco.nestedEnumeration.Select(x => x.Id).ToList();
+ dto.nestedFlow = poco.nestedFlow.Select(x => x.Id).ToList();
+ dto.nestedInterface = poco.nestedInterface.Select(x => x.Id).ToList();
+ dto.nestedItem = poco.nestedItem.Select(x => x.Id).ToList();
+ dto.nestedMetadata = poco.nestedMetadata.Select(x => x.Id).ToList();
+ dto.nestedOccurrence = poco.nestedOccurrence.Select(x => x.Id).ToList();
+ dto.nestedPart = poco.nestedPart.Select(x => x.Id).ToList();
+ dto.nestedPort = poco.nestedPort.Select(x => x.Id).ToList();
+ dto.nestedReference = poco.nestedReference.Select(x => x.Id).ToList();
+ dto.nestedRendering = poco.nestedRendering.Select(x => x.Id).ToList();
+ dto.nestedRequirement = poco.nestedRequirement.Select(x => x.Id).ToList();
+ dto.nestedState = poco.nestedState.Select(x => x.Id).ToList();
+ dto.nestedTransition = poco.nestedTransition.Select(x => x.Id).ToList();
+ dto.nestedUsage = poco.nestedUsage.Select(x => x.Id).ToList();
+ dto.nestedUseCase = poco.nestedUseCase.Select(x => x.Id).ToList();
+ dto.nestedVerificationCase = poco.nestedVerificationCase.Select(x => x.Id).ToList();
+ dto.nestedView = poco.nestedView.Select(x => x.Id).ToList();
+ dto.nestedViewpoint = poco.nestedViewpoint.Select(x => x.Id).ToList();
+ dto.occurrenceDefinition = poco.occurrenceDefinition.Select(x => x.Id).ToList();
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedCrossSubsetting = poco.ownedCrossSubsetting?.Id;
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureChaining = poco.ownedFeatureChaining.Select(x => x.Id).ToList();
+ dto.ownedFeatureInverting = poco.ownedFeatureInverting.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedRedefinition = poco.ownedRedefinition.Select(x => x.Id).ToList();
+ dto.ownedReferenceSubsetting = poco.ownedReferenceSubsetting?.Id;
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedSubsetting = poco.ownedSubsetting.Select(x => x.Id).ToList();
+ dto.ownedTypeFeaturing = poco.ownedTypeFeaturing.Select(x => x.Id).ToList();
+ dto.ownedTyping = poco.ownedTyping.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningDefinition = poco.owningDefinition?.Id;
+ dto.owningFeatureMembership = poco.owningFeatureMembership?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType?.Id;
+ dto.owningUsage = poco.owningUsage?.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ dto.usage = poco.usage.Select(x => x.Id).ToList();
+ dto.variant = poco.variant.Select(x => x.Id).ToList();
+ dto.variantMembership = poco.variantMembership.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/OperatorExpressionExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/OperatorExpressionExtensions.cs
index 63cb13021..efed974a7 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/OperatorExpressionExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/OperatorExpressionExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Kernel.Expressions;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class OperatorExpressionExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -115,17 +115,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -175,10 +175,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.Expressions.O
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Kernel.Expressions.OperatorExpression ToDto(this Core.POCO.Kernel.Expressions.OperatorExpression poco)
+ public static Core.DTO.Kernel.Expressions.OperatorExpression ToDto(this Core.POCO.Kernel.Expressions.OperatorExpression poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Kernel.Expressions.OperatorExpression();
@@ -203,6 +206,70 @@ public static Core.DTO.Kernel.Expressions.OperatorExpression ToDto(this Core.POC
dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList();
dto.OwningRelationship = poco.OwningRelationship?.Id;
+ if (includeDerivedProperties)
+ {
+ dto.argument = poco.argument.Select(x => x.Id).ToList();
+ dto.chainingFeature = poco.chainingFeature.Select(x => x.Id).ToList();
+ dto.crossFeature = poco.crossFeature?.Id;
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endFeature = poco.endFeature.Select(x => x.Id).ToList();
+ dto.endOwningType = poco.endOwningType?.Id;
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.featureTarget = poco.featureTarget.Id;
+ dto.featuringType = poco.featuringType.Select(x => x.Id).ToList();
+ dto.function = poco.function?.Id;
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.instantiatedType = poco.instantiatedType.Id;
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.isModelLevelEvaluable = poco.isModelLevelEvaluable;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedCrossSubsetting = poco.ownedCrossSubsetting?.Id;
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureChaining = poco.ownedFeatureChaining.Select(x => x.Id).ToList();
+ dto.ownedFeatureInverting = poco.ownedFeatureInverting.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedRedefinition = poco.ownedRedefinition.Select(x => x.Id).ToList();
+ dto.ownedReferenceSubsetting = poco.ownedReferenceSubsetting?.Id;
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedSubsetting = poco.ownedSubsetting.Select(x => x.Id).ToList();
+ dto.ownedTypeFeaturing = poco.ownedTypeFeaturing.Select(x => x.Id).ToList();
+ dto.ownedTyping = poco.ownedTyping.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningFeatureMembership = poco.owningFeatureMembership?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType?.Id;
+ dto.parameter = poco.parameter.Select(x => x.Id).ToList();
+ dto.qualifiedName = poco.qualifiedName;
+ dto.result = poco.result.Id;
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.type = poco.type.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/OwningMembershipExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/OwningMembershipExtensions.cs
index 8a9b7046c..061db7759 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/OwningMembershipExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/OwningMembershipExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Root.Namespaces;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class OwningMembershipExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -104,17 +104,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -143,7 +143,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Root.Namespaces.Owni
{
if (cache.TryGetValue(identifier, out lazyPoco))
{
- poco.OwnedRelatedElement.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value);
+ poco.OwnedRelatedElement.Add(lazyPoco.Value);
}
}
@@ -159,7 +159,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Root.Namespaces.Owni
if (dto.OwningRelatedElement.HasValue && cache.TryGetValue(dto.OwningRelatedElement.Value, out lazyPoco))
{
- poco.OwningRelatedElement = (Core.POCO.Root.Elements.IElement)lazyPoco.Value;
+ poco.OwningRelatedElement = lazyPoco.Value;
}
else
{
@@ -183,10 +183,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Root.Namespaces.Owni
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Root.Namespaces.OwningMembership ToDto(this Core.POCO.Root.Namespaces.OwningMembership poco)
+ public static Core.DTO.Root.Namespaces.OwningMembership ToDto(this Core.POCO.Root.Namespaces.OwningMembership poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Root.Namespaces.OwningMembership();
@@ -203,6 +206,27 @@ public static Core.DTO.Root.Namespaces.OwningMembership ToDto(this Core.POCO.Roo
dto.OwningRelationship = poco.OwningRelationship?.Id;
dto.Visibility = poco.Visibility;
+ if (includeDerivedProperties)
+ {
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.membershipOwningNamespace = poco.membershipOwningNamespace.Id;
+ dto.name = poco.name;
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedMemberElement = poco.ownedMemberElement.Id;
+ dto.ownedMemberElementId = poco.ownedMemberElementId;
+ dto.ownedMemberName = poco.ownedMemberName;
+ dto.ownedMemberShortName = poco.ownedMemberShortName;
+ dto.owner = poco.owner?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.relatedElement = poco.relatedElement.Select(x => x.Id).ToList();
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/PackageExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/PackageExtensions.cs
index 8a4f9bf6b..7e350c9c8 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/PackageExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/PackageExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Kernel.Packages;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class PackageExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -91,17 +91,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -151,10 +151,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.Packages.Pack
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Kernel.Packages.Package ToDto(this Core.POCO.Kernel.Packages.Package poco)
+ public static Core.DTO.Kernel.Packages.Package ToDto(this Core.POCO.Kernel.Packages.Package poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Kernel.Packages.Package();
@@ -167,6 +170,28 @@ public static Core.DTO.Kernel.Packages.Package ToDto(this Core.POCO.Kernel.Packa
dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList();
dto.OwningRelationship = poco.OwningRelationship?.Id;
+ if (includeDerivedProperties)
+ {
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.filterCondition = poco.filterCondition.Select(x => x.Id).ToList();
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.name = poco.name;
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ParameterMembershipExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ParameterMembershipExtensions.cs
index c60df04a1..0ab3270a1 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ParameterMembershipExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ParameterMembershipExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Kernel.Behaviors;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class ParameterMembershipExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -104,17 +104,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -143,7 +143,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.Behaviors.Par
{
if (cache.TryGetValue(identifier, out lazyPoco))
{
- poco.OwnedRelatedElement.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value);
+ poco.OwnedRelatedElement.Add(lazyPoco.Value);
}
}
@@ -159,7 +159,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.Behaviors.Par
if (dto.OwningRelatedElement.HasValue && cache.TryGetValue(dto.OwningRelatedElement.Value, out lazyPoco))
{
- poco.OwningRelatedElement = (Core.POCO.Root.Elements.IElement)lazyPoco.Value;
+ poco.OwningRelatedElement = lazyPoco.Value;
}
else
{
@@ -183,10 +183,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.Behaviors.Par
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Kernel.Behaviors.ParameterMembership ToDto(this Core.POCO.Kernel.Behaviors.ParameterMembership poco)
+ public static Core.DTO.Kernel.Behaviors.ParameterMembership ToDto(this Core.POCO.Kernel.Behaviors.ParameterMembership poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Kernel.Behaviors.ParameterMembership();
@@ -203,6 +206,27 @@ public static Core.DTO.Kernel.Behaviors.ParameterMembership ToDto(this Core.POCO
dto.OwningRelationship = poco.OwningRelationship?.Id;
dto.Visibility = poco.Visibility;
+ if (includeDerivedProperties)
+ {
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.name = poco.name;
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedMemberElementId = poco.ownedMemberElementId;
+ dto.ownedMemberName = poco.ownedMemberName;
+ dto.ownedMemberParameter = poco.ownedMemberParameter.Id;
+ dto.ownedMemberShortName = poco.ownedMemberShortName;
+ dto.owner = poco.owner?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.relatedElement = poco.relatedElement.Select(x => x.Id).ToList();
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/PartDefinitionExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/PartDefinitionExtensions.cs
index 9074203de..daa8e821c 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/PartDefinitionExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/PartDefinitionExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Systems.Parts;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class PartDefinitionExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -99,17 +99,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -159,10 +159,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Parts.PartDe
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Systems.Parts.PartDefinition ToDto(this Core.POCO.Systems.Parts.PartDefinition poco)
+ public static Core.DTO.Systems.Parts.PartDefinition ToDto(this Core.POCO.Systems.Parts.PartDefinition poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Systems.Parts.PartDefinition();
@@ -179,6 +182,81 @@ public static Core.DTO.Systems.Parts.PartDefinition ToDto(this Core.POCO.Systems
dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList();
dto.OwningRelationship = poco.OwningRelationship?.Id;
+ if (includeDerivedProperties)
+ {
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.directedFeature = poco.directedFeature.Select(x => x.Id).ToList();
+ dto.directedUsage = poco.directedUsage.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endFeature = poco.endFeature.Select(x => x.Id).ToList();
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAction = poco.ownedAction.Select(x => x.Id).ToList();
+ dto.ownedAllocation = poco.ownedAllocation.Select(x => x.Id).ToList();
+ dto.ownedAnalysisCase = poco.ownedAnalysisCase.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedAttribute = poco.ownedAttribute.Select(x => x.Id).ToList();
+ dto.ownedCalculation = poco.ownedCalculation.Select(x => x.Id).ToList();
+ dto.ownedCase = poco.ownedCase.Select(x => x.Id).ToList();
+ dto.ownedConcern = poco.ownedConcern.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedConnection = poco.ownedConnection.Select(x => x.Id).ToList();
+ dto.ownedConstraint = poco.ownedConstraint.Select(x => x.Id).ToList();
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedEnumeration = poco.ownedEnumeration.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedFlow = poco.ownedFlow.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedInterface = poco.ownedInterface.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedItem = poco.ownedItem.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedMetadata = poco.ownedMetadata.Select(x => x.Id).ToList();
+ dto.ownedOccurrence = poco.ownedOccurrence.Select(x => x.Id).ToList();
+ dto.ownedPart = poco.ownedPart.Select(x => x.Id).ToList();
+ dto.ownedPort = poco.ownedPort.Select(x => x.Id).ToList();
+ dto.ownedReference = poco.ownedReference.Select(x => x.Id).ToList();
+ dto.ownedRendering = poco.ownedRendering.Select(x => x.Id).ToList();
+ dto.ownedRequirement = poco.ownedRequirement.Select(x => x.Id).ToList();
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedState = poco.ownedState.Select(x => x.Id).ToList();
+ dto.ownedSubclassification = poco.ownedSubclassification.Select(x => x.Id).ToList();
+ dto.ownedTransition = poco.ownedTransition.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.ownedUsage = poco.ownedUsage.Select(x => x.Id).ToList();
+ dto.ownedUseCase = poco.ownedUseCase.Select(x => x.Id).ToList();
+ dto.ownedVerificationCase = poco.ownedVerificationCase.Select(x => x.Id).ToList();
+ dto.ownedView = poco.ownedView.Select(x => x.Id).ToList();
+ dto.ownedViewpoint = poco.ownedViewpoint.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ dto.usage = poco.usage.Select(x => x.Id).ToList();
+ dto.variant = poco.variant.Select(x => x.Id).ToList();
+ dto.variantMembership = poco.variantMembership.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/PartUsageExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/PartUsageExtensions.cs
index 624e883b9..07fc2cb6f 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/PartUsageExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/PartUsageExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Systems.Parts;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class PartUsageExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -117,17 +117,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -177,10 +177,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Parts.PartUs
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Systems.Parts.PartUsage ToDto(this Core.POCO.Systems.Parts.PartUsage poco)
+ public static Core.DTO.Systems.Parts.PartUsage ToDto(this Core.POCO.Systems.Parts.PartUsage poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Systems.Parts.PartUsage();
@@ -206,6 +209,103 @@ public static Core.DTO.Systems.Parts.PartUsage ToDto(this Core.POCO.Systems.Part
dto.OwningRelationship = poco.OwningRelationship?.Id;
dto.PortionKind = poco.PortionKind;
+ if (includeDerivedProperties)
+ {
+ dto.chainingFeature = poco.chainingFeature.Select(x => x.Id).ToList();
+ dto.crossFeature = poco.crossFeature?.Id;
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.directedFeature = poco.directedFeature.Select(x => x.Id).ToList();
+ dto.directedUsage = poco.directedUsage.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endFeature = poco.endFeature.Select(x => x.Id).ToList();
+ dto.endOwningType = poco.endOwningType?.Id;
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.featureTarget = poco.featureTarget.Id;
+ dto.featuringType = poco.featuringType.Select(x => x.Id).ToList();
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.individualDefinition = poco.individualDefinition?.Id;
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.isReference = poco.isReference;
+ dto.itemDefinition = poco.itemDefinition.Select(x => x.Id).ToList();
+ dto.mayTimeVary = poco.mayTimeVary;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.nestedAction = poco.nestedAction.Select(x => x.Id).ToList();
+ dto.nestedAllocation = poco.nestedAllocation.Select(x => x.Id).ToList();
+ dto.nestedAnalysisCase = poco.nestedAnalysisCase.Select(x => x.Id).ToList();
+ dto.nestedAttribute = poco.nestedAttribute.Select(x => x.Id).ToList();
+ dto.nestedCalculation = poco.nestedCalculation.Select(x => x.Id).ToList();
+ dto.nestedCase = poco.nestedCase.Select(x => x.Id).ToList();
+ dto.nestedConcern = poco.nestedConcern.Select(x => x.Id).ToList();
+ dto.nestedConnection = poco.nestedConnection.Select(x => x.Id).ToList();
+ dto.nestedConstraint = poco.nestedConstraint.Select(x => x.Id).ToList();
+ dto.nestedEnumeration = poco.nestedEnumeration.Select(x => x.Id).ToList();
+ dto.nestedFlow = poco.nestedFlow.Select(x => x.Id).ToList();
+ dto.nestedInterface = poco.nestedInterface.Select(x => x.Id).ToList();
+ dto.nestedItem = poco.nestedItem.Select(x => x.Id).ToList();
+ dto.nestedMetadata = poco.nestedMetadata.Select(x => x.Id).ToList();
+ dto.nestedOccurrence = poco.nestedOccurrence.Select(x => x.Id).ToList();
+ dto.nestedPart = poco.nestedPart.Select(x => x.Id).ToList();
+ dto.nestedPort = poco.nestedPort.Select(x => x.Id).ToList();
+ dto.nestedReference = poco.nestedReference.Select(x => x.Id).ToList();
+ dto.nestedRendering = poco.nestedRendering.Select(x => x.Id).ToList();
+ dto.nestedRequirement = poco.nestedRequirement.Select(x => x.Id).ToList();
+ dto.nestedState = poco.nestedState.Select(x => x.Id).ToList();
+ dto.nestedTransition = poco.nestedTransition.Select(x => x.Id).ToList();
+ dto.nestedUsage = poco.nestedUsage.Select(x => x.Id).ToList();
+ dto.nestedUseCase = poco.nestedUseCase.Select(x => x.Id).ToList();
+ dto.nestedVerificationCase = poco.nestedVerificationCase.Select(x => x.Id).ToList();
+ dto.nestedView = poco.nestedView.Select(x => x.Id).ToList();
+ dto.nestedViewpoint = poco.nestedViewpoint.Select(x => x.Id).ToList();
+ dto.occurrenceDefinition = poco.occurrenceDefinition.Select(x => x.Id).ToList();
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedCrossSubsetting = poco.ownedCrossSubsetting?.Id;
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureChaining = poco.ownedFeatureChaining.Select(x => x.Id).ToList();
+ dto.ownedFeatureInverting = poco.ownedFeatureInverting.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedRedefinition = poco.ownedRedefinition.Select(x => x.Id).ToList();
+ dto.ownedReferenceSubsetting = poco.ownedReferenceSubsetting?.Id;
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedSubsetting = poco.ownedSubsetting.Select(x => x.Id).ToList();
+ dto.ownedTypeFeaturing = poco.ownedTypeFeaturing.Select(x => x.Id).ToList();
+ dto.ownedTyping = poco.ownedTyping.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningDefinition = poco.owningDefinition?.Id;
+ dto.owningFeatureMembership = poco.owningFeatureMembership?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType?.Id;
+ dto.owningUsage = poco.owningUsage?.Id;
+ dto.partDefinition = poco.partDefinition.Select(x => x.Id).ToList();
+ dto.qualifiedName = poco.qualifiedName;
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ dto.usage = poco.usage.Select(x => x.Id).ToList();
+ dto.variant = poco.variant.Select(x => x.Id).ToList();
+ dto.variantMembership = poco.variantMembership.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/PayloadFeatureExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/PayloadFeatureExtensions.cs
index 8611cdc17..8d0ef329d 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/PayloadFeatureExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/PayloadFeatureExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Kernel.Interactions;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class PayloadFeatureExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -113,17 +113,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -173,10 +173,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.Interactions.
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Kernel.Interactions.PayloadFeature ToDto(this Core.POCO.Kernel.Interactions.PayloadFeature poco)
+ public static Core.DTO.Kernel.Interactions.PayloadFeature ToDto(this Core.POCO.Kernel.Interactions.PayloadFeature poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Kernel.Interactions.PayloadFeature();
@@ -200,6 +203,65 @@ public static Core.DTO.Kernel.Interactions.PayloadFeature ToDto(this Core.POCO.K
dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList();
dto.OwningRelationship = poco.OwningRelationship?.Id;
+ if (includeDerivedProperties)
+ {
+ dto.chainingFeature = poco.chainingFeature.Select(x => x.Id).ToList();
+ dto.crossFeature = poco.crossFeature?.Id;
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.directedFeature = poco.directedFeature.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endFeature = poco.endFeature.Select(x => x.Id).ToList();
+ dto.endOwningType = poco.endOwningType?.Id;
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.featureTarget = poco.featureTarget.Id;
+ dto.featuringType = poco.featuringType.Select(x => x.Id).ToList();
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedCrossSubsetting = poco.ownedCrossSubsetting?.Id;
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureChaining = poco.ownedFeatureChaining.Select(x => x.Id).ToList();
+ dto.ownedFeatureInverting = poco.ownedFeatureInverting.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedRedefinition = poco.ownedRedefinition.Select(x => x.Id).ToList();
+ dto.ownedReferenceSubsetting = poco.ownedReferenceSubsetting?.Id;
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedSubsetting = poco.ownedSubsetting.Select(x => x.Id).ToList();
+ dto.ownedTypeFeaturing = poco.ownedTypeFeaturing.Select(x => x.Id).ToList();
+ dto.ownedTyping = poco.ownedTyping.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningFeatureMembership = poco.owningFeatureMembership?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType?.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.type = poco.type.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/PerformActionUsageExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/PerformActionUsageExtensions.cs
index b81d95033..6b34515ce 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/PerformActionUsageExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/PerformActionUsageExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Systems.Actions;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class PerformActionUsageExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -117,17 +117,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -177,10 +177,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Actions.Perf
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Systems.Actions.PerformActionUsage ToDto(this Core.POCO.Systems.Actions.PerformActionUsage poco)
+ public static Core.DTO.Systems.Actions.PerformActionUsage ToDto(this Core.POCO.Systems.Actions.PerformActionUsage poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Systems.Actions.PerformActionUsage();
@@ -206,6 +209,102 @@ public static Core.DTO.Systems.Actions.PerformActionUsage ToDto(this Core.POCO.S
dto.OwningRelationship = poco.OwningRelationship?.Id;
dto.PortionKind = poco.PortionKind;
+ if (includeDerivedProperties)
+ {
+ dto.actionDefinition = poco.actionDefinition.Select(x => x.Id).ToList();
+ dto.chainingFeature = poco.chainingFeature.Select(x => x.Id).ToList();
+ dto.crossFeature = poco.crossFeature?.Id;
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.directedUsage = poco.directedUsage.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endFeature = poco.endFeature.Select(x => x.Id).ToList();
+ dto.endOwningType = poco.endOwningType?.Id;
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.featureTarget = poco.featureTarget.Id;
+ dto.featuringType = poco.featuringType.Select(x => x.Id).ToList();
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.individualDefinition = poco.individualDefinition?.Id;
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.isReference = poco.isReference;
+ dto.mayTimeVary = poco.mayTimeVary;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.nestedAction = poco.nestedAction.Select(x => x.Id).ToList();
+ dto.nestedAllocation = poco.nestedAllocation.Select(x => x.Id).ToList();
+ dto.nestedAnalysisCase = poco.nestedAnalysisCase.Select(x => x.Id).ToList();
+ dto.nestedAttribute = poco.nestedAttribute.Select(x => x.Id).ToList();
+ dto.nestedCalculation = poco.nestedCalculation.Select(x => x.Id).ToList();
+ dto.nestedCase = poco.nestedCase.Select(x => x.Id).ToList();
+ dto.nestedConcern = poco.nestedConcern.Select(x => x.Id).ToList();
+ dto.nestedConnection = poco.nestedConnection.Select(x => x.Id).ToList();
+ dto.nestedConstraint = poco.nestedConstraint.Select(x => x.Id).ToList();
+ dto.nestedEnumeration = poco.nestedEnumeration.Select(x => x.Id).ToList();
+ dto.nestedFlow = poco.nestedFlow.Select(x => x.Id).ToList();
+ dto.nestedInterface = poco.nestedInterface.Select(x => x.Id).ToList();
+ dto.nestedItem = poco.nestedItem.Select(x => x.Id).ToList();
+ dto.nestedMetadata = poco.nestedMetadata.Select(x => x.Id).ToList();
+ dto.nestedOccurrence = poco.nestedOccurrence.Select(x => x.Id).ToList();
+ dto.nestedPart = poco.nestedPart.Select(x => x.Id).ToList();
+ dto.nestedPort = poco.nestedPort.Select(x => x.Id).ToList();
+ dto.nestedReference = poco.nestedReference.Select(x => x.Id).ToList();
+ dto.nestedRendering = poco.nestedRendering.Select(x => x.Id).ToList();
+ dto.nestedRequirement = poco.nestedRequirement.Select(x => x.Id).ToList();
+ dto.nestedState = poco.nestedState.Select(x => x.Id).ToList();
+ dto.nestedTransition = poco.nestedTransition.Select(x => x.Id).ToList();
+ dto.nestedUsage = poco.nestedUsage.Select(x => x.Id).ToList();
+ dto.nestedUseCase = poco.nestedUseCase.Select(x => x.Id).ToList();
+ dto.nestedVerificationCase = poco.nestedVerificationCase.Select(x => x.Id).ToList();
+ dto.nestedView = poco.nestedView.Select(x => x.Id).ToList();
+ dto.nestedViewpoint = poco.nestedViewpoint.Select(x => x.Id).ToList();
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedCrossSubsetting = poco.ownedCrossSubsetting?.Id;
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureChaining = poco.ownedFeatureChaining.Select(x => x.Id).ToList();
+ dto.ownedFeatureInverting = poco.ownedFeatureInverting.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedRedefinition = poco.ownedRedefinition.Select(x => x.Id).ToList();
+ dto.ownedReferenceSubsetting = poco.ownedReferenceSubsetting?.Id;
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedSubsetting = poco.ownedSubsetting.Select(x => x.Id).ToList();
+ dto.ownedTypeFeaturing = poco.ownedTypeFeaturing.Select(x => x.Id).ToList();
+ dto.ownedTyping = poco.ownedTyping.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningDefinition = poco.owningDefinition?.Id;
+ dto.owningFeatureMembership = poco.owningFeatureMembership?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType?.Id;
+ dto.owningUsage = poco.owningUsage?.Id;
+ dto.parameter = poco.parameter.Select(x => x.Id).ToList();
+ dto.performedAction = poco.performedAction.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ dto.usage = poco.usage.Select(x => x.Id).ToList();
+ dto.variant = poco.variant.Select(x => x.Id).ToList();
+ dto.variantMembership = poco.variantMembership.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/PortConjugationExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/PortConjugationExtensions.cs
index 6124e9c32..8bd950497 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/PortConjugationExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/PortConjugationExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Systems.Ports;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class PortConjugationExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -102,17 +102,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -159,7 +159,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Ports.PortCo
{
if (cache.TryGetValue(identifier, out lazyPoco))
{
- poco.OwnedRelatedElement.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value);
+ poco.OwnedRelatedElement.Add(lazyPoco.Value);
}
}
@@ -175,7 +175,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Ports.PortCo
if (dto.OwningRelatedElement.HasValue && cache.TryGetValue(dto.OwningRelatedElement.Value, out lazyPoco))
{
- poco.OwningRelatedElement = (Core.POCO.Root.Elements.IElement)lazyPoco.Value;
+ poco.OwningRelatedElement = lazyPoco.Value;
}
else
{
@@ -199,10 +199,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Ports.PortCo
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Systems.Ports.PortConjugation ToDto(this Core.POCO.Systems.Ports.PortConjugation poco)
+ public static Core.DTO.Systems.Ports.PortConjugation ToDto(this Core.POCO.Systems.Ports.PortConjugation poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Systems.Ports.PortConjugation();
@@ -220,6 +223,23 @@ public static Core.DTO.Systems.Ports.PortConjugation ToDto(this Core.POCO.System
dto.OwningRelatedElement = poco.OwningRelatedElement?.Id;
dto.OwningRelationship = poco.OwningRelationship?.Id;
+ if (includeDerivedProperties)
+ {
+ dto.conjugatedPortDefinition = poco.conjugatedPortDefinition.Id;
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.name = poco.name;
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.relatedElement = poco.relatedElement.Select(x => x.Id).ToList();
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/PortDefinitionExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/PortDefinitionExtensions.cs
index 0251be174..d5a47212a 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/PortDefinitionExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/PortDefinitionExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Systems.Ports;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class PortDefinitionExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -99,17 +99,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -159,10 +159,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Ports.PortDe
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Systems.Ports.PortDefinition ToDto(this Core.POCO.Systems.Ports.PortDefinition poco)
+ public static Core.DTO.Systems.Ports.PortDefinition ToDto(this Core.POCO.Systems.Ports.PortDefinition poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Systems.Ports.PortDefinition();
@@ -179,6 +182,82 @@ public static Core.DTO.Systems.Ports.PortDefinition ToDto(this Core.POCO.Systems
dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList();
dto.OwningRelationship = poco.OwningRelationship?.Id;
+ if (includeDerivedProperties)
+ {
+ dto.conjugatedPortDefinition = poco.conjugatedPortDefinition?.Id;
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.directedFeature = poco.directedFeature.Select(x => x.Id).ToList();
+ dto.directedUsage = poco.directedUsage.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endFeature = poco.endFeature.Select(x => x.Id).ToList();
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAction = poco.ownedAction.Select(x => x.Id).ToList();
+ dto.ownedAllocation = poco.ownedAllocation.Select(x => x.Id).ToList();
+ dto.ownedAnalysisCase = poco.ownedAnalysisCase.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedAttribute = poco.ownedAttribute.Select(x => x.Id).ToList();
+ dto.ownedCalculation = poco.ownedCalculation.Select(x => x.Id).ToList();
+ dto.ownedCase = poco.ownedCase.Select(x => x.Id).ToList();
+ dto.ownedConcern = poco.ownedConcern.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedConnection = poco.ownedConnection.Select(x => x.Id).ToList();
+ dto.ownedConstraint = poco.ownedConstraint.Select(x => x.Id).ToList();
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedEnumeration = poco.ownedEnumeration.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedFlow = poco.ownedFlow.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedInterface = poco.ownedInterface.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedItem = poco.ownedItem.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedMetadata = poco.ownedMetadata.Select(x => x.Id).ToList();
+ dto.ownedOccurrence = poco.ownedOccurrence.Select(x => x.Id).ToList();
+ dto.ownedPart = poco.ownedPart.Select(x => x.Id).ToList();
+ dto.ownedPort = poco.ownedPort.Select(x => x.Id).ToList();
+ dto.ownedReference = poco.ownedReference.Select(x => x.Id).ToList();
+ dto.ownedRendering = poco.ownedRendering.Select(x => x.Id).ToList();
+ dto.ownedRequirement = poco.ownedRequirement.Select(x => x.Id).ToList();
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedState = poco.ownedState.Select(x => x.Id).ToList();
+ dto.ownedSubclassification = poco.ownedSubclassification.Select(x => x.Id).ToList();
+ dto.ownedTransition = poco.ownedTransition.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.ownedUsage = poco.ownedUsage.Select(x => x.Id).ToList();
+ dto.ownedUseCase = poco.ownedUseCase.Select(x => x.Id).ToList();
+ dto.ownedVerificationCase = poco.ownedVerificationCase.Select(x => x.Id).ToList();
+ dto.ownedView = poco.ownedView.Select(x => x.Id).ToList();
+ dto.ownedViewpoint = poco.ownedViewpoint.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ dto.usage = poco.usage.Select(x => x.Id).ToList();
+ dto.variant = poco.variant.Select(x => x.Id).ToList();
+ dto.variantMembership = poco.variantMembership.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/PortUsageExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/PortUsageExtensions.cs
index fcbf39ea5..24c823e1c 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/PortUsageExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/PortUsageExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Systems.Ports;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class PortUsageExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -117,17 +117,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -177,10 +177,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Ports.PortUs
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Systems.Ports.PortUsage ToDto(this Core.POCO.Systems.Ports.PortUsage poco)
+ public static Core.DTO.Systems.Ports.PortUsage ToDto(this Core.POCO.Systems.Ports.PortUsage poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Systems.Ports.PortUsage();
@@ -206,6 +209,101 @@ public static Core.DTO.Systems.Ports.PortUsage ToDto(this Core.POCO.Systems.Port
dto.OwningRelationship = poco.OwningRelationship?.Id;
dto.PortionKind = poco.PortionKind;
+ if (includeDerivedProperties)
+ {
+ dto.chainingFeature = poco.chainingFeature.Select(x => x.Id).ToList();
+ dto.crossFeature = poco.crossFeature?.Id;
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.directedFeature = poco.directedFeature.Select(x => x.Id).ToList();
+ dto.directedUsage = poco.directedUsage.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endFeature = poco.endFeature.Select(x => x.Id).ToList();
+ dto.endOwningType = poco.endOwningType?.Id;
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.featureTarget = poco.featureTarget.Id;
+ dto.featuringType = poco.featuringType.Select(x => x.Id).ToList();
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.individualDefinition = poco.individualDefinition?.Id;
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.isReference = poco.isReference;
+ dto.mayTimeVary = poco.mayTimeVary;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.nestedAction = poco.nestedAction.Select(x => x.Id).ToList();
+ dto.nestedAllocation = poco.nestedAllocation.Select(x => x.Id).ToList();
+ dto.nestedAnalysisCase = poco.nestedAnalysisCase.Select(x => x.Id).ToList();
+ dto.nestedAttribute = poco.nestedAttribute.Select(x => x.Id).ToList();
+ dto.nestedCalculation = poco.nestedCalculation.Select(x => x.Id).ToList();
+ dto.nestedCase = poco.nestedCase.Select(x => x.Id).ToList();
+ dto.nestedConcern = poco.nestedConcern.Select(x => x.Id).ToList();
+ dto.nestedConnection = poco.nestedConnection.Select(x => x.Id).ToList();
+ dto.nestedConstraint = poco.nestedConstraint.Select(x => x.Id).ToList();
+ dto.nestedEnumeration = poco.nestedEnumeration.Select(x => x.Id).ToList();
+ dto.nestedFlow = poco.nestedFlow.Select(x => x.Id).ToList();
+ dto.nestedInterface = poco.nestedInterface.Select(x => x.Id).ToList();
+ dto.nestedItem = poco.nestedItem.Select(x => x.Id).ToList();
+ dto.nestedMetadata = poco.nestedMetadata.Select(x => x.Id).ToList();
+ dto.nestedOccurrence = poco.nestedOccurrence.Select(x => x.Id).ToList();
+ dto.nestedPart = poco.nestedPart.Select(x => x.Id).ToList();
+ dto.nestedPort = poco.nestedPort.Select(x => x.Id).ToList();
+ dto.nestedReference = poco.nestedReference.Select(x => x.Id).ToList();
+ dto.nestedRendering = poco.nestedRendering.Select(x => x.Id).ToList();
+ dto.nestedRequirement = poco.nestedRequirement.Select(x => x.Id).ToList();
+ dto.nestedState = poco.nestedState.Select(x => x.Id).ToList();
+ dto.nestedTransition = poco.nestedTransition.Select(x => x.Id).ToList();
+ dto.nestedUsage = poco.nestedUsage.Select(x => x.Id).ToList();
+ dto.nestedUseCase = poco.nestedUseCase.Select(x => x.Id).ToList();
+ dto.nestedVerificationCase = poco.nestedVerificationCase.Select(x => x.Id).ToList();
+ dto.nestedView = poco.nestedView.Select(x => x.Id).ToList();
+ dto.nestedViewpoint = poco.nestedViewpoint.Select(x => x.Id).ToList();
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedCrossSubsetting = poco.ownedCrossSubsetting?.Id;
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureChaining = poco.ownedFeatureChaining.Select(x => x.Id).ToList();
+ dto.ownedFeatureInverting = poco.ownedFeatureInverting.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedRedefinition = poco.ownedRedefinition.Select(x => x.Id).ToList();
+ dto.ownedReferenceSubsetting = poco.ownedReferenceSubsetting?.Id;
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedSubsetting = poco.ownedSubsetting.Select(x => x.Id).ToList();
+ dto.ownedTypeFeaturing = poco.ownedTypeFeaturing.Select(x => x.Id).ToList();
+ dto.ownedTyping = poco.ownedTyping.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningDefinition = poco.owningDefinition?.Id;
+ dto.owningFeatureMembership = poco.owningFeatureMembership?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType?.Id;
+ dto.owningUsage = poco.owningUsage?.Id;
+ dto.portDefinition = poco.portDefinition.Select(x => x.Id).ToList();
+ dto.qualifiedName = poco.qualifiedName;
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ dto.usage = poco.usage.Select(x => x.Id).ToList();
+ dto.variant = poco.variant.Select(x => x.Id).ToList();
+ dto.variantMembership = poco.variantMembership.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/PredicateExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/PredicateExtensions.cs
index 134f85bcb..c4a7aeb7c 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/PredicateExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/PredicateExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Kernel.Functions;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class PredicateExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -95,17 +95,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -155,10 +155,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.Functions.Pre
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Kernel.Functions.Predicate ToDto(this Core.POCO.Kernel.Functions.Predicate poco)
+ public static Core.DTO.Kernel.Functions.Predicate ToDto(this Core.POCO.Kernel.Functions.Predicate poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Kernel.Functions.Predicate();
@@ -173,6 +176,54 @@ public static Core.DTO.Kernel.Functions.Predicate ToDto(this Core.POCO.Kernel.Fu
dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList();
dto.OwningRelationship = poco.OwningRelationship?.Id;
+ if (includeDerivedProperties)
+ {
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endFeature = poco.endFeature.Select(x => x.Id).ToList();
+ dto.expression = poco.expression.Select(x => x.Id).ToList();
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.isModelLevelEvaluable = poco.isModelLevelEvaluable;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedSubclassification = poco.ownedSubclassification.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.parameter = poco.parameter.Select(x => x.Id).ToList();
+ dto.qualifiedName = poco.qualifiedName;
+ dto.result = poco.result.Id;
+ dto.shortName = poco.shortName;
+ dto.step = poco.step.Select(x => x.Id).ToList();
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/RedefinitionExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/RedefinitionExtensions.cs
index 18d18de0d..32c5e4b4c 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/RedefinitionExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/RedefinitionExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Core.Features;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class RedefinitionExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -102,17 +102,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -141,7 +141,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Features.Redefi
{
if (cache.TryGetValue(identifier, out lazyPoco))
{
- poco.OwnedRelatedElement.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value);
+ poco.OwnedRelatedElement.Add(lazyPoco.Value);
}
}
@@ -157,7 +157,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Features.Redefi
if (dto.OwningRelatedElement.HasValue && cache.TryGetValue(dto.OwningRelatedElement.Value, out lazyPoco))
{
- poco.OwningRelatedElement = (Core.POCO.Root.Elements.IElement)lazyPoco.Value;
+ poco.OwningRelatedElement = lazyPoco.Value;
}
else
{
@@ -199,10 +199,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Features.Redefi
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Core.Features.Redefinition ToDto(this Core.POCO.Core.Features.Redefinition poco)
+ public static Core.DTO.Core.Features.Redefinition ToDto(this Core.POCO.Core.Features.Redefinition poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Core.Features.Redefinition();
@@ -220,6 +223,23 @@ public static Core.DTO.Core.Features.Redefinition ToDto(this Core.POCO.Core.Feat
dto.RedefinedFeature = poco.RedefinedFeature.Id;
dto.RedefiningFeature = poco.RedefiningFeature.Id;
+ if (includeDerivedProperties)
+ {
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.name = poco.name;
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningFeature = poco.owningFeature?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.relatedElement = poco.relatedElement.Select(x => x.Id).ToList();
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ReferenceSubsettingExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ReferenceSubsettingExtensions.cs
index ed8a20d99..4f11d9f0a 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ReferenceSubsettingExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ReferenceSubsettingExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Core.Features;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class ReferenceSubsettingExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -102,17 +102,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -141,7 +141,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Features.Refere
{
if (cache.TryGetValue(identifier, out lazyPoco))
{
- poco.OwnedRelatedElement.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value);
+ poco.OwnedRelatedElement.Add(lazyPoco.Value);
}
}
@@ -157,7 +157,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Features.Refere
if (dto.OwningRelatedElement.HasValue && cache.TryGetValue(dto.OwningRelatedElement.Value, out lazyPoco))
{
- poco.OwningRelatedElement = (Core.POCO.Root.Elements.IElement)lazyPoco.Value;
+ poco.OwningRelatedElement = lazyPoco.Value;
}
else
{
@@ -190,10 +190,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Features.Refere
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Core.Features.ReferenceSubsetting ToDto(this Core.POCO.Core.Features.ReferenceSubsetting poco)
+ public static Core.DTO.Core.Features.ReferenceSubsetting ToDto(this Core.POCO.Core.Features.ReferenceSubsetting poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Core.Features.ReferenceSubsetting();
@@ -210,6 +213,23 @@ public static Core.DTO.Core.Features.ReferenceSubsetting ToDto(this Core.POCO.Co
dto.OwningRelationship = poco.OwningRelationship?.Id;
dto.ReferencedFeature = poco.ReferencedFeature.Id;
+ if (includeDerivedProperties)
+ {
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.name = poco.name;
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.referencingFeature = poco.referencingFeature.Id;
+ dto.relatedElement = poco.relatedElement.Select(x => x.Id).ToList();
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ReferenceUsageExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ReferenceUsageExtensions.cs
index 10ef1f38a..9d4468c5a 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ReferenceUsageExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ReferenceUsageExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Systems.DefinitionAndUsage;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class ReferenceUsageExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -113,17 +113,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -173,10 +173,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.DefinitionAn
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Systems.DefinitionAndUsage.ReferenceUsage ToDto(this Core.POCO.Systems.DefinitionAndUsage.ReferenceUsage poco)
+ public static Core.DTO.Systems.DefinitionAndUsage.ReferenceUsage ToDto(this Core.POCO.Systems.DefinitionAndUsage.ReferenceUsage poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Systems.DefinitionAndUsage.ReferenceUsage();
@@ -200,6 +203,100 @@ public static Core.DTO.Systems.DefinitionAndUsage.ReferenceUsage ToDto(this Core
dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList();
dto.OwningRelationship = poco.OwningRelationship?.Id;
+ if (includeDerivedProperties)
+ {
+ dto.chainingFeature = poco.chainingFeature.Select(x => x.Id).ToList();
+ dto.crossFeature = poco.crossFeature?.Id;
+ dto.definition = poco.definition.Select(x => x.Id).ToList();
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.directedFeature = poco.directedFeature.Select(x => x.Id).ToList();
+ dto.directedUsage = poco.directedUsage.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endFeature = poco.endFeature.Select(x => x.Id).ToList();
+ dto.endOwningType = poco.endOwningType?.Id;
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.featureTarget = poco.featureTarget.Id;
+ dto.featuringType = poco.featuringType.Select(x => x.Id).ToList();
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.isReference = poco.isReference;
+ dto.mayTimeVary = poco.mayTimeVary;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.nestedAction = poco.nestedAction.Select(x => x.Id).ToList();
+ dto.nestedAllocation = poco.nestedAllocation.Select(x => x.Id).ToList();
+ dto.nestedAnalysisCase = poco.nestedAnalysisCase.Select(x => x.Id).ToList();
+ dto.nestedAttribute = poco.nestedAttribute.Select(x => x.Id).ToList();
+ dto.nestedCalculation = poco.nestedCalculation.Select(x => x.Id).ToList();
+ dto.nestedCase = poco.nestedCase.Select(x => x.Id).ToList();
+ dto.nestedConcern = poco.nestedConcern.Select(x => x.Id).ToList();
+ dto.nestedConnection = poco.nestedConnection.Select(x => x.Id).ToList();
+ dto.nestedConstraint = poco.nestedConstraint.Select(x => x.Id).ToList();
+ dto.nestedEnumeration = poco.nestedEnumeration.Select(x => x.Id).ToList();
+ dto.nestedFlow = poco.nestedFlow.Select(x => x.Id).ToList();
+ dto.nestedInterface = poco.nestedInterface.Select(x => x.Id).ToList();
+ dto.nestedItem = poco.nestedItem.Select(x => x.Id).ToList();
+ dto.nestedMetadata = poco.nestedMetadata.Select(x => x.Id).ToList();
+ dto.nestedOccurrence = poco.nestedOccurrence.Select(x => x.Id).ToList();
+ dto.nestedPart = poco.nestedPart.Select(x => x.Id).ToList();
+ dto.nestedPort = poco.nestedPort.Select(x => x.Id).ToList();
+ dto.nestedReference = poco.nestedReference.Select(x => x.Id).ToList();
+ dto.nestedRendering = poco.nestedRendering.Select(x => x.Id).ToList();
+ dto.nestedRequirement = poco.nestedRequirement.Select(x => x.Id).ToList();
+ dto.nestedState = poco.nestedState.Select(x => x.Id).ToList();
+ dto.nestedTransition = poco.nestedTransition.Select(x => x.Id).ToList();
+ dto.nestedUsage = poco.nestedUsage.Select(x => x.Id).ToList();
+ dto.nestedUseCase = poco.nestedUseCase.Select(x => x.Id).ToList();
+ dto.nestedVerificationCase = poco.nestedVerificationCase.Select(x => x.Id).ToList();
+ dto.nestedView = poco.nestedView.Select(x => x.Id).ToList();
+ dto.nestedViewpoint = poco.nestedViewpoint.Select(x => x.Id).ToList();
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedCrossSubsetting = poco.ownedCrossSubsetting?.Id;
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureChaining = poco.ownedFeatureChaining.Select(x => x.Id).ToList();
+ dto.ownedFeatureInverting = poco.ownedFeatureInverting.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedRedefinition = poco.ownedRedefinition.Select(x => x.Id).ToList();
+ dto.ownedReferenceSubsetting = poco.ownedReferenceSubsetting?.Id;
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedSubsetting = poco.ownedSubsetting.Select(x => x.Id).ToList();
+ dto.ownedTypeFeaturing = poco.ownedTypeFeaturing.Select(x => x.Id).ToList();
+ dto.ownedTyping = poco.ownedTyping.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningDefinition = poco.owningDefinition?.Id;
+ dto.owningFeatureMembership = poco.owningFeatureMembership?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType?.Id;
+ dto.owningUsage = poco.owningUsage?.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ dto.usage = poco.usage.Select(x => x.Id).ToList();
+ dto.variant = poco.variant.Select(x => x.Id).ToList();
+ dto.variantMembership = poco.variantMembership.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/RenderingDefinitionExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/RenderingDefinitionExtensions.cs
index 90f9741c9..2e2399d7e 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/RenderingDefinitionExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/RenderingDefinitionExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Systems.Views;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class RenderingDefinitionExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -99,17 +99,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -159,10 +159,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Views.Render
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Systems.Views.RenderingDefinition ToDto(this Core.POCO.Systems.Views.RenderingDefinition poco)
+ public static Core.DTO.Systems.Views.RenderingDefinition ToDto(this Core.POCO.Systems.Views.RenderingDefinition poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Systems.Views.RenderingDefinition();
@@ -179,6 +182,82 @@ public static Core.DTO.Systems.Views.RenderingDefinition ToDto(this Core.POCO.Sy
dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList();
dto.OwningRelationship = poco.OwningRelationship?.Id;
+ if (includeDerivedProperties)
+ {
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.directedFeature = poco.directedFeature.Select(x => x.Id).ToList();
+ dto.directedUsage = poco.directedUsage.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endFeature = poco.endFeature.Select(x => x.Id).ToList();
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAction = poco.ownedAction.Select(x => x.Id).ToList();
+ dto.ownedAllocation = poco.ownedAllocation.Select(x => x.Id).ToList();
+ dto.ownedAnalysisCase = poco.ownedAnalysisCase.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedAttribute = poco.ownedAttribute.Select(x => x.Id).ToList();
+ dto.ownedCalculation = poco.ownedCalculation.Select(x => x.Id).ToList();
+ dto.ownedCase = poco.ownedCase.Select(x => x.Id).ToList();
+ dto.ownedConcern = poco.ownedConcern.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedConnection = poco.ownedConnection.Select(x => x.Id).ToList();
+ dto.ownedConstraint = poco.ownedConstraint.Select(x => x.Id).ToList();
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedEnumeration = poco.ownedEnumeration.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedFlow = poco.ownedFlow.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedInterface = poco.ownedInterface.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedItem = poco.ownedItem.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedMetadata = poco.ownedMetadata.Select(x => x.Id).ToList();
+ dto.ownedOccurrence = poco.ownedOccurrence.Select(x => x.Id).ToList();
+ dto.ownedPart = poco.ownedPart.Select(x => x.Id).ToList();
+ dto.ownedPort = poco.ownedPort.Select(x => x.Id).ToList();
+ dto.ownedReference = poco.ownedReference.Select(x => x.Id).ToList();
+ dto.ownedRendering = poco.ownedRendering.Select(x => x.Id).ToList();
+ dto.ownedRequirement = poco.ownedRequirement.Select(x => x.Id).ToList();
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedState = poco.ownedState.Select(x => x.Id).ToList();
+ dto.ownedSubclassification = poco.ownedSubclassification.Select(x => x.Id).ToList();
+ dto.ownedTransition = poco.ownedTransition.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.ownedUsage = poco.ownedUsage.Select(x => x.Id).ToList();
+ dto.ownedUseCase = poco.ownedUseCase.Select(x => x.Id).ToList();
+ dto.ownedVerificationCase = poco.ownedVerificationCase.Select(x => x.Id).ToList();
+ dto.ownedView = poco.ownedView.Select(x => x.Id).ToList();
+ dto.ownedViewpoint = poco.ownedViewpoint.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.rendering = poco.rendering.Select(x => x.Id).ToList();
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ dto.usage = poco.usage.Select(x => x.Id).ToList();
+ dto.variant = poco.variant.Select(x => x.Id).ToList();
+ dto.variantMembership = poco.variantMembership.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/RenderingUsageExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/RenderingUsageExtensions.cs
index dc7f3cb82..ef2bb2597 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/RenderingUsageExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/RenderingUsageExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Systems.Views;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class RenderingUsageExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -117,17 +117,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -177,10 +177,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Views.Render
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Systems.Views.RenderingUsage ToDto(this Core.POCO.Systems.Views.RenderingUsage poco)
+ public static Core.DTO.Systems.Views.RenderingUsage ToDto(this Core.POCO.Systems.Views.RenderingUsage poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Systems.Views.RenderingUsage();
@@ -206,6 +209,103 @@ public static Core.DTO.Systems.Views.RenderingUsage ToDto(this Core.POCO.Systems
dto.OwningRelationship = poco.OwningRelationship?.Id;
dto.PortionKind = poco.PortionKind;
+ if (includeDerivedProperties)
+ {
+ dto.chainingFeature = poco.chainingFeature.Select(x => x.Id).ToList();
+ dto.crossFeature = poco.crossFeature?.Id;
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.directedFeature = poco.directedFeature.Select(x => x.Id).ToList();
+ dto.directedUsage = poco.directedUsage.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endFeature = poco.endFeature.Select(x => x.Id).ToList();
+ dto.endOwningType = poco.endOwningType?.Id;
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.featureTarget = poco.featureTarget.Id;
+ dto.featuringType = poco.featuringType.Select(x => x.Id).ToList();
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.individualDefinition = poco.individualDefinition?.Id;
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.isReference = poco.isReference;
+ dto.itemDefinition = poco.itemDefinition.Select(x => x.Id).ToList();
+ dto.mayTimeVary = poco.mayTimeVary;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.nestedAction = poco.nestedAction.Select(x => x.Id).ToList();
+ dto.nestedAllocation = poco.nestedAllocation.Select(x => x.Id).ToList();
+ dto.nestedAnalysisCase = poco.nestedAnalysisCase.Select(x => x.Id).ToList();
+ dto.nestedAttribute = poco.nestedAttribute.Select(x => x.Id).ToList();
+ dto.nestedCalculation = poco.nestedCalculation.Select(x => x.Id).ToList();
+ dto.nestedCase = poco.nestedCase.Select(x => x.Id).ToList();
+ dto.nestedConcern = poco.nestedConcern.Select(x => x.Id).ToList();
+ dto.nestedConnection = poco.nestedConnection.Select(x => x.Id).ToList();
+ dto.nestedConstraint = poco.nestedConstraint.Select(x => x.Id).ToList();
+ dto.nestedEnumeration = poco.nestedEnumeration.Select(x => x.Id).ToList();
+ dto.nestedFlow = poco.nestedFlow.Select(x => x.Id).ToList();
+ dto.nestedInterface = poco.nestedInterface.Select(x => x.Id).ToList();
+ dto.nestedItem = poco.nestedItem.Select(x => x.Id).ToList();
+ dto.nestedMetadata = poco.nestedMetadata.Select(x => x.Id).ToList();
+ dto.nestedOccurrence = poco.nestedOccurrence.Select(x => x.Id).ToList();
+ dto.nestedPart = poco.nestedPart.Select(x => x.Id).ToList();
+ dto.nestedPort = poco.nestedPort.Select(x => x.Id).ToList();
+ dto.nestedReference = poco.nestedReference.Select(x => x.Id).ToList();
+ dto.nestedRendering = poco.nestedRendering.Select(x => x.Id).ToList();
+ dto.nestedRequirement = poco.nestedRequirement.Select(x => x.Id).ToList();
+ dto.nestedState = poco.nestedState.Select(x => x.Id).ToList();
+ dto.nestedTransition = poco.nestedTransition.Select(x => x.Id).ToList();
+ dto.nestedUsage = poco.nestedUsage.Select(x => x.Id).ToList();
+ dto.nestedUseCase = poco.nestedUseCase.Select(x => x.Id).ToList();
+ dto.nestedVerificationCase = poco.nestedVerificationCase.Select(x => x.Id).ToList();
+ dto.nestedView = poco.nestedView.Select(x => x.Id).ToList();
+ dto.nestedViewpoint = poco.nestedViewpoint.Select(x => x.Id).ToList();
+ dto.occurrenceDefinition = poco.occurrenceDefinition.Select(x => x.Id).ToList();
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedCrossSubsetting = poco.ownedCrossSubsetting?.Id;
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureChaining = poco.ownedFeatureChaining.Select(x => x.Id).ToList();
+ dto.ownedFeatureInverting = poco.ownedFeatureInverting.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedRedefinition = poco.ownedRedefinition.Select(x => x.Id).ToList();
+ dto.ownedReferenceSubsetting = poco.ownedReferenceSubsetting?.Id;
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedSubsetting = poco.ownedSubsetting.Select(x => x.Id).ToList();
+ dto.ownedTypeFeaturing = poco.ownedTypeFeaturing.Select(x => x.Id).ToList();
+ dto.ownedTyping = poco.ownedTyping.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningDefinition = poco.owningDefinition?.Id;
+ dto.owningFeatureMembership = poco.owningFeatureMembership?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType?.Id;
+ dto.owningUsage = poco.owningUsage?.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.renderingDefinition = poco.renderingDefinition?.Id;
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ dto.usage = poco.usage.Select(x => x.Id).ToList();
+ dto.variant = poco.variant.Select(x => x.Id).ToList();
+ dto.variantMembership = poco.variantMembership.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/RequirementConstraintMembershipExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/RequirementConstraintMembershipExtensions.cs
index 6ba95b2ef..45c266ca8 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/RequirementConstraintMembershipExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/RequirementConstraintMembershipExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Systems.Requirements;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class RequirementConstraintMembershipExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -106,17 +106,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -145,7 +145,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Requirements
{
if (cache.TryGetValue(identifier, out lazyPoco))
{
- poco.OwnedRelatedElement.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value);
+ poco.OwnedRelatedElement.Add(lazyPoco.Value);
}
}
@@ -161,7 +161,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Requirements
if (dto.OwningRelatedElement.HasValue && cache.TryGetValue(dto.OwningRelatedElement.Value, out lazyPoco))
{
- poco.OwningRelatedElement = (Core.POCO.Root.Elements.IElement)lazyPoco.Value;
+ poco.OwningRelatedElement = lazyPoco.Value;
}
else
{
@@ -185,10 +185,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Requirements
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Systems.Requirements.RequirementConstraintMembership ToDto(this Core.POCO.Systems.Requirements.RequirementConstraintMembership poco)
+ public static Core.DTO.Systems.Requirements.RequirementConstraintMembership ToDto(this Core.POCO.Systems.Requirements.RequirementConstraintMembership poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Systems.Requirements.RequirementConstraintMembership();
@@ -206,6 +209,28 @@ public static Core.DTO.Systems.Requirements.RequirementConstraintMembership ToDt
dto.OwningRelationship = poco.OwningRelationship?.Id;
dto.Visibility = poco.Visibility;
+ if (includeDerivedProperties)
+ {
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.name = poco.name;
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedConstraint = poco.ownedConstraint.Id;
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedMemberElementId = poco.ownedMemberElementId;
+ dto.ownedMemberName = poco.ownedMemberName;
+ dto.ownedMemberShortName = poco.ownedMemberShortName;
+ dto.owner = poco.owner?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.referencedConstraint = poco.referencedConstraint.Id;
+ dto.relatedElement = poco.relatedElement.Select(x => x.Id).ToList();
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/RequirementDefinitionExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/RequirementDefinitionExtensions.cs
index 99c8a9e3d..45b3a921b 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/RequirementDefinitionExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/RequirementDefinitionExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Systems.Requirements;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class RequirementDefinitionExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -99,17 +99,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -159,10 +159,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Requirements
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Systems.Requirements.RequirementDefinition ToDto(this Core.POCO.Systems.Requirements.RequirementDefinition poco)
+ public static Core.DTO.Systems.Requirements.RequirementDefinition ToDto(this Core.POCO.Systems.Requirements.RequirementDefinition poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Systems.Requirements.RequirementDefinition();
@@ -179,6 +182,92 @@ public static Core.DTO.Systems.Requirements.RequirementDefinition ToDto(this Cor
dto.OwningRelationship = poco.OwningRelationship?.Id;
dto.ReqId = poco.ReqId;
+ if (includeDerivedProperties)
+ {
+ dto.actorParameter = poco.actorParameter.Select(x => x.Id).ToList();
+ dto.assumedConstraint = poco.assumedConstraint.Select(x => x.Id).ToList();
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.directedUsage = poco.directedUsage.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endFeature = poco.endFeature.Select(x => x.Id).ToList();
+ dto.expression = poco.expression.Select(x => x.Id).ToList();
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.framedConcern = poco.framedConcern.Select(x => x.Id).ToList();
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.isModelLevelEvaluable = poco.isModelLevelEvaluable;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAction = poco.ownedAction.Select(x => x.Id).ToList();
+ dto.ownedAllocation = poco.ownedAllocation.Select(x => x.Id).ToList();
+ dto.ownedAnalysisCase = poco.ownedAnalysisCase.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedAttribute = poco.ownedAttribute.Select(x => x.Id).ToList();
+ dto.ownedCalculation = poco.ownedCalculation.Select(x => x.Id).ToList();
+ dto.ownedCase = poco.ownedCase.Select(x => x.Id).ToList();
+ dto.ownedConcern = poco.ownedConcern.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedConnection = poco.ownedConnection.Select(x => x.Id).ToList();
+ dto.ownedConstraint = poco.ownedConstraint.Select(x => x.Id).ToList();
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedEnumeration = poco.ownedEnumeration.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedFlow = poco.ownedFlow.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedInterface = poco.ownedInterface.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedItem = poco.ownedItem.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedMetadata = poco.ownedMetadata.Select(x => x.Id).ToList();
+ dto.ownedOccurrence = poco.ownedOccurrence.Select(x => x.Id).ToList();
+ dto.ownedPart = poco.ownedPart.Select(x => x.Id).ToList();
+ dto.ownedPort = poco.ownedPort.Select(x => x.Id).ToList();
+ dto.ownedReference = poco.ownedReference.Select(x => x.Id).ToList();
+ dto.ownedRendering = poco.ownedRendering.Select(x => x.Id).ToList();
+ dto.ownedRequirement = poco.ownedRequirement.Select(x => x.Id).ToList();
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedState = poco.ownedState.Select(x => x.Id).ToList();
+ dto.ownedSubclassification = poco.ownedSubclassification.Select(x => x.Id).ToList();
+ dto.ownedTransition = poco.ownedTransition.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.ownedUsage = poco.ownedUsage.Select(x => x.Id).ToList();
+ dto.ownedUseCase = poco.ownedUseCase.Select(x => x.Id).ToList();
+ dto.ownedVerificationCase = poco.ownedVerificationCase.Select(x => x.Id).ToList();
+ dto.ownedView = poco.ownedView.Select(x => x.Id).ToList();
+ dto.ownedViewpoint = poco.ownedViewpoint.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.parameter = poco.parameter.Select(x => x.Id).ToList();
+ dto.qualifiedName = poco.qualifiedName;
+ dto.requiredConstraint = poco.requiredConstraint.Select(x => x.Id).ToList();
+ dto.result = poco.result.Id;
+ dto.shortName = poco.shortName;
+ dto.stakeholderParameter = poco.stakeholderParameter.Select(x => x.Id).ToList();
+ dto.step = poco.step.Select(x => x.Id).ToList();
+ dto.subjectParameter = poco.subjectParameter.Id;
+ dto.text = poco.text;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ dto.usage = poco.usage.Select(x => x.Id).ToList();
+ dto.variant = poco.variant.Select(x => x.Id).ToList();
+ dto.variantMembership = poco.variantMembership.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/RequirementUsageExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/RequirementUsageExtensions.cs
index 8466878bb..620c54002 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/RequirementUsageExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/RequirementUsageExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Systems.Requirements;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class RequirementUsageExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -117,17 +117,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -177,10 +177,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Requirements
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Systems.Requirements.RequirementUsage ToDto(this Core.POCO.Systems.Requirements.RequirementUsage poco)
+ public static Core.DTO.Systems.Requirements.RequirementUsage ToDto(this Core.POCO.Systems.Requirements.RequirementUsage poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Systems.Requirements.RequirementUsage();
@@ -206,6 +209,111 @@ public static Core.DTO.Systems.Requirements.RequirementUsage ToDto(this Core.POC
dto.PortionKind = poco.PortionKind;
dto.ReqId = poco.ReqId;
+ if (includeDerivedProperties)
+ {
+ dto.actorParameter = poco.actorParameter.Select(x => x.Id).ToList();
+ dto.assumedConstraint = poco.assumedConstraint.Select(x => x.Id).ToList();
+ dto.chainingFeature = poco.chainingFeature.Select(x => x.Id).ToList();
+ dto.crossFeature = poco.crossFeature?.Id;
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.directedUsage = poco.directedUsage.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endFeature = poco.endFeature.Select(x => x.Id).ToList();
+ dto.endOwningType = poco.endOwningType?.Id;
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.featureTarget = poco.featureTarget.Id;
+ dto.featuringType = poco.featuringType.Select(x => x.Id).ToList();
+ dto.framedConcern = poco.framedConcern.Select(x => x.Id).ToList();
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.individualDefinition = poco.individualDefinition?.Id;
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.isModelLevelEvaluable = poco.isModelLevelEvaluable;
+ dto.isReference = poco.isReference;
+ dto.mayTimeVary = poco.mayTimeVary;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.nestedAction = poco.nestedAction.Select(x => x.Id).ToList();
+ dto.nestedAllocation = poco.nestedAllocation.Select(x => x.Id).ToList();
+ dto.nestedAnalysisCase = poco.nestedAnalysisCase.Select(x => x.Id).ToList();
+ dto.nestedAttribute = poco.nestedAttribute.Select(x => x.Id).ToList();
+ dto.nestedCalculation = poco.nestedCalculation.Select(x => x.Id).ToList();
+ dto.nestedCase = poco.nestedCase.Select(x => x.Id).ToList();
+ dto.nestedConcern = poco.nestedConcern.Select(x => x.Id).ToList();
+ dto.nestedConnection = poco.nestedConnection.Select(x => x.Id).ToList();
+ dto.nestedConstraint = poco.nestedConstraint.Select(x => x.Id).ToList();
+ dto.nestedEnumeration = poco.nestedEnumeration.Select(x => x.Id).ToList();
+ dto.nestedFlow = poco.nestedFlow.Select(x => x.Id).ToList();
+ dto.nestedInterface = poco.nestedInterface.Select(x => x.Id).ToList();
+ dto.nestedItem = poco.nestedItem.Select(x => x.Id).ToList();
+ dto.nestedMetadata = poco.nestedMetadata.Select(x => x.Id).ToList();
+ dto.nestedOccurrence = poco.nestedOccurrence.Select(x => x.Id).ToList();
+ dto.nestedPart = poco.nestedPart.Select(x => x.Id).ToList();
+ dto.nestedPort = poco.nestedPort.Select(x => x.Id).ToList();
+ dto.nestedReference = poco.nestedReference.Select(x => x.Id).ToList();
+ dto.nestedRendering = poco.nestedRendering.Select(x => x.Id).ToList();
+ dto.nestedRequirement = poco.nestedRequirement.Select(x => x.Id).ToList();
+ dto.nestedState = poco.nestedState.Select(x => x.Id).ToList();
+ dto.nestedTransition = poco.nestedTransition.Select(x => x.Id).ToList();
+ dto.nestedUsage = poco.nestedUsage.Select(x => x.Id).ToList();
+ dto.nestedUseCase = poco.nestedUseCase.Select(x => x.Id).ToList();
+ dto.nestedVerificationCase = poco.nestedVerificationCase.Select(x => x.Id).ToList();
+ dto.nestedView = poco.nestedView.Select(x => x.Id).ToList();
+ dto.nestedViewpoint = poco.nestedViewpoint.Select(x => x.Id).ToList();
+ dto.occurrenceDefinition = poco.occurrenceDefinition.Select(x => x.Id).ToList();
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedCrossSubsetting = poco.ownedCrossSubsetting?.Id;
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureChaining = poco.ownedFeatureChaining.Select(x => x.Id).ToList();
+ dto.ownedFeatureInverting = poco.ownedFeatureInverting.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedRedefinition = poco.ownedRedefinition.Select(x => x.Id).ToList();
+ dto.ownedReferenceSubsetting = poco.ownedReferenceSubsetting?.Id;
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedSubsetting = poco.ownedSubsetting.Select(x => x.Id).ToList();
+ dto.ownedTypeFeaturing = poco.ownedTypeFeaturing.Select(x => x.Id).ToList();
+ dto.ownedTyping = poco.ownedTyping.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningDefinition = poco.owningDefinition?.Id;
+ dto.owningFeatureMembership = poco.owningFeatureMembership?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType?.Id;
+ dto.owningUsage = poco.owningUsage?.Id;
+ dto.parameter = poco.parameter.Select(x => x.Id).ToList();
+ dto.qualifiedName = poco.qualifiedName;
+ dto.requiredConstraint = poco.requiredConstraint.Select(x => x.Id).ToList();
+ dto.requirementDefinition = poco.requirementDefinition?.Id;
+ dto.result = poco.result.Id;
+ dto.shortName = poco.shortName;
+ dto.stakeholderParameter = poco.stakeholderParameter.Select(x => x.Id).ToList();
+ dto.subjectParameter = poco.subjectParameter.Id;
+ dto.text = poco.text;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ dto.usage = poco.usage.Select(x => x.Id).ToList();
+ dto.variant = poco.variant.Select(x => x.Id).ToList();
+ dto.variantMembership = poco.variantMembership.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/RequirementVerificationMembershipExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/RequirementVerificationMembershipExtensions.cs
index 2c50da3e5..c46c6c2a2 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/RequirementVerificationMembershipExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/RequirementVerificationMembershipExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Systems.VerificationCases;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class RequirementVerificationMembershipExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -106,17 +106,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -145,7 +145,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Verification
{
if (cache.TryGetValue(identifier, out lazyPoco))
{
- poco.OwnedRelatedElement.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value);
+ poco.OwnedRelatedElement.Add(lazyPoco.Value);
}
}
@@ -161,7 +161,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Verification
if (dto.OwningRelatedElement.HasValue && cache.TryGetValue(dto.OwningRelatedElement.Value, out lazyPoco))
{
- poco.OwningRelatedElement = (Core.POCO.Root.Elements.IElement)lazyPoco.Value;
+ poco.OwningRelatedElement = lazyPoco.Value;
}
else
{
@@ -185,10 +185,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Verification
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Systems.VerificationCases.RequirementVerificationMembership ToDto(this Core.POCO.Systems.VerificationCases.RequirementVerificationMembership poco)
+ public static Core.DTO.Systems.VerificationCases.RequirementVerificationMembership ToDto(this Core.POCO.Systems.VerificationCases.RequirementVerificationMembership poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Systems.VerificationCases.RequirementVerificationMembership();
@@ -206,6 +209,28 @@ public static Core.DTO.Systems.VerificationCases.RequirementVerificationMembersh
dto.OwningRelationship = poco.OwningRelationship?.Id;
dto.Visibility = poco.Visibility;
+ if (includeDerivedProperties)
+ {
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.name = poco.name;
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedMemberElementId = poco.ownedMemberElementId;
+ dto.ownedMemberName = poco.ownedMemberName;
+ dto.ownedMemberShortName = poco.ownedMemberShortName;
+ dto.ownedRequirement = poco.ownedRequirement.Id;
+ dto.owner = poco.owner?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.relatedElement = poco.relatedElement.Select(x => x.Id).ToList();
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.verifiedRequirement = poco.verifiedRequirement.Id;
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ResultExpressionMembershipExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ResultExpressionMembershipExtensions.cs
index 1dc15049e..086bf1bf1 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ResultExpressionMembershipExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ResultExpressionMembershipExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Kernel.Functions;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class ResultExpressionMembershipExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -104,17 +104,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -143,7 +143,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.Functions.Res
{
if (cache.TryGetValue(identifier, out lazyPoco))
{
- poco.OwnedRelatedElement.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value);
+ poco.OwnedRelatedElement.Add(lazyPoco.Value);
}
}
@@ -159,7 +159,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.Functions.Res
if (dto.OwningRelatedElement.HasValue && cache.TryGetValue(dto.OwningRelatedElement.Value, out lazyPoco))
{
- poco.OwningRelatedElement = (Core.POCO.Root.Elements.IElement)lazyPoco.Value;
+ poco.OwningRelatedElement = lazyPoco.Value;
}
else
{
@@ -183,10 +183,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.Functions.Res
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Kernel.Functions.ResultExpressionMembership ToDto(this Core.POCO.Kernel.Functions.ResultExpressionMembership poco)
+ public static Core.DTO.Kernel.Functions.ResultExpressionMembership ToDto(this Core.POCO.Kernel.Functions.ResultExpressionMembership poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Kernel.Functions.ResultExpressionMembership();
@@ -203,6 +206,27 @@ public static Core.DTO.Kernel.Functions.ResultExpressionMembership ToDto(this Co
dto.OwningRelationship = poco.OwningRelationship?.Id;
dto.Visibility = poco.Visibility;
+ if (includeDerivedProperties)
+ {
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.name = poco.name;
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedMemberElementId = poco.ownedMemberElementId;
+ dto.ownedMemberName = poco.ownedMemberName;
+ dto.ownedMemberShortName = poco.ownedMemberShortName;
+ dto.ownedResultExpression = poco.ownedResultExpression.Id;
+ dto.owner = poco.owner?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.relatedElement = poco.relatedElement.Select(x => x.Id).ToList();
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ReturnParameterMembershipExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ReturnParameterMembershipExtensions.cs
index bf239a014..cce0349bd 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/ReturnParameterMembershipExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/ReturnParameterMembershipExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Kernel.Functions;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class ReturnParameterMembershipExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -104,17 +104,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -143,7 +143,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.Functions.Ret
{
if (cache.TryGetValue(identifier, out lazyPoco))
{
- poco.OwnedRelatedElement.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value);
+ poco.OwnedRelatedElement.Add(lazyPoco.Value);
}
}
@@ -159,7 +159,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.Functions.Ret
if (dto.OwningRelatedElement.HasValue && cache.TryGetValue(dto.OwningRelatedElement.Value, out lazyPoco))
{
- poco.OwningRelatedElement = (Core.POCO.Root.Elements.IElement)lazyPoco.Value;
+ poco.OwningRelatedElement = lazyPoco.Value;
}
else
{
@@ -183,10 +183,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.Functions.Ret
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Kernel.Functions.ReturnParameterMembership ToDto(this Core.POCO.Kernel.Functions.ReturnParameterMembership poco)
+ public static Core.DTO.Kernel.Functions.ReturnParameterMembership ToDto(this Core.POCO.Kernel.Functions.ReturnParameterMembership poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Kernel.Functions.ReturnParameterMembership();
@@ -203,6 +206,27 @@ public static Core.DTO.Kernel.Functions.ReturnParameterMembership ToDto(this Cor
dto.OwningRelationship = poco.OwningRelationship?.Id;
dto.Visibility = poco.Visibility;
+ if (includeDerivedProperties)
+ {
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.name = poco.name;
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedMemberElementId = poco.ownedMemberElementId;
+ dto.ownedMemberName = poco.ownedMemberName;
+ dto.ownedMemberParameter = poco.ownedMemberParameter.Id;
+ dto.ownedMemberShortName = poco.ownedMemberShortName;
+ dto.owner = poco.owner?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.relatedElement = poco.relatedElement.Select(x => x.Id).ToList();
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/SatisfyRequirementUsageExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/SatisfyRequirementUsageExtensions.cs
index b72bcacc0..b5b18fa86 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/SatisfyRequirementUsageExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/SatisfyRequirementUsageExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Systems.Requirements;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class SatisfyRequirementUsageExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -119,17 +119,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -179,10 +179,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Requirements
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Systems.Requirements.SatisfyRequirementUsage ToDto(this Core.POCO.Systems.Requirements.SatisfyRequirementUsage poco)
+ public static Core.DTO.Systems.Requirements.SatisfyRequirementUsage ToDto(this Core.POCO.Systems.Requirements.SatisfyRequirementUsage poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Systems.Requirements.SatisfyRequirementUsage();
@@ -209,6 +212,113 @@ public static Core.DTO.Systems.Requirements.SatisfyRequirementUsage ToDto(this C
dto.PortionKind = poco.PortionKind;
dto.ReqId = poco.ReqId;
+ if (includeDerivedProperties)
+ {
+ dto.actorParameter = poco.actorParameter.Select(x => x.Id).ToList();
+ dto.assumedConstraint = poco.assumedConstraint.Select(x => x.Id).ToList();
+ dto.chainingFeature = poco.chainingFeature.Select(x => x.Id).ToList();
+ dto.crossFeature = poco.crossFeature?.Id;
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.directedUsage = poco.directedUsage.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endFeature = poco.endFeature.Select(x => x.Id).ToList();
+ dto.endOwningType = poco.endOwningType?.Id;
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.featureTarget = poco.featureTarget.Id;
+ dto.featuringType = poco.featuringType.Select(x => x.Id).ToList();
+ dto.framedConcern = poco.framedConcern.Select(x => x.Id).ToList();
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.individualDefinition = poco.individualDefinition?.Id;
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.isModelLevelEvaluable = poco.isModelLevelEvaluable;
+ dto.isReference = poco.isReference;
+ dto.mayTimeVary = poco.mayTimeVary;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.nestedAction = poco.nestedAction.Select(x => x.Id).ToList();
+ dto.nestedAllocation = poco.nestedAllocation.Select(x => x.Id).ToList();
+ dto.nestedAnalysisCase = poco.nestedAnalysisCase.Select(x => x.Id).ToList();
+ dto.nestedAttribute = poco.nestedAttribute.Select(x => x.Id).ToList();
+ dto.nestedCalculation = poco.nestedCalculation.Select(x => x.Id).ToList();
+ dto.nestedCase = poco.nestedCase.Select(x => x.Id).ToList();
+ dto.nestedConcern = poco.nestedConcern.Select(x => x.Id).ToList();
+ dto.nestedConnection = poco.nestedConnection.Select(x => x.Id).ToList();
+ dto.nestedConstraint = poco.nestedConstraint.Select(x => x.Id).ToList();
+ dto.nestedEnumeration = poco.nestedEnumeration.Select(x => x.Id).ToList();
+ dto.nestedFlow = poco.nestedFlow.Select(x => x.Id).ToList();
+ dto.nestedInterface = poco.nestedInterface.Select(x => x.Id).ToList();
+ dto.nestedItem = poco.nestedItem.Select(x => x.Id).ToList();
+ dto.nestedMetadata = poco.nestedMetadata.Select(x => x.Id).ToList();
+ dto.nestedOccurrence = poco.nestedOccurrence.Select(x => x.Id).ToList();
+ dto.nestedPart = poco.nestedPart.Select(x => x.Id).ToList();
+ dto.nestedPort = poco.nestedPort.Select(x => x.Id).ToList();
+ dto.nestedReference = poco.nestedReference.Select(x => x.Id).ToList();
+ dto.nestedRendering = poco.nestedRendering.Select(x => x.Id).ToList();
+ dto.nestedRequirement = poco.nestedRequirement.Select(x => x.Id).ToList();
+ dto.nestedState = poco.nestedState.Select(x => x.Id).ToList();
+ dto.nestedTransition = poco.nestedTransition.Select(x => x.Id).ToList();
+ dto.nestedUsage = poco.nestedUsage.Select(x => x.Id).ToList();
+ dto.nestedUseCase = poco.nestedUseCase.Select(x => x.Id).ToList();
+ dto.nestedVerificationCase = poco.nestedVerificationCase.Select(x => x.Id).ToList();
+ dto.nestedView = poco.nestedView.Select(x => x.Id).ToList();
+ dto.nestedViewpoint = poco.nestedViewpoint.Select(x => x.Id).ToList();
+ dto.occurrenceDefinition = poco.occurrenceDefinition.Select(x => x.Id).ToList();
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedCrossSubsetting = poco.ownedCrossSubsetting?.Id;
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureChaining = poco.ownedFeatureChaining.Select(x => x.Id).ToList();
+ dto.ownedFeatureInverting = poco.ownedFeatureInverting.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedRedefinition = poco.ownedRedefinition.Select(x => x.Id).ToList();
+ dto.ownedReferenceSubsetting = poco.ownedReferenceSubsetting?.Id;
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedSubsetting = poco.ownedSubsetting.Select(x => x.Id).ToList();
+ dto.ownedTypeFeaturing = poco.ownedTypeFeaturing.Select(x => x.Id).ToList();
+ dto.ownedTyping = poco.ownedTyping.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningDefinition = poco.owningDefinition?.Id;
+ dto.owningFeatureMembership = poco.owningFeatureMembership?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType?.Id;
+ dto.owningUsage = poco.owningUsage?.Id;
+ dto.parameter = poco.parameter.Select(x => x.Id).ToList();
+ dto.qualifiedName = poco.qualifiedName;
+ dto.requiredConstraint = poco.requiredConstraint.Select(x => x.Id).ToList();
+ dto.requirementDefinition = poco.requirementDefinition?.Id;
+ dto.result = poco.result.Id;
+ dto.satisfiedRequirement = poco.satisfiedRequirement.Id;
+ dto.satisfyingFeature = poco.satisfyingFeature.Id;
+ dto.shortName = poco.shortName;
+ dto.stakeholderParameter = poco.stakeholderParameter.Select(x => x.Id).ToList();
+ dto.subjectParameter = poco.subjectParameter.Id;
+ dto.text = poco.text;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ dto.usage = poco.usage.Select(x => x.Id).ToList();
+ dto.variant = poco.variant.Select(x => x.Id).ToList();
+ dto.variantMembership = poco.variantMembership.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/SelectExpressionExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/SelectExpressionExtensions.cs
index 53e8dd625..c06d6eeab 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/SelectExpressionExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/SelectExpressionExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Kernel.Expressions;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class SelectExpressionExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -115,17 +115,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -175,10 +175,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.Expressions.S
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Kernel.Expressions.SelectExpression ToDto(this Core.POCO.Kernel.Expressions.SelectExpression poco)
+ public static Core.DTO.Kernel.Expressions.SelectExpression ToDto(this Core.POCO.Kernel.Expressions.SelectExpression poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Kernel.Expressions.SelectExpression();
@@ -203,6 +206,70 @@ public static Core.DTO.Kernel.Expressions.SelectExpression ToDto(this Core.POCO.
dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList();
dto.OwningRelationship = poco.OwningRelationship?.Id;
+ if (includeDerivedProperties)
+ {
+ dto.argument = poco.argument.Select(x => x.Id).ToList();
+ dto.chainingFeature = poco.chainingFeature.Select(x => x.Id).ToList();
+ dto.crossFeature = poco.crossFeature?.Id;
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endFeature = poco.endFeature.Select(x => x.Id).ToList();
+ dto.endOwningType = poco.endOwningType?.Id;
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.featureTarget = poco.featureTarget.Id;
+ dto.featuringType = poco.featuringType.Select(x => x.Id).ToList();
+ dto.function = poco.function?.Id;
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.instantiatedType = poco.instantiatedType.Id;
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.isModelLevelEvaluable = poco.isModelLevelEvaluable;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedCrossSubsetting = poco.ownedCrossSubsetting?.Id;
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureChaining = poco.ownedFeatureChaining.Select(x => x.Id).ToList();
+ dto.ownedFeatureInverting = poco.ownedFeatureInverting.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedRedefinition = poco.ownedRedefinition.Select(x => x.Id).ToList();
+ dto.ownedReferenceSubsetting = poco.ownedReferenceSubsetting?.Id;
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedSubsetting = poco.ownedSubsetting.Select(x => x.Id).ToList();
+ dto.ownedTypeFeaturing = poco.ownedTypeFeaturing.Select(x => x.Id).ToList();
+ dto.ownedTyping = poco.ownedTyping.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningFeatureMembership = poco.owningFeatureMembership?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType?.Id;
+ dto.parameter = poco.parameter.Select(x => x.Id).ToList();
+ dto.qualifiedName = poco.qualifiedName;
+ dto.result = poco.result.Id;
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.type = poco.type.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/SendActionUsageExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/SendActionUsageExtensions.cs
index b5810cda2..4a7920a46 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/SendActionUsageExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/SendActionUsageExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Systems.Actions;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class SendActionUsageExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -117,17 +117,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -177,10 +177,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Actions.Send
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Systems.Actions.SendActionUsage ToDto(this Core.POCO.Systems.Actions.SendActionUsage poco)
+ public static Core.DTO.Systems.Actions.SendActionUsage ToDto(this Core.POCO.Systems.Actions.SendActionUsage poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Systems.Actions.SendActionUsage();
@@ -206,6 +209,104 @@ public static Core.DTO.Systems.Actions.SendActionUsage ToDto(this Core.POCO.Syst
dto.OwningRelationship = poco.OwningRelationship?.Id;
dto.PortionKind = poco.PortionKind;
+ if (includeDerivedProperties)
+ {
+ dto.actionDefinition = poco.actionDefinition.Select(x => x.Id).ToList();
+ dto.chainingFeature = poco.chainingFeature.Select(x => x.Id).ToList();
+ dto.crossFeature = poco.crossFeature?.Id;
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.directedUsage = poco.directedUsage.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endFeature = poco.endFeature.Select(x => x.Id).ToList();
+ dto.endOwningType = poco.endOwningType?.Id;
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.featureTarget = poco.featureTarget.Id;
+ dto.featuringType = poco.featuringType.Select(x => x.Id).ToList();
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.individualDefinition = poco.individualDefinition?.Id;
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.isReference = poco.isReference;
+ dto.mayTimeVary = poco.mayTimeVary;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.nestedAction = poco.nestedAction.Select(x => x.Id).ToList();
+ dto.nestedAllocation = poco.nestedAllocation.Select(x => x.Id).ToList();
+ dto.nestedAnalysisCase = poco.nestedAnalysisCase.Select(x => x.Id).ToList();
+ dto.nestedAttribute = poco.nestedAttribute.Select(x => x.Id).ToList();
+ dto.nestedCalculation = poco.nestedCalculation.Select(x => x.Id).ToList();
+ dto.nestedCase = poco.nestedCase.Select(x => x.Id).ToList();
+ dto.nestedConcern = poco.nestedConcern.Select(x => x.Id).ToList();
+ dto.nestedConnection = poco.nestedConnection.Select(x => x.Id).ToList();
+ dto.nestedConstraint = poco.nestedConstraint.Select(x => x.Id).ToList();
+ dto.nestedEnumeration = poco.nestedEnumeration.Select(x => x.Id).ToList();
+ dto.nestedFlow = poco.nestedFlow.Select(x => x.Id).ToList();
+ dto.nestedInterface = poco.nestedInterface.Select(x => x.Id).ToList();
+ dto.nestedItem = poco.nestedItem.Select(x => x.Id).ToList();
+ dto.nestedMetadata = poco.nestedMetadata.Select(x => x.Id).ToList();
+ dto.nestedOccurrence = poco.nestedOccurrence.Select(x => x.Id).ToList();
+ dto.nestedPart = poco.nestedPart.Select(x => x.Id).ToList();
+ dto.nestedPort = poco.nestedPort.Select(x => x.Id).ToList();
+ dto.nestedReference = poco.nestedReference.Select(x => x.Id).ToList();
+ dto.nestedRendering = poco.nestedRendering.Select(x => x.Id).ToList();
+ dto.nestedRequirement = poco.nestedRequirement.Select(x => x.Id).ToList();
+ dto.nestedState = poco.nestedState.Select(x => x.Id).ToList();
+ dto.nestedTransition = poco.nestedTransition.Select(x => x.Id).ToList();
+ dto.nestedUsage = poco.nestedUsage.Select(x => x.Id).ToList();
+ dto.nestedUseCase = poco.nestedUseCase.Select(x => x.Id).ToList();
+ dto.nestedVerificationCase = poco.nestedVerificationCase.Select(x => x.Id).ToList();
+ dto.nestedView = poco.nestedView.Select(x => x.Id).ToList();
+ dto.nestedViewpoint = poco.nestedViewpoint.Select(x => x.Id).ToList();
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedCrossSubsetting = poco.ownedCrossSubsetting?.Id;
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureChaining = poco.ownedFeatureChaining.Select(x => x.Id).ToList();
+ dto.ownedFeatureInverting = poco.ownedFeatureInverting.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedRedefinition = poco.ownedRedefinition.Select(x => x.Id).ToList();
+ dto.ownedReferenceSubsetting = poco.ownedReferenceSubsetting?.Id;
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedSubsetting = poco.ownedSubsetting.Select(x => x.Id).ToList();
+ dto.ownedTypeFeaturing = poco.ownedTypeFeaturing.Select(x => x.Id).ToList();
+ dto.ownedTyping = poco.ownedTyping.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningDefinition = poco.owningDefinition?.Id;
+ dto.owningFeatureMembership = poco.owningFeatureMembership?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType?.Id;
+ dto.owningUsage = poco.owningUsage?.Id;
+ dto.parameter = poco.parameter.Select(x => x.Id).ToList();
+ dto.payloadArgument = poco.payloadArgument.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.receiverArgument = poco.receiverArgument?.Id;
+ dto.senderArgument = poco.senderArgument?.Id;
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ dto.usage = poco.usage.Select(x => x.Id).ToList();
+ dto.variant = poco.variant.Select(x => x.Id).ToList();
+ dto.variantMembership = poco.variantMembership.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/SpecializationExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/SpecializationExtensions.cs
index 7bc5bf0db..2a3fc857b 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/SpecializationExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/SpecializationExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Core.Types;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class SpecializationExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -102,17 +102,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -150,7 +150,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Types.Specializ
{
if (cache.TryGetValue(identifier, out lazyPoco))
{
- poco.OwnedRelatedElement.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value);
+ poco.OwnedRelatedElement.Add(lazyPoco.Value);
}
}
@@ -166,7 +166,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Types.Specializ
if (dto.OwningRelatedElement.HasValue && cache.TryGetValue(dto.OwningRelatedElement.Value, out lazyPoco))
{
- poco.OwningRelatedElement = (Core.POCO.Root.Elements.IElement)lazyPoco.Value;
+ poco.OwningRelatedElement = lazyPoco.Value;
}
else
{
@@ -199,10 +199,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Types.Specializ
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Core.Types.Specialization ToDto(this Core.POCO.Core.Types.Specialization poco)
+ public static Core.DTO.Core.Types.Specialization ToDto(this Core.POCO.Core.Types.Specialization poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Core.Types.Specialization();
@@ -220,6 +223,23 @@ public static Core.DTO.Core.Types.Specialization ToDto(this Core.POCO.Core.Types
dto.OwningRelationship = poco.OwningRelationship?.Id;
dto.Specific = poco.Specific.Id;
+ if (includeDerivedProperties)
+ {
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.name = poco.name;
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType?.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.relatedElement = poco.relatedElement.Select(x => x.Id).ToList();
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/StakeholderMembershipExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/StakeholderMembershipExtensions.cs
index cb79cf9d6..ee65dc5af 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/StakeholderMembershipExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/StakeholderMembershipExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Systems.Requirements;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class StakeholderMembershipExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -104,17 +104,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -143,7 +143,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Requirements
{
if (cache.TryGetValue(identifier, out lazyPoco))
{
- poco.OwnedRelatedElement.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value);
+ poco.OwnedRelatedElement.Add(lazyPoco.Value);
}
}
@@ -159,7 +159,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Requirements
if (dto.OwningRelatedElement.HasValue && cache.TryGetValue(dto.OwningRelatedElement.Value, out lazyPoco))
{
- poco.OwningRelatedElement = (Core.POCO.Root.Elements.IElement)lazyPoco.Value;
+ poco.OwningRelatedElement = lazyPoco.Value;
}
else
{
@@ -183,10 +183,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Requirements
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Systems.Requirements.StakeholderMembership ToDto(this Core.POCO.Systems.Requirements.StakeholderMembership poco)
+ public static Core.DTO.Systems.Requirements.StakeholderMembership ToDto(this Core.POCO.Systems.Requirements.StakeholderMembership poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Systems.Requirements.StakeholderMembership();
@@ -203,6 +206,27 @@ public static Core.DTO.Systems.Requirements.StakeholderMembership ToDto(this Cor
dto.OwningRelationship = poco.OwningRelationship?.Id;
dto.Visibility = poco.Visibility;
+ if (includeDerivedProperties)
+ {
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.name = poco.name;
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedMemberElementId = poco.ownedMemberElementId;
+ dto.ownedMemberName = poco.ownedMemberName;
+ dto.ownedMemberShortName = poco.ownedMemberShortName;
+ dto.ownedStakeholderParameter = poco.ownedStakeholderParameter.Id;
+ dto.owner = poco.owner?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.relatedElement = poco.relatedElement.Select(x => x.Id).ToList();
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/StateDefinitionExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/StateDefinitionExtensions.cs
index 9ff3b21b8..50ff1970a 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/StateDefinitionExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/StateDefinitionExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Systems.States;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class StateDefinitionExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -101,17 +101,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -161,10 +161,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.States.State
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Systems.States.StateDefinition ToDto(this Core.POCO.Systems.States.StateDefinition poco)
+ public static Core.DTO.Systems.States.StateDefinition ToDto(this Core.POCO.Systems.States.StateDefinition poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Systems.States.StateDefinition();
@@ -182,6 +185,87 @@ public static Core.DTO.Systems.States.StateDefinition ToDto(this Core.POCO.Syste
dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList();
dto.OwningRelationship = poco.OwningRelationship?.Id;
+ if (includeDerivedProperties)
+ {
+ dto.action = poco.action.Select(x => x.Id).ToList();
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.directedUsage = poco.directedUsage.Select(x => x.Id).ToList();
+ dto.doAction = poco.doAction?.Id;
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endFeature = poco.endFeature.Select(x => x.Id).ToList();
+ dto.entryAction = poco.entryAction?.Id;
+ dto.exitAction = poco.exitAction?.Id;
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAction = poco.ownedAction.Select(x => x.Id).ToList();
+ dto.ownedAllocation = poco.ownedAllocation.Select(x => x.Id).ToList();
+ dto.ownedAnalysisCase = poco.ownedAnalysisCase.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedAttribute = poco.ownedAttribute.Select(x => x.Id).ToList();
+ dto.ownedCalculation = poco.ownedCalculation.Select(x => x.Id).ToList();
+ dto.ownedCase = poco.ownedCase.Select(x => x.Id).ToList();
+ dto.ownedConcern = poco.ownedConcern.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedConnection = poco.ownedConnection.Select(x => x.Id).ToList();
+ dto.ownedConstraint = poco.ownedConstraint.Select(x => x.Id).ToList();
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedEnumeration = poco.ownedEnumeration.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedFlow = poco.ownedFlow.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedInterface = poco.ownedInterface.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedItem = poco.ownedItem.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedMetadata = poco.ownedMetadata.Select(x => x.Id).ToList();
+ dto.ownedOccurrence = poco.ownedOccurrence.Select(x => x.Id).ToList();
+ dto.ownedPart = poco.ownedPart.Select(x => x.Id).ToList();
+ dto.ownedPort = poco.ownedPort.Select(x => x.Id).ToList();
+ dto.ownedReference = poco.ownedReference.Select(x => x.Id).ToList();
+ dto.ownedRendering = poco.ownedRendering.Select(x => x.Id).ToList();
+ dto.ownedRequirement = poco.ownedRequirement.Select(x => x.Id).ToList();
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedState = poco.ownedState.Select(x => x.Id).ToList();
+ dto.ownedSubclassification = poco.ownedSubclassification.Select(x => x.Id).ToList();
+ dto.ownedTransition = poco.ownedTransition.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.ownedUsage = poco.ownedUsage.Select(x => x.Id).ToList();
+ dto.ownedUseCase = poco.ownedUseCase.Select(x => x.Id).ToList();
+ dto.ownedVerificationCase = poco.ownedVerificationCase.Select(x => x.Id).ToList();
+ dto.ownedView = poco.ownedView.Select(x => x.Id).ToList();
+ dto.ownedViewpoint = poco.ownedViewpoint.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.parameter = poco.parameter.Select(x => x.Id).ToList();
+ dto.qualifiedName = poco.qualifiedName;
+ dto.shortName = poco.shortName;
+ dto.state = poco.state.Select(x => x.Id).ToList();
+ dto.step = poco.step.Select(x => x.Id).ToList();
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ dto.usage = poco.usage.Select(x => x.Id).ToList();
+ dto.variant = poco.variant.Select(x => x.Id).ToList();
+ dto.variantMembership = poco.variantMembership.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/StateSubactionMembershipExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/StateSubactionMembershipExtensions.cs
index afdfd5159..6fdfcb194 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/StateSubactionMembershipExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/StateSubactionMembershipExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Systems.States;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class StateSubactionMembershipExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -106,17 +106,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -145,7 +145,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.States.State
{
if (cache.TryGetValue(identifier, out lazyPoco))
{
- poco.OwnedRelatedElement.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value);
+ poco.OwnedRelatedElement.Add(lazyPoco.Value);
}
}
@@ -161,7 +161,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.States.State
if (dto.OwningRelatedElement.HasValue && cache.TryGetValue(dto.OwningRelatedElement.Value, out lazyPoco))
{
- poco.OwningRelatedElement = (Core.POCO.Root.Elements.IElement)lazyPoco.Value;
+ poco.OwningRelatedElement = lazyPoco.Value;
}
else
{
@@ -185,10 +185,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.States.State
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Systems.States.StateSubactionMembership ToDto(this Core.POCO.Systems.States.StateSubactionMembership poco)
+ public static Core.DTO.Systems.States.StateSubactionMembership ToDto(this Core.POCO.Systems.States.StateSubactionMembership poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Systems.States.StateSubactionMembership();
@@ -206,6 +209,27 @@ public static Core.DTO.Systems.States.StateSubactionMembership ToDto(this Core.P
dto.OwningRelationship = poco.OwningRelationship?.Id;
dto.Visibility = poco.Visibility;
+ if (includeDerivedProperties)
+ {
+ dto.action = poco.action.Id;
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.name = poco.name;
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedMemberElementId = poco.ownedMemberElementId;
+ dto.ownedMemberName = poco.ownedMemberName;
+ dto.ownedMemberShortName = poco.ownedMemberShortName;
+ dto.owner = poco.owner?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.relatedElement = poco.relatedElement.Select(x => x.Id).ToList();
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/StateUsageExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/StateUsageExtensions.cs
index 40bf71ca8..7ab8b358b 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/StateUsageExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/StateUsageExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Systems.States;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class StateUsageExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -119,17 +119,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -179,10 +179,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.States.State
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Systems.States.StateUsage ToDto(this Core.POCO.Systems.States.StateUsage poco)
+ public static Core.DTO.Systems.States.StateUsage ToDto(this Core.POCO.Systems.States.StateUsage poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Systems.States.StateUsage();
@@ -209,6 +212,104 @@ public static Core.DTO.Systems.States.StateUsage ToDto(this Core.POCO.Systems.St
dto.OwningRelationship = poco.OwningRelationship?.Id;
dto.PortionKind = poco.PortionKind;
+ if (includeDerivedProperties)
+ {
+ dto.chainingFeature = poco.chainingFeature.Select(x => x.Id).ToList();
+ dto.crossFeature = poco.crossFeature?.Id;
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.directedUsage = poco.directedUsage.Select(x => x.Id).ToList();
+ dto.doAction = poco.doAction?.Id;
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endFeature = poco.endFeature.Select(x => x.Id).ToList();
+ dto.endOwningType = poco.endOwningType?.Id;
+ dto.entryAction = poco.entryAction?.Id;
+ dto.exitAction = poco.exitAction?.Id;
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.featureTarget = poco.featureTarget.Id;
+ dto.featuringType = poco.featuringType.Select(x => x.Id).ToList();
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.individualDefinition = poco.individualDefinition?.Id;
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.isReference = poco.isReference;
+ dto.mayTimeVary = poco.mayTimeVary;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.nestedAction = poco.nestedAction.Select(x => x.Id).ToList();
+ dto.nestedAllocation = poco.nestedAllocation.Select(x => x.Id).ToList();
+ dto.nestedAnalysisCase = poco.nestedAnalysisCase.Select(x => x.Id).ToList();
+ dto.nestedAttribute = poco.nestedAttribute.Select(x => x.Id).ToList();
+ dto.nestedCalculation = poco.nestedCalculation.Select(x => x.Id).ToList();
+ dto.nestedCase = poco.nestedCase.Select(x => x.Id).ToList();
+ dto.nestedConcern = poco.nestedConcern.Select(x => x.Id).ToList();
+ dto.nestedConnection = poco.nestedConnection.Select(x => x.Id).ToList();
+ dto.nestedConstraint = poco.nestedConstraint.Select(x => x.Id).ToList();
+ dto.nestedEnumeration = poco.nestedEnumeration.Select(x => x.Id).ToList();
+ dto.nestedFlow = poco.nestedFlow.Select(x => x.Id).ToList();
+ dto.nestedInterface = poco.nestedInterface.Select(x => x.Id).ToList();
+ dto.nestedItem = poco.nestedItem.Select(x => x.Id).ToList();
+ dto.nestedMetadata = poco.nestedMetadata.Select(x => x.Id).ToList();
+ dto.nestedOccurrence = poco.nestedOccurrence.Select(x => x.Id).ToList();
+ dto.nestedPart = poco.nestedPart.Select(x => x.Id).ToList();
+ dto.nestedPort = poco.nestedPort.Select(x => x.Id).ToList();
+ dto.nestedReference = poco.nestedReference.Select(x => x.Id).ToList();
+ dto.nestedRendering = poco.nestedRendering.Select(x => x.Id).ToList();
+ dto.nestedRequirement = poco.nestedRequirement.Select(x => x.Id).ToList();
+ dto.nestedState = poco.nestedState.Select(x => x.Id).ToList();
+ dto.nestedTransition = poco.nestedTransition.Select(x => x.Id).ToList();
+ dto.nestedUsage = poco.nestedUsage.Select(x => x.Id).ToList();
+ dto.nestedUseCase = poco.nestedUseCase.Select(x => x.Id).ToList();
+ dto.nestedVerificationCase = poco.nestedVerificationCase.Select(x => x.Id).ToList();
+ dto.nestedView = poco.nestedView.Select(x => x.Id).ToList();
+ dto.nestedViewpoint = poco.nestedViewpoint.Select(x => x.Id).ToList();
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedCrossSubsetting = poco.ownedCrossSubsetting?.Id;
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureChaining = poco.ownedFeatureChaining.Select(x => x.Id).ToList();
+ dto.ownedFeatureInverting = poco.ownedFeatureInverting.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedRedefinition = poco.ownedRedefinition.Select(x => x.Id).ToList();
+ dto.ownedReferenceSubsetting = poco.ownedReferenceSubsetting?.Id;
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedSubsetting = poco.ownedSubsetting.Select(x => x.Id).ToList();
+ dto.ownedTypeFeaturing = poco.ownedTypeFeaturing.Select(x => x.Id).ToList();
+ dto.ownedTyping = poco.ownedTyping.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningDefinition = poco.owningDefinition?.Id;
+ dto.owningFeatureMembership = poco.owningFeatureMembership?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType?.Id;
+ dto.owningUsage = poco.owningUsage?.Id;
+ dto.parameter = poco.parameter.Select(x => x.Id).ToList();
+ dto.qualifiedName = poco.qualifiedName;
+ dto.shortName = poco.shortName;
+ dto.stateDefinition = poco.stateDefinition.Select(x => x.Id).ToList();
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ dto.usage = poco.usage.Select(x => x.Id).ToList();
+ dto.variant = poco.variant.Select(x => x.Id).ToList();
+ dto.variantMembership = poco.variantMembership.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/StepExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/StepExtensions.cs
index f32965f38..eaa600510 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/StepExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/StepExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Kernel.Behaviors;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class StepExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -113,17 +113,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -173,10 +173,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.Behaviors.Ste
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Kernel.Behaviors.Step ToDto(this Core.POCO.Kernel.Behaviors.Step poco)
+ public static Core.DTO.Kernel.Behaviors.Step ToDto(this Core.POCO.Kernel.Behaviors.Step poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Kernel.Behaviors.Step();
@@ -200,6 +203,66 @@ public static Core.DTO.Kernel.Behaviors.Step ToDto(this Core.POCO.Kernel.Behavio
dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList();
dto.OwningRelationship = poco.OwningRelationship?.Id;
+ if (includeDerivedProperties)
+ {
+ dto.behavior = poco.behavior.Select(x => x.Id).ToList();
+ dto.chainingFeature = poco.chainingFeature.Select(x => x.Id).ToList();
+ dto.crossFeature = poco.crossFeature?.Id;
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endFeature = poco.endFeature.Select(x => x.Id).ToList();
+ dto.endOwningType = poco.endOwningType?.Id;
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.featureTarget = poco.featureTarget.Id;
+ dto.featuringType = poco.featuringType.Select(x => x.Id).ToList();
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedCrossSubsetting = poco.ownedCrossSubsetting?.Id;
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureChaining = poco.ownedFeatureChaining.Select(x => x.Id).ToList();
+ dto.ownedFeatureInverting = poco.ownedFeatureInverting.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedRedefinition = poco.ownedRedefinition.Select(x => x.Id).ToList();
+ dto.ownedReferenceSubsetting = poco.ownedReferenceSubsetting?.Id;
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedSubsetting = poco.ownedSubsetting.Select(x => x.Id).ToList();
+ dto.ownedTypeFeaturing = poco.ownedTypeFeaturing.Select(x => x.Id).ToList();
+ dto.ownedTyping = poco.ownedTyping.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningFeatureMembership = poco.owningFeatureMembership?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType?.Id;
+ dto.parameter = poco.parameter.Select(x => x.Id).ToList();
+ dto.qualifiedName = poco.qualifiedName;
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.type = poco.type.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/StructureExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/StructureExtensions.cs
index 1c42447c5..e50f0549d 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/StructureExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/StructureExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Kernel.Structures;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class StructureExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -95,17 +95,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -155,10 +155,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.Structures.St
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Kernel.Structures.Structure ToDto(this Core.POCO.Kernel.Structures.Structure poco)
+ public static Core.DTO.Kernel.Structures.Structure ToDto(this Core.POCO.Kernel.Structures.Structure poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Kernel.Structures.Structure();
@@ -173,6 +176,50 @@ public static Core.DTO.Kernel.Structures.Structure ToDto(this Core.POCO.Kernel.S
dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList();
dto.OwningRelationship = poco.OwningRelationship?.Id;
+ if (includeDerivedProperties)
+ {
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.directedFeature = poco.directedFeature.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endFeature = poco.endFeature.Select(x => x.Id).ToList();
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedSubclassification = poco.ownedSubclassification.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/SubclassificationExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/SubclassificationExtensions.cs
index 63e6d25e5..1db8fa4f2 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/SubclassificationExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/SubclassificationExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Core.Classifiers;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class SubclassificationExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -102,17 +102,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -141,7 +141,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Classifiers.Sub
{
if (cache.TryGetValue(identifier, out lazyPoco))
{
- poco.OwnedRelatedElement.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value);
+ poco.OwnedRelatedElement.Add(lazyPoco.Value);
}
}
@@ -157,7 +157,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Classifiers.Sub
if (dto.OwningRelatedElement.HasValue && cache.TryGetValue(dto.OwningRelatedElement.Value, out lazyPoco))
{
- poco.OwningRelatedElement = (Core.POCO.Root.Elements.IElement)lazyPoco.Value;
+ poco.OwningRelatedElement = lazyPoco.Value;
}
else
{
@@ -199,10 +199,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Classifiers.Sub
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Core.Classifiers.Subclassification ToDto(this Core.POCO.Core.Classifiers.Subclassification poco)
+ public static Core.DTO.Core.Classifiers.Subclassification ToDto(this Core.POCO.Core.Classifiers.Subclassification poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Core.Classifiers.Subclassification();
@@ -220,6 +223,23 @@ public static Core.DTO.Core.Classifiers.Subclassification ToDto(this Core.POCO.C
dto.Subclassifier = poco.Subclassifier.Id;
dto.Superclassifier = poco.Superclassifier.Id;
+ if (includeDerivedProperties)
+ {
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.name = poco.name;
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningClassifier = poco.owningClassifier?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.relatedElement = poco.relatedElement.Select(x => x.Id).ToList();
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/SubjectMembershipExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/SubjectMembershipExtensions.cs
index 1651402f4..82b656e7d 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/SubjectMembershipExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/SubjectMembershipExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Systems.Requirements;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class SubjectMembershipExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -104,17 +104,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -143,7 +143,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Requirements
{
if (cache.TryGetValue(identifier, out lazyPoco))
{
- poco.OwnedRelatedElement.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value);
+ poco.OwnedRelatedElement.Add(lazyPoco.Value);
}
}
@@ -159,7 +159,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Requirements
if (dto.OwningRelatedElement.HasValue && cache.TryGetValue(dto.OwningRelatedElement.Value, out lazyPoco))
{
- poco.OwningRelatedElement = (Core.POCO.Root.Elements.IElement)lazyPoco.Value;
+ poco.OwningRelatedElement = lazyPoco.Value;
}
else
{
@@ -183,10 +183,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Requirements
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Systems.Requirements.SubjectMembership ToDto(this Core.POCO.Systems.Requirements.SubjectMembership poco)
+ public static Core.DTO.Systems.Requirements.SubjectMembership ToDto(this Core.POCO.Systems.Requirements.SubjectMembership poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Systems.Requirements.SubjectMembership();
@@ -203,6 +206,27 @@ public static Core.DTO.Systems.Requirements.SubjectMembership ToDto(this Core.PO
dto.OwningRelationship = poco.OwningRelationship?.Id;
dto.Visibility = poco.Visibility;
+ if (includeDerivedProperties)
+ {
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.name = poco.name;
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedMemberElementId = poco.ownedMemberElementId;
+ dto.ownedMemberName = poco.ownedMemberName;
+ dto.ownedMemberShortName = poco.ownedMemberShortName;
+ dto.ownedSubjectParameter = poco.ownedSubjectParameter.Id;
+ dto.owner = poco.owner?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.relatedElement = poco.relatedElement.Select(x => x.Id).ToList();
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/SubsettingExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/SubsettingExtensions.cs
index 859da7010..ec18dd9d5 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/SubsettingExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/SubsettingExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Core.Features;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class SubsettingExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -102,17 +102,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -141,7 +141,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Features.Subset
{
if (cache.TryGetValue(identifier, out lazyPoco))
{
- poco.OwnedRelatedElement.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value);
+ poco.OwnedRelatedElement.Add(lazyPoco.Value);
}
}
@@ -157,7 +157,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Features.Subset
if (dto.OwningRelatedElement.HasValue && cache.TryGetValue(dto.OwningRelatedElement.Value, out lazyPoco))
{
- poco.OwningRelatedElement = (Core.POCO.Root.Elements.IElement)lazyPoco.Value;
+ poco.OwningRelatedElement = lazyPoco.Value;
}
else
{
@@ -199,10 +199,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Features.Subset
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Core.Features.Subsetting ToDto(this Core.POCO.Core.Features.Subsetting poco)
+ public static Core.DTO.Core.Features.Subsetting ToDto(this Core.POCO.Core.Features.Subsetting poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Core.Features.Subsetting();
@@ -220,6 +223,23 @@ public static Core.DTO.Core.Features.Subsetting ToDto(this Core.POCO.Core.Featur
dto.SubsettedFeature = poco.SubsettedFeature.Id;
dto.SubsettingFeature = poco.SubsettingFeature.Id;
+ if (includeDerivedProperties)
+ {
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.name = poco.name;
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningFeature = poco.owningFeature?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.relatedElement = poco.relatedElement.Select(x => x.Id).ToList();
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/SuccessionAsUsageExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/SuccessionAsUsageExtensions.cs
index 667186182..07eaf4618 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/SuccessionAsUsageExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/SuccessionAsUsageExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Systems.Connections;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class SuccessionAsUsageExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -124,17 +124,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -163,7 +163,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Connections.
{
if (cache.TryGetValue(identifier, out lazyPoco))
{
- poco.OwnedRelatedElement.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value);
+ poco.OwnedRelatedElement.Add(lazyPoco.Value);
}
}
@@ -179,7 +179,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Connections.
if (dto.OwningRelatedElement.HasValue && cache.TryGetValue(dto.OwningRelatedElement.Value, out lazyPoco))
{
- poco.OwningRelatedElement = (Core.POCO.Root.Elements.IElement)lazyPoco.Value;
+ poco.OwningRelatedElement = lazyPoco.Value;
}
else
{
@@ -203,10 +203,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Connections.
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Systems.Connections.SuccessionAsUsage ToDto(this Core.POCO.Systems.Connections.SuccessionAsUsage poco)
+ public static Core.DTO.Systems.Connections.SuccessionAsUsage ToDto(this Core.POCO.Systems.Connections.SuccessionAsUsage poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Systems.Connections.SuccessionAsUsage();
@@ -233,6 +236,105 @@ public static Core.DTO.Systems.Connections.SuccessionAsUsage ToDto(this Core.POC
dto.OwningRelatedElement = poco.OwningRelatedElement?.Id;
dto.OwningRelationship = poco.OwningRelationship?.Id;
+ if (includeDerivedProperties)
+ {
+ dto.association = poco.association.Select(x => x.Id).ToList();
+ dto.chainingFeature = poco.chainingFeature.Select(x => x.Id).ToList();
+ dto.connectorEnd = poco.connectorEnd.Select(x => x.Id).ToList();
+ dto.crossFeature = poco.crossFeature?.Id;
+ dto.defaultFeaturingType = poco.defaultFeaturingType?.Id;
+ dto.definition = poco.definition.Select(x => x.Id).ToList();
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.directedFeature = poco.directedFeature.Select(x => x.Id).ToList();
+ dto.directedUsage = poco.directedUsage.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endOwningType = poco.endOwningType?.Id;
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.featureTarget = poco.featureTarget.Id;
+ dto.featuringType = poco.featuringType.Select(x => x.Id).ToList();
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.isReference = poco.isReference;
+ dto.mayTimeVary = poco.mayTimeVary;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.nestedAction = poco.nestedAction.Select(x => x.Id).ToList();
+ dto.nestedAllocation = poco.nestedAllocation.Select(x => x.Id).ToList();
+ dto.nestedAnalysisCase = poco.nestedAnalysisCase.Select(x => x.Id).ToList();
+ dto.nestedAttribute = poco.nestedAttribute.Select(x => x.Id).ToList();
+ dto.nestedCalculation = poco.nestedCalculation.Select(x => x.Id).ToList();
+ dto.nestedCase = poco.nestedCase.Select(x => x.Id).ToList();
+ dto.nestedConcern = poco.nestedConcern.Select(x => x.Id).ToList();
+ dto.nestedConnection = poco.nestedConnection.Select(x => x.Id).ToList();
+ dto.nestedConstraint = poco.nestedConstraint.Select(x => x.Id).ToList();
+ dto.nestedEnumeration = poco.nestedEnumeration.Select(x => x.Id).ToList();
+ dto.nestedFlow = poco.nestedFlow.Select(x => x.Id).ToList();
+ dto.nestedInterface = poco.nestedInterface.Select(x => x.Id).ToList();
+ dto.nestedItem = poco.nestedItem.Select(x => x.Id).ToList();
+ dto.nestedMetadata = poco.nestedMetadata.Select(x => x.Id).ToList();
+ dto.nestedOccurrence = poco.nestedOccurrence.Select(x => x.Id).ToList();
+ dto.nestedPart = poco.nestedPart.Select(x => x.Id).ToList();
+ dto.nestedPort = poco.nestedPort.Select(x => x.Id).ToList();
+ dto.nestedReference = poco.nestedReference.Select(x => x.Id).ToList();
+ dto.nestedRendering = poco.nestedRendering.Select(x => x.Id).ToList();
+ dto.nestedRequirement = poco.nestedRequirement.Select(x => x.Id).ToList();
+ dto.nestedState = poco.nestedState.Select(x => x.Id).ToList();
+ dto.nestedTransition = poco.nestedTransition.Select(x => x.Id).ToList();
+ dto.nestedUsage = poco.nestedUsage.Select(x => x.Id).ToList();
+ dto.nestedUseCase = poco.nestedUseCase.Select(x => x.Id).ToList();
+ dto.nestedVerificationCase = poco.nestedVerificationCase.Select(x => x.Id).ToList();
+ dto.nestedView = poco.nestedView.Select(x => x.Id).ToList();
+ dto.nestedViewpoint = poco.nestedViewpoint.Select(x => x.Id).ToList();
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedCrossSubsetting = poco.ownedCrossSubsetting?.Id;
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureChaining = poco.ownedFeatureChaining.Select(x => x.Id).ToList();
+ dto.ownedFeatureInverting = poco.ownedFeatureInverting.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedRedefinition = poco.ownedRedefinition.Select(x => x.Id).ToList();
+ dto.ownedReferenceSubsetting = poco.ownedReferenceSubsetting?.Id;
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedSubsetting = poco.ownedSubsetting.Select(x => x.Id).ToList();
+ dto.ownedTypeFeaturing = poco.ownedTypeFeaturing.Select(x => x.Id).ToList();
+ dto.ownedTyping = poco.ownedTyping.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningDefinition = poco.owningDefinition?.Id;
+ dto.owningFeatureMembership = poco.owningFeatureMembership?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType?.Id;
+ dto.owningUsage = poco.owningUsage?.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.relatedFeature = poco.relatedFeature.Select(x => x.Id).ToList();
+ dto.shortName = poco.shortName;
+ dto.sourceFeature = poco.sourceFeature?.Id;
+ dto.targetFeature = poco.targetFeature.Select(x => x.Id).ToList();
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ dto.usage = poco.usage.Select(x => x.Id).ToList();
+ dto.variant = poco.variant.Select(x => x.Id).ToList();
+ dto.variantMembership = poco.variantMembership.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/SuccessionExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/SuccessionExtensions.cs
index 9ff77a510..4c211fe2d 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/SuccessionExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/SuccessionExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Kernel.Connectors;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class SuccessionExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -124,17 +124,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -163,7 +163,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.Connectors.Su
{
if (cache.TryGetValue(identifier, out lazyPoco))
{
- poco.OwnedRelatedElement.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value);
+ poco.OwnedRelatedElement.Add(lazyPoco.Value);
}
}
@@ -179,7 +179,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.Connectors.Su
if (dto.OwningRelatedElement.HasValue && cache.TryGetValue(dto.OwningRelatedElement.Value, out lazyPoco))
{
- poco.OwningRelatedElement = (Core.POCO.Root.Elements.IElement)lazyPoco.Value;
+ poco.OwningRelatedElement = lazyPoco.Value;
}
else
{
@@ -203,10 +203,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.Connectors.Su
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Kernel.Connectors.Succession ToDto(this Core.POCO.Kernel.Connectors.Succession poco)
+ public static Core.DTO.Kernel.Connectors.Succession ToDto(this Core.POCO.Kernel.Connectors.Succession poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Kernel.Connectors.Succession();
@@ -233,6 +236,69 @@ public static Core.DTO.Kernel.Connectors.Succession ToDto(this Core.POCO.Kernel.
dto.OwningRelatedElement = poco.OwningRelatedElement?.Id;
dto.OwningRelationship = poco.OwningRelationship?.Id;
+ if (includeDerivedProperties)
+ {
+ dto.association = poco.association.Select(x => x.Id).ToList();
+ dto.chainingFeature = poco.chainingFeature.Select(x => x.Id).ToList();
+ dto.connectorEnd = poco.connectorEnd.Select(x => x.Id).ToList();
+ dto.crossFeature = poco.crossFeature?.Id;
+ dto.defaultFeaturingType = poco.defaultFeaturingType?.Id;
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.directedFeature = poco.directedFeature.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endOwningType = poco.endOwningType?.Id;
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.featureTarget = poco.featureTarget.Id;
+ dto.featuringType = poco.featuringType.Select(x => x.Id).ToList();
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedCrossSubsetting = poco.ownedCrossSubsetting?.Id;
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureChaining = poco.ownedFeatureChaining.Select(x => x.Id).ToList();
+ dto.ownedFeatureInverting = poco.ownedFeatureInverting.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedRedefinition = poco.ownedRedefinition.Select(x => x.Id).ToList();
+ dto.ownedReferenceSubsetting = poco.ownedReferenceSubsetting?.Id;
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedSubsetting = poco.ownedSubsetting.Select(x => x.Id).ToList();
+ dto.ownedTypeFeaturing = poco.ownedTypeFeaturing.Select(x => x.Id).ToList();
+ dto.ownedTyping = poco.ownedTyping.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningFeatureMembership = poco.owningFeatureMembership?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType?.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.relatedFeature = poco.relatedFeature.Select(x => x.Id).ToList();
+ dto.shortName = poco.shortName;
+ dto.sourceFeature = poco.sourceFeature?.Id;
+ dto.targetFeature = poco.targetFeature.Select(x => x.Id).ToList();
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/SuccessionFlowExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/SuccessionFlowExtensions.cs
index f7c0c3714..0590c9fa8 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/SuccessionFlowExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/SuccessionFlowExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Kernel.Interactions;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class SuccessionFlowExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -124,17 +124,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -163,7 +163,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.Interactions.
{
if (cache.TryGetValue(identifier, out lazyPoco))
{
- poco.OwnedRelatedElement.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value);
+ poco.OwnedRelatedElement.Add(lazyPoco.Value);
}
}
@@ -179,7 +179,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.Interactions.
if (dto.OwningRelatedElement.HasValue && cache.TryGetValue(dto.OwningRelatedElement.Value, out lazyPoco))
{
- poco.OwningRelatedElement = (Core.POCO.Root.Elements.IElement)lazyPoco.Value;
+ poco.OwningRelatedElement = lazyPoco.Value;
}
else
{
@@ -203,10 +203,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Kernel.Interactions.
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Kernel.Interactions.SuccessionFlow ToDto(this Core.POCO.Kernel.Interactions.SuccessionFlow poco)
+ public static Core.DTO.Kernel.Interactions.SuccessionFlow ToDto(this Core.POCO.Kernel.Interactions.SuccessionFlow poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Kernel.Interactions.SuccessionFlow();
@@ -233,6 +236,74 @@ public static Core.DTO.Kernel.Interactions.SuccessionFlow ToDto(this Core.POCO.K
dto.OwningRelatedElement = poco.OwningRelatedElement?.Id;
dto.OwningRelationship = poco.OwningRelationship?.Id;
+ if (includeDerivedProperties)
+ {
+ dto.chainingFeature = poco.chainingFeature.Select(x => x.Id).ToList();
+ dto.connectorEnd = poco.connectorEnd.Select(x => x.Id).ToList();
+ dto.crossFeature = poco.crossFeature?.Id;
+ dto.defaultFeaturingType = poco.defaultFeaturingType?.Id;
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endOwningType = poco.endOwningType?.Id;
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.featureTarget = poco.featureTarget.Id;
+ dto.featuringType = poco.featuringType.Select(x => x.Id).ToList();
+ dto.flowEnd = poco.flowEnd.Select(x => x.Id).ToList();
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.interaction = poco.interaction.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedCrossSubsetting = poco.ownedCrossSubsetting?.Id;
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureChaining = poco.ownedFeatureChaining.Select(x => x.Id).ToList();
+ dto.ownedFeatureInverting = poco.ownedFeatureInverting.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedRedefinition = poco.ownedRedefinition.Select(x => x.Id).ToList();
+ dto.ownedReferenceSubsetting = poco.ownedReferenceSubsetting?.Id;
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedSubsetting = poco.ownedSubsetting.Select(x => x.Id).ToList();
+ dto.ownedTypeFeaturing = poco.ownedTypeFeaturing.Select(x => x.Id).ToList();
+ dto.ownedTyping = poco.ownedTyping.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningFeatureMembership = poco.owningFeatureMembership?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType?.Id;
+ dto.parameter = poco.parameter.Select(x => x.Id).ToList();
+ dto.payloadFeature = poco.payloadFeature?.Id;
+ dto.payloadType = poco.payloadType.Select(x => x.Id).ToList();
+ dto.qualifiedName = poco.qualifiedName;
+ dto.relatedFeature = poco.relatedFeature.Select(x => x.Id).ToList();
+ dto.shortName = poco.shortName;
+ dto.sourceFeature = poco.sourceFeature?.Id;
+ dto.sourceOutputFeature = poco.sourceOutputFeature?.Id;
+ dto.targetFeature = poco.targetFeature.Select(x => x.Id).ToList();
+ dto.targetInputFeature = poco.targetInputFeature?.Id;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/SuccessionFlowUsageExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/SuccessionFlowUsageExtensions.cs
index 75f18fb6d..9ef4f03a7 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/SuccessionFlowUsageExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/SuccessionFlowUsageExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Systems.Flows;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class SuccessionFlowUsageExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -128,17 +128,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -167,7 +167,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Flows.Succes
{
if (cache.TryGetValue(identifier, out lazyPoco))
{
- poco.OwnedRelatedElement.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value);
+ poco.OwnedRelatedElement.Add(lazyPoco.Value);
}
}
@@ -183,7 +183,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Flows.Succes
if (dto.OwningRelatedElement.HasValue && cache.TryGetValue(dto.OwningRelatedElement.Value, out lazyPoco))
{
- poco.OwningRelatedElement = (Core.POCO.Root.Elements.IElement)lazyPoco.Value;
+ poco.OwningRelatedElement = lazyPoco.Value;
}
else
{
@@ -207,10 +207,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Flows.Succes
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Systems.Flows.SuccessionFlowUsage ToDto(this Core.POCO.Systems.Flows.SuccessionFlowUsage poco)
+ public static Core.DTO.Systems.Flows.SuccessionFlowUsage ToDto(this Core.POCO.Systems.Flows.SuccessionFlowUsage poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Systems.Flows.SuccessionFlowUsage();
@@ -239,6 +242,110 @@ public static Core.DTO.Systems.Flows.SuccessionFlowUsage ToDto(this Core.POCO.Sy
dto.OwningRelationship = poco.OwningRelationship?.Id;
dto.PortionKind = poco.PortionKind;
+ if (includeDerivedProperties)
+ {
+ dto.chainingFeature = poco.chainingFeature.Select(x => x.Id).ToList();
+ dto.connectorEnd = poco.connectorEnd.Select(x => x.Id).ToList();
+ dto.crossFeature = poco.crossFeature?.Id;
+ dto.defaultFeaturingType = poco.defaultFeaturingType?.Id;
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.directedUsage = poco.directedUsage.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endOwningType = poco.endOwningType?.Id;
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.featureTarget = poco.featureTarget.Id;
+ dto.featuringType = poco.featuringType.Select(x => x.Id).ToList();
+ dto.flowDefinition = poco.flowDefinition.Select(x => x.Id).ToList();
+ dto.flowEnd = poco.flowEnd.Select(x => x.Id).ToList();
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.individualDefinition = poco.individualDefinition?.Id;
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.isReference = poco.isReference;
+ dto.mayTimeVary = poco.mayTimeVary;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.nestedAction = poco.nestedAction.Select(x => x.Id).ToList();
+ dto.nestedAllocation = poco.nestedAllocation.Select(x => x.Id).ToList();
+ dto.nestedAnalysisCase = poco.nestedAnalysisCase.Select(x => x.Id).ToList();
+ dto.nestedAttribute = poco.nestedAttribute.Select(x => x.Id).ToList();
+ dto.nestedCalculation = poco.nestedCalculation.Select(x => x.Id).ToList();
+ dto.nestedCase = poco.nestedCase.Select(x => x.Id).ToList();
+ dto.nestedConcern = poco.nestedConcern.Select(x => x.Id).ToList();
+ dto.nestedConnection = poco.nestedConnection.Select(x => x.Id).ToList();
+ dto.nestedConstraint = poco.nestedConstraint.Select(x => x.Id).ToList();
+ dto.nestedEnumeration = poco.nestedEnumeration.Select(x => x.Id).ToList();
+ dto.nestedFlow = poco.nestedFlow.Select(x => x.Id).ToList();
+ dto.nestedInterface = poco.nestedInterface.Select(x => x.Id).ToList();
+ dto.nestedItem = poco.nestedItem.Select(x => x.Id).ToList();
+ dto.nestedMetadata = poco.nestedMetadata.Select(x => x.Id).ToList();
+ dto.nestedOccurrence = poco.nestedOccurrence.Select(x => x.Id).ToList();
+ dto.nestedPart = poco.nestedPart.Select(x => x.Id).ToList();
+ dto.nestedPort = poco.nestedPort.Select(x => x.Id).ToList();
+ dto.nestedReference = poco.nestedReference.Select(x => x.Id).ToList();
+ dto.nestedRendering = poco.nestedRendering.Select(x => x.Id).ToList();
+ dto.nestedRequirement = poco.nestedRequirement.Select(x => x.Id).ToList();
+ dto.nestedState = poco.nestedState.Select(x => x.Id).ToList();
+ dto.nestedTransition = poco.nestedTransition.Select(x => x.Id).ToList();
+ dto.nestedUsage = poco.nestedUsage.Select(x => x.Id).ToList();
+ dto.nestedUseCase = poco.nestedUseCase.Select(x => x.Id).ToList();
+ dto.nestedVerificationCase = poco.nestedVerificationCase.Select(x => x.Id).ToList();
+ dto.nestedView = poco.nestedView.Select(x => x.Id).ToList();
+ dto.nestedViewpoint = poco.nestedViewpoint.Select(x => x.Id).ToList();
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedCrossSubsetting = poco.ownedCrossSubsetting?.Id;
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureChaining = poco.ownedFeatureChaining.Select(x => x.Id).ToList();
+ dto.ownedFeatureInverting = poco.ownedFeatureInverting.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedRedefinition = poco.ownedRedefinition.Select(x => x.Id).ToList();
+ dto.ownedReferenceSubsetting = poco.ownedReferenceSubsetting?.Id;
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedSubsetting = poco.ownedSubsetting.Select(x => x.Id).ToList();
+ dto.ownedTypeFeaturing = poco.ownedTypeFeaturing.Select(x => x.Id).ToList();
+ dto.ownedTyping = poco.ownedTyping.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningDefinition = poco.owningDefinition?.Id;
+ dto.owningFeatureMembership = poco.owningFeatureMembership?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType?.Id;
+ dto.owningUsage = poco.owningUsage?.Id;
+ dto.parameter = poco.parameter.Select(x => x.Id).ToList();
+ dto.payloadFeature = poco.payloadFeature?.Id;
+ dto.payloadType = poco.payloadType.Select(x => x.Id).ToList();
+ dto.qualifiedName = poco.qualifiedName;
+ dto.relatedFeature = poco.relatedFeature.Select(x => x.Id).ToList();
+ dto.shortName = poco.shortName;
+ dto.sourceFeature = poco.sourceFeature?.Id;
+ dto.sourceOutputFeature = poco.sourceOutputFeature?.Id;
+ dto.targetFeature = poco.targetFeature.Select(x => x.Id).ToList();
+ dto.targetInputFeature = poco.targetInputFeature?.Id;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ dto.usage = poco.usage.Select(x => x.Id).ToList();
+ dto.variant = poco.variant.Select(x => x.Id).ToList();
+ dto.variantMembership = poco.variantMembership.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/TerminateActionUsageExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/TerminateActionUsageExtensions.cs
index ca198ee03..97a1809cd 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/TerminateActionUsageExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/TerminateActionUsageExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Systems.Actions;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class TerminateActionUsageExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -117,17 +117,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -177,10 +177,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Actions.Term
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Systems.Actions.TerminateActionUsage ToDto(this Core.POCO.Systems.Actions.TerminateActionUsage poco)
+ public static Core.DTO.Systems.Actions.TerminateActionUsage ToDto(this Core.POCO.Systems.Actions.TerminateActionUsage poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Systems.Actions.TerminateActionUsage();
@@ -206,6 +209,102 @@ public static Core.DTO.Systems.Actions.TerminateActionUsage ToDto(this Core.POCO
dto.OwningRelationship = poco.OwningRelationship?.Id;
dto.PortionKind = poco.PortionKind;
+ if (includeDerivedProperties)
+ {
+ dto.actionDefinition = poco.actionDefinition.Select(x => x.Id).ToList();
+ dto.chainingFeature = poco.chainingFeature.Select(x => x.Id).ToList();
+ dto.crossFeature = poco.crossFeature?.Id;
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.directedUsage = poco.directedUsage.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.endFeature = poco.endFeature.Select(x => x.Id).ToList();
+ dto.endOwningType = poco.endOwningType?.Id;
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.featureTarget = poco.featureTarget.Id;
+ dto.featuringType = poco.featuringType.Select(x => x.Id).ToList();
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.individualDefinition = poco.individualDefinition?.Id;
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.isReference = poco.isReference;
+ dto.mayTimeVary = poco.mayTimeVary;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.nestedAction = poco.nestedAction.Select(x => x.Id).ToList();
+ dto.nestedAllocation = poco.nestedAllocation.Select(x => x.Id).ToList();
+ dto.nestedAnalysisCase = poco.nestedAnalysisCase.Select(x => x.Id).ToList();
+ dto.nestedAttribute = poco.nestedAttribute.Select(x => x.Id).ToList();
+ dto.nestedCalculation = poco.nestedCalculation.Select(x => x.Id).ToList();
+ dto.nestedCase = poco.nestedCase.Select(x => x.Id).ToList();
+ dto.nestedConcern = poco.nestedConcern.Select(x => x.Id).ToList();
+ dto.nestedConnection = poco.nestedConnection.Select(x => x.Id).ToList();
+ dto.nestedConstraint = poco.nestedConstraint.Select(x => x.Id).ToList();
+ dto.nestedEnumeration = poco.nestedEnumeration.Select(x => x.Id).ToList();
+ dto.nestedFlow = poco.nestedFlow.Select(x => x.Id).ToList();
+ dto.nestedInterface = poco.nestedInterface.Select(x => x.Id).ToList();
+ dto.nestedItem = poco.nestedItem.Select(x => x.Id).ToList();
+ dto.nestedMetadata = poco.nestedMetadata.Select(x => x.Id).ToList();
+ dto.nestedOccurrence = poco.nestedOccurrence.Select(x => x.Id).ToList();
+ dto.nestedPart = poco.nestedPart.Select(x => x.Id).ToList();
+ dto.nestedPort = poco.nestedPort.Select(x => x.Id).ToList();
+ dto.nestedReference = poco.nestedReference.Select(x => x.Id).ToList();
+ dto.nestedRendering = poco.nestedRendering.Select(x => x.Id).ToList();
+ dto.nestedRequirement = poco.nestedRequirement.Select(x => x.Id).ToList();
+ dto.nestedState = poco.nestedState.Select(x => x.Id).ToList();
+ dto.nestedTransition = poco.nestedTransition.Select(x => x.Id).ToList();
+ dto.nestedUsage = poco.nestedUsage.Select(x => x.Id).ToList();
+ dto.nestedUseCase = poco.nestedUseCase.Select(x => x.Id).ToList();
+ dto.nestedVerificationCase = poco.nestedVerificationCase.Select(x => x.Id).ToList();
+ dto.nestedView = poco.nestedView.Select(x => x.Id).ToList();
+ dto.nestedViewpoint = poco.nestedViewpoint.Select(x => x.Id).ToList();
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedCrossSubsetting = poco.ownedCrossSubsetting?.Id;
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureChaining = poco.ownedFeatureChaining.Select(x => x.Id).ToList();
+ dto.ownedFeatureInverting = poco.ownedFeatureInverting.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedRedefinition = poco.ownedRedefinition.Select(x => x.Id).ToList();
+ dto.ownedReferenceSubsetting = poco.ownedReferenceSubsetting?.Id;
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedSubsetting = poco.ownedSubsetting.Select(x => x.Id).ToList();
+ dto.ownedTypeFeaturing = poco.ownedTypeFeaturing.Select(x => x.Id).ToList();
+ dto.ownedTyping = poco.ownedTyping.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningDefinition = poco.owningDefinition?.Id;
+ dto.owningFeatureMembership = poco.owningFeatureMembership?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType?.Id;
+ dto.owningUsage = poco.owningUsage?.Id;
+ dto.parameter = poco.parameter.Select(x => x.Id).ToList();
+ dto.qualifiedName = poco.qualifiedName;
+ dto.shortName = poco.shortName;
+ dto.terminatedOccurrenceArgument = poco.terminatedOccurrenceArgument?.Id;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ dto.usage = poco.usage.Select(x => x.Id).ToList();
+ dto.variant = poco.variant.Select(x => x.Id).ToList();
+ dto.variantMembership = poco.variantMembership.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/TextualRepresentationExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/TextualRepresentationExtensions.cs
index c3a2b0ab2..a978e88cc 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/TextualRepresentationExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/TextualRepresentationExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Root.Annotations;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class TextualRepresentationExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -95,17 +95,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -155,10 +155,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Root.Annotations.Tex
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Root.Annotations.TextualRepresentation ToDto(this Core.POCO.Root.Annotations.TextualRepresentation poco)
+ public static Core.DTO.Root.Annotations.TextualRepresentation ToDto(this Core.POCO.Root.Annotations.TextualRepresentation poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Root.Annotations.TextualRepresentation();
@@ -173,6 +176,25 @@ public static Core.DTO.Root.Annotations.TextualRepresentation ToDto(this Core.PO
dto.OwnedRelationship = poco.OwnedRelationship.Select(x => x.Id).ToList();
dto.OwningRelationship = poco.OwningRelationship?.Id;
+ if (includeDerivedProperties)
+ {
+ dto.annotation = poco.annotation.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.name = poco.name;
+ dto.ownedAnnotatingRelationship = poco.ownedAnnotatingRelationship.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningAnnotatingRelationship = poco.owningAnnotatingRelationship?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.representedElement = poco.representedElement.Id;
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/TransitionFeatureMembershipExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/TransitionFeatureMembershipExtensions.cs
index 5927a7e27..b27cdf842 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/TransitionFeatureMembershipExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/TransitionFeatureMembershipExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Systems.States;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class TransitionFeatureMembershipExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -106,17 +106,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -145,7 +145,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.States.Trans
{
if (cache.TryGetValue(identifier, out lazyPoco))
{
- poco.OwnedRelatedElement.Add((Core.POCO.Root.Elements.IElement)lazyPoco.Value);
+ poco.OwnedRelatedElement.Add(lazyPoco.Value);
}
}
@@ -161,7 +161,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.States.Trans
if (dto.OwningRelatedElement.HasValue && cache.TryGetValue(dto.OwningRelatedElement.Value, out lazyPoco))
{
- poco.OwningRelatedElement = (Core.POCO.Root.Elements.IElement)lazyPoco.Value;
+ poco.OwningRelatedElement = lazyPoco.Value;
}
else
{
@@ -185,10 +185,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.States.Trans
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Systems.States.TransitionFeatureMembership ToDto(this Core.POCO.Systems.States.TransitionFeatureMembership poco)
+ public static Core.DTO.Systems.States.TransitionFeatureMembership ToDto(this Core.POCO.Systems.States.TransitionFeatureMembership poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Systems.States.TransitionFeatureMembership();
@@ -206,6 +209,27 @@ public static Core.DTO.Systems.States.TransitionFeatureMembership ToDto(this Cor
dto.OwningRelationship = poco.OwningRelationship?.Id;
dto.Visibility = poco.Visibility;
+ if (includeDerivedProperties)
+ {
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.name = poco.name;
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedMemberElementId = poco.ownedMemberElementId;
+ dto.ownedMemberName = poco.ownedMemberName;
+ dto.ownedMemberShortName = poco.ownedMemberShortName;
+ dto.owner = poco.owner?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType.Id;
+ dto.qualifiedName = poco.qualifiedName;
+ dto.relatedElement = poco.relatedElement.Select(x => x.Id).ToList();
+ dto.shortName = poco.shortName;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.transitionFeature = poco.transitionFeature.Id;
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/TransitionUsageExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/TransitionUsageExtensions.cs
index 982d08634..6209105d8 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/TransitionUsageExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/TransitionUsageExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Systems.States;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class TransitionUsageExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -117,17 +117,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///
- /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
+ /// Updates the Reference properties of the using the data (identifiers) encapsulated in the DTO
/// and the provided cache to find the referenced object.
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
- /// The that contains the
+ /// The that contains the
/// s that are know and cached.
///
///
@@ -177,10 +177,13 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.States.Trans
///
/// The subject from which a DTO is to be created
///
+ ///
+ /// Asserts that derived properties should also be mapped during the creation of the
+ ///
///
/// An instance of
///
- public static Core.DTO.Systems.States.TransitionUsage ToDto(this Core.POCO.Systems.States.TransitionUsage poco)
+ public static Core.DTO.Systems.States.TransitionUsage ToDto(this Core.POCO.Systems.States.TransitionUsage poco, bool includeDerivedProperties = false)
{
var dto = new Core.DTO.Systems.States.TransitionUsage();
@@ -206,6 +209,107 @@ public static Core.DTO.Systems.States.TransitionUsage ToDto(this Core.POCO.Syste
dto.OwningRelationship = poco.OwningRelationship?.Id;
dto.PortionKind = poco.PortionKind;
+ if (includeDerivedProperties)
+ {
+ dto.actionDefinition = poco.actionDefinition.Select(x => x.Id).ToList();
+ dto.chainingFeature = poco.chainingFeature.Select(x => x.Id).ToList();
+ dto.crossFeature = poco.crossFeature?.Id;
+ dto.differencingType = poco.differencingType.Select(x => x.Id).ToList();
+ dto.directedUsage = poco.directedUsage.Select(x => x.Id).ToList();
+ dto.documentation = poco.documentation.Select(x => x.Id).ToList();
+ dto.effectAction = poco.effectAction.Select(x => x.Id).ToList();
+ dto.endFeature = poco.endFeature.Select(x => x.Id).ToList();
+ dto.endOwningType = poco.endOwningType?.Id;
+ dto.feature = poco.feature.Select(x => x.Id).ToList();
+ dto.featureMembership = poco.featureMembership.Select(x => x.Id).ToList();
+ dto.featureTarget = poco.featureTarget.Id;
+ dto.featuringType = poco.featuringType.Select(x => x.Id).ToList();
+ dto.guardExpression = poco.guardExpression.Select(x => x.Id).ToList();
+ dto.importedMembership = poco.importedMembership.Select(x => x.Id).ToList();
+ dto.individualDefinition = poco.individualDefinition?.Id;
+ dto.inheritedFeature = poco.inheritedFeature.Select(x => x.Id).ToList();
+ dto.inheritedMembership = poco.inheritedMembership.Select(x => x.Id).ToList();
+ dto.input = poco.input.Select(x => x.Id).ToList();
+ dto.intersectingType = poco.intersectingType.Select(x => x.Id).ToList();
+ dto.isConjugated = poco.isConjugated;
+ dto.isLibraryElement = poco.isLibraryElement;
+ dto.isReference = poco.isReference;
+ dto.mayTimeVary = poco.mayTimeVary;
+ dto.member = poco.member.Select(x => x.Id).ToList();
+ dto.membership = poco.membership.Select(x => x.Id).ToList();
+ dto.multiplicity = poco.multiplicity?.Id;
+ dto.name = poco.name;
+ dto.nestedAction = poco.nestedAction.Select(x => x.Id).ToList();
+ dto.nestedAllocation = poco.nestedAllocation.Select(x => x.Id).ToList();
+ dto.nestedAnalysisCase = poco.nestedAnalysisCase.Select(x => x.Id).ToList();
+ dto.nestedAttribute = poco.nestedAttribute.Select(x => x.Id).ToList();
+ dto.nestedCalculation = poco.nestedCalculation.Select(x => x.Id).ToList();
+ dto.nestedCase = poco.nestedCase.Select(x => x.Id).ToList();
+ dto.nestedConcern = poco.nestedConcern.Select(x => x.Id).ToList();
+ dto.nestedConnection = poco.nestedConnection.Select(x => x.Id).ToList();
+ dto.nestedConstraint = poco.nestedConstraint.Select(x => x.Id).ToList();
+ dto.nestedEnumeration = poco.nestedEnumeration.Select(x => x.Id).ToList();
+ dto.nestedFlow = poco.nestedFlow.Select(x => x.Id).ToList();
+ dto.nestedInterface = poco.nestedInterface.Select(x => x.Id).ToList();
+ dto.nestedItem = poco.nestedItem.Select(x => x.Id).ToList();
+ dto.nestedMetadata = poco.nestedMetadata.Select(x => x.Id).ToList();
+ dto.nestedOccurrence = poco.nestedOccurrence.Select(x => x.Id).ToList();
+ dto.nestedPart = poco.nestedPart.Select(x => x.Id).ToList();
+ dto.nestedPort = poco.nestedPort.Select(x => x.Id).ToList();
+ dto.nestedReference = poco.nestedReference.Select(x => x.Id).ToList();
+ dto.nestedRendering = poco.nestedRendering.Select(x => x.Id).ToList();
+ dto.nestedRequirement = poco.nestedRequirement.Select(x => x.Id).ToList();
+ dto.nestedState = poco.nestedState.Select(x => x.Id).ToList();
+ dto.nestedTransition = poco.nestedTransition.Select(x => x.Id).ToList();
+ dto.nestedUsage = poco.nestedUsage.Select(x => x.Id).ToList();
+ dto.nestedUseCase = poco.nestedUseCase.Select(x => x.Id).ToList();
+ dto.nestedVerificationCase = poco.nestedVerificationCase.Select(x => x.Id).ToList();
+ dto.nestedView = poco.nestedView.Select(x => x.Id).ToList();
+ dto.nestedViewpoint = poco.nestedViewpoint.Select(x => x.Id).ToList();
+ dto.output = poco.output.Select(x => x.Id).ToList();
+ dto.ownedAnnotation = poco.ownedAnnotation.Select(x => x.Id).ToList();
+ dto.ownedConjugator = poco.ownedConjugator?.Id;
+ dto.ownedCrossSubsetting = poco.ownedCrossSubsetting?.Id;
+ dto.ownedDifferencing = poco.ownedDifferencing.Select(x => x.Id).ToList();
+ dto.ownedDisjoining = poco.ownedDisjoining.Select(x => x.Id).ToList();
+ dto.ownedElement = poco.ownedElement.Select(x => x.Id).ToList();
+ dto.ownedEndFeature = poco.ownedEndFeature.Select(x => x.Id).ToList();
+ dto.ownedFeature = poco.ownedFeature.Select(x => x.Id).ToList();
+ dto.ownedFeatureChaining = poco.ownedFeatureChaining.Select(x => x.Id).ToList();
+ dto.ownedFeatureInverting = poco.ownedFeatureInverting.Select(x => x.Id).ToList();
+ dto.ownedFeatureMembership = poco.ownedFeatureMembership.Select(x => x.Id).ToList();
+ dto.ownedImport = poco.ownedImport.Select(x => x.Id).ToList();
+ dto.ownedIntersecting = poco.ownedIntersecting.Select(x => x.Id).ToList();
+ dto.ownedMember = poco.ownedMember.Select(x => x.Id).ToList();
+ dto.ownedMembership = poco.ownedMembership.Select(x => x.Id).ToList();
+ dto.ownedRedefinition = poco.ownedRedefinition.Select(x => x.Id).ToList();
+ dto.ownedReferenceSubsetting = poco.ownedReferenceSubsetting?.Id;
+ dto.ownedSpecialization = poco.ownedSpecialization.Select(x => x.Id).ToList();
+ dto.ownedSubsetting = poco.ownedSubsetting.Select(x => x.Id).ToList();
+ dto.ownedTypeFeaturing = poco.ownedTypeFeaturing.Select(x => x.Id).ToList();
+ dto.ownedTyping = poco.ownedTyping.Select(x => x.Id).ToList();
+ dto.ownedUnioning = poco.ownedUnioning.Select(x => x.Id).ToList();
+ dto.owner = poco.owner?.Id;
+ dto.owningDefinition = poco.owningDefinition?.Id;
+ dto.owningFeatureMembership = poco.owningFeatureMembership?.Id;
+ dto.owningMembership = poco.owningMembership?.Id;
+ dto.owningNamespace = poco.owningNamespace?.Id;
+ dto.owningType = poco.owningType?.Id;
+ dto.owningUsage = poco.owningUsage?.Id;
+ dto.parameter = poco.parameter.Select(x => x.Id).ToList();
+ dto.qualifiedName = poco.qualifiedName;
+ dto.shortName = poco.shortName;
+ dto.source = poco.source.Id;
+ dto.succession = poco.succession.Id;
+ dto.target = poco.target.Id;
+ dto.textualRepresentation = poco.textualRepresentation.Select(x => x.Id).ToList();
+ dto.triggerAction = poco.triggerAction.Select(x => x.Id).ToList();
+ dto.unioningType = poco.unioningType.Select(x => x.Id).ToList();
+ dto.usage = poco.usage.Select(x => x.Id).ToList();
+ dto.variant = poco.variant.Select(x => x.Id).ToList();
+ dto.variantMembership = poco.variantMembership.Select(x => x.Id).ToList();
+ }
+
return dto;
}
}
diff --git a/SysML2.NET.Dal/Core/AutoGenPocoExtension/TriggerInvocationExpressionExtensions.cs b/SysML2.NET.Dal/Core/AutoGenPocoExtension/TriggerInvocationExpressionExtensions.cs
index b34b53d08..695e4489d 100644
--- a/SysML2.NET.Dal/Core/AutoGenPocoExtension/TriggerInvocationExpressionExtensions.cs
+++ b/SysML2.NET.Dal/Core/AutoGenPocoExtension/TriggerInvocationExpressionExtensions.cs
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
using Core.POCO.Systems.Actions;
///
- /// A static class that provides extension methods for the class
+ /// A static class that provides extension methods for the class
///
public static class TriggerInvocationExpressionExtensions
{
///
- /// Updates the value properties of the by setting the value equal to that of the dto
+ /// Updates the value properties of the by setting the value equal to that of the dto
/// Removes deleted objects from the reference properties and returns the unique identifiers
/// of the objects that have been removed from contained properties
///
///
- /// The that is to be updated
+ /// The that is to be updated
///
///
- /// The DTO that is used to update the with
+ /// The DTO that is used to update the with
///
///
/// The unique identifiers of the objects that have been removed from contained properties
@@ -115,17 +115,17 @@ public static IEnumerable UpdateValueAndRemoveDeletedReferenceProperties(t
}
///