From 36421bc00111af9b976ed799148d9048923e756a Mon Sep 17 00:00:00 2001 From: Geoff McElhanon Date: Thu, 22 Aug 2024 06:12:04 -0500 Subject: [PATCH] [ODS-5419] Add Discriminator to edfi.Descriptor (#1122) --- .../Descriptors/DescriptorDetailsProvider.cs | 97 +- .../Configuration/NHibernateConfigurator.cs | 32 - ...xtensionNHibernateConfigurationProvider.cs | 62 +- ...xtensionNHibernateConfigurationProvider.cs | 5 - .../Models/Domain/EntityExtensions.cs | 4 - ...kedChangesIdentifierProjectionsProvider.cs | 4 +- .../DescriptorDetailsProviderTests.cs | 12 +- ...xtensionNHibernateConfigurationProvider.cs | 2 - ...tityOrmMappings.generated.hbm.approved.xml | 1137 ++++++++++----- ...pingsForQueries.generated.hbm.approved.xml | 1139 ++++++++++----- ...tityOrmMappings.generated.hbm.approved.xml | 1137 ++++++++++----- ...pingsForQueries.generated.hbm.approved.xml | 1139 ++++++++++----- ...s_EntitiesForQueries.generated.approved.cs | 6 + ..._Resources_Resources.generated.approved.cs | 27 +- ...tityOrmMappings.generated.hbm.approved.xml | 1257 ++++++++++------ ...pingsForQueries.generated.hbm.approved.xml | 1259 +++++++++++------ ...tityOrmMappings.generated.hbm.approved.xml | 1257 ++++++++++------ ...pingsForQueries.generated.hbm.approved.xml | 1259 +++++++++++------ ...s_EntitiesForQueries.generated.approved.cs | 6 + ..._Resources_Resources.generated.approved.cs | 27 +- .../Generators/EntityOrmMappings.cs | 1 - .../Models/Templates/OrmMapping.cs | 2 - .../Mustache/EntityOrmMappings.mustache | 10 - 23 files changed, 6523 insertions(+), 3358 deletions(-) diff --git a/Application/EdFi.Ods.Common/Descriptors/DescriptorDetailsProvider.cs b/Application/EdFi.Ods.Common/Descriptors/DescriptorDetailsProvider.cs index 0e20041e5e..ce7e13832c 100644 --- a/Application/EdFi.Ods.Common/Descriptors/DescriptorDetailsProvider.cs +++ b/Application/EdFi.Ods.Common/Descriptors/DescriptorDetailsProvider.cs @@ -7,7 +7,10 @@ using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; +using Dapper; using EdFi.Ods.Common.Context; +using EdFi.Ods.Common.Database.Querying; +using EdFi.Ods.Common.Database.Querying.Dialects; using EdFi.Ods.Common.Exceptions; using EdFi.Ods.Common.Infrastructure.Configuration; using EdFi.Ods.Common.Models; @@ -25,26 +28,29 @@ namespace EdFi.Ods.Common.Descriptors; public class DescriptorDetailsProvider : IDescriptorDetailsProvider { private readonly IContextStorage _contextStorage; + private readonly Dialect _dialect; private readonly ISessionFactory _sessionFactory; - private readonly Lazy> _descriptorTypeNameByEntityName; + private readonly Lazy> _discriminatorByDescriptorName; private readonly ILog _logger = LogManager.GetLogger(typeof(DescriptorDetailsProvider)); public DescriptorDetailsProvider( ISessionFactory sessionFactory, IDomainModelProvider domainModelProvider, - IContextStorage contextStorage) + IContextStorage contextStorage, + Dialect dialect) { _contextStorage = contextStorage; + _dialect = dialect; _sessionFactory = sessionFactory; - _descriptorTypeNameByEntityName = new Lazy>( + _discriminatorByDescriptorName = new Lazy>( () => domainModelProvider.GetDomainModel() .Entities.Where(e => e.IsDescriptorEntity) .ToDictionary( e => e.Name, - e => e.EntityTypeFullName(e.SchemaProperCaseName()))); + e => e.FullName.ToString())); } /// @@ -56,33 +62,23 @@ public IList GetAllDescriptorDetails() using (var session = _sessionFactory.OpenSession()) { - var queries = GetQueries(session).ToList(); + var qb = GetDescriptorQueryBuilder(); + var template = qb.BuildTemplate(); - var results = queries - .SelectMany(x => x.detailQuery - .Select(d => + var records = session.Connection.Query(template.RawSql); + + var results = records.Select( + r => new DescriptorDetails() { - // Assign the descriptor name to the details - d.DescriptorName = x.descriptorName; - return d; + DescriptorId = r.DescriptorId, + DescriptorName = r.Discriminator?.Substring(r.Discriminator.IndexOf('.') + 1), + CodeValue = r.CodeValue, + Namespace = r.Namespace }) - .ToList()) .ToList(); return results; } - - IEnumerable<(string descriptorName, IEnumerable detailQuery)> GetQueries(ISession session) - { - foreach (string descriptorName in _descriptorTypeNameByEntityName.Value.Keys) - { - var query = - GetDescriptorCriteria(descriptorName, session) - .Future(); - - yield return (descriptorName, query); - } - } } catch (Exception ex) { @@ -96,45 +92,52 @@ public IList GetAllDescriptorDetails() } } + private QueryBuilder GetDescriptorQueryBuilder() + { + var qb = new QueryBuilder(_dialect) + .From("edfi.Descriptor") + .Select("DescriptorId", "CodeValue", "Namespace", "Discriminator"); + + return qb; + } + /// public DescriptorDetails GetDescriptorDetails(string descriptorName, int descriptorId) { using var session = _sessionFactory.OpenSession(); - - return GetDescriptorCriteria(descriptorName, session, descriptorId).UniqueResult(); + + var qb = GetFilteredDescriptorQueryBuilder(descriptorName, descriptorId); + var template = qb.BuildTemplate(); + + return session.Connection.QuerySingleOrDefault(template.RawSql, template.Parameters); } /// public DescriptorDetails GetDescriptorDetails(string descriptorName, string uri) { using var session = _sessionFactory.OpenSession(); - - return GetDescriptorCriteria(descriptorName, session, uri: uri).UniqueResult(); + + var qb = GetFilteredDescriptorQueryBuilder(descriptorName, uri: uri); + var template = qb.BuildTemplate(); + + return session.Connection.QuerySingleOrDefault(template.RawSql, template.Parameters); } - private ICriteria GetDescriptorCriteria( + private QueryBuilder GetFilteredDescriptorQueryBuilder( string descriptorName, - ISession session, int? descriptorId = null, string uri = null) { - if (!_descriptorTypeNameByEntityName.Value.TryGetValue(descriptorName, out string descriptorTypeName)) + if (!_discriminatorByDescriptorName.Value.TryGetValue(descriptorName, out string discriminator)) { throw new ArgumentException($"Descriptor '{descriptorName}' is not a known descriptor entity name."); } - var descriptorIdColumnName = descriptorName + "Id"; - - var criteria = session.CreateCriteria(descriptorTypeName) - .SetProjection( - Projections.ProjectionList() - .Add(Projections.Property(descriptorIdColumnName), "DescriptorId") - .Add(Projections.Property("Namespace"), "Namespace") - .Add(Projections.Property("CodeValue"), "CodeValue")); + var qb = GetDescriptorQueryBuilder().Where("Discriminator", discriminator); if (descriptorId.HasValue) { - criteria.Add(Restrictions.Eq(descriptorIdColumnName, descriptorId.Value)); + qb.Where("DescriptorId", descriptorId.Value); } if (uri != null) @@ -146,12 +149,18 @@ private ICriteria GetDescriptorCriteria( throw new ValidationException($"{descriptorName} value '{uri}' is not a valid value for use as a descriptor (a '#' is expected to delineate the namespace and code value portions)."); } - criteria.Add(Restrictions.Eq("Namespace", uri.Substring(0, pos))); - criteria.Add(Restrictions.Eq("CodeValue", uri.Substring(pos + 1))); + qb.Where("Namespace", uri.Substring(0, pos)); + qb.Where("CodeValue", uri.Substring(pos + 1)); } - criteria.SetResultTransformer(Transformers.AliasToBean()); + return qb; + } - return criteria; + private class DescriptorRecord + { + public int DescriptorId { get; set; } + public string Discriminator { get; set; } + public string Namespace { get; set; } + public string CodeValue { get; set; } } } diff --git a/Application/EdFi.Ods.Common/Infrastructure/Configuration/NHibernateConfigurator.cs b/Application/EdFi.Ods.Common/Infrastructure/Configuration/NHibernateConfigurator.cs index 6cddc20826..d7991053d5 100644 --- a/Application/EdFi.Ods.Common/Infrastructure/Configuration/NHibernateConfigurator.cs +++ b/Application/EdFi.Ods.Common/Infrastructure/Configuration/NHibernateConfigurator.cs @@ -33,7 +33,6 @@ public class NHibernateConfigurator : INHibernateConfigurator private readonly IDictionary _entityExtensionHbmBagsByEntityName; private readonly IExtensionNHibernateConfigurationProvider[] _extensionConfigurationProviders; private readonly IDictionary _extensionDerivedEntityByEntityName; - private readonly IDictionary _extensionDescriptorByEntityName; private readonly IOrmMappingFileDataProvider _ormMappingFileDataProvider; private readonly Func _entityAuthorizerResolver; private readonly IAuthorizationContextProvider _authorizationContextProvider; @@ -77,14 +76,6 @@ public NHibernateConfigurator(IEnumerable x.SelectMany(y => y.Value) .ToArray()); - _extensionDescriptorByEntityName = _extensionConfigurationProviders - .SelectMany(x => x.NonDiscriminatorBasedHbmJoinedSubclassesByEntityName) - .GroupBy(x => x.Key) - .ToDictionary( - x => x.Key, - x => x.SelectMany(y => y.Value) - .ToArray()); - _extensionDerivedEntityByEntityName = _extensionConfigurationProviders .SelectMany(x => x.DiscriminatorBasedHbmSubclassesByEntityName) .GroupBy(x => x.Key) @@ -172,8 +163,6 @@ private void Configuration_BeforeBindMapping(object sender, BindMappingEventArgs MapJoinedSubclassesToCoreEntity( classMappingByEntityName, joinedSubclassMappingByEntityName, subclassJoinMappingByEntityName); - MapDescriptorToCoreDescriptorEntity(classMappingByEntityName); - MapDerivedEntityToCoreEntity(classMappingByEntityName); } @@ -198,27 +187,6 @@ void MapDerivedEntityToCoreEntity(Dictionary classMappingByEnt } } - void MapDescriptorToCoreDescriptorEntity(Dictionary classMappingByEntityName) - { - // foreach entity name, look in core mapping file (e.mapping) for core entity mapping and if found - // concat new extension HbmJoinedSubclass to current set of Ed-Fi entity HbmJoinedSubclasses. - foreach (string entityName in _extensionDescriptorByEntityName.Keys) - { - if (!classMappingByEntityName.TryGetValue(entityName, out HbmClass classMapping)) - { - throw new MappingException( - $"The subclass extension to entity '{entityName}' could not be applied because the class mapping could not be found."); - } - - var hbmJoinedSubclasses = _extensionDescriptorByEntityName[entityName] - .Select(x => (object) x) - .ToArray(); - - classMapping.Items1 = (classMapping.Items1 ?? Array.Empty()).Concat(hbmJoinedSubclasses) - .ToArray(); - } - } - void MapJoinedSubclassesToCoreEntity(Dictionary classMappingByEntityName, Dictionary joinedSubclassMappingByEntityName, Dictionary subclassJoinMappingByEntityName) diff --git a/Application/EdFi.Ods.Common/Infrastructure/Extensibility/ExtensionNHibernateConfigurationProvider.cs b/Application/EdFi.Ods.Common/Infrastructure/Extensibility/ExtensionNHibernateConfigurationProvider.cs index a6d1e23bac..3f964c5101 100644 --- a/Application/EdFi.Ods.Common/Infrastructure/Extensibility/ExtensionNHibernateConfigurationProvider.cs +++ b/Application/EdFi.Ods.Common/Infrastructure/Extensibility/ExtensionNHibernateConfigurationProvider.cs @@ -7,7 +7,6 @@ using System.Linq; using EdFi.Common; using EdFi.Common.Configuration; -using EdFi.Ods.Common.Configuration; using EdFi.Ods.Common.Constants; using EdFi.Ods.Common.Conventions; using EdFi.Ods.Common.Dtos; @@ -76,14 +75,6 @@ public IDictionary AggregateExtensionHbmBagsByEntityName get => CreateAggregateExtensionHbmBagsByEntityName(); } - /// - /// Returns a dictionary keyed by Ed-Fi standard base entity name, containing the derived entity discriminators as HbmJoinedSubclasses. - /// - public IDictionary NonDiscriminatorBasedHbmJoinedSubclassesByEntityName - { - get => CreateNonDiscriminatorBasedHbmJoinedSubclassesByEntityName(); - } - /// /// Returns a dictionary keyed by Ed-Fi standard base entity name, containing the derived entity as HbmSubclass. (Discriminator is required) /// @@ -148,63 +139,14 @@ private Dictionary CreateAggregateExtensionHbmBagsByEntityName .ToDictionary(x => x.Key, x => x.ToArray()); } - private Dictionary CreateNonDiscriminatorBasedHbmJoinedSubclassesByEntityName() - { - return Enumerable.Select( - _domainModel.Entities - .Where(e => e.IsDerived && e.IsExtensionEntity && e.Schema.Equals(PhysicalName) && e.IsDescriptorEntity), e => new - { - EntityName = !e.BaseEntity.IsAbstract - ? $"{e.BaseEntity.Name}Base" - : e.BaseEntity.Name, - HbmJoinedSubclass = CreateHbmJoinSubclass(e) - }) - .GroupBy(x => x.EntityName, x => x.HbmJoinedSubclass) - .ToDictionary(x => x.Key, x => x.ToArray()); - - HbmJoinedSubclass CreateHbmJoinSubclass(Entity entity) - { - var properties = Enumerable.ToArray( - entity.Properties - .OrderBy(p => p.PropertyName) - .Select(p => CreateHbmProperty(p, entity))); - - var references = Enumerable.ToArray(entity.NavigableOneToOnes.Select(CreateHbmBag)); - - return new HbmJoinedSubclass - { - table = entity.TableName(_databaseEngine), - schema = PhysicalName, - name = GetExtensionEntityAssemblyQualifiedName(entity), - key = CreateHbmKey(entity.Properties.Where(p => p.IsIdentifying).OrderBy(p => p.PropertyName)), - Items = properties.Concat(references).ToArray(), - lazy = false - }; - - HbmBag CreateHbmBag(AssociationView association) - { - return new - HbmBag - { - name = $"{association.Name}", - cascade = "all-delete-orphan", - inverse = true, - lazy = HbmCollectionLazy.False, - key = CreateHbmKey( - association.OtherEntity.Properties.Where(p => p.IsIdentifying).OrderBy(p => p.PropertyName)), - Item = new HbmOneToMany {@class = GetExtensionEntityAssemblyQualifiedName(association.OtherEntity)} - }; - } - } - } - private Dictionary CreateDiscriminatorBasedHbmSubclassesByEntityName() { return Enumerable.Select( _domainModel.Entities .Where( e => e.IsDerived && e.IsExtensionEntity && e.Schema.Equals(PhysicalName) && - !e.BaseEntity.Schema.Equals(PhysicalName) && !e.IsDescriptorEntity), e => new + !e.BaseEntity.Schema.Equals(PhysicalName)), + e => new { EntityName = !e.BaseEntity.IsAbstract ? $"{e.BaseEntity.Name}Base" diff --git a/Application/EdFi.Ods.Common/Infrastructure/Extensibility/IExtensionNHibernateConfigurationProvider.cs b/Application/EdFi.Ods.Common/Infrastructure/Extensibility/IExtensionNHibernateConfigurationProvider.cs index 8e6631fe9d..b2869a5c4c 100644 --- a/Application/EdFi.Ods.Common/Infrastructure/Extensibility/IExtensionNHibernateConfigurationProvider.cs +++ b/Application/EdFi.Ods.Common/Infrastructure/Extensibility/IExtensionNHibernateConfigurationProvider.cs @@ -23,11 +23,6 @@ public interface IExtensionNHibernateConfigurationProvider /// IDictionary AggregateExtensionHbmBagsByEntityName { get; } - /// - /// Extensions that are derived from a class without a discriminator (e.g. a descriptor). - /// - IDictionary NonDiscriminatorBasedHbmJoinedSubclassesByEntityName { get; } - /// /// Extensions that are derived from either a class using a discriminator. /// diff --git a/Application/EdFi.Ods.Common/Models/Domain/EntityExtensions.cs b/Application/EdFi.Ods.Common/Models/Domain/EntityExtensions.cs index c8f81817c5..57824defaa 100644 --- a/Application/EdFi.Ods.Common/Models/Domain/EntityExtensions.cs +++ b/Application/EdFi.Ods.Common/Models/Domain/EntityExtensions.cs @@ -188,10 +188,6 @@ public static bool HasDiscriminator(this Entity entity) if (entity.IsDerived) return false; - // Ed-Fi descriptors cannot be derived - if (entity.IsDescriptorBaseEntity()) - return false; - // SchoolYearType is also not derivable if (entity.FullName.Equals(new FullName(EdFiConventions.PhysicalSchemaName, "SchoolYearType"))) return false; diff --git a/Application/EdFi.Ods.Features/ChangeQueries/Repositories/TrackedChangesIdentifierProjectionsProvider.cs b/Application/EdFi.Ods.Features/ChangeQueries/Repositories/TrackedChangesIdentifierProjectionsProvider.cs index 68b5a0434c..1e0ec93e5a 100644 --- a/Application/EdFi.Ods.Features/ChangeQueries/Repositories/TrackedChangesIdentifierProjectionsProvider.cs +++ b/Application/EdFi.Ods.Features/ChangeQueries/Repositories/TrackedChangesIdentifierProjectionsProvider.cs @@ -129,7 +129,7 @@ IEnumerable GetSelectColumns(ResourceProperty resourceProperty) yield break; } - if (IsDerivedFromEntityWithDiscriminator(entityProperty.Entity)) + if (entityProperty.Entity.IsDerived && !entityProperty.Entity.IsDescriptorEntity) { yield return new SelectColumn { @@ -171,8 +171,6 @@ IEnumerable GetSelectColumns(ResourceProperty resourceProperty) JsonPropertyName = resourceProperty.JsonPropertyName, }; } - - bool IsDerivedFromEntityWithDiscriminator(Entity entity) => entity.BaseEntity?.HasDiscriminator() == true; } } } diff --git a/Application/EdFi.Ods.Repositories.NHibernate.Tests/DescriptorDetailsProviderTests.cs b/Application/EdFi.Ods.Repositories.NHibernate.Tests/DescriptorDetailsProviderTests.cs index c9031d520e..4b3e368bb3 100644 --- a/Application/EdFi.Ods.Repositories.NHibernate.Tests/DescriptorDetailsProviderTests.cs +++ b/Application/EdFi.Ods.Repositories.NHibernate.Tests/DescriptorDetailsProviderTests.cs @@ -10,6 +10,7 @@ using System.Linq; using EdFi.Ods.Api.Providers; using EdFi.Ods.Common.Context; +using EdFi.Ods.Common.Database.Querying.Dialects; using EdFi.Ods.Common.Descriptors; using EdFi.Ods.Common.Models; using EdFi.Ods.Common.Models.Definitions; @@ -85,6 +86,14 @@ public void SetUp() session.Save(AssessmentPeriodTestDescriptor1); } + using (var session = SessionFactory.OpenSession()) + { + CountryTestDescriptor1 = session.Load(CountryTestDescriptor1.DescriptorId); + CountryTestDescriptor2 = session.Load(CountryTestDescriptor2.DescriptorId); + CountryTestDescriptor3 = session.Load(CountryTestDescriptor3.DescriptorId); + AssessmentPeriodTestDescriptor1 = session.Load(AssessmentPeriodTestDescriptor1.DescriptorId); + } + var domainModelBuilder = new DomainModelBuilder(); domainModelBuilder.AddSchema(new SchemaDefinition("Ed-Fi", "edfi")); @@ -145,7 +154,8 @@ public void SetUp() DescriptorDetailsProvider = new DescriptorDetailsProvider( SessionFactory, domainModelProvider, - new HashtableContextStorage()); + new HashtableContextStorage(), + new SqlServerDialect()); AssociationDefinition CreateDescriptorInheritanceAssociation(string descriptorName) { diff --git a/Application/EdFi.Ods.Tests.TestExtension/NHibernate/ExtensionNHibernateConfigurationProvider.cs b/Application/EdFi.Ods.Tests.TestExtension/NHibernate/ExtensionNHibernateConfigurationProvider.cs index 5db3194981..4e3f95b458 100644 --- a/Application/EdFi.Ods.Tests.TestExtension/NHibernate/ExtensionNHibernateConfigurationProvider.cs +++ b/Application/EdFi.Ods.Tests.TestExtension/NHibernate/ExtensionNHibernateConfigurationProvider.cs @@ -106,8 +106,6 @@ public IDictionary AggregateExtensionHbmBagsByEntityName } } - public IDictionary NonDiscriminatorBasedHbmJoinedSubclassesByEntityName => new Dictionary(); - public IDictionary DiscriminatorBasedHbmSubclassesByEntityName => new Dictionary(); } } diff --git a/Utilities/CodeGeneration/EdFi.Ods.CodeGen.Tests/Approval/4.0.0/DataStandard_400_ApprovalTests.Verify.Standard_Std_4.0.0_EntityOrmMappings_MsSql_EntityOrmMappings.generated.hbm.approved.xml b/Utilities/CodeGeneration/EdFi.Ods.CodeGen.Tests/Approval/4.0.0/DataStandard_400_ApprovalTests.Verify.Standard_Std_4.0.0_EntityOrmMappings_MsSql_EntityOrmMappings.generated.hbm.approved.xml index 83cd7964d5..a7636ce453 100644 --- a/Utilities/CodeGeneration/EdFi.Ods.CodeGen.Tests/Approval/4.0.0/DataStandard_400_ApprovalTests.Verify.Standard_Std_4.0.0_EntityOrmMappings_MsSql_EntityOrmMappings.generated.hbm.approved.xml +++ b/Utilities/CodeGeneration/EdFi.Ods.CodeGen.Tests/Approval/4.0.0/DataStandard_400_ApprovalTests.Verify.Standard_Std_4.0.0_EntityOrmMappings_MsSql_EntityOrmMappings.generated.hbm.approved.xml @@ -2557,12 +2557,13 @@ - + + @@ -2587,7 +2588,8 @@ - + + @@ -2600,8 +2602,10 @@ - - + + + + @@ -2614,8 +2618,10 @@ - - + + + + @@ -2628,8 +2634,10 @@ - - + + + + @@ -2642,8 +2650,10 @@ - - + + + + @@ -2656,8 +2666,10 @@ - - + + + + @@ -2670,8 +2682,10 @@ - - + + + + @@ -2684,8 +2698,10 @@ - - + + + + @@ -2698,8 +2714,10 @@ - - + + + + @@ -2712,8 +2730,10 @@ - - + + + + @@ -2726,8 +2746,10 @@ - - + + + + @@ -2740,8 +2762,10 @@ - - + + + + @@ -2754,8 +2778,10 @@ - - + + + + @@ -2768,8 +2794,10 @@ - - + + + + @@ -2782,8 +2810,10 @@ - - + + + + @@ -2796,8 +2826,10 @@ - - + + + + @@ -2810,8 +2842,10 @@ - - + + + + @@ -2824,8 +2858,10 @@ - - + + + + @@ -2838,8 +2874,10 @@ - - + + + + @@ -2852,8 +2890,10 @@ - - + + + + @@ -2866,8 +2906,10 @@ - - + + + + @@ -2880,8 +2922,10 @@ - - + + + + @@ -2894,8 +2938,10 @@ - - + + + + @@ -2908,8 +2954,10 @@ - - + + + + @@ -2922,8 +2970,10 @@ - - + + + + @@ -2936,8 +2986,10 @@ - - + + + + @@ -2950,8 +3002,10 @@ - - + + + + @@ -2964,8 +3018,10 @@ - - + + + + @@ -2978,8 +3034,10 @@ - - + + + + @@ -2992,8 +3050,10 @@ - - + + + + @@ -3006,8 +3066,10 @@ - - + + + + @@ -3020,8 +3082,10 @@ - - + + + + @@ -3034,8 +3098,10 @@ - - + + + + @@ -3048,8 +3114,10 @@ - - + + + + @@ -3062,8 +3130,10 @@ - - + + + + @@ -3076,8 +3146,10 @@ - - + + + + @@ -3090,8 +3162,10 @@ - - + + + + @@ -3104,8 +3178,10 @@ - - + + + + @@ -3118,8 +3194,10 @@ - - + + + + @@ -3132,8 +3210,10 @@ - - + + + + @@ -3146,8 +3226,10 @@ - - + + + + @@ -3160,8 +3242,10 @@ - - + + + + @@ -3174,8 +3258,10 @@ - - + + + + @@ -3188,8 +3274,10 @@ - - + + + + @@ -3202,8 +3290,10 @@ - - + + + + @@ -3216,8 +3306,10 @@ - - + + + + @@ -3230,8 +3322,10 @@ - - + + + + @@ -3244,8 +3338,10 @@ - - + + + + @@ -3258,8 +3354,10 @@ - - + + + + @@ -3272,8 +3370,10 @@ - - + + + + @@ -3286,8 +3386,10 @@ - - + + + + @@ -3300,8 +3402,10 @@ - - + + + + @@ -3314,8 +3418,10 @@ - - + + + + @@ -3328,8 +3434,10 @@ - - + + + + @@ -3342,8 +3450,10 @@ - - + + + + @@ -3356,8 +3466,10 @@ - - + + + + @@ -3370,8 +3482,10 @@ - - + + + + @@ -3384,8 +3498,10 @@ - - + + + + @@ -3398,8 +3514,10 @@ - - + + + + @@ -3412,8 +3530,10 @@ - - + + + + @@ -3426,8 +3546,10 @@ - - + + + + @@ -3440,8 +3562,10 @@ - - + + + + @@ -3454,8 +3578,10 @@ - - + + + + @@ -3468,8 +3594,10 @@ - - + + + + @@ -3482,8 +3610,10 @@ - - + + + + @@ -3496,8 +3626,10 @@ - - + + + + @@ -3510,8 +3642,10 @@ - - + + + + @@ -3524,8 +3658,10 @@ - - + + + + @@ -3538,8 +3674,10 @@ - - + + + + @@ -3552,8 +3690,10 @@ - - + + + + @@ -3566,8 +3706,10 @@ - - + + + + @@ -3580,8 +3722,10 @@ - - + + + + @@ -3594,8 +3738,10 @@ - - + + + + @@ -3608,8 +3754,10 @@ - - + + + + @@ -3622,8 +3770,10 @@ - - + + + + @@ -3636,8 +3786,10 @@ - - + + + + @@ -3650,8 +3802,10 @@ - - + + + + @@ -3664,8 +3818,10 @@ - - + + + + @@ -3678,8 +3834,10 @@ - - + + + + @@ -3692,8 +3850,10 @@ - - + + + + @@ -3706,8 +3866,10 @@ - - + + + + @@ -3720,8 +3882,10 @@ - - + + + + @@ -3734,8 +3898,10 @@ - - + + + + @@ -3748,8 +3914,10 @@ - - + + + + @@ -3762,8 +3930,10 @@ - - + + + + @@ -3776,8 +3946,10 @@ - - + + + + @@ -3790,8 +3962,10 @@ - - + + + + @@ -3804,8 +3978,10 @@ - - + + + + @@ -3818,8 +3994,10 @@ - - + + + + @@ -3832,8 +4010,10 @@ - - + + + + @@ -3846,8 +4026,10 @@ - - + + + + @@ -3860,8 +4042,10 @@ - - + + + + @@ -3874,8 +4058,10 @@ - - + + + + @@ -3888,8 +4074,10 @@ - - + + + + @@ -3902,8 +4090,10 @@ - - + + + + @@ -3916,8 +4106,10 @@ - - + + + + @@ -3930,8 +4122,10 @@ - - + + + + @@ -3944,8 +4138,10 @@ - - + + + + @@ -3958,8 +4154,10 @@ - - + + + + @@ -3972,8 +4170,10 @@ - - + + + + @@ -3986,8 +4186,10 @@ - - + + + + @@ -4000,8 +4202,10 @@ - - + + + + @@ -4014,8 +4218,10 @@ - - + + + + @@ -4028,8 +4234,10 @@ - - + + + + @@ -4042,8 +4250,10 @@ - - + + + + @@ -4056,8 +4266,10 @@ - - + + + + @@ -4070,8 +4282,10 @@ - - + + + + @@ -4084,8 +4298,10 @@ - - + + + + @@ -4098,8 +4314,10 @@ - - + + + + @@ -4112,8 +4330,10 @@ - - + + + + @@ -4126,8 +4346,10 @@ - - + + + + @@ -4140,8 +4362,10 @@ - - + + + + @@ -4154,8 +4378,10 @@ - - + + + + @@ -4168,8 +4394,10 @@ - - + + + + @@ -4182,8 +4410,10 @@ - - + + + + @@ -4196,8 +4426,10 @@ - - + + + + @@ -4210,8 +4442,10 @@ - - + + + + @@ -4224,8 +4458,10 @@ - - + + + + @@ -4238,8 +4474,10 @@ - - + + + + @@ -4252,8 +4490,10 @@ - - + + + + @@ -4266,8 +4506,10 @@ - - + + + + @@ -4280,8 +4522,10 @@ - - + + + + @@ -4294,8 +4538,10 @@ - - + + + + @@ -4308,8 +4554,10 @@ - - + + + + @@ -4322,8 +4570,10 @@ - - + + + + @@ -4336,8 +4586,10 @@ - - + + + + @@ -4350,8 +4602,10 @@ - - + + + + @@ -4364,8 +4618,10 @@ - - + + + + @@ -4378,8 +4634,10 @@ - - + + + + @@ -4392,8 +4650,10 @@ - - + + + + @@ -4406,8 +4666,10 @@ - - + + + + @@ -4420,8 +4682,10 @@ - - + + + + @@ -4434,8 +4698,10 @@ - - + + + + @@ -4448,8 +4714,10 @@ - - + + + + @@ -4462,8 +4730,10 @@ - - + + + + @@ -4476,8 +4746,10 @@ - - + + + + @@ -4490,8 +4762,10 @@ - - + + + + @@ -4504,8 +4778,10 @@ - - + + + + @@ -4518,8 +4794,10 @@ - - + + + + @@ -4532,8 +4810,10 @@ - - + + + + @@ -4546,8 +4826,10 @@ - - + + + + @@ -4560,8 +4842,10 @@ - - + + + + @@ -4574,8 +4858,10 @@ - - + + + + @@ -4588,8 +4874,10 @@ - - + + + + @@ -4602,8 +4890,10 @@ - - + + + + @@ -4616,8 +4906,10 @@ - - + + + + @@ -4630,8 +4922,10 @@ - - + + + + @@ -4644,8 +4938,10 @@ - - + + + + @@ -4658,8 +4954,10 @@ - - + + + + @@ -4672,8 +4970,10 @@ - - + + + + @@ -4686,8 +4986,10 @@ - - + + + + @@ -4700,8 +5002,10 @@ - - + + + + @@ -4714,8 +5018,10 @@ - - + + + + @@ -4728,8 +5034,10 @@ - - + + + + @@ -4742,8 +5050,10 @@ - - + + + + @@ -4756,8 +5066,10 @@ - - + + + + @@ -4770,8 +5082,10 @@ - - + + + + @@ -4784,8 +5098,10 @@ - - + + + + @@ -4798,8 +5114,10 @@ - - + + + + @@ -4812,8 +5130,10 @@ - - + + + + @@ -4826,8 +5146,10 @@ - - + + + + @@ -4840,8 +5162,10 @@ - - + + + + @@ -4854,8 +5178,10 @@ - - + + + + @@ -4868,8 +5194,10 @@ - - + + + + @@ -4882,8 +5210,10 @@ - - + + + + @@ -4896,8 +5226,10 @@ - - + + + + @@ -4910,8 +5242,10 @@ - - + + + + @@ -4924,8 +5258,10 @@ - - + + + + @@ -4938,8 +5274,10 @@ - - + + + + @@ -4952,8 +5290,10 @@ - - + + + + @@ -4966,8 +5306,10 @@ - - + + + + @@ -4980,8 +5322,10 @@ - - + + + + @@ -4994,8 +5338,10 @@ - - + + + + @@ -5008,8 +5354,10 @@ - - + + + + @@ -5022,8 +5370,10 @@ - - + + + + @@ -5036,8 +5386,10 @@ - - + + + + @@ -5050,8 +5402,10 @@ - - + + + + @@ -5064,8 +5418,10 @@ - - + + + + @@ -5078,8 +5434,10 @@ - - + + + + @@ -5092,8 +5450,10 @@ - - + + + + @@ -5106,8 +5466,10 @@ - - + + + + @@ -5120,8 +5482,10 @@ - - + + + + @@ -5134,8 +5498,10 @@ - - + + + + @@ -5148,8 +5514,10 @@ - - + + + + @@ -5162,8 +5530,10 @@ - - + + + + @@ -5176,8 +5546,10 @@ - - + + + + @@ -5190,8 +5562,10 @@ - - + + + + @@ -5204,8 +5578,10 @@ - - + + + + @@ -5218,8 +5594,10 @@ - - + + + + @@ -5232,7 +5610,8 @@ - + + diff --git a/Utilities/CodeGeneration/EdFi.Ods.CodeGen.Tests/Approval/4.0.0/DataStandard_400_ApprovalTests.Verify.Standard_Std_4.0.0_EntityOrmMappings_MsSql_EntityOrmMappingsForQueries.generated.hbm.approved.xml b/Utilities/CodeGeneration/EdFi.Ods.CodeGen.Tests/Approval/4.0.0/DataStandard_400_ApprovalTests.Verify.Standard_Std_4.0.0_EntityOrmMappings_MsSql_EntityOrmMappingsForQueries.generated.hbm.approved.xml index b829c08380..0994afe5e0 100644 --- a/Utilities/CodeGeneration/EdFi.Ods.CodeGen.Tests/Approval/4.0.0/DataStandard_400_ApprovalTests.Verify.Standard_Std_4.0.0_EntityOrmMappings_MsSql_EntityOrmMappingsForQueries.generated.hbm.approved.xml +++ b/Utilities/CodeGeneration/EdFi.Ods.CodeGen.Tests/Approval/4.0.0/DataStandard_400_ApprovalTests.Verify.Standard_Std_4.0.0_EntityOrmMappings_MsSql_EntityOrmMappingsForQueries.generated.hbm.approved.xml @@ -2757,12 +2757,13 @@ - + + @@ -2774,6 +2775,8 @@ + + @@ -2787,7 +2790,8 @@ - + + @@ -2807,8 +2811,10 @@ - - + + + + @@ -2828,8 +2834,10 @@ - - + + + + @@ -2926,8 +2934,10 @@ - - + + + + @@ -2947,8 +2957,10 @@ - - + + + + @@ -2968,8 +2980,10 @@ - - + + + + @@ -3010,8 +3024,10 @@ - - + + + + @@ -3031,8 +3047,10 @@ - - + + + + @@ -3108,8 +3126,10 @@ - - + + + + @@ -3129,8 +3149,10 @@ - - + + + + @@ -3157,8 +3179,10 @@ - - + + + + @@ -3185,8 +3209,10 @@ - - + + + + @@ -3206,8 +3232,10 @@ - - + + + + @@ -3227,8 +3255,10 @@ - - + + + + @@ -3248,8 +3278,10 @@ - - + + + + @@ -3269,8 +3301,10 @@ - - + + + + @@ -3297,8 +3331,10 @@ - - + + + + @@ -3388,8 +3424,10 @@ - - + + + + @@ -3409,8 +3447,10 @@ - - + + + + @@ -3430,8 +3470,10 @@ - - + + + + @@ -3472,8 +3514,10 @@ - - + + + + @@ -3493,8 +3537,10 @@ - - + + + + @@ -3528,8 +3574,10 @@ - - + + + + @@ -3549,8 +3597,10 @@ - - + + + + @@ -3570,8 +3620,10 @@ - - + + + + @@ -3598,8 +3650,10 @@ - - + + + + @@ -3619,8 +3673,10 @@ - - + + + + @@ -3647,8 +3703,10 @@ - - + + + + @@ -3675,8 +3733,10 @@ - - + + + + @@ -3696,8 +3756,10 @@ - - + + + + @@ -3717,8 +3779,10 @@ - - + + + + @@ -3738,8 +3802,10 @@ - - + + + + @@ -3759,8 +3825,10 @@ - - + + + + @@ -3801,8 +3869,10 @@ - - + + + + @@ -3822,8 +3892,10 @@ - - + + + + @@ -3843,8 +3915,10 @@ - - + + + + @@ -3864,8 +3938,10 @@ - - + + + + @@ -3885,8 +3961,10 @@ - - + + + + @@ -3969,8 +4047,10 @@ - - + + + + @@ -3990,8 +4070,10 @@ - - + + + + @@ -4011,8 +4093,10 @@ - - + + + + @@ -4032,8 +4116,10 @@ - - + + + + @@ -4060,8 +4146,10 @@ - - + + + + @@ -4095,8 +4183,10 @@ - - + + + + @@ -4116,8 +4206,10 @@ - - + + + + @@ -4137,8 +4229,10 @@ - - + + + + @@ -4158,8 +4252,10 @@ - - + + + + @@ -4186,8 +4282,10 @@ - - + + + + @@ -4291,8 +4389,10 @@ - - + + + + @@ -4312,8 +4412,10 @@ - - + + + + @@ -4333,8 +4435,10 @@ - - + + + + @@ -4368,8 +4472,10 @@ - - + + + + @@ -4410,8 +4516,10 @@ - - + + + + @@ -4431,8 +4539,10 @@ - - + + + + @@ -4452,8 +4562,10 @@ - - + + + + @@ -4480,8 +4592,10 @@ - - + + + + @@ -4508,8 +4622,10 @@ - - + + + + @@ -4536,8 +4652,10 @@ - - + + + + @@ -4557,8 +4675,10 @@ - - + + + + @@ -4578,8 +4698,10 @@ - - + + + + @@ -4620,8 +4742,10 @@ - - + + + + @@ -4676,8 +4800,10 @@ - - + + + + @@ -4697,8 +4823,10 @@ - - + + + + @@ -4718,8 +4846,10 @@ - - + + + + @@ -4739,8 +4869,10 @@ - - + + + + @@ -4760,8 +4892,10 @@ - - + + + + @@ -4795,8 +4929,10 @@ - - + + + + @@ -4823,8 +4959,10 @@ - - + + + + @@ -4844,8 +4982,10 @@ - - + + + + @@ -4865,8 +5005,10 @@ - - + + + + @@ -4886,8 +5028,10 @@ - - + + + + @@ -4907,8 +5051,10 @@ - - + + + + @@ -4956,8 +5102,10 @@ - - + + + + @@ -4977,8 +5125,10 @@ - - + + + + @@ -5152,8 +5302,10 @@ - - + + + + @@ -5180,8 +5332,10 @@ - - + + + + @@ -5201,8 +5355,10 @@ - - + + + + @@ -5222,8 +5378,10 @@ - - + + + + @@ -5243,8 +5401,10 @@ - - + + + + @@ -5264,8 +5424,10 @@ - - + + + + @@ -5285,8 +5447,10 @@ - - + + + + @@ -5306,8 +5470,10 @@ - - + + + + @@ -5355,8 +5521,10 @@ - - + + + + @@ -5376,8 +5544,10 @@ - - + + + + @@ -5397,8 +5567,10 @@ - - + + + + @@ -5418,8 +5590,10 @@ - - + + + + @@ -5439,8 +5613,10 @@ - - + + + + @@ -5460,8 +5636,10 @@ - - + + + + @@ -5481,8 +5659,10 @@ - - + + + + @@ -5502,8 +5682,10 @@ - - + + + + @@ -5523,8 +5705,10 @@ - - + + + + @@ -5544,8 +5728,10 @@ - - + + + + @@ -5579,8 +5765,10 @@ - - + + + + @@ -5607,8 +5795,10 @@ - - + + + + @@ -5670,8 +5860,10 @@ - - + + + + @@ -5691,8 +5883,10 @@ - - + + + + @@ -5726,8 +5920,10 @@ - - + + + + @@ -5747,8 +5943,10 @@ - - + + + + @@ -5768,8 +5966,10 @@ - - + + + + @@ -5789,8 +5989,10 @@ - - + + + + @@ -5817,8 +6019,10 @@ - - + + + + @@ -5838,8 +6042,10 @@ - - + + + + @@ -5859,8 +6065,10 @@ - - + + + + @@ -5880,8 +6088,10 @@ - - + + + + @@ -5929,8 +6139,10 @@ - - + + + + @@ -5950,8 +6162,10 @@ - - + + + + @@ -5971,8 +6185,10 @@ - - + + + + @@ -5999,8 +6215,10 @@ - - + + + + @@ -6027,8 +6245,10 @@ - - + + + + @@ -6048,8 +6268,10 @@ - - + + + + @@ -6069,8 +6291,10 @@ - - + + + + @@ -6090,8 +6314,10 @@ - - + + + + @@ -6111,8 +6337,10 @@ - - + + + + @@ -6132,8 +6360,10 @@ - - + + + + @@ -6153,8 +6383,10 @@ - - + + + + @@ -6181,8 +6413,10 @@ - - + + + + @@ -6202,8 +6436,10 @@ - - + + + + @@ -6237,8 +6473,10 @@ - - + + + + @@ -6258,8 +6496,10 @@ - - + + + + @@ -6286,8 +6526,10 @@ - - + + + + @@ -6314,8 +6556,10 @@ - - + + + + @@ -6363,8 +6607,10 @@ - - + + + + @@ -6412,8 +6658,10 @@ - - + + + + @@ -6440,8 +6688,10 @@ - - + + + + @@ -6496,8 +6746,10 @@ - - + + + + @@ -6517,8 +6769,10 @@ - - + + + + @@ -6538,8 +6792,10 @@ - - + + + + @@ -6559,8 +6815,10 @@ - - + + + + @@ -6580,8 +6838,10 @@ - - + + + + @@ -6601,8 +6861,10 @@ - - + + + + @@ -6622,8 +6884,10 @@ - - + + + + @@ -6643,8 +6907,10 @@ - - + + + + @@ -6671,8 +6937,10 @@ - - + + + + @@ -6699,8 +6967,10 @@ - - + + + + @@ -6720,8 +6990,10 @@ - - + + + + @@ -6748,8 +7020,10 @@ - - + + + + @@ -6769,8 +7043,10 @@ - - + + + + @@ -6797,8 +7073,10 @@ - - + + + + @@ -6818,8 +7096,10 @@ - - + + + + @@ -6839,8 +7119,10 @@ - - + + + + @@ -6860,8 +7142,10 @@ - - + + + + @@ -6895,8 +7179,10 @@ - - + + + + @@ -6916,8 +7202,10 @@ - - + + + + @@ -6944,8 +7232,10 @@ - - + + + + @@ -6965,8 +7255,10 @@ - - + + + + @@ -6986,8 +7278,10 @@ - - + + + + @@ -7014,8 +7308,10 @@ - - + + + + @@ -7035,8 +7331,10 @@ - - + + + + @@ -7056,8 +7354,10 @@ - - + + + + @@ -7077,8 +7377,10 @@ - - + + + + @@ -7161,8 +7463,10 @@ - - + + + + @@ -7182,8 +7486,10 @@ - - + + + + @@ -7203,8 +7509,10 @@ - - + + + + @@ -7224,8 +7532,10 @@ - - + + + + @@ -7245,8 +7555,10 @@ - - + + + + @@ -7315,8 +7627,10 @@ - - + + + + @@ -7336,8 +7650,10 @@ - - + + + + @@ -7357,8 +7673,10 @@ - - + + + + @@ -7378,8 +7696,10 @@ - - + + + + @@ -7399,8 +7719,10 @@ - - + + + + @@ -7420,8 +7742,10 @@ - - + + + + @@ -7441,8 +7765,10 @@ - - + + + + @@ -7462,8 +7788,10 @@ - - + + + + @@ -7483,8 +7811,10 @@ - - + + + + @@ -7525,8 +7855,10 @@ - - + + + + @@ -7595,8 +7927,10 @@ - - + + + + @@ -7616,8 +7950,10 @@ - - + + + + @@ -7637,8 +7973,10 @@ - - + + + + @@ -7658,8 +7996,10 @@ - - + + + + @@ -7686,8 +8026,10 @@ - - + + + + @@ -7707,8 +8049,10 @@ - - + + + + @@ -7728,8 +8072,10 @@ - - + + + + @@ -7798,8 +8144,10 @@ - - + + + + @@ -7819,8 +8167,10 @@ - - + + + + @@ -7840,8 +8190,10 @@ - - + + + + @@ -7861,8 +8213,10 @@ - - + + + + @@ -7882,8 +8236,10 @@ - - + + + + @@ -7903,8 +8259,10 @@ - - + + + + @@ -7924,8 +8282,10 @@ - - + + + + @@ -7945,8 +8305,10 @@ - - + + + + @@ -7966,8 +8328,10 @@ - - + + + + @@ -7987,8 +8351,10 @@ - - + + + + @@ -8029,8 +8395,10 @@ - - + + + + @@ -8064,8 +8432,10 @@ - - + + + + @@ -8085,8 +8455,10 @@ - - + + + + @@ -8106,8 +8478,10 @@ - - + + + + @@ -8127,8 +8501,10 @@ - - + + + + @@ -8155,8 +8531,10 @@ - - + + + + @@ -8183,8 +8561,10 @@ - - + + + + @@ -8204,7 +8584,8 @@ - + + diff --git a/Utilities/CodeGeneration/EdFi.Ods.CodeGen.Tests/Approval/4.0.0/DataStandard_400_ApprovalTests.Verify.Standard_Std_4.0.0_EntityOrmMappings_PgSql_EntityOrmMappings.generated.hbm.approved.xml b/Utilities/CodeGeneration/EdFi.Ods.CodeGen.Tests/Approval/4.0.0/DataStandard_400_ApprovalTests.Verify.Standard_Std_4.0.0_EntityOrmMappings_PgSql_EntityOrmMappings.generated.hbm.approved.xml index d8b0f10fe1..aa26a9f6ee 100644 --- a/Utilities/CodeGeneration/EdFi.Ods.CodeGen.Tests/Approval/4.0.0/DataStandard_400_ApprovalTests.Verify.Standard_Std_4.0.0_EntityOrmMappings_PgSql_EntityOrmMappings.generated.hbm.approved.xml +++ b/Utilities/CodeGeneration/EdFi.Ods.CodeGen.Tests/Approval/4.0.0/DataStandard_400_ApprovalTests.Verify.Standard_Std_4.0.0_EntityOrmMappings_PgSql_EntityOrmMappings.generated.hbm.approved.xml @@ -2557,12 +2557,13 @@ - + + @@ -2587,7 +2588,8 @@ - + + @@ -2600,8 +2602,10 @@ - - + + + + @@ -2614,8 +2618,10 @@ - - + + + + @@ -2628,8 +2634,10 @@ - - + + + + @@ -2642,8 +2650,10 @@ - - + + + + @@ -2656,8 +2666,10 @@ - - + + + + @@ -2670,8 +2682,10 @@ - - + + + + @@ -2684,8 +2698,10 @@ - - + + + + @@ -2698,8 +2714,10 @@ - - + + + + @@ -2712,8 +2730,10 @@ - - + + + + @@ -2726,8 +2746,10 @@ - - + + + + @@ -2740,8 +2762,10 @@ - - + + + + @@ -2754,8 +2778,10 @@ - - + + + + @@ -2768,8 +2794,10 @@ - - + + + + @@ -2782,8 +2810,10 @@ - - + + + + @@ -2796,8 +2826,10 @@ - - + + + + @@ -2810,8 +2842,10 @@ - - + + + + @@ -2824,8 +2858,10 @@ - - + + + + @@ -2838,8 +2874,10 @@ - - + + + + @@ -2852,8 +2890,10 @@ - - + + + + @@ -2866,8 +2906,10 @@ - - + + + + @@ -2880,8 +2922,10 @@ - - + + + + @@ -2894,8 +2938,10 @@ - - + + + + @@ -2908,8 +2954,10 @@ - - + + + + @@ -2922,8 +2970,10 @@ - - + + + + @@ -2936,8 +2986,10 @@ - - + + + + @@ -2950,8 +3002,10 @@ - - + + + + @@ -2964,8 +3018,10 @@ - - + + + + @@ -2978,8 +3034,10 @@ - - + + + + @@ -2992,8 +3050,10 @@ - - + + + + @@ -3006,8 +3066,10 @@ - - + + + + @@ -3020,8 +3082,10 @@ - - + + + + @@ -3034,8 +3098,10 @@ - - + + + + @@ -3048,8 +3114,10 @@ - - + + + + @@ -3062,8 +3130,10 @@ - - + + + + @@ -3076,8 +3146,10 @@ - - + + + + @@ -3090,8 +3162,10 @@ - - + + + + @@ -3104,8 +3178,10 @@ - - + + + + @@ -3118,8 +3194,10 @@ - - + + + + @@ -3132,8 +3210,10 @@ - - + + + + @@ -3146,8 +3226,10 @@ - - + + + + @@ -3160,8 +3242,10 @@ - - + + + + @@ -3174,8 +3258,10 @@ - - + + + + @@ -3188,8 +3274,10 @@ - - + + + + @@ -3202,8 +3290,10 @@ - - + + + + @@ -3216,8 +3306,10 @@ - - + + + + @@ -3230,8 +3322,10 @@ - - + + + + @@ -3244,8 +3338,10 @@ - - + + + + @@ -3258,8 +3354,10 @@ - - + + + + @@ -3272,8 +3370,10 @@ - - + + + + @@ -3286,8 +3386,10 @@ - - + + + + @@ -3300,8 +3402,10 @@ - - + + + + @@ -3314,8 +3418,10 @@ - - + + + + @@ -3328,8 +3434,10 @@ - - + + + + @@ -3342,8 +3450,10 @@ - - + + + + @@ -3356,8 +3466,10 @@ - - + + + + @@ -3370,8 +3482,10 @@ - - + + + + @@ -3384,8 +3498,10 @@ - - + + + + @@ -3398,8 +3514,10 @@ - - + + + + @@ -3412,8 +3530,10 @@ - - + + + + @@ -3426,8 +3546,10 @@ - - + + + + @@ -3440,8 +3562,10 @@ - - + + + + @@ -3454,8 +3578,10 @@ - - + + + + @@ -3468,8 +3594,10 @@ - - + + + + @@ -3482,8 +3610,10 @@ - - + + + + @@ -3496,8 +3626,10 @@ - - + + + + @@ -3510,8 +3642,10 @@ - - + + + + @@ -3524,8 +3658,10 @@ - - + + + + @@ -3538,8 +3674,10 @@ - - + + + + @@ -3552,8 +3690,10 @@ - - + + + + @@ -3566,8 +3706,10 @@ - - + + + + @@ -3580,8 +3722,10 @@ - - + + + + @@ -3594,8 +3738,10 @@ - - + + + + @@ -3608,8 +3754,10 @@ - - + + + + @@ -3622,8 +3770,10 @@ - - + + + + @@ -3636,8 +3786,10 @@ - - + + + + @@ -3650,8 +3802,10 @@ - - + + + + @@ -3664,8 +3818,10 @@ - - + + + + @@ -3678,8 +3834,10 @@ - - + + + + @@ -3692,8 +3850,10 @@ - - + + + + @@ -3706,8 +3866,10 @@ - - + + + + @@ -3720,8 +3882,10 @@ - - + + + + @@ -3734,8 +3898,10 @@ - - + + + + @@ -3748,8 +3914,10 @@ - - + + + + @@ -3762,8 +3930,10 @@ - - + + + + @@ -3776,8 +3946,10 @@ - - + + + + @@ -3790,8 +3962,10 @@ - - + + + + @@ -3804,8 +3978,10 @@ - - + + + + @@ -3818,8 +3994,10 @@ - - + + + + @@ -3832,8 +4010,10 @@ - - + + + + @@ -3846,8 +4026,10 @@ - - + + + + @@ -3860,8 +4042,10 @@ - - + + + + @@ -3874,8 +4058,10 @@ - - + + + + @@ -3888,8 +4074,10 @@ - - + + + + @@ -3902,8 +4090,10 @@ - - + + + + @@ -3916,8 +4106,10 @@ - - + + + + @@ -3930,8 +4122,10 @@ - - + + + + @@ -3944,8 +4138,10 @@ - - + + + + @@ -3958,8 +4154,10 @@ - - + + + + @@ -3972,8 +4170,10 @@ - - + + + + @@ -3986,8 +4186,10 @@ - - + + + + @@ -4000,8 +4202,10 @@ - - + + + + @@ -4014,8 +4218,10 @@ - - + + + + @@ -4028,8 +4234,10 @@ - - + + + + @@ -4042,8 +4250,10 @@ - - + + + + @@ -4056,8 +4266,10 @@ - - + + + + @@ -4070,8 +4282,10 @@ - - + + + + @@ -4084,8 +4298,10 @@ - - + + + + @@ -4098,8 +4314,10 @@ - - + + + + @@ -4112,8 +4330,10 @@ - - + + + + @@ -4126,8 +4346,10 @@ - - + + + + @@ -4140,8 +4362,10 @@ - - + + + + @@ -4154,8 +4378,10 @@ - - + + + + @@ -4168,8 +4394,10 @@ - - + + + + @@ -4182,8 +4410,10 @@ - - + + + + @@ -4196,8 +4426,10 @@ - - + + + + @@ -4210,8 +4442,10 @@ - - + + + + @@ -4224,8 +4458,10 @@ - - + + + + @@ -4238,8 +4474,10 @@ - - + + + + @@ -4252,8 +4490,10 @@ - - + + + + @@ -4266,8 +4506,10 @@ - - + + + + @@ -4280,8 +4522,10 @@ - - + + + + @@ -4294,8 +4538,10 @@ - - + + + + @@ -4308,8 +4554,10 @@ - - + + + + @@ -4322,8 +4570,10 @@ - - + + + + @@ -4336,8 +4586,10 @@ - - + + + + @@ -4350,8 +4602,10 @@ - - + + + + @@ -4364,8 +4618,10 @@ - - + + + + @@ -4378,8 +4634,10 @@ - - + + + + @@ -4392,8 +4650,10 @@ - - + + + + @@ -4406,8 +4666,10 @@ - - + + + + @@ -4420,8 +4682,10 @@ - - + + + + @@ -4434,8 +4698,10 @@ - - + + + + @@ -4448,8 +4714,10 @@ - - + + + + @@ -4462,8 +4730,10 @@ - - + + + + @@ -4476,8 +4746,10 @@ - - + + + + @@ -4490,8 +4762,10 @@ - - + + + + @@ -4504,8 +4778,10 @@ - - + + + + @@ -4518,8 +4794,10 @@ - - + + + + @@ -4532,8 +4810,10 @@ - - + + + + @@ -4546,8 +4826,10 @@ - - + + + + @@ -4560,8 +4842,10 @@ - - + + + + @@ -4574,8 +4858,10 @@ - - + + + + @@ -4588,8 +4874,10 @@ - - + + + + @@ -4602,8 +4890,10 @@ - - + + + + @@ -4616,8 +4906,10 @@ - - + + + + @@ -4630,8 +4922,10 @@ - - + + + + @@ -4644,8 +4938,10 @@ - - + + + + @@ -4658,8 +4954,10 @@ - - + + + + @@ -4672,8 +4970,10 @@ - - + + + + @@ -4686,8 +4986,10 @@ - - + + + + @@ -4700,8 +5002,10 @@ - - + + + + @@ -4714,8 +5018,10 @@ - - + + + + @@ -4728,8 +5034,10 @@ - - + + + + @@ -4742,8 +5050,10 @@ - - + + + + @@ -4756,8 +5066,10 @@ - - + + + + @@ -4770,8 +5082,10 @@ - - + + + + @@ -4784,8 +5098,10 @@ - - + + + + @@ -4798,8 +5114,10 @@ - - + + + + @@ -4812,8 +5130,10 @@ - - + + + + @@ -4826,8 +5146,10 @@ - - + + + + @@ -4840,8 +5162,10 @@ - - + + + + @@ -4854,8 +5178,10 @@ - - + + + + @@ -4868,8 +5194,10 @@ - - + + + + @@ -4882,8 +5210,10 @@ - - + + + + @@ -4896,8 +5226,10 @@ - - + + + + @@ -4910,8 +5242,10 @@ - - + + + + @@ -4924,8 +5258,10 @@ - - + + + + @@ -4938,8 +5274,10 @@ - - + + + + @@ -4952,8 +5290,10 @@ - - + + + + @@ -4966,8 +5306,10 @@ - - + + + + @@ -4980,8 +5322,10 @@ - - + + + + @@ -4994,8 +5338,10 @@ - - + + + + @@ -5008,8 +5354,10 @@ - - + + + + @@ -5022,8 +5370,10 @@ - - + + + + @@ -5036,8 +5386,10 @@ - - + + + + @@ -5050,8 +5402,10 @@ - - + + + + @@ -5064,8 +5418,10 @@ - - + + + + @@ -5078,8 +5434,10 @@ - - + + + + @@ -5092,8 +5450,10 @@ - - + + + + @@ -5106,8 +5466,10 @@ - - + + + + @@ -5120,8 +5482,10 @@ - - + + + + @@ -5134,8 +5498,10 @@ - - + + + + @@ -5148,8 +5514,10 @@ - - + + + + @@ -5162,8 +5530,10 @@ - - + + + + @@ -5176,8 +5546,10 @@ - - + + + + @@ -5190,8 +5562,10 @@ - - + + + + @@ -5204,8 +5578,10 @@ - - + + + + @@ -5218,8 +5594,10 @@ - - + + + + @@ -5232,7 +5610,8 @@ - + + diff --git a/Utilities/CodeGeneration/EdFi.Ods.CodeGen.Tests/Approval/4.0.0/DataStandard_400_ApprovalTests.Verify.Standard_Std_4.0.0_EntityOrmMappings_PgSql_EntityOrmMappingsForQueries.generated.hbm.approved.xml b/Utilities/CodeGeneration/EdFi.Ods.CodeGen.Tests/Approval/4.0.0/DataStandard_400_ApprovalTests.Verify.Standard_Std_4.0.0_EntityOrmMappings_PgSql_EntityOrmMappingsForQueries.generated.hbm.approved.xml index 87d4b8dbd2..73ffc27d77 100644 --- a/Utilities/CodeGeneration/EdFi.Ods.CodeGen.Tests/Approval/4.0.0/DataStandard_400_ApprovalTests.Verify.Standard_Std_4.0.0_EntityOrmMappings_PgSql_EntityOrmMappingsForQueries.generated.hbm.approved.xml +++ b/Utilities/CodeGeneration/EdFi.Ods.CodeGen.Tests/Approval/4.0.0/DataStandard_400_ApprovalTests.Verify.Standard_Std_4.0.0_EntityOrmMappings_PgSql_EntityOrmMappingsForQueries.generated.hbm.approved.xml @@ -2757,12 +2757,13 @@ - + + @@ -2774,6 +2775,8 @@ + + @@ -2787,7 +2790,8 @@ - + + @@ -2807,8 +2811,10 @@ - - + + + + @@ -2828,8 +2834,10 @@ - - + + + + @@ -2926,8 +2934,10 @@ - - + + + + @@ -2947,8 +2957,10 @@ - - + + + + @@ -2968,8 +2980,10 @@ - - + + + + @@ -3010,8 +3024,10 @@ - - + + + + @@ -3031,8 +3047,10 @@ - - + + + + @@ -3108,8 +3126,10 @@ - - + + + + @@ -3129,8 +3149,10 @@ - - + + + + @@ -3157,8 +3179,10 @@ - - + + + + @@ -3185,8 +3209,10 @@ - - + + + + @@ -3206,8 +3232,10 @@ - - + + + + @@ -3227,8 +3255,10 @@ - - + + + + @@ -3248,8 +3278,10 @@ - - + + + + @@ -3269,8 +3301,10 @@ - - + + + + @@ -3297,8 +3331,10 @@ - - + + + + @@ -3388,8 +3424,10 @@ - - + + + + @@ -3409,8 +3447,10 @@ - - + + + + @@ -3430,8 +3470,10 @@ - - + + + + @@ -3472,8 +3514,10 @@ - - + + + + @@ -3493,8 +3537,10 @@ - - + + + + @@ -3528,8 +3574,10 @@ - - + + + + @@ -3549,8 +3597,10 @@ - - + + + + @@ -3570,8 +3620,10 @@ - - + + + + @@ -3598,8 +3650,10 @@ - - + + + + @@ -3619,8 +3673,10 @@ - - + + + + @@ -3647,8 +3703,10 @@ - - + + + + @@ -3675,8 +3733,10 @@ - - + + + + @@ -3696,8 +3756,10 @@ - - + + + + @@ -3717,8 +3779,10 @@ - - + + + + @@ -3738,8 +3802,10 @@ - - + + + + @@ -3759,8 +3825,10 @@ - - + + + + @@ -3801,8 +3869,10 @@ - - + + + + @@ -3822,8 +3892,10 @@ - - + + + + @@ -3843,8 +3915,10 @@ - - + + + + @@ -3864,8 +3938,10 @@ - - + + + + @@ -3885,8 +3961,10 @@ - - + + + + @@ -3969,8 +4047,10 @@ - - + + + + @@ -3990,8 +4070,10 @@ - - + + + + @@ -4011,8 +4093,10 @@ - - + + + + @@ -4032,8 +4116,10 @@ - - + + + + @@ -4060,8 +4146,10 @@ - - + + + + @@ -4095,8 +4183,10 @@ - - + + + + @@ -4116,8 +4206,10 @@ - - + + + + @@ -4137,8 +4229,10 @@ - - + + + + @@ -4158,8 +4252,10 @@ - - + + + + @@ -4186,8 +4282,10 @@ - - + + + + @@ -4291,8 +4389,10 @@ - - + + + + @@ -4312,8 +4412,10 @@ - - + + + + @@ -4333,8 +4435,10 @@ - - + + + + @@ -4368,8 +4472,10 @@ - - + + + + @@ -4410,8 +4516,10 @@ - - + + + + @@ -4431,8 +4539,10 @@ - - + + + + @@ -4452,8 +4562,10 @@ - - + + + + @@ -4480,8 +4592,10 @@ - - + + + + @@ -4508,8 +4622,10 @@ - - + + + + @@ -4536,8 +4652,10 @@ - - + + + + @@ -4557,8 +4675,10 @@ - - + + + + @@ -4578,8 +4698,10 @@ - - + + + + @@ -4620,8 +4742,10 @@ - - + + + + @@ -4676,8 +4800,10 @@ - - + + + + @@ -4697,8 +4823,10 @@ - - + + + + @@ -4718,8 +4846,10 @@ - - + + + + @@ -4739,8 +4869,10 @@ - - + + + + @@ -4760,8 +4892,10 @@ - - + + + + @@ -4795,8 +4929,10 @@ - - + + + + @@ -4823,8 +4959,10 @@ - - + + + + @@ -4844,8 +4982,10 @@ - - + + + + @@ -4865,8 +5005,10 @@ - - + + + + @@ -4886,8 +5028,10 @@ - - + + + + @@ -4907,8 +5051,10 @@ - - + + + + @@ -4956,8 +5102,10 @@ - - + + + + @@ -4977,8 +5125,10 @@ - - + + + + @@ -5152,8 +5302,10 @@ - - + + + + @@ -5180,8 +5332,10 @@ - - + + + + @@ -5201,8 +5355,10 @@ - - + + + + @@ -5222,8 +5378,10 @@ - - + + + + @@ -5243,8 +5401,10 @@ - - + + + + @@ -5264,8 +5424,10 @@ - - + + + + @@ -5285,8 +5447,10 @@ - - + + + + @@ -5306,8 +5470,10 @@ - - + + + + @@ -5355,8 +5521,10 @@ - - + + + + @@ -5376,8 +5544,10 @@ - - + + + + @@ -5397,8 +5567,10 @@ - - + + + + @@ -5418,8 +5590,10 @@ - - + + + + @@ -5439,8 +5613,10 @@ - - + + + + @@ -5460,8 +5636,10 @@ - - + + + + @@ -5481,8 +5659,10 @@ - - + + + + @@ -5502,8 +5682,10 @@ - - + + + + @@ -5523,8 +5705,10 @@ - - + + + + @@ -5544,8 +5728,10 @@ - - + + + + @@ -5579,8 +5765,10 @@ - - + + + + @@ -5607,8 +5795,10 @@ - - + + + + @@ -5670,8 +5860,10 @@ - - + + + + @@ -5691,8 +5883,10 @@ - - + + + + @@ -5726,8 +5920,10 @@ - - + + + + @@ -5747,8 +5943,10 @@ - - + + + + @@ -5768,8 +5966,10 @@ - - + + + + @@ -5789,8 +5989,10 @@ - - + + + + @@ -5817,8 +6019,10 @@ - - + + + + @@ -5838,8 +6042,10 @@ - - + + + + @@ -5859,8 +6065,10 @@ - - + + + + @@ -5880,8 +6088,10 @@ - - + + + + @@ -5929,8 +6139,10 @@ - - + + + + @@ -5950,8 +6162,10 @@ - - + + + + @@ -5971,8 +6185,10 @@ - - + + + + @@ -5999,8 +6215,10 @@ - - + + + + @@ -6027,8 +6245,10 @@ - - + + + + @@ -6048,8 +6268,10 @@ - - + + + + @@ -6069,8 +6291,10 @@ - - + + + + @@ -6090,8 +6314,10 @@ - - + + + + @@ -6111,8 +6337,10 @@ - - + + + + @@ -6132,8 +6360,10 @@ - - + + + + @@ -6153,8 +6383,10 @@ - - + + + + @@ -6181,8 +6413,10 @@ - - + + + + @@ -6202,8 +6436,10 @@ - - + + + + @@ -6237,8 +6473,10 @@ - - + + + + @@ -6258,8 +6496,10 @@ - - + + + + @@ -6286,8 +6526,10 @@ - - + + + + @@ -6314,8 +6556,10 @@ - - + + + + @@ -6363,8 +6607,10 @@ - - + + + + @@ -6412,8 +6658,10 @@ - - + + + + @@ -6440,8 +6688,10 @@ - - + + + + @@ -6496,8 +6746,10 @@ - - + + + + @@ -6517,8 +6769,10 @@ - - + + + + @@ -6538,8 +6792,10 @@ - - + + + + @@ -6559,8 +6815,10 @@ - - + + + + @@ -6580,8 +6838,10 @@ - - + + + + @@ -6601,8 +6861,10 @@ - - + + + + @@ -6622,8 +6884,10 @@ - - + + + + @@ -6643,8 +6907,10 @@ - - + + + + @@ -6671,8 +6937,10 @@ - - + + + + @@ -6699,8 +6967,10 @@ - - + + + + @@ -6720,8 +6990,10 @@ - - + + + + @@ -6748,8 +7020,10 @@ - - + + + + @@ -6769,8 +7043,10 @@ - - + + + + @@ -6797,8 +7073,10 @@ - - + + + + @@ -6818,8 +7096,10 @@ - - + + + + @@ -6839,8 +7119,10 @@ - - + + + + @@ -6860,8 +7142,10 @@ - - + + + + @@ -6895,8 +7179,10 @@ - - + + + + @@ -6916,8 +7202,10 @@ - - + + + + @@ -6944,8 +7232,10 @@ - - + + + + @@ -6965,8 +7255,10 @@ - - + + + + @@ -6986,8 +7278,10 @@ - - + + + + @@ -7014,8 +7308,10 @@ - - + + + + @@ -7035,8 +7331,10 @@ - - + + + + @@ -7056,8 +7354,10 @@ - - + + + + @@ -7077,8 +7377,10 @@ - - + + + + @@ -7161,8 +7463,10 @@ - - + + + + @@ -7182,8 +7486,10 @@ - - + + + + @@ -7203,8 +7509,10 @@ - - + + + + @@ -7224,8 +7532,10 @@ - - + + + + @@ -7245,8 +7555,10 @@ - - + + + + @@ -7315,8 +7627,10 @@ - - + + + + @@ -7336,8 +7650,10 @@ - - + + + + @@ -7357,8 +7673,10 @@ - - + + + + @@ -7378,8 +7696,10 @@ - - + + + + @@ -7399,8 +7719,10 @@ - - + + + + @@ -7420,8 +7742,10 @@ - - + + + + @@ -7441,8 +7765,10 @@ - - + + + + @@ -7462,8 +7788,10 @@ - - + + + + @@ -7483,8 +7811,10 @@ - - + + + + @@ -7525,8 +7855,10 @@ - - + + + + @@ -7595,8 +7927,10 @@ - - + + + + @@ -7616,8 +7950,10 @@ - - + + + + @@ -7637,8 +7973,10 @@ - - + + + + @@ -7658,8 +7996,10 @@ - - + + + + @@ -7686,8 +8026,10 @@ - - + + + + @@ -7707,8 +8049,10 @@ - - + + + + @@ -7728,8 +8072,10 @@ - - + + + + @@ -7798,8 +8144,10 @@ - - + + + + @@ -7819,8 +8167,10 @@ - - + + + + @@ -7840,8 +8190,10 @@ - - + + + + @@ -7861,8 +8213,10 @@ - - + + + + @@ -7882,8 +8236,10 @@ - - + + + + @@ -7903,8 +8259,10 @@ - - + + + + @@ -7924,8 +8282,10 @@ - - + + + + @@ -7945,8 +8305,10 @@ - - + + + + @@ -7966,8 +8328,10 @@ - - + + + + @@ -7987,8 +8351,10 @@ - - + + + + @@ -8029,8 +8395,10 @@ - - + + + + @@ -8064,8 +8432,10 @@ - - + + + + @@ -8085,8 +8455,10 @@ - - + + + + @@ -8106,8 +8478,10 @@ - - + + + + @@ -8127,8 +8501,10 @@ - - + + + + @@ -8155,8 +8531,10 @@ - - + + + + @@ -8183,8 +8561,10 @@ - - + + + + @@ -8204,7 +8584,8 @@ - + + diff --git a/Utilities/CodeGeneration/EdFi.Ods.CodeGen.Tests/Approval/4.0.0/DataStandard_400_ApprovalTests.Verify.Standard_Std_4.0.0_Models_Entities_EntitiesForQueries.generated.approved.cs b/Utilities/CodeGeneration/EdFi.Ods.CodeGen.Tests/Approval/4.0.0/DataStandard_400_ApprovalTests.Verify.Standard_Std_4.0.0_Models_Entities_EntitiesForQueries.generated.approved.cs index e81e8d8ec8..f73eab61fa 100644 --- a/Utilities/CodeGeneration/EdFi.Ods.CodeGen.Tests/Approval/4.0.0/DataStandard_400_ApprovalTests.Verify.Standard_Std_4.0.0_Models_Entities_EntitiesForQueries.generated.approved.cs +++ b/Utilities/CodeGeneration/EdFi.Ods.CodeGen.Tests/Approval/4.0.0/DataStandard_400_ApprovalTests.Verify.Standard_Std_4.0.0_Models_Entities_EntitiesForQueries.generated.approved.cs @@ -5489,6 +5489,12 @@ public abstract class DescriptorQ : AggregateRootWithCompositeKey public virtual int DescriptorId { get; set; } // ------------------------------------------------------------- + // ============================================================= + // Discriminator + // ------------------------------------------------------------- + + public virtual string Discriminator { get; set; } + // ============================================================= // Properties // ------------------------------------------------------------- diff --git a/Utilities/CodeGeneration/EdFi.Ods.CodeGen.Tests/Approval/4.0.0/DataStandard_400_ApprovalTests.Verify.Standard_Std_4.0.0_Resources_Resources.generated.approved.cs b/Utilities/CodeGeneration/EdFi.Ods.CodeGen.Tests/Approval/4.0.0/DataStandard_400_ApprovalTests.Verify.Standard_Std_4.0.0_Resources_Resources.generated.approved.cs index aa7e57ab16..411149e822 100644 --- a/Utilities/CodeGeneration/EdFi.Ods.CodeGen.Tests/Approval/4.0.0/DataStandard_400_ApprovalTests.Verify.Standard_Std_4.0.0_Resources_Resources.generated.approved.cs +++ b/Utilities/CodeGeneration/EdFi.Ods.CodeGen.Tests/Approval/4.0.0/DataStandard_400_ApprovalTests.Verify.Standard_Std_4.0.0_Resources_Resources.generated.approved.cs @@ -41627,6 +41627,12 @@ public class DescriptorReference : IResourceReference /// public Guid ResourceId { get; set; } + /// + /// Gets or sets the discriminator value which identifies the concrete sub-type of the referenced resource + /// when the referenced resource has been derived; otherwise null. + /// + public string Discriminator { get; set; } + private Link _link; @@ -41672,7 +41678,26 @@ private Link CreateLink() Href = $"/ed-fi/descriptors/{ResourceId:n}" }; - return link; + if (string.IsNullOrEmpty(Discriminator)) + return link; + + string[] linkParts = Discriminator.Split('.'); + + if (linkParts.Length < 2) + return link; + + var resource = GeneratedArtifactStaticDependencies.ResourceModelProvider.GetResourceModel() + .GetResourceByFullName(new FullName(linkParts[0], linkParts[1])); + + // return the default link if the relationship is already correct, and/or if the resource is not found. + if (resource == null || link.Rel == resource.Name) + return link; + + return new Link + { + Rel = resource.Name, + Href = $"/{resource.SchemaUriSegment()}/{resource.PluralName.ToCamelCase()}/{ResourceId:n}" + }; } } // Aggregate reference diff --git a/Utilities/CodeGeneration/EdFi.Ods.CodeGen.Tests/Approval/5.1.0/DataStandard_510_ApprovalTests.Verify.Standard_Std_5.1.0_EntityOrmMappings_MsSql_EntityOrmMappings.generated.hbm.approved.xml b/Utilities/CodeGeneration/EdFi.Ods.CodeGen.Tests/Approval/5.1.0/DataStandard_510_ApprovalTests.Verify.Standard_Std_5.1.0_EntityOrmMappings_MsSql_EntityOrmMappings.generated.hbm.approved.xml index 926bf7c9bc..ad3d7561fc 100644 --- a/Utilities/CodeGeneration/EdFi.Ods.CodeGen.Tests/Approval/5.1.0/DataStandard_510_ApprovalTests.Verify.Standard_Std_5.1.0_EntityOrmMappings_MsSql_EntityOrmMappings.generated.hbm.approved.xml +++ b/Utilities/CodeGeneration/EdFi.Ods.CodeGen.Tests/Approval/5.1.0/DataStandard_510_ApprovalTests.Verify.Standard_Std_5.1.0_EntityOrmMappings_MsSql_EntityOrmMappings.generated.hbm.approved.xml @@ -3091,12 +3091,13 @@ - + + @@ -3121,7 +3122,8 @@ - + + @@ -3134,8 +3136,10 @@ - - + + + + @@ -3148,8 +3152,10 @@ - - + + + + @@ -3162,8 +3168,10 @@ - - + + + + @@ -3176,8 +3184,10 @@ - - + + + + @@ -3190,8 +3200,10 @@ - - + + + + @@ -3204,8 +3216,10 @@ - - + + + + @@ -3218,8 +3232,10 @@ - - + + + + @@ -3232,8 +3248,10 @@ - - + + + + @@ -3246,8 +3264,10 @@ - - + + + + @@ -3260,8 +3280,10 @@ - - + + + + @@ -3274,8 +3296,10 @@ - - + + + + @@ -3288,8 +3312,10 @@ - - + + + + @@ -3302,8 +3328,10 @@ - - + + + + @@ -3316,8 +3344,10 @@ - - + + + + @@ -3330,8 +3360,10 @@ - - + + + + @@ -3344,8 +3376,10 @@ - - + + + + @@ -3358,8 +3392,10 @@ - - + + + + @@ -3372,8 +3408,10 @@ - - + + + + @@ -3386,8 +3424,10 @@ - - + + + + @@ -3400,8 +3440,10 @@ - - + + + + @@ -3414,8 +3456,10 @@ - - + + + + @@ -3428,8 +3472,10 @@ - - + + + + @@ -3442,8 +3488,10 @@ - - + + + + @@ -3456,8 +3504,10 @@ - - + + + + @@ -3470,8 +3520,10 @@ - - + + + + @@ -3484,8 +3536,10 @@ - - + + + + @@ -3498,8 +3552,10 @@ - - + + + + @@ -3512,8 +3568,10 @@ - - + + + + @@ -3526,8 +3584,10 @@ - - + + + + @@ -3540,8 +3600,10 @@ - - + + + + @@ -3554,8 +3616,10 @@ - - + + + + @@ -3568,8 +3632,10 @@ - - + + + + @@ -3582,8 +3648,10 @@ - - + + + + @@ -3596,8 +3664,10 @@ - - + + + + @@ -3610,8 +3680,10 @@ - - + + + + @@ -3624,8 +3696,10 @@ - - + + + + @@ -3638,8 +3712,10 @@ - - + + + + @@ -3652,8 +3728,10 @@ - - + + + + @@ -3666,8 +3744,10 @@ - - + + + + @@ -3680,8 +3760,10 @@ - - + + + + @@ -3694,8 +3776,10 @@ - - + + + + @@ -3708,8 +3792,10 @@ - - + + + + @@ -3722,8 +3808,10 @@ - - + + + + @@ -3736,8 +3824,10 @@ - - + + + + @@ -3750,8 +3840,10 @@ - - + + + + @@ -3764,8 +3856,10 @@ - - + + + + @@ -3778,8 +3872,10 @@ - - + + + + @@ -3792,8 +3888,10 @@ - - + + + + @@ -3806,8 +3904,10 @@ - - + + + + @@ -3820,8 +3920,10 @@ - - + + + + @@ -3834,8 +3936,10 @@ - - + + + + @@ -3848,8 +3952,10 @@ - - + + + + @@ -3862,8 +3968,10 @@ - - + + + + @@ -3876,8 +3984,10 @@ - - + + + + @@ -3890,8 +4000,10 @@ - - + + + + @@ -3904,8 +4016,10 @@ - - + + + + @@ -3918,8 +4032,10 @@ - - + + + + @@ -3932,8 +4048,10 @@ - - + + + + @@ -3946,8 +4064,10 @@ - - + + + + @@ -3960,8 +4080,10 @@ - - + + + + @@ -3974,8 +4096,10 @@ - - + + + + @@ -3988,8 +4112,10 @@ - - + + + + @@ -4002,8 +4128,10 @@ - - + + + + @@ -4016,8 +4144,10 @@ - - + + + + @@ -4030,8 +4160,10 @@ - - + + + + @@ -4044,8 +4176,10 @@ - - + + + + @@ -4058,8 +4192,10 @@ - - + + + + @@ -4072,8 +4208,10 @@ - - + + + + @@ -4086,8 +4224,10 @@ - - + + + + @@ -4100,8 +4240,10 @@ - - + + + + @@ -4114,8 +4256,10 @@ - - + + + + @@ -4128,8 +4272,10 @@ - - + + + + @@ -4142,8 +4288,10 @@ - - + + + + @@ -4156,8 +4304,10 @@ - - + + + + @@ -4170,8 +4320,10 @@ - - + + + + @@ -4184,8 +4336,10 @@ - - + + + + @@ -4198,8 +4352,10 @@ - - + + + + @@ -4212,8 +4368,10 @@ - - + + + + @@ -4226,8 +4384,10 @@ - - + + + + @@ -4240,8 +4400,10 @@ - - + + + + @@ -4254,8 +4416,10 @@ - - + + + + @@ -4268,8 +4432,10 @@ - - + + + + @@ -4282,8 +4448,10 @@ - - + + + + @@ -4296,8 +4464,10 @@ - - + + + + @@ -4310,8 +4480,10 @@ - - + + + + @@ -4324,8 +4496,10 @@ - - + + + + @@ -4338,8 +4512,10 @@ - - + + + + @@ -4352,8 +4528,10 @@ - - + + + + @@ -4366,8 +4544,10 @@ - - + + + + @@ -4380,8 +4560,10 @@ - - + + + + @@ -4394,8 +4576,10 @@ - - + + + + @@ -4408,8 +4592,10 @@ - - + + + + @@ -4422,8 +4608,10 @@ - - + + + + @@ -4436,8 +4624,10 @@ - - + + + + @@ -4450,8 +4640,10 @@ - - + + + + @@ -4464,8 +4656,10 @@ - - + + + + @@ -4478,8 +4672,10 @@ - - + + + + @@ -4492,8 +4688,10 @@ - - + + + + @@ -4506,8 +4704,10 @@ - - + + + + @@ -4520,8 +4720,10 @@ - - + + + + @@ -4534,8 +4736,10 @@ - - + + + + @@ -4548,8 +4752,10 @@ - - + + + + @@ -4562,8 +4768,10 @@ - - + + + + @@ -4576,8 +4784,10 @@ - - + + + + @@ -4590,8 +4800,10 @@ - - + + + + @@ -4604,8 +4816,10 @@ - - + + + + @@ -4618,8 +4832,10 @@ - - + + + + @@ -4632,8 +4848,10 @@ - - + + + + @@ -4646,8 +4864,10 @@ - - + + + + @@ -4660,8 +4880,10 @@ - - + + + + @@ -4674,8 +4896,10 @@ - - + + + + @@ -4688,8 +4912,10 @@ - - + + + + @@ -4702,8 +4928,10 @@ - - + + + + @@ -4716,8 +4944,10 @@ - - + + + + @@ -4730,8 +4960,10 @@ - - + + + + @@ -4744,8 +4976,10 @@ - - + + + + @@ -4758,8 +4992,10 @@ - - + + + + @@ -4772,8 +5008,10 @@ - - + + + + @@ -4786,8 +5024,10 @@ - - + + + + @@ -4800,8 +5040,10 @@ - - + + + + @@ -4814,8 +5056,10 @@ - - + + + + @@ -4828,8 +5072,10 @@ - - + + + + @@ -4842,8 +5088,10 @@ - - + + + + @@ -4856,8 +5104,10 @@ - - + + + + @@ -4870,8 +5120,10 @@ - - + + + + @@ -4884,8 +5136,10 @@ - - + + + + @@ -4898,8 +5152,10 @@ - - + + + + @@ -4912,8 +5168,10 @@ - - + + + + @@ -4926,8 +5184,10 @@ - - + + + + @@ -4940,8 +5200,10 @@ - - + + + + @@ -4954,8 +5216,10 @@ - - + + + + @@ -4968,8 +5232,10 @@ - - + + + + @@ -4982,8 +5248,10 @@ - - + + + + @@ -4996,8 +5264,10 @@ - - + + + + @@ -5010,8 +5280,10 @@ - - + + + + @@ -5024,8 +5296,10 @@ - - + + + + @@ -5038,8 +5312,10 @@ - - + + + + @@ -5052,8 +5328,10 @@ - - + + + + @@ -5066,8 +5344,10 @@ - - + + + + @@ -5080,8 +5360,10 @@ - - + + + + @@ -5094,8 +5376,10 @@ - - + + + + @@ -5108,8 +5392,10 @@ - - + + + + @@ -5122,8 +5408,10 @@ - - + + + + @@ -5136,8 +5424,10 @@ - - + + + + @@ -5150,8 +5440,10 @@ - - + + + + @@ -5164,8 +5456,10 @@ - - + + + + @@ -5178,8 +5472,10 @@ - - + + + + @@ -5192,8 +5488,10 @@ - - + + + + @@ -5206,8 +5504,10 @@ - - + + + + @@ -5220,8 +5520,10 @@ - - + + + + @@ -5234,8 +5536,10 @@ - - + + + + @@ -5248,8 +5552,10 @@ - - + + + + @@ -5262,8 +5568,10 @@ - - + + + + @@ -5276,8 +5584,10 @@ - - + + + + @@ -5290,8 +5600,10 @@ - - + + + + @@ -5304,8 +5616,10 @@ - - + + + + @@ -5318,8 +5632,10 @@ - - + + + + @@ -5332,8 +5648,10 @@ - - + + + + @@ -5346,8 +5664,10 @@ - - + + + + @@ -5360,8 +5680,10 @@ - - + + + + @@ -5374,8 +5696,10 @@ - - + + + + @@ -5388,8 +5712,10 @@ - - + + + + @@ -5402,8 +5728,10 @@ - - + + + + @@ -5416,8 +5744,10 @@ - - + + + + @@ -5430,8 +5760,10 @@ - - + + + + @@ -5444,8 +5776,10 @@ - - + + + + @@ -5458,8 +5792,10 @@ - - + + + + @@ -5472,8 +5808,10 @@ - - + + + + @@ -5486,8 +5824,10 @@ - - + + + + @@ -5500,8 +5840,10 @@ - - + + + + @@ -5514,8 +5856,10 @@ - - + + + + @@ -5528,8 +5872,10 @@ - - + + + + @@ -5542,8 +5888,10 @@ - - + + + + @@ -5556,8 +5904,10 @@ - - + + + + @@ -5570,8 +5920,10 @@ - - + + + + @@ -5584,8 +5936,10 @@ - - + + + + @@ -5598,8 +5952,10 @@ - - + + + + @@ -5612,8 +5968,10 @@ - - + + + + @@ -5626,8 +5984,10 @@ - - + + + + @@ -5640,8 +6000,10 @@ - - + + + + @@ -5654,8 +6016,10 @@ - - + + + + @@ -5668,8 +6032,10 @@ - - + + + + @@ -5682,8 +6048,10 @@ - - + + + + @@ -5696,8 +6064,10 @@ - - + + + + @@ -5710,8 +6080,10 @@ - - + + + + @@ -5724,8 +6096,10 @@ - - + + + + @@ -5738,8 +6112,10 @@ - - + + + + @@ -5752,8 +6128,10 @@ - - + + + + @@ -5766,8 +6144,10 @@ - - + + + + @@ -5780,8 +6160,10 @@ - - + + + + @@ -5794,8 +6176,10 @@ - - + + + + @@ -5808,8 +6192,10 @@ - - + + + + @@ -5822,8 +6208,10 @@ - - + + + + @@ -5836,8 +6224,10 @@ - - + + + + @@ -5850,8 +6240,10 @@ - - + + + + @@ -5864,8 +6256,10 @@ - - + + + + @@ -5878,8 +6272,10 @@ - - + + + + @@ -5892,8 +6288,10 @@ - - + + + + @@ -5906,8 +6304,10 @@ - - + + + + @@ -5920,8 +6320,10 @@ - - + + + + @@ -5934,8 +6336,10 @@ - - + + + + @@ -5948,8 +6352,10 @@ - - + + + + @@ -5962,8 +6368,10 @@ - - + + + + @@ -5976,8 +6384,10 @@ - - + + + + @@ -5990,8 +6400,10 @@ - - + + + + @@ -6004,8 +6416,10 @@ - - + + + + @@ -6018,8 +6432,10 @@ - - + + + + @@ -6032,8 +6448,10 @@ - - + + + + @@ -6046,7 +6464,8 @@ - + + diff --git a/Utilities/CodeGeneration/EdFi.Ods.CodeGen.Tests/Approval/5.1.0/DataStandard_510_ApprovalTests.Verify.Standard_Std_5.1.0_EntityOrmMappings_MsSql_EntityOrmMappingsForQueries.generated.hbm.approved.xml b/Utilities/CodeGeneration/EdFi.Ods.CodeGen.Tests/Approval/5.1.0/DataStandard_510_ApprovalTests.Verify.Standard_Std_5.1.0_EntityOrmMappings_MsSql_EntityOrmMappingsForQueries.generated.hbm.approved.xml index 23cbccb3bd..bcf9b0c6e5 100644 --- a/Utilities/CodeGeneration/EdFi.Ods.CodeGen.Tests/Approval/5.1.0/DataStandard_510_ApprovalTests.Verify.Standard_Std_5.1.0_EntityOrmMappings_MsSql_EntityOrmMappingsForQueries.generated.hbm.approved.xml +++ b/Utilities/CodeGeneration/EdFi.Ods.CodeGen.Tests/Approval/5.1.0/DataStandard_510_ApprovalTests.Verify.Standard_Std_5.1.0_EntityOrmMappings_MsSql_EntityOrmMappingsForQueries.generated.hbm.approved.xml @@ -3342,12 +3342,13 @@ - + + @@ -3359,6 +3360,8 @@ + + @@ -3372,7 +3375,8 @@ - + + @@ -3392,8 +3396,10 @@ - - + + + + @@ -3413,8 +3419,10 @@ - - + + + + @@ -3504,8 +3512,10 @@ - - + + + + @@ -3525,8 +3535,10 @@ - - + + + + @@ -3546,8 +3558,10 @@ - - + + + + @@ -3588,8 +3602,10 @@ - - + + + + @@ -3609,8 +3625,10 @@ - - + + + + @@ -3686,8 +3704,10 @@ - - + + + + @@ -3707,8 +3727,10 @@ - - + + + + @@ -3735,8 +3757,10 @@ - - + + + + @@ -3763,8 +3787,10 @@ - - + + + + @@ -3784,8 +3810,10 @@ - - + + + + @@ -3805,8 +3833,10 @@ - - + + + + @@ -3826,8 +3856,10 @@ - - + + + + @@ -3847,8 +3879,10 @@ - - + + + + @@ -3875,8 +3909,10 @@ - - + + + + @@ -3966,8 +4002,10 @@ - - + + + + @@ -3987,8 +4025,10 @@ - - + + + + @@ -4008,8 +4048,10 @@ - - + + + + @@ -4050,8 +4092,10 @@ - - + + + + @@ -4071,8 +4115,10 @@ - - + + + + @@ -4099,8 +4145,10 @@ - - + + + + @@ -4120,8 +4168,10 @@ - - + + + + @@ -4141,8 +4191,10 @@ - - + + + + @@ -4162,8 +4214,10 @@ - - + + + + @@ -4183,8 +4237,10 @@ - - + + + + @@ -4204,8 +4260,10 @@ - - + + + + @@ -4232,8 +4290,10 @@ - - + + + + @@ -4260,8 +4320,10 @@ - - + + + + @@ -4281,8 +4343,10 @@ - - + + + + @@ -4302,8 +4366,10 @@ - - + + + + @@ -4323,8 +4389,10 @@ - - + + + + @@ -4344,8 +4412,10 @@ - - + + + + @@ -4379,8 +4449,10 @@ - - + + + + @@ -4400,8 +4472,10 @@ - - + + + + @@ -4421,8 +4495,10 @@ - - + + + + @@ -4442,8 +4518,10 @@ - - + + + + @@ -4463,8 +4541,10 @@ - - + + + + @@ -4547,8 +4627,10 @@ - - + + + + @@ -4568,8 +4650,10 @@ - - + + + + @@ -4589,8 +4673,10 @@ - - + + + + @@ -4610,8 +4696,10 @@ - - + + + + @@ -4638,8 +4726,10 @@ - - + + + + @@ -4673,8 +4763,10 @@ - - + + + + @@ -4694,8 +4786,10 @@ - - + + + + @@ -4715,8 +4809,10 @@ - - + + + + @@ -4736,8 +4832,10 @@ - - + + + + @@ -4764,8 +4862,10 @@ - - + + + + @@ -4869,8 +4969,10 @@ - - + + + + @@ -4890,8 +4992,10 @@ - - + + + + @@ -4911,8 +5015,10 @@ - - + + + + @@ -4932,8 +5038,10 @@ - - + + + + @@ -4967,8 +5075,10 @@ - - + + + + @@ -5009,8 +5119,10 @@ - - + + + + @@ -5030,8 +5142,10 @@ - - + + + + @@ -5051,8 +5165,10 @@ - - + + + + @@ -5079,8 +5195,10 @@ - - + + + + @@ -5107,8 +5225,10 @@ - - + + + + @@ -5135,8 +5255,10 @@ - - + + + + @@ -5156,8 +5278,10 @@ - - + + + + @@ -5177,8 +5301,10 @@ - - + + + + @@ -5219,8 +5345,10 @@ - - + + + + @@ -5240,8 +5368,10 @@ - - + + + + @@ -5296,8 +5426,10 @@ - - + + + + @@ -5317,8 +5449,10 @@ - - + + + + @@ -5338,8 +5472,10 @@ - - + + + + @@ -5359,8 +5495,10 @@ - - + + + + @@ -5380,8 +5518,10 @@ - - + + + + @@ -5415,8 +5555,10 @@ - - + + + + @@ -5436,8 +5578,10 @@ - - + + + + @@ -5457,8 +5601,10 @@ - - + + + + @@ -5485,8 +5631,10 @@ - - + + + + @@ -5506,8 +5654,10 @@ - - + + + + @@ -5527,8 +5677,10 @@ - - + + + + @@ -5548,8 +5700,10 @@ - - + + + + @@ -5569,8 +5723,10 @@ - - + + + + @@ -5590,8 +5746,10 @@ - - + + + + @@ -5611,8 +5769,10 @@ - - + + + + @@ -5660,8 +5820,10 @@ - - + + + + @@ -5681,8 +5843,10 @@ - - + + + + @@ -5856,8 +6020,10 @@ - - + + + + @@ -5884,8 +6050,10 @@ - - + + + + @@ -5905,8 +6073,10 @@ - - + + + + @@ -5926,8 +6096,10 @@ - - + + + + @@ -5947,8 +6119,10 @@ - - + + + + @@ -5968,8 +6142,10 @@ - - + + + + @@ -5989,8 +6165,10 @@ - - + + + + @@ -6010,8 +6188,10 @@ - - + + + + @@ -6031,8 +6211,10 @@ - - + + + + @@ -6080,8 +6262,10 @@ - - + + + + @@ -6101,8 +6285,10 @@ - - + + + + @@ -6122,8 +6308,10 @@ - - + + + + @@ -6143,8 +6331,10 @@ - - + + + + @@ -6164,8 +6354,10 @@ - - + + + + @@ -6185,8 +6377,10 @@ - - + + + + @@ -6206,8 +6400,10 @@ - - + + + + @@ -6227,8 +6423,10 @@ - - + + + + @@ -6248,8 +6446,10 @@ - - + + + + @@ -6269,8 +6469,10 @@ - - + + + + @@ -6290,8 +6492,10 @@ - - + + + + @@ -6325,8 +6529,10 @@ - - + + + + @@ -6353,8 +6559,10 @@ - - + + + + @@ -6416,8 +6624,10 @@ - - + + + + @@ -6437,8 +6647,10 @@ - - + + + + @@ -6472,8 +6684,10 @@ - - + + + + @@ -6493,8 +6707,10 @@ - - + + + + @@ -6514,8 +6730,10 @@ - - + + + + @@ -6535,8 +6753,10 @@ - - + + + + @@ -6563,8 +6783,10 @@ - - + + + + @@ -6584,8 +6806,10 @@ - - + + + + @@ -6605,8 +6829,10 @@ - - + + + + @@ -6626,8 +6852,10 @@ - - + + + + @@ -6675,8 +6903,10 @@ - - + + + + @@ -6696,8 +6926,10 @@ - - + + + + @@ -6717,8 +6949,10 @@ - - + + + + @@ -6745,8 +6979,10 @@ - - + + + + @@ -6773,8 +7009,10 @@ - - + + + + @@ -6794,8 +7032,10 @@ - - + + + + @@ -6815,8 +7055,10 @@ - - + + + + @@ -6836,8 +7078,10 @@ - - + + + + @@ -6857,8 +7101,10 @@ - - + + + + @@ -6878,8 +7124,10 @@ - - + + + + @@ -6899,8 +7147,10 @@ - - + + + + @@ -6920,8 +7170,10 @@ - - + + + + @@ -6941,8 +7193,10 @@ - - + + + + @@ -6976,8 +7230,10 @@ - - + + + + @@ -6997,8 +7253,10 @@ - - + + + + @@ -7018,8 +7276,10 @@ - - + + + + @@ -7046,8 +7306,10 @@ - - + + + + @@ -7095,8 +7357,10 @@ - - + + + + @@ -7144,8 +7408,10 @@ - - + + + + @@ -7172,8 +7438,10 @@ - - + + + + @@ -7228,8 +7496,10 @@ - - + + + + @@ -7249,8 +7519,10 @@ - - + + + + @@ -7270,8 +7542,10 @@ - - + + + + @@ -7291,8 +7565,10 @@ - - + + + + @@ -7312,8 +7588,10 @@ - - + + + + @@ -7333,8 +7611,10 @@ - - + + + + @@ -7354,8 +7634,10 @@ - - + + + + @@ -7375,8 +7657,10 @@ - - + + + + @@ -7403,8 +7687,10 @@ - - + + + + @@ -7424,8 +7710,10 @@ - - + + + + @@ -7445,8 +7733,10 @@ - - + + + + @@ -7466,8 +7756,10 @@ - - + + + + @@ -7487,8 +7779,10 @@ - - + + + + @@ -7508,8 +7802,10 @@ - - + + + + @@ -7529,8 +7825,10 @@ - - + + + + @@ -7557,8 +7855,10 @@ - - + + + + @@ -7578,8 +7878,10 @@ - - + + + + @@ -7599,8 +7901,10 @@ - - + + + + @@ -7620,8 +7924,10 @@ - - + + + + @@ -7648,8 +7954,10 @@ - - + + + + @@ -7669,8 +7977,10 @@ - - + + + + @@ -7697,8 +8007,10 @@ - - + + + + @@ -7760,8 +8072,10 @@ - - + + + + @@ -7781,8 +8095,10 @@ - - + + + + @@ -7802,8 +8118,10 @@ - - + + + + @@ -7830,8 +8148,10 @@ - - + + + + @@ -7851,8 +8171,10 @@ - - + + + + @@ -7872,8 +8194,10 @@ - - + + + + @@ -7893,8 +8217,10 @@ - - + + + + @@ -7977,8 +8303,10 @@ - - + + + + @@ -7998,8 +8326,10 @@ - - + + + + @@ -8019,8 +8349,10 @@ - - + + + + @@ -8040,8 +8372,10 @@ - - + + + + @@ -8061,8 +8395,10 @@ - - + + + + @@ -8131,8 +8467,10 @@ - - + + + + @@ -8152,8 +8490,10 @@ - - + + + + @@ -8173,8 +8513,10 @@ - - + + + + @@ -8194,8 +8536,10 @@ - - + + + + @@ -8215,8 +8559,10 @@ - - + + + + @@ -8236,8 +8582,10 @@ - - + + + + @@ -8257,8 +8605,10 @@ - - + + + + @@ -8278,8 +8628,10 @@ - - + + + + @@ -8299,8 +8651,10 @@ - - + + + + @@ -8320,8 +8674,10 @@ - - + + + + @@ -8341,8 +8697,10 @@ - - + + + + @@ -8362,8 +8720,10 @@ - - + + + + @@ -8432,8 +8792,10 @@ - - + + + + @@ -8453,8 +8815,10 @@ - - + + + + @@ -8474,8 +8838,10 @@ - - + + + + @@ -8495,8 +8861,10 @@ - - + + + + @@ -8516,8 +8884,10 @@ - - + + + + @@ -8544,8 +8914,10 @@ - - + + + + @@ -8565,8 +8937,10 @@ - - + + + + @@ -8586,8 +8960,10 @@ - - + + + + @@ -8656,8 +9032,10 @@ - - + + + + @@ -8677,8 +9055,10 @@ - - + + + + @@ -8698,8 +9078,10 @@ - - + + + + @@ -8712,8 +9094,10 @@ - - + + + + @@ -8733,8 +9117,10 @@ - - + + + + @@ -8754,8 +9140,10 @@ - - + + + + @@ -8775,8 +9163,10 @@ - - + + + + @@ -8796,8 +9186,10 @@ - - + + + + @@ -8817,8 +9209,10 @@ - - + + + + @@ -8838,8 +9232,10 @@ - - + + + + @@ -8859,8 +9255,10 @@ - - + + + + @@ -8901,8 +9299,10 @@ - - + + + + @@ -8936,8 +9336,10 @@ - - + + + + @@ -8957,8 +9359,10 @@ - - + + + + @@ -8978,8 +9382,10 @@ - - + + + + @@ -8999,8 +9405,10 @@ - - + + + + @@ -9020,8 +9428,10 @@ - - + + + + @@ -9041,8 +9451,10 @@ - - + + + + @@ -9062,8 +9474,10 @@ - - + + + + @@ -9083,8 +9497,10 @@ - - + + + + @@ -9111,8 +9527,10 @@ - - + + + + @@ -9139,8 +9557,10 @@ - - + + + + @@ -9160,7 +9580,8 @@ - + + diff --git a/Utilities/CodeGeneration/EdFi.Ods.CodeGen.Tests/Approval/5.1.0/DataStandard_510_ApprovalTests.Verify.Standard_Std_5.1.0_EntityOrmMappings_PgSql_EntityOrmMappings.generated.hbm.approved.xml b/Utilities/CodeGeneration/EdFi.Ods.CodeGen.Tests/Approval/5.1.0/DataStandard_510_ApprovalTests.Verify.Standard_Std_5.1.0_EntityOrmMappings_PgSql_EntityOrmMappings.generated.hbm.approved.xml index a481e3b8a2..bcc5cd5f50 100644 --- a/Utilities/CodeGeneration/EdFi.Ods.CodeGen.Tests/Approval/5.1.0/DataStandard_510_ApprovalTests.Verify.Standard_Std_5.1.0_EntityOrmMappings_PgSql_EntityOrmMappings.generated.hbm.approved.xml +++ b/Utilities/CodeGeneration/EdFi.Ods.CodeGen.Tests/Approval/5.1.0/DataStandard_510_ApprovalTests.Verify.Standard_Std_5.1.0_EntityOrmMappings_PgSql_EntityOrmMappings.generated.hbm.approved.xml @@ -3091,12 +3091,13 @@ - + + @@ -3121,7 +3122,8 @@ - + + @@ -3134,8 +3136,10 @@ - - + + + + @@ -3148,8 +3152,10 @@ - - + + + + @@ -3162,8 +3168,10 @@ - - + + + + @@ -3176,8 +3184,10 @@ - - + + + + @@ -3190,8 +3200,10 @@ - - + + + + @@ -3204,8 +3216,10 @@ - - + + + + @@ -3218,8 +3232,10 @@ - - + + + + @@ -3232,8 +3248,10 @@ - - + + + + @@ -3246,8 +3264,10 @@ - - + + + + @@ -3260,8 +3280,10 @@ - - + + + + @@ -3274,8 +3296,10 @@ - - + + + + @@ -3288,8 +3312,10 @@ - - + + + + @@ -3302,8 +3328,10 @@ - - + + + + @@ -3316,8 +3344,10 @@ - - + + + + @@ -3330,8 +3360,10 @@ - - + + + + @@ -3344,8 +3376,10 @@ - - + + + + @@ -3358,8 +3392,10 @@ - - + + + + @@ -3372,8 +3408,10 @@ - - + + + + @@ -3386,8 +3424,10 @@ - - + + + + @@ -3400,8 +3440,10 @@ - - + + + + @@ -3414,8 +3456,10 @@ - - + + + + @@ -3428,8 +3472,10 @@ - - + + + + @@ -3442,8 +3488,10 @@ - - + + + + @@ -3456,8 +3504,10 @@ - - + + + + @@ -3470,8 +3520,10 @@ - - + + + + @@ -3484,8 +3536,10 @@ - - + + + + @@ -3498,8 +3552,10 @@ - - + + + + @@ -3512,8 +3568,10 @@ - - + + + + @@ -3526,8 +3584,10 @@ - - + + + + @@ -3540,8 +3600,10 @@ - - + + + + @@ -3554,8 +3616,10 @@ - - + + + + @@ -3568,8 +3632,10 @@ - - + + + + @@ -3582,8 +3648,10 @@ - - + + + + @@ -3596,8 +3664,10 @@ - - + + + + @@ -3610,8 +3680,10 @@ - - + + + + @@ -3624,8 +3696,10 @@ - - + + + + @@ -3638,8 +3712,10 @@ - - + + + + @@ -3652,8 +3728,10 @@ - - + + + + @@ -3666,8 +3744,10 @@ - - + + + + @@ -3680,8 +3760,10 @@ - - + + + + @@ -3694,8 +3776,10 @@ - - + + + + @@ -3708,8 +3792,10 @@ - - + + + + @@ -3722,8 +3808,10 @@ - - + + + + @@ -3736,8 +3824,10 @@ - - + + + + @@ -3750,8 +3840,10 @@ - - + + + + @@ -3764,8 +3856,10 @@ - - + + + + @@ -3778,8 +3872,10 @@ - - + + + + @@ -3792,8 +3888,10 @@ - - + + + + @@ -3806,8 +3904,10 @@ - - + + + + @@ -3820,8 +3920,10 @@ - - + + + + @@ -3834,8 +3936,10 @@ - - + + + + @@ -3848,8 +3952,10 @@ - - + + + + @@ -3862,8 +3968,10 @@ - - + + + + @@ -3876,8 +3984,10 @@ - - + + + + @@ -3890,8 +4000,10 @@ - - + + + + @@ -3904,8 +4016,10 @@ - - + + + + @@ -3918,8 +4032,10 @@ - - + + + + @@ -3932,8 +4048,10 @@ - - + + + + @@ -3946,8 +4064,10 @@ - - + + + + @@ -3960,8 +4080,10 @@ - - + + + + @@ -3974,8 +4096,10 @@ - - + + + + @@ -3988,8 +4112,10 @@ - - + + + + @@ -4002,8 +4128,10 @@ - - + + + + @@ -4016,8 +4144,10 @@ - - + + + + @@ -4030,8 +4160,10 @@ - - + + + + @@ -4044,8 +4176,10 @@ - - + + + + @@ -4058,8 +4192,10 @@ - - + + + + @@ -4072,8 +4208,10 @@ - - + + + + @@ -4086,8 +4224,10 @@ - - + + + + @@ -4100,8 +4240,10 @@ - - + + + + @@ -4114,8 +4256,10 @@ - - + + + + @@ -4128,8 +4272,10 @@ - - + + + + @@ -4142,8 +4288,10 @@ - - + + + + @@ -4156,8 +4304,10 @@ - - + + + + @@ -4170,8 +4320,10 @@ - - + + + + @@ -4184,8 +4336,10 @@ - - + + + + @@ -4198,8 +4352,10 @@ - - + + + + @@ -4212,8 +4368,10 @@ - - + + + + @@ -4226,8 +4384,10 @@ - - + + + + @@ -4240,8 +4400,10 @@ - - + + + + @@ -4254,8 +4416,10 @@ - - + + + + @@ -4268,8 +4432,10 @@ - - + + + + @@ -4282,8 +4448,10 @@ - - + + + + @@ -4296,8 +4464,10 @@ - - + + + + @@ -4310,8 +4480,10 @@ - - + + + + @@ -4324,8 +4496,10 @@ - - + + + + @@ -4338,8 +4512,10 @@ - - + + + + @@ -4352,8 +4528,10 @@ - - + + + + @@ -4366,8 +4544,10 @@ - - + + + + @@ -4380,8 +4560,10 @@ - - + + + + @@ -4394,8 +4576,10 @@ - - + + + + @@ -4408,8 +4592,10 @@ - - + + + + @@ -4422,8 +4608,10 @@ - - + + + + @@ -4436,8 +4624,10 @@ - - + + + + @@ -4450,8 +4640,10 @@ - - + + + + @@ -4464,8 +4656,10 @@ - - + + + + @@ -4478,8 +4672,10 @@ - - + + + + @@ -4492,8 +4688,10 @@ - - + + + + @@ -4506,8 +4704,10 @@ - - + + + + @@ -4520,8 +4720,10 @@ - - + + + + @@ -4534,8 +4736,10 @@ - - + + + + @@ -4548,8 +4752,10 @@ - - + + + + @@ -4562,8 +4768,10 @@ - - + + + + @@ -4576,8 +4784,10 @@ - - + + + + @@ -4590,8 +4800,10 @@ - - + + + + @@ -4604,8 +4816,10 @@ - - + + + + @@ -4618,8 +4832,10 @@ - - + + + + @@ -4632,8 +4848,10 @@ - - + + + + @@ -4646,8 +4864,10 @@ - - + + + + @@ -4660,8 +4880,10 @@ - - + + + + @@ -4674,8 +4896,10 @@ - - + + + + @@ -4688,8 +4912,10 @@ - - + + + + @@ -4702,8 +4928,10 @@ - - + + + + @@ -4716,8 +4944,10 @@ - - + + + + @@ -4730,8 +4960,10 @@ - - + + + + @@ -4744,8 +4976,10 @@ - - + + + + @@ -4758,8 +4992,10 @@ - - + + + + @@ -4772,8 +5008,10 @@ - - + + + + @@ -4786,8 +5024,10 @@ - - + + + + @@ -4800,8 +5040,10 @@ - - + + + + @@ -4814,8 +5056,10 @@ - - + + + + @@ -4828,8 +5072,10 @@ - - + + + + @@ -4842,8 +5088,10 @@ - - + + + + @@ -4856,8 +5104,10 @@ - - + + + + @@ -4870,8 +5120,10 @@ - - + + + + @@ -4884,8 +5136,10 @@ - - + + + + @@ -4898,8 +5152,10 @@ - - + + + + @@ -4912,8 +5168,10 @@ - - + + + + @@ -4926,8 +5184,10 @@ - - + + + + @@ -4940,8 +5200,10 @@ - - + + + + @@ -4954,8 +5216,10 @@ - - + + + + @@ -4968,8 +5232,10 @@ - - + + + + @@ -4982,8 +5248,10 @@ - - + + + + @@ -4996,8 +5264,10 @@ - - + + + + @@ -5010,8 +5280,10 @@ - - + + + + @@ -5024,8 +5296,10 @@ - - + + + + @@ -5038,8 +5312,10 @@ - - + + + + @@ -5052,8 +5328,10 @@ - - + + + + @@ -5066,8 +5344,10 @@ - - + + + + @@ -5080,8 +5360,10 @@ - - + + + + @@ -5094,8 +5376,10 @@ - - + + + + @@ -5108,8 +5392,10 @@ - - + + + + @@ -5122,8 +5408,10 @@ - - + + + + @@ -5136,8 +5424,10 @@ - - + + + + @@ -5150,8 +5440,10 @@ - - + + + + @@ -5164,8 +5456,10 @@ - - + + + + @@ -5178,8 +5472,10 @@ - - + + + + @@ -5192,8 +5488,10 @@ - - + + + + @@ -5206,8 +5504,10 @@ - - + + + + @@ -5220,8 +5520,10 @@ - - + + + + @@ -5234,8 +5536,10 @@ - - + + + + @@ -5248,8 +5552,10 @@ - - + + + + @@ -5262,8 +5568,10 @@ - - + + + + @@ -5276,8 +5584,10 @@ - - + + + + @@ -5290,8 +5600,10 @@ - - + + + + @@ -5304,8 +5616,10 @@ - - + + + + @@ -5318,8 +5632,10 @@ - - + + + + @@ -5332,8 +5648,10 @@ - - + + + + @@ -5346,8 +5664,10 @@ - - + + + + @@ -5360,8 +5680,10 @@ - - + + + + @@ -5374,8 +5696,10 @@ - - + + + + @@ -5388,8 +5712,10 @@ - - + + + + @@ -5402,8 +5728,10 @@ - - + + + + @@ -5416,8 +5744,10 @@ - - + + + + @@ -5430,8 +5760,10 @@ - - + + + + @@ -5444,8 +5776,10 @@ - - + + + + @@ -5458,8 +5792,10 @@ - - + + + + @@ -5472,8 +5808,10 @@ - - + + + + @@ -5486,8 +5824,10 @@ - - + + + + @@ -5500,8 +5840,10 @@ - - + + + + @@ -5514,8 +5856,10 @@ - - + + + + @@ -5528,8 +5872,10 @@ - - + + + + @@ -5542,8 +5888,10 @@ - - + + + + @@ -5556,8 +5904,10 @@ - - + + + + @@ -5570,8 +5920,10 @@ - - + + + + @@ -5584,8 +5936,10 @@ - - + + + + @@ -5598,8 +5952,10 @@ - - + + + + @@ -5612,8 +5968,10 @@ - - + + + + @@ -5626,8 +5984,10 @@ - - + + + + @@ -5640,8 +6000,10 @@ - - + + + + @@ -5654,8 +6016,10 @@ - - + + + + @@ -5668,8 +6032,10 @@ - - + + + + @@ -5682,8 +6048,10 @@ - - + + + + @@ -5696,8 +6064,10 @@ - - + + + + @@ -5710,8 +6080,10 @@ - - + + + + @@ -5724,8 +6096,10 @@ - - + + + + @@ -5738,8 +6112,10 @@ - - + + + + @@ -5752,8 +6128,10 @@ - - + + + + @@ -5766,8 +6144,10 @@ - - + + + + @@ -5780,8 +6160,10 @@ - - + + + + @@ -5794,8 +6176,10 @@ - - + + + + @@ -5808,8 +6192,10 @@ - - + + + + @@ -5822,8 +6208,10 @@ - - + + + + @@ -5836,8 +6224,10 @@ - - + + + + @@ -5850,8 +6240,10 @@ - - + + + + @@ -5864,8 +6256,10 @@ - - + + + + @@ -5878,8 +6272,10 @@ - - + + + + @@ -5892,8 +6288,10 @@ - - + + + + @@ -5906,8 +6304,10 @@ - - + + + + @@ -5920,8 +6320,10 @@ - - + + + + @@ -5934,8 +6336,10 @@ - - + + + + @@ -5948,8 +6352,10 @@ - - + + + + @@ -5962,8 +6368,10 @@ - - + + + + @@ -5976,8 +6384,10 @@ - - + + + + @@ -5990,8 +6400,10 @@ - - + + + + @@ -6004,8 +6416,10 @@ - - + + + + @@ -6018,8 +6432,10 @@ - - + + + + @@ -6032,8 +6448,10 @@ - - + + + + @@ -6046,7 +6464,8 @@ - + + diff --git a/Utilities/CodeGeneration/EdFi.Ods.CodeGen.Tests/Approval/5.1.0/DataStandard_510_ApprovalTests.Verify.Standard_Std_5.1.0_EntityOrmMappings_PgSql_EntityOrmMappingsForQueries.generated.hbm.approved.xml b/Utilities/CodeGeneration/EdFi.Ods.CodeGen.Tests/Approval/5.1.0/DataStandard_510_ApprovalTests.Verify.Standard_Std_5.1.0_EntityOrmMappings_PgSql_EntityOrmMappingsForQueries.generated.hbm.approved.xml index a8c8d126fe..61531d84db 100644 --- a/Utilities/CodeGeneration/EdFi.Ods.CodeGen.Tests/Approval/5.1.0/DataStandard_510_ApprovalTests.Verify.Standard_Std_5.1.0_EntityOrmMappings_PgSql_EntityOrmMappingsForQueries.generated.hbm.approved.xml +++ b/Utilities/CodeGeneration/EdFi.Ods.CodeGen.Tests/Approval/5.1.0/DataStandard_510_ApprovalTests.Verify.Standard_Std_5.1.0_EntityOrmMappings_PgSql_EntityOrmMappingsForQueries.generated.hbm.approved.xml @@ -3342,12 +3342,13 @@ - + + @@ -3359,6 +3360,8 @@ + + @@ -3372,7 +3375,8 @@ - + + @@ -3392,8 +3396,10 @@ - - + + + + @@ -3413,8 +3419,10 @@ - - + + + + @@ -3504,8 +3512,10 @@ - - + + + + @@ -3525,8 +3535,10 @@ - - + + + + @@ -3546,8 +3558,10 @@ - - + + + + @@ -3588,8 +3602,10 @@ - - + + + + @@ -3609,8 +3625,10 @@ - - + + + + @@ -3686,8 +3704,10 @@ - - + + + + @@ -3707,8 +3727,10 @@ - - + + + + @@ -3735,8 +3757,10 @@ - - + + + + @@ -3763,8 +3787,10 @@ - - + + + + @@ -3784,8 +3810,10 @@ - - + + + + @@ -3805,8 +3833,10 @@ - - + + + + @@ -3826,8 +3856,10 @@ - - + + + + @@ -3847,8 +3879,10 @@ - - + + + + @@ -3875,8 +3909,10 @@ - - + + + + @@ -3966,8 +4002,10 @@ - - + + + + @@ -3987,8 +4025,10 @@ - - + + + + @@ -4008,8 +4048,10 @@ - - + + + + @@ -4050,8 +4092,10 @@ - - + + + + @@ -4071,8 +4115,10 @@ - - + + + + @@ -4099,8 +4145,10 @@ - - + + + + @@ -4120,8 +4168,10 @@ - - + + + + @@ -4141,8 +4191,10 @@ - - + + + + @@ -4162,8 +4214,10 @@ - - + + + + @@ -4183,8 +4237,10 @@ - - + + + + @@ -4204,8 +4260,10 @@ - - + + + + @@ -4232,8 +4290,10 @@ - - + + + + @@ -4260,8 +4320,10 @@ - - + + + + @@ -4281,8 +4343,10 @@ - - + + + + @@ -4302,8 +4366,10 @@ - - + + + + @@ -4323,8 +4389,10 @@ - - + + + + @@ -4344,8 +4412,10 @@ - - + + + + @@ -4379,8 +4449,10 @@ - - + + + + @@ -4400,8 +4472,10 @@ - - + + + + @@ -4421,8 +4495,10 @@ - - + + + + @@ -4442,8 +4518,10 @@ - - + + + + @@ -4463,8 +4541,10 @@ - - + + + + @@ -4547,8 +4627,10 @@ - - + + + + @@ -4568,8 +4650,10 @@ - - + + + + @@ -4589,8 +4673,10 @@ - - + + + + @@ -4610,8 +4696,10 @@ - - + + + + @@ -4638,8 +4726,10 @@ - - + + + + @@ -4673,8 +4763,10 @@ - - + + + + @@ -4694,8 +4786,10 @@ - - + + + + @@ -4715,8 +4809,10 @@ - - + + + + @@ -4736,8 +4832,10 @@ - - + + + + @@ -4764,8 +4862,10 @@ - - + + + + @@ -4869,8 +4969,10 @@ - - + + + + @@ -4890,8 +4992,10 @@ - - + + + + @@ -4911,8 +5015,10 @@ - - + + + + @@ -4932,8 +5038,10 @@ - - + + + + @@ -4967,8 +5075,10 @@ - - + + + + @@ -5009,8 +5119,10 @@ - - + + + + @@ -5030,8 +5142,10 @@ - - + + + + @@ -5051,8 +5165,10 @@ - - + + + + @@ -5079,8 +5195,10 @@ - - + + + + @@ -5107,8 +5225,10 @@ - - + + + + @@ -5135,8 +5255,10 @@ - - + + + + @@ -5156,8 +5278,10 @@ - - + + + + @@ -5177,8 +5301,10 @@ - - + + + + @@ -5219,8 +5345,10 @@ - - + + + + @@ -5240,8 +5368,10 @@ - - + + + + @@ -5296,8 +5426,10 @@ - - + + + + @@ -5317,8 +5449,10 @@ - - + + + + @@ -5338,8 +5472,10 @@ - - + + + + @@ -5359,8 +5495,10 @@ - - + + + + @@ -5380,8 +5518,10 @@ - - + + + + @@ -5415,8 +5555,10 @@ - - + + + + @@ -5436,8 +5578,10 @@ - - + + + + @@ -5457,8 +5601,10 @@ - - + + + + @@ -5485,8 +5631,10 @@ - - + + + + @@ -5506,8 +5654,10 @@ - - + + + + @@ -5527,8 +5677,10 @@ - - + + + + @@ -5548,8 +5700,10 @@ - - + + + + @@ -5569,8 +5723,10 @@ - - + + + + @@ -5590,8 +5746,10 @@ - - + + + + @@ -5611,8 +5769,10 @@ - - + + + + @@ -5660,8 +5820,10 @@ - - + + + + @@ -5681,8 +5843,10 @@ - - + + + + @@ -5856,8 +6020,10 @@ - - + + + + @@ -5884,8 +6050,10 @@ - - + + + + @@ -5905,8 +6073,10 @@ - - + + + + @@ -5926,8 +6096,10 @@ - - + + + + @@ -5947,8 +6119,10 @@ - - + + + + @@ -5968,8 +6142,10 @@ - - + + + + @@ -5989,8 +6165,10 @@ - - + + + + @@ -6010,8 +6188,10 @@ - - + + + + @@ -6031,8 +6211,10 @@ - - + + + + @@ -6080,8 +6262,10 @@ - - + + + + @@ -6101,8 +6285,10 @@ - - + + + + @@ -6122,8 +6308,10 @@ - - + + + + @@ -6143,8 +6331,10 @@ - - + + + + @@ -6164,8 +6354,10 @@ - - + + + + @@ -6185,8 +6377,10 @@ - - + + + + @@ -6206,8 +6400,10 @@ - - + + + + @@ -6227,8 +6423,10 @@ - - + + + + @@ -6248,8 +6446,10 @@ - - + + + + @@ -6269,8 +6469,10 @@ - - + + + + @@ -6290,8 +6492,10 @@ - - + + + + @@ -6325,8 +6529,10 @@ - - + + + + @@ -6353,8 +6559,10 @@ - - + + + + @@ -6416,8 +6624,10 @@ - - + + + + @@ -6437,8 +6647,10 @@ - - + + + + @@ -6472,8 +6684,10 @@ - - + + + + @@ -6493,8 +6707,10 @@ - - + + + + @@ -6514,8 +6730,10 @@ - - + + + + @@ -6535,8 +6753,10 @@ - - + + + + @@ -6563,8 +6783,10 @@ - - + + + + @@ -6584,8 +6806,10 @@ - - + + + + @@ -6605,8 +6829,10 @@ - - + + + + @@ -6626,8 +6852,10 @@ - - + + + + @@ -6675,8 +6903,10 @@ - - + + + + @@ -6696,8 +6926,10 @@ - - + + + + @@ -6717,8 +6949,10 @@ - - + + + + @@ -6745,8 +6979,10 @@ - - + + + + @@ -6773,8 +7009,10 @@ - - + + + + @@ -6794,8 +7032,10 @@ - - + + + + @@ -6815,8 +7055,10 @@ - - + + + + @@ -6836,8 +7078,10 @@ - - + + + + @@ -6857,8 +7101,10 @@ - - + + + + @@ -6878,8 +7124,10 @@ - - + + + + @@ -6899,8 +7147,10 @@ - - + + + + @@ -6920,8 +7170,10 @@ - - + + + + @@ -6941,8 +7193,10 @@ - - + + + + @@ -6976,8 +7230,10 @@ - - + + + + @@ -6997,8 +7253,10 @@ - - + + + + @@ -7018,8 +7276,10 @@ - - + + + + @@ -7046,8 +7306,10 @@ - - + + + + @@ -7095,8 +7357,10 @@ - - + + + + @@ -7144,8 +7408,10 @@ - - + + + + @@ -7172,8 +7438,10 @@ - - + + + + @@ -7228,8 +7496,10 @@ - - + + + + @@ -7249,8 +7519,10 @@ - - + + + + @@ -7270,8 +7542,10 @@ - - + + + + @@ -7291,8 +7565,10 @@ - - + + + + @@ -7312,8 +7588,10 @@ - - + + + + @@ -7333,8 +7611,10 @@ - - + + + + @@ -7354,8 +7634,10 @@ - - + + + + @@ -7375,8 +7657,10 @@ - - + + + + @@ -7403,8 +7687,10 @@ - - + + + + @@ -7424,8 +7710,10 @@ - - + + + + @@ -7445,8 +7733,10 @@ - - + + + + @@ -7466,8 +7756,10 @@ - - + + + + @@ -7487,8 +7779,10 @@ - - + + + + @@ -7508,8 +7802,10 @@ - - + + + + @@ -7529,8 +7825,10 @@ - - + + + + @@ -7557,8 +7855,10 @@ - - + + + + @@ -7578,8 +7878,10 @@ - - + + + + @@ -7599,8 +7901,10 @@ - - + + + + @@ -7620,8 +7924,10 @@ - - + + + + @@ -7648,8 +7954,10 @@ - - + + + + @@ -7669,8 +7977,10 @@ - - + + + + @@ -7697,8 +8007,10 @@ - - + + + + @@ -7760,8 +8072,10 @@ - - + + + + @@ -7781,8 +8095,10 @@ - - + + + + @@ -7802,8 +8118,10 @@ - - + + + + @@ -7830,8 +8148,10 @@ - - + + + + @@ -7851,8 +8171,10 @@ - - + + + + @@ -7872,8 +8194,10 @@ - - + + + + @@ -7893,8 +8217,10 @@ - - + + + + @@ -7977,8 +8303,10 @@ - - + + + + @@ -7998,8 +8326,10 @@ - - + + + + @@ -8019,8 +8349,10 @@ - - + + + + @@ -8040,8 +8372,10 @@ - - + + + + @@ -8061,8 +8395,10 @@ - - + + + + @@ -8131,8 +8467,10 @@ - - + + + + @@ -8152,8 +8490,10 @@ - - + + + + @@ -8173,8 +8513,10 @@ - - + + + + @@ -8194,8 +8536,10 @@ - - + + + + @@ -8215,8 +8559,10 @@ - - + + + + @@ -8236,8 +8582,10 @@ - - + + + + @@ -8257,8 +8605,10 @@ - - + + + + @@ -8278,8 +8628,10 @@ - - + + + + @@ -8299,8 +8651,10 @@ - - + + + + @@ -8320,8 +8674,10 @@ - - + + + + @@ -8341,8 +8697,10 @@ - - + + + + @@ -8362,8 +8720,10 @@ - - + + + + @@ -8432,8 +8792,10 @@ - - + + + + @@ -8453,8 +8815,10 @@ - - + + + + @@ -8474,8 +8838,10 @@ - - + + + + @@ -8495,8 +8861,10 @@ - - + + + + @@ -8516,8 +8884,10 @@ - - + + + + @@ -8544,8 +8914,10 @@ - - + + + + @@ -8565,8 +8937,10 @@ - - + + + + @@ -8586,8 +8960,10 @@ - - + + + + @@ -8656,8 +9032,10 @@ - - + + + + @@ -8677,8 +9055,10 @@ - - + + + + @@ -8698,8 +9078,10 @@ - - + + + + @@ -8712,8 +9094,10 @@ - - + + + + @@ -8733,8 +9117,10 @@ - - + + + + @@ -8754,8 +9140,10 @@ - - + + + + @@ -8775,8 +9163,10 @@ - - + + + + @@ -8796,8 +9186,10 @@ - - + + + + @@ -8817,8 +9209,10 @@ - - + + + + @@ -8838,8 +9232,10 @@ - - + + + + @@ -8859,8 +9255,10 @@ - - + + + + @@ -8901,8 +9299,10 @@ - - + + + + @@ -8936,8 +9336,10 @@ - - + + + + @@ -8957,8 +9359,10 @@ - - + + + + @@ -8978,8 +9382,10 @@ - - + + + + @@ -8999,8 +9405,10 @@ - - + + + + @@ -9020,8 +9428,10 @@ - - + + + + @@ -9041,8 +9451,10 @@ - - + + + + @@ -9062,8 +9474,10 @@ - - + + + + @@ -9083,8 +9497,10 @@ - - + + + + @@ -9111,8 +9527,10 @@ - - + + + + @@ -9139,8 +9557,10 @@ - - + + + + @@ -9160,7 +9580,8 @@ - + + diff --git a/Utilities/CodeGeneration/EdFi.Ods.CodeGen.Tests/Approval/5.1.0/DataStandard_510_ApprovalTests.Verify.Standard_Std_5.1.0_Models_Entities_EntitiesForQueries.generated.approved.cs b/Utilities/CodeGeneration/EdFi.Ods.CodeGen.Tests/Approval/5.1.0/DataStandard_510_ApprovalTests.Verify.Standard_Std_5.1.0_Models_Entities_EntitiesForQueries.generated.approved.cs index 229d54cf32..f892659182 100644 --- a/Utilities/CodeGeneration/EdFi.Ods.CodeGen.Tests/Approval/5.1.0/DataStandard_510_ApprovalTests.Verify.Standard_Std_5.1.0_Models_Entities_EntitiesForQueries.generated.approved.cs +++ b/Utilities/CodeGeneration/EdFi.Ods.CodeGen.Tests/Approval/5.1.0/DataStandard_510_ApprovalTests.Verify.Standard_Std_5.1.0_Models_Entities_EntitiesForQueries.generated.approved.cs @@ -6226,6 +6226,12 @@ public abstract class DescriptorQ : AggregateRootWithCompositeKey public virtual int DescriptorId { get; set; } // ------------------------------------------------------------- + // ============================================================= + // Discriminator + // ------------------------------------------------------------- + + public virtual string Discriminator { get; set; } + // ============================================================= // Properties // ------------------------------------------------------------- diff --git a/Utilities/CodeGeneration/EdFi.Ods.CodeGen.Tests/Approval/5.1.0/DataStandard_510_ApprovalTests.Verify.Standard_Std_5.1.0_Resources_Resources.generated.approved.cs b/Utilities/CodeGeneration/EdFi.Ods.CodeGen.Tests/Approval/5.1.0/DataStandard_510_ApprovalTests.Verify.Standard_Std_5.1.0_Resources_Resources.generated.approved.cs index 48a2f165aa..20bc574c72 100644 --- a/Utilities/CodeGeneration/EdFi.Ods.CodeGen.Tests/Approval/5.1.0/DataStandard_510_ApprovalTests.Verify.Standard_Std_5.1.0_Resources_Resources.generated.approved.cs +++ b/Utilities/CodeGeneration/EdFi.Ods.CodeGen.Tests/Approval/5.1.0/DataStandard_510_ApprovalTests.Verify.Standard_Std_5.1.0_Resources_Resources.generated.approved.cs @@ -47645,6 +47645,12 @@ public class DescriptorReference : IResourceReference /// public Guid ResourceId { get; set; } + /// + /// Gets or sets the discriminator value which identifies the concrete sub-type of the referenced resource + /// when the referenced resource has been derived; otherwise null. + /// + public string Discriminator { get; set; } + private Link _link; @@ -47690,7 +47696,26 @@ private Link CreateLink() Href = $"/ed-fi/descriptors/{ResourceId:n}" }; - return link; + if (string.IsNullOrEmpty(Discriminator)) + return link; + + string[] linkParts = Discriminator.Split('.'); + + if (linkParts.Length < 2) + return link; + + var resource = GeneratedArtifactStaticDependencies.ResourceModelProvider.GetResourceModel() + .GetResourceByFullName(new FullName(linkParts[0], linkParts[1])); + + // return the default link if the relationship is already correct, and/or if the resource is not found. + if (resource == null || link.Rel == resource.Name) + return link; + + return new Link + { + Rel = resource.Name, + Href = $"/{resource.SchemaUriSegment()}/{resource.PluralName.ToCamelCase()}/{ResourceId:n}" + }; } } // Aggregate reference diff --git a/Utilities/CodeGeneration/EdFi.Ods.CodeGen/Generators/EntityOrmMappings.cs b/Utilities/CodeGeneration/EdFi.Ods.CodeGen/Generators/EntityOrmMappings.cs index 4993cde999..43748aad83 100644 --- a/Utilities/CodeGeneration/EdFi.Ods.CodeGen/Generators/EntityOrmMappings.cs +++ b/Utilities/CodeGeneration/EdFi.Ods.CodeGen/Generators/EntityOrmMappings.cs @@ -358,7 +358,6 @@ OrmDerivedEntity CreateOrmDerivedEntity(EntityAndContext entityAndContexts, Clas return new OrmDerivedEntity { - IsJoinedSubclass = e.IsDescriptorEntity, ClassName = className, ReferenceClassName = className + "ReferenceData", TableName = e.Name, diff --git a/Utilities/CodeGeneration/EdFi.Ods.CodeGen/Models/Templates/OrmMapping.cs b/Utilities/CodeGeneration/EdFi.Ods.CodeGen/Models/Templates/OrmMapping.cs index 9738593b37..61f755d29f 100644 --- a/Utilities/CodeGeneration/EdFi.Ods.CodeGen/Models/Templates/OrmMapping.cs +++ b/Utilities/CodeGeneration/EdFi.Ods.CodeGen/Models/Templates/OrmMapping.cs @@ -170,8 +170,6 @@ public class OrmCollection public class OrmDerivedEntity { - public bool IsJoinedSubclass { get; set; } - public string ClassName { get; set; } public string ReferenceClassName { get; set; } diff --git a/Utilities/CodeGeneration/EdFi.Ods.CodeGen/Mustache/EntityOrmMappings.mustache b/Utilities/CodeGeneration/EdFi.Ods.CodeGen/Mustache/EntityOrmMappings.mustache index eb9bbb891a..104e1d43ca 100644 --- a/Utilities/CodeGeneration/EdFi.Ods.CodeGen/Mustache/EntityOrmMappings.mustache +++ b/Utilities/CodeGeneration/EdFi.Ods.CodeGen/Mustache/EntityOrmMappings.mustache @@ -143,13 +143,8 @@ {{#HasDerivedEntities}} {{#DerivedEntities}} - {{#IsJoinedSubclass}} - - {{/IsJoinedSubclass}} - {{^IsJoinedSubclass}} - {{/IsJoinedSubclass}} {{#KeyColumns}} @@ -199,13 +194,8 @@ {{/Collections}} - {{^IsJoinedSubclass}} - {{/IsJoinedSubclass}} - {{#IsJoinedSubclass}} - - {{/IsJoinedSubclass}} {{/DerivedEntities}} {{/HasDerivedEntities}}