From 55153eb982d0ceff8d8670c904a9c975b895b1ee Mon Sep 17 00:00:00 2001 From: Geoffrey McElhanon Date: Sun, 24 Nov 2024 18:12:30 -0600 Subject: [PATCH] Removed relocated code from mustache template. --- .../Mustache/Entities.mustache | 49 ------------------- 1 file changed, 49 deletions(-) diff --git a/Utilities/CodeGeneration/EdFi.Ods.CodeGen/Mustache/Entities.mustache b/Utilities/CodeGeneration/EdFi.Ods.CodeGen/Mustache/Entities.mustache index fa97f2472..a90d576c5 100644 --- a/Utilities/CodeGeneration/EdFi.Ods.CodeGen/Mustache/Entities.mustache +++ b/Utilities/CodeGeneration/EdFi.Ods.CodeGen/Mustache/Entities.mustache @@ -114,7 +114,6 @@ namespace {{AggregateNamespace}} } {{/NonParentProperties}} {{/PrimaryKey}} - // ------------------------------------------------------------- {{#PrimaryKey}} public virtual bool IsFullyDefined() @@ -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}} - /// - /// Read-only property that allows the {{ReferenceAssociationName}} discriminator value to be mapped to the resource reference. - /// - string {{NamespacePrefix}}I{{ClassName}}.{{ReferenceAssociationName}}Discriminator - { - get { return ({{ReferenceDataPropertyName}} ?? {{SerializedReferenceDataPropertyName}})?.Discriminator; } - set { } - } - - {{/MappedReferenceDataHasDiscriminator}} - /// - /// Read-only property that allows the {{ReferenceAssociationName}} resource identifier value to be mapped to the resource reference. - /// - 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 // -------------------------------------------------------------