Skip to content

Commit

Permalink
Removed relocated code from mustache template.
Browse files Browse the repository at this point in the history
  • Loading branch information
gmcelhanon committed Nov 25, 2024
1 parent c0c73f4 commit 55153eb
Showing 1 changed file with 0 additions and 49 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ namespace {{AggregateNamespace}}
}
{{/NonParentProperties}}
{{/PrimaryKey}}
// -------------------------------------------------------------

{{#PrimaryKey}}
public virtual bool IsFullyDefined()
Expand Down Expand Up @@ -586,55 +585,7 @@ namespace {{AggregateNamespace}}
{{/ExtendableConcreteBase}}
{{/IsExtendable}}
// -------------------------------------------------------------
/*
// =============================================================
// Reference Data
// -------------------------------------------------------------
{{#AggregateReferences}}
[IgnoreMember]
public virtual {{ReferenceAggregateRelativeNamespace}}.{{ReferenceDataClassName }} {{ReferenceDataPropertyName}} { get; set; }

[Key({{#MessagePackIndexer}}{{NextKey}}{{/MessagePackIndexer}})]
public virtual {{ReferenceAggregateRelativeNamespace}}.{{ReferenceDataClassName}} {{SerializedReferenceDataPropertyName}} { get => {{SerializedReferenceDataFieldName}}; set { if (value != null) {{SerializedReferenceDataFieldName}} = value; } }
private {{ReferenceAggregateRelativeNamespace}}.{{ReferenceDataClassName}} {{SerializedReferenceDataFieldName}};

{{#MappedReferenceDataHasDiscriminator}}
/// <summary>
/// Read-only property that allows the {{ReferenceAssociationName}} discriminator value to be mapped to the resource reference.
/// </summary>
string {{NamespacePrefix}}I{{ClassName}}.{{ReferenceAssociationName}}Discriminator
{
get { return ({{ReferenceDataPropertyName}} ?? {{SerializedReferenceDataPropertyName}})?.Discriminator; }
set { }
}

{{/MappedReferenceDataHasDiscriminator}}
/// <summary>
/// Read-only property that allows the {{ReferenceAssociationName}} resource identifier value to be mapped to the resource reference.
/// </summary>
Guid? {{NamespacePrefix}}I{{ClassName}}.{{ReferenceAssociationName}}ResourceId
{
{{#PotentiallyLogical}}
get
{
if ({{ReferenceDataPropertyName}}?.GetType().Name == "{{ReferenceDataPropertyName}}Proxy")
{
{{ReferenceDataPropertyName}} = null;
return null;
}

return ({{ReferenceDataPropertyName}} ?? {{SerializedReferenceDataPropertyName}})?.Id;
}
{{/PotentiallyLogical}}
{{^PotentiallyLogical}}
get { return ({{ReferenceDataPropertyName}} ?? {{SerializedReferenceDataPropertyName}})?.Id; }
{{/PotentiallyLogical}}
set { }
}

{{/AggregateReferences}}
// -------------------------------------------------------------
*/
//=============================================================
// Collections
// -------------------------------------------------------------
Expand Down

0 comments on commit 55153eb

Please sign in to comment.