Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Features.Featur

if (cache.TryGetValue(dto.Type, out lazyPoco))
{
poco.Type = (Core.POCO.Core.Types.Type)lazyPoco.Value;
poco.Type = (Core.POCO.Core.Types.IType)lazyPoco.Value;
}
else
{
Expand All @@ -185,7 +185,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Features.Featur

if (cache.TryGetValue(dto.TypedFeature, out lazyPoco))
{
poco.TypedFeature = (Core.POCO.Core.Features.Feature)lazyPoco.Value;
poco.TypedFeature = (Core.POCO.Core.Features.IFeature)lazyPoco.Value;
}
else
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Features.Refere

if (cache.TryGetValue(dto.ReferencedFeature, out lazyPoco))
{
poco.ReferencedFeature = (Core.POCO.Core.Features.Feature)lazyPoco.Value;
poco.ReferencedFeature = (Core.POCO.Core.Features.IFeature)lazyPoco.Value;
}
else
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Classifiers.Sub

if (cache.TryGetValue(dto.Subclassifier, out lazyPoco))
{
poco.Subclassifier = (Core.POCO.Core.Classifiers.Classifier)lazyPoco.Value;
poco.Subclassifier = (Core.POCO.Core.Classifiers.IClassifier)lazyPoco.Value;
}
else
{
Expand All @@ -185,7 +185,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Classifiers.Sub

if (cache.TryGetValue(dto.Superclassifier, out lazyPoco))
{
poco.Superclassifier = (Core.POCO.Core.Classifiers.Classifier)lazyPoco.Value;
poco.Superclassifier = (Core.POCO.Core.Classifiers.IClassifier)lazyPoco.Value;
}
else
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,18 +154,14 @@ namespace SysML2.NET.Dal
{{#if property.IsComposite}}
{{#if (Property.IsOfTypeBaseElement property)}}
((IContained{{property.Owner.Name}})poco).{{ String.PascalCase property.Name}}.Add(lazyPoco.Value);
{{else if property.Type.IsAbstract }}
((IContained{{property.Owner.Name}})poco).{{ String.PascalCase property.Name}}.Add((Core.POCO.{{ #NamedElement.WriteFullyQualifiedNameSpace property.Type }}.I{{ property.Type.Name }})lazyPoco.Value);
{{else}}
((IContained{{property.Owner.Name}})poco).{{ String.PascalCase property.Name}}.Add((Core.POCO.{{ #NamedElement.WriteFullyQualifiedNameSpace property.Type }}.{{ property.Type.Name }})lazyPoco.Value);
((IContained{{property.Owner.Name}})poco).{{ String.PascalCase property.Name}}.Add((Core.POCO.{{ #NamedElement.WriteFullyQualifiedNameSpace property.Type }}.I{{ property.Type.Name }})lazyPoco.Value);
{{/if}}
{{else}}
{{#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);
poco.{{ String.PascalCase property.Name}}.Add((Core.POCO.{{ #NamedElement.WriteFullyQualifiedNameSpace property.Type }}.I{{ property.Type.Name }})lazyPoco.Value);
{{/if}}
{{/if}}
}
Expand All @@ -177,18 +173,14 @@ namespace SysML2.NET.Dal
{{#if property.Opposite.IsComposite}}
{{#if (Property.IsOfTypeBaseElement property)}}
((IContained{{property.Owner.Name}})poco).{{ String.PascalCase property.Name}} = lazyPoco.Value;
{{else if property.Type.IsAbstract }}
((IContained{{property.Owner.Name}})poco).{{ String.PascalCase property.Name}} = (Core.POCO.{{ #NamedElement.WriteFullyQualifiedNameSpace property.Type }}.I{{ property.Type.Name }})lazyPoco.Value;
{{else}}
((IContained{{property.Owner.Name}})poco).{{ String.PascalCase property.Name}} = (Core.POCO.{{ #NamedElement.WriteFullyQualifiedNameSpace property.Type }}.{{ property.Type.Name }})lazyPoco.Value;
((IContained{{property.Owner.Name}})poco).{{ String.PascalCase property.Name}} = (Core.POCO.{{ #NamedElement.WriteFullyQualifiedNameSpace property.Type }}.I{{ property.Type.Name }})lazyPoco.Value;
{{/if}}
{{else}}
{{#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;
poco.{{ String.PascalCase property.Name}} = (Core.POCO.{{ #NamedElement.WriteFullyQualifiedNameSpace property.Type }}.I{{ property.Type.Name }})lazyPoco.Value;
{{/if}}
{{/if}}
}
Expand All @@ -207,18 +199,14 @@ namespace SysML2.NET.Dal
{{#if property.Opposite.IsComposite}}
{{#if (Property.IsOfTypeBaseElement property)}}
((IContained{{property.Owner.Name}})poco).{{ String.PascalCase property.Name}} = lazyPoco.Value;
{{else if property.Type.IsAbstract }}
((IContained{{property.Owner.Name}})poco).{{ String.PascalCase property.Name}} = (Core.POCO.{{ #NamedElement.WriteFullyQualifiedNameSpace property.Type }}.I{{ property.Type.Name }})lazyPoco.Value;
{{else}}
((IContained{{property.Owner.Name}})poco).{{ String.PascalCase property.Name}} = (Core.POCO.{{ #NamedElement.WriteFullyQualifiedNameSpace property.Type }}.{{ property.Type.Name }})lazyPoco.Value;
((IContained{{property.Owner.Name}})poco).{{ String.PascalCase property.Name}} = (Core.POCO.{{ #NamedElement.WriteFullyQualifiedNameSpace property.Type }}.I{{ property.Type.Name }})lazyPoco.Value;
{{/if}}
{{else}}
{{#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;
poco.{{ String.PascalCase property.Name}} = (Core.POCO.{{ #NamedElement.WriteFullyQualifiedNameSpace property.Type }}.I{{ property.Type.Name }})lazyPoco.Value;
{{/if}}
{{/if}}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Ports.Conjug

if (cache.TryGetValue(dto.ConjugatedPortDefinition, out lazyPoco))
{
poco.ConjugatedPortDefinition = (Core.POCO.Systems.Ports.ConjugatedPortDefinition)lazyPoco.Value;
poco.ConjugatedPortDefinition = (Core.POCO.Systems.Ports.IConjugatedPortDefinition)lazyPoco.Value;
}
else
{
Expand Down Expand Up @@ -185,7 +185,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Ports.Conjug

if (cache.TryGetValue(dto.TypedFeature, out lazyPoco))
{
poco.TypedFeature = (Core.POCO.Core.Features.Feature)lazyPoco.Value;
poco.TypedFeature = (Core.POCO.Core.Features.IFeature)lazyPoco.Value;
}
else
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Types.Conjugati

if (cache.TryGetValue(dto.ConjugatedType, out lazyPoco))
{
poco.ConjugatedType = (Core.POCO.Core.Types.Type)lazyPoco.Value;
poco.ConjugatedType = (Core.POCO.Core.Types.IType)lazyPoco.Value;
}
else
{
Expand All @@ -147,7 +147,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Types.Conjugati

if (cache.TryGetValue(dto.OriginalType, out lazyPoco))
{
poco.OriginalType = (Core.POCO.Core.Types.Type)lazyPoco.Value;
poco.OriginalType = (Core.POCO.Core.Types.IType)lazyPoco.Value;
}
else
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Features.CrossS

if (cache.TryGetValue(dto.CrossedFeature, out lazyPoco))
{
poco.CrossedFeature = (Core.POCO.Core.Features.Feature)lazyPoco.Value;
poco.CrossedFeature = (Core.POCO.Core.Features.IFeature)lazyPoco.Value;
}
else
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Types.Differenc

if (cache.TryGetValue(dto.DifferencingType, out lazyPoco))
{
poco.DifferencingType = (Core.POCO.Core.Types.Type)lazyPoco.Value;
poco.DifferencingType = (Core.POCO.Core.Types.IType)lazyPoco.Value;
}
else
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Types.Disjoinin

if (cache.TryGetValue(dto.DisjoiningType, out lazyPoco))
{
poco.DisjoiningType = (Core.POCO.Core.Types.Type)lazyPoco.Value;
poco.DisjoiningType = (Core.POCO.Core.Types.IType)lazyPoco.Value;
}
else
{
Expand Down Expand Up @@ -185,7 +185,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Types.Disjoinin

if (cache.TryGetValue(dto.TypeDisjoined, out lazyPoco))
{
poco.TypeDisjoined = (Core.POCO.Core.Types.Type)lazyPoco.Value;
poco.TypeDisjoined = (Core.POCO.Core.Types.IType)lazyPoco.Value;
}
else
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Features.Featur

if (cache.TryGetValue(dto.ChainingFeature, out lazyPoco))
{
poco.ChainingFeature = (Core.POCO.Core.Features.Feature)lazyPoco.Value;
poco.ChainingFeature = (Core.POCO.Core.Features.IFeature)lazyPoco.Value;
}
else
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Features.Featur

if (cache.TryGetValue(dto.FeatureInverted, out lazyPoco))
{
poco.FeatureInverted = (Core.POCO.Core.Features.Feature)lazyPoco.Value;
poco.FeatureInverted = (Core.POCO.Core.Features.IFeature)lazyPoco.Value;
}
else
{
Expand All @@ -147,7 +147,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Features.Featur

if (cache.TryGetValue(dto.InvertingFeature, out lazyPoco))
{
poco.InvertingFeature = (Core.POCO.Core.Features.Feature)lazyPoco.Value;
poco.InvertingFeature = (Core.POCO.Core.Features.IFeature)lazyPoco.Value;
}
else
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Features.Featur

if (cache.TryGetValue(dto.Type, out lazyPoco))
{
poco.Type = (Core.POCO.Core.Types.Type)lazyPoco.Value;
poco.Type = (Core.POCO.Core.Types.IType)lazyPoco.Value;
}
else
{
Expand All @@ -185,7 +185,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Features.Featur

if (cache.TryGetValue(dto.TypedFeature, out lazyPoco))
{
poco.TypedFeature = (Core.POCO.Core.Features.Feature)lazyPoco.Value;
poco.TypedFeature = (Core.POCO.Core.Features.IFeature)lazyPoco.Value;
}
else
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Types.Intersect

if (cache.TryGetValue(dto.IntersectingType, out lazyPoco))
{
poco.IntersectingType = (Core.POCO.Core.Types.Type)lazyPoco.Value;
poco.IntersectingType = (Core.POCO.Core.Types.IType)lazyPoco.Value;
}
else
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Views.Member

if (cache.TryGetValue(dto.ImportedMembership, out lazyPoco))
{
poco.ImportedMembership = (Core.POCO.Root.Namespaces.Membership)lazyPoco.Value;
poco.ImportedMembership = (Core.POCO.Root.Namespaces.IMembership)lazyPoco.Value;
}
else
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Root.Namespaces.Memb

if (cache.TryGetValue(dto.ImportedMembership, out lazyPoco))
{
poco.ImportedMembership = (Core.POCO.Root.Namespaces.Membership)lazyPoco.Value;
poco.ImportedMembership = (Core.POCO.Root.Namespaces.IMembership)lazyPoco.Value;
}
else
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Views.Namesp

if (cache.TryGetValue(dto.ImportedNamespace, out lazyPoco))
{
poco.ImportedNamespace = (Core.POCO.Root.Namespaces.Namespace)lazyPoco.Value;
poco.ImportedNamespace = (Core.POCO.Root.Namespaces.INamespace)lazyPoco.Value;
}
else
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Root.Namespaces.Name

if (cache.TryGetValue(dto.ImportedNamespace, out lazyPoco))
{
poco.ImportedNamespace = (Core.POCO.Root.Namespaces.Namespace)lazyPoco.Value;
poco.ImportedNamespace = (Core.POCO.Root.Namespaces.INamespace)lazyPoco.Value;
}
else
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Ports.PortCo

if (cache.TryGetValue(dto.ConjugatedType, out lazyPoco))
{
poco.ConjugatedType = (Core.POCO.Core.Types.Type)lazyPoco.Value;
poco.ConjugatedType = (Core.POCO.Core.Types.IType)lazyPoco.Value;
}
else
{
Expand All @@ -147,7 +147,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Systems.Ports.PortCo

if (cache.TryGetValue(dto.OriginalPortDefinition, out lazyPoco))
{
poco.OriginalPortDefinition = (Core.POCO.Systems.Ports.PortDefinition)lazyPoco.Value;
poco.OriginalPortDefinition = (Core.POCO.Systems.Ports.IPortDefinition)lazyPoco.Value;
}
else
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Features.Redefi

if (cache.TryGetValue(dto.RedefinedFeature, out lazyPoco))
{
poco.RedefinedFeature = (Core.POCO.Core.Features.Feature)lazyPoco.Value;
poco.RedefinedFeature = (Core.POCO.Core.Features.IFeature)lazyPoco.Value;
}
else
{
Expand All @@ -185,7 +185,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Features.Redefi

if (cache.TryGetValue(dto.RedefiningFeature, out lazyPoco))
{
poco.RedefiningFeature = (Core.POCO.Core.Features.Feature)lazyPoco.Value;
poco.RedefiningFeature = (Core.POCO.Core.Features.IFeature)lazyPoco.Value;
}
else
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Features.Refere

if (cache.TryGetValue(dto.ReferencedFeature, out lazyPoco))
{
poco.ReferencedFeature = (Core.POCO.Core.Features.Feature)lazyPoco.Value;
poco.ReferencedFeature = (Core.POCO.Core.Features.IFeature)lazyPoco.Value;
}
else
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Types.Specializ

if (cache.TryGetValue(dto.General, out lazyPoco))
{
poco.General = (Core.POCO.Core.Types.Type)lazyPoco.Value;
poco.General = (Core.POCO.Core.Types.IType)lazyPoco.Value;
}
else
{
Expand Down Expand Up @@ -185,7 +185,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Types.Specializ

if (cache.TryGetValue(dto.Specific, out lazyPoco))
{
poco.Specific = (Core.POCO.Core.Types.Type)lazyPoco.Value;
poco.Specific = (Core.POCO.Core.Types.IType)lazyPoco.Value;
}
else
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Classifiers.Sub

if (cache.TryGetValue(dto.Subclassifier, out lazyPoco))
{
poco.Subclassifier = (Core.POCO.Core.Classifiers.Classifier)lazyPoco.Value;
poco.Subclassifier = (Core.POCO.Core.Classifiers.IClassifier)lazyPoco.Value;
}
else
{
Expand All @@ -185,7 +185,7 @@ public static void UpdateReferenceProperties(this Core.POCO.Core.Classifiers.Sub

if (cache.TryGetValue(dto.Superclassifier, out lazyPoco))
{
poco.Superclassifier = (Core.POCO.Core.Classifiers.Classifier)lazyPoco.Value;
poco.Superclassifier = (Core.POCO.Core.Classifiers.IClassifier)lazyPoco.Value;
}
else
{
Expand Down
Loading
Loading