diff --git a/Utilities/CodeGeneration/EdFi.Ods.CodeGen.Tests/Approval/5.2.0/DataStandard_520_ApprovalTests.Verify.Extensions.Homograph.1.0.0_Std_5.2.0_Resources_Resources.generated.approved.cs b/Utilities/CodeGeneration/EdFi.Ods.CodeGen.Tests/Approval/5.2.0/DataStandard_520_ApprovalTests.Verify.Extensions.Homograph.1.0.0_Std_5.2.0_Resources_Resources.generated.approved.cs index 3af3519a26..406fa90850 100644 --- a/Utilities/CodeGeneration/EdFi.Ods.CodeGen.Tests/Approval/5.2.0/DataStandard_520_ApprovalTests.Verify.Extensions.Homograph.1.0.0_Std_5.2.0_Resources_Resources.generated.approved.cs +++ b/Utilities/CodeGeneration/EdFi.Ods.CodeGen.Tests/Approval/5.2.0/DataStandard_520_ApprovalTests.Verify.Extensions.Homograph.1.0.0_Std_5.2.0_Resources_Resources.generated.approved.cs @@ -23,6 +23,8 @@ using EdFi.Ods.Entities.Common.Homograph; using Newtonsoft.Json; using FluentValidation.Results; +using MessagePack; +using KeyAttribute = MessagePack.KeyAttribute; // Aggregate: Contact @@ -31,30 +33,37 @@ namespace EdFi.Ods.Api.Common.Models.Resources.Contact.Homograph /// /// Represents a reference to the Contact resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class ContactReference : IResourceReference { [DataMember(Name="contactFirstName")] + [Key(0)] public string ContactFirstName { get; set; } [DataMember(Name="contactLastSurname")] + [Key(1)] public string ContactLastSurname { get; set; } /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(2)] 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. /// + [Key(3)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(4)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -128,7 +137,7 @@ private Link CreateLink() /// /// A class which represents the homograph.Contact table of the Contact aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class Contact : Entities.Common.Homograph.IContact, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -162,6 +171,7 @@ public Contact() /// The unique identifier for the Contact resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -185,6 +195,7 @@ private Name.Homograph.NameReference ImplicitContactNameReference } [DataMember(Name="contactNameReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Name.Homograph.NameReference ContactNameReference { @@ -356,6 +367,7 @@ public System.Collections.IDictionary Extensions { [NoDuplicateMembers][RequiredCollection] [DataMember(Name="addresses")] + [Key(2)] public ICollection ContactAddresses { get { return _contactAddresses; } @@ -386,6 +398,7 @@ public ICollection ContactAddresses [NoDuplicateMembers][RequiredCollection] [DataMember(Name="studentSchoolAssociations")] + [Key(3)] public ICollection ContactStudentSchoolAssociations { get { return _contactStudentSchoolAssociations; } @@ -418,9 +431,11 @@ public ICollection ContactStudentSchoolAssociat // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(4)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(5)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -625,7 +640,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// /// A class which represents the homograph.ContactAddress table of the Contact aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class ContactAddress : Entities.Common.Homograph.IContactAddress { @@ -668,6 +683,7 @@ Entities.Common.Homograph.IContact Entities.Common.Homograph.IContactAddress.Con set { SetContact(value); } } + [IgnoreMember] public Entities.Common.Homograph.IContact Contact { set { SetContact(value); } @@ -685,6 +701,7 @@ private void SetContact(Entities.Common.Homograph.IContact value) [RequiredWithNonDefault] [NonDefaultStringLength(30, MinimumLength=2, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="city")] + [Key(0)] public string City { get; set; } // ------------------------------------------------------------- @@ -849,7 +866,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the homograph.ContactStudentSchoolAssociation table of the Contact aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class ContactStudentSchoolAssociation : Entities.Common.Homograph.IContactStudentSchoolAssociation { @@ -894,6 +911,7 @@ private StudentSchoolAssociation.Homograph.StudentSchoolAssociationReference Imp } [DataMember(Name="studentSchoolAssociationReference")] + [Key(0)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public StudentSchoolAssociation.Homograph.StudentSchoolAssociationReference StudentSchoolAssociationReference { @@ -926,6 +944,7 @@ Entities.Common.Homograph.IContact Entities.Common.Homograph.IContactStudentScho set { SetContact(value); } } + [IgnoreMember] public Entities.Common.Homograph.IContact Contact { set { SetContact(value); } @@ -1207,30 +1226,37 @@ namespace EdFi.Ods.Api.Common.Models.Resources.Name.Homograph /// /// Represents a reference to the Name resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class NameReference : IResourceReference { [DataMember(Name="firstName")] + [Key(0)] public string FirstName { get; set; } [DataMember(Name="lastSurname")] + [Key(1)] public string LastSurname { get; set; } /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(2)] 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. /// + [Key(3)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(4)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -1304,7 +1330,7 @@ private Link CreateLink() /// /// A class which represents the homograph.Name table of the Name aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class Name : Entities.Common.Homograph.IName, IHasETag, IDateVersionedEntity { @@ -1333,6 +1359,7 @@ public class Name : Entities.Common.Homograph.IName, IHasETag, IDateVersionedEnt /// The unique identifier for the Name resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -1353,6 +1380,7 @@ public class Name : Entities.Common.Homograph.IName, IHasETag, IDateVersionedEnt [RequiredWithNonDefault] [NonDefaultStringLength(75, MinimumLength=1, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="firstName")] + [Key(1)] public string FirstName { get; set; } /// @@ -1362,6 +1390,7 @@ public class Name : Entities.Common.Homograph.IName, IHasETag, IDateVersionedEnt [RequiredWithNonDefault] [NonDefaultStringLength(75, MinimumLength=1, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="lastSurname")] + [Key(2)] public string LastSurname { get; set; } // ------------------------------------------------------------- @@ -1465,9 +1494,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(3)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(4)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -1540,27 +1571,33 @@ namespace EdFi.Ods.Api.Common.Models.Resources.School.Homograph /// /// Represents a reference to the School resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class SchoolReference : IResourceReference { [DataMember(Name="schoolName")] + [Key(0)] public string SchoolName { get; set; } /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(1)] 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. /// + [Key(2)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(3)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -1629,7 +1666,7 @@ private Link CreateLink() /// /// A class which represents the homograph.School table of the School aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class School : Entities.Common.Homograph.ISchool, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -1658,6 +1695,7 @@ public class School : Entities.Common.Homograph.ISchool, IHasETag, IDateVersione /// The unique identifier for the School resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -1681,6 +1719,7 @@ private SchoolYearType.Homograph.SchoolYearTypeReference ImplicitSchoolYearTypeR } [DataMember(Name="schoolYearTypeReference")] + [Key(1)] [FullyDefinedReference] public SchoolYearType.Homograph.SchoolYearTypeReference SchoolYearTypeReference { @@ -1712,6 +1751,7 @@ public SchoolYearType.Homograph.SchoolYearTypeReference SchoolYearTypeReference [RequiredWithNonDefault] [NonDefaultStringLength(100, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="schoolName")] + [Key(2)] public string SchoolName { get; set; } // ------------------------------------------------------------- @@ -1806,6 +1846,7 @@ string Entities.Common.Homograph.ISchool.SchoolYear /// [DataMember(Name = "address")] + [Key(3)] public SchoolAddress SchoolAddress { get; set; } Entities.Common.Homograph.ISchoolAddress Entities.Common.Homograph.ISchool.SchoolAddress @@ -1846,9 +1887,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(4)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(5)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -1986,7 +2029,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext c /// /// A class which represents the homograph.SchoolAddress table of the School aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class SchoolAddress : Entities.Common.Homograph.ISchoolAddress { @@ -2029,6 +2072,7 @@ Entities.Common.Homograph.ISchool Entities.Common.Homograph.ISchoolAddress.Schoo set { SetSchool(value); } } + [IgnoreMember] public Entities.Common.Homograph.ISchool School { set { SetSchool(value); } @@ -2100,6 +2144,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(30, MinimumLength=2, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText] [DataMember(Name="city")] + [Key(0)] public string City { get; set; } // ------------------------------------------------------------- @@ -2206,27 +2251,33 @@ namespace EdFi.Ods.Api.Common.Models.Resources.SchoolYearType.Homograph /// /// Represents a reference to the SchoolYearType resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class SchoolYearTypeReference : IResourceReference { [DataMember(Name="schoolYear")] + [Key(0)] public string SchoolYear { get; set; } /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(1)] 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. /// + [Key(2)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(3)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -2295,7 +2346,7 @@ private Link CreateLink() /// /// A class which represents the homograph.SchoolYearType table of the SchoolYearType aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class SchoolYearType : Entities.Common.Homograph.ISchoolYearType, IHasETag, IDateVersionedEntity { @@ -2324,6 +2375,7 @@ public class SchoolYearType : Entities.Common.Homograph.ISchoolYearType, IHasETa /// The unique identifier for the SchoolYearType resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -2344,6 +2396,7 @@ public class SchoolYearType : Entities.Common.Homograph.ISchoolYearType, IHasETa [RequiredWithNonDefault] [NonDefaultStringLength(20, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="schoolYear")] + [Key(1)] public string SchoolYear { get; set; } // ------------------------------------------------------------- @@ -2438,9 +2491,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(2)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(3)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -2513,30 +2568,37 @@ namespace EdFi.Ods.Api.Common.Models.Resources.Staff.Homograph /// /// Represents a reference to the Staff resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StaffReference : IResourceReference { [DataMember(Name="staffFirstName")] + [Key(0)] public string StaffFirstName { get; set; } [DataMember(Name="staffLastSurname")] + [Key(1)] public string StaffLastSurname { get; set; } /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(2)] 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. /// + [Key(3)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(4)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -2610,7 +2672,7 @@ private Link CreateLink() /// /// A class which represents the homograph.Staff table of the Staff aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class Staff : Entities.Common.Homograph.IStaff, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -2644,6 +2706,7 @@ public Staff() /// The unique identifier for the Staff resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -2667,6 +2730,7 @@ private Name.Homograph.NameReference ImplicitStaffNameReference } [DataMember(Name="staffNameReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Name.Homograph.NameReference StaffNameReference { @@ -2838,6 +2902,7 @@ public System.Collections.IDictionary Extensions { [NoDuplicateMembers] [DataMember(Name="addresses")] + [Key(2)] public ICollection StaffAddresses { get { return _staffAddresses; } @@ -2868,6 +2933,7 @@ public ICollection StaffAddresses [NoDuplicateMembers] [DataMember(Name="studentSchoolAssociations")] + [Key(3)] public ICollection StaffStudentSchoolAssociations { get { return _staffStudentSchoolAssociations; } @@ -2900,9 +2966,11 @@ public ICollection StaffStudentSchoolAssociations // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(4)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(5)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -3107,7 +3175,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext co /// /// A class which represents the homograph.StaffAddress table of the Staff aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StaffAddress : Entities.Common.Homograph.IStaffAddress { @@ -3150,6 +3218,7 @@ Entities.Common.Homograph.IStaff Entities.Common.Homograph.IStaffAddress.Staff set { SetStaff(value); } } + [IgnoreMember] public Entities.Common.Homograph.IStaff Staff { set { SetStaff(value); } @@ -3167,6 +3236,7 @@ private void SetStaff(Entities.Common.Homograph.IStaff value) [RequiredWithNonDefault] [NonDefaultStringLength(30, MinimumLength=2, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="city")] + [Key(0)] public string City { get; set; } // ------------------------------------------------------------- @@ -3331,7 +3401,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the homograph.StaffStudentSchoolAssociation table of the Staff aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StaffStudentSchoolAssociation : Entities.Common.Homograph.IStaffStudentSchoolAssociation { @@ -3376,6 +3446,7 @@ private StudentSchoolAssociation.Homograph.StudentSchoolAssociationReference Imp } [DataMember(Name="studentSchoolAssociationReference")] + [Key(0)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public StudentSchoolAssociation.Homograph.StudentSchoolAssociationReference StudentSchoolAssociationReference { @@ -3408,6 +3479,7 @@ Entities.Common.Homograph.IStaff Entities.Common.Homograph.IStaffStudentSchoolAs set { SetStaff(value); } } + [IgnoreMember] public Entities.Common.Homograph.IStaff Staff { set { SetStaff(value); } @@ -3689,30 +3761,37 @@ namespace EdFi.Ods.Api.Common.Models.Resources.Student.Homograph /// /// Represents a reference to the Student resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentReference : IResourceReference { [DataMember(Name="studentFirstName")] + [Key(0)] public string StudentFirstName { get; set; } [DataMember(Name="studentLastSurname")] + [Key(1)] public string StudentLastSurname { get; set; } /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(2)] 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. /// + [Key(3)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(4)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -3786,7 +3865,7 @@ private Link CreateLink() /// /// A class which represents the homograph.Student table of the Student aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class Student : Entities.Common.Homograph.IStudent, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -3815,6 +3894,7 @@ public class Student : Entities.Common.Homograph.IStudent, IHasETag, IDateVersio /// The unique identifier for the Student resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -3838,6 +3918,7 @@ private SchoolYearType.Homograph.SchoolYearTypeReference ImplicitSchoolYearTypeR } [DataMember(Name="schoolYearTypeReference")] + [Key(1)] [FullyDefinedReference][RequiredReference("homograph", "Student")] public SchoolYearType.Homograph.SchoolYearTypeReference SchoolYearTypeReference { @@ -3871,6 +3952,7 @@ private Name.Homograph.NameReference ImplicitStudentNameReference } [DataMember(Name="studentNameReference")] + [Key(2)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Name.Homograph.NameReference StudentNameReference { @@ -4044,6 +4126,7 @@ string Entities.Common.Homograph.IStudent.SchoolYear /// [Required(ErrorMessage=ValidationHelpers.RequiredObjectMessageFormat)] [DataMember(Name = "address")] + [Key(3)] public StudentAddress StudentAddress { get; set; } Entities.Common.Homograph.IStudentAddress Entities.Common.Homograph.IStudent.StudentAddress @@ -4084,9 +4167,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(4)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(5)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -4238,7 +4323,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// /// A class which represents the homograph.StudentAddress table of the Student aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentAddress : Entities.Common.Homograph.IStudentAddress { @@ -4281,6 +4366,7 @@ Entities.Common.Homograph.IStudent Entities.Common.Homograph.IStudentAddress.Stu set { SetStudent(value); } } + [IgnoreMember] public Entities.Common.Homograph.IStudent Student { set { SetStudent(value); } @@ -4298,6 +4384,7 @@ private void SetStudent(Entities.Common.Homograph.IStudent value) [RequiredWithNonDefault] [NonDefaultStringLength(30, MinimumLength=2, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="city")] + [Key(0)] public string City { get; set; } // ------------------------------------------------------------- @@ -4467,33 +4554,41 @@ namespace EdFi.Ods.Api.Common.Models.Resources.StudentSchoolAssociation.Homograp /// /// Represents a reference to the StudentSchoolAssociation resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentSchoolAssociationReference : IResourceReference { [DataMember(Name="schoolName")] + [Key(0)] public string SchoolName { get; set; } [DataMember(Name="studentFirstName")] + [Key(1)] public string StudentFirstName { get; set; } [DataMember(Name="studentLastSurname")] + [Key(2)] public string StudentLastSurname { get; set; } /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(3)] 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. /// + [Key(4)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(5)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -4572,7 +4667,7 @@ private Link CreateLink() /// /// A class which represents the homograph.StudentSchoolAssociation table of the StudentSchoolAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentSchoolAssociation : Entities.Common.Homograph.IStudentSchoolAssociation, IHasETag, IDateVersionedEntity { @@ -4601,6 +4696,7 @@ public class StudentSchoolAssociation : Entities.Common.Homograph.IStudentSchool /// The unique identifier for the StudentSchoolAssociation resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -4624,6 +4720,7 @@ private School.Homograph.SchoolReference ImplicitSchoolReference } [DataMember(Name="schoolReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public School.Homograph.SchoolReference SchoolReference { @@ -4657,6 +4754,7 @@ private Student.Homograph.StudentReference ImplicitStudentReference } [DataMember(Name="studentReference")] + [Key(2)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Student.Homograph.StudentReference StudentReference { @@ -4863,9 +4961,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(3)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(4)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- diff --git a/Utilities/CodeGeneration/EdFi.Ods.CodeGen.Tests/Approval/5.2.0/DataStandard_520_ApprovalTests.Verify.Extensions.Sample.1.0.0_Std_5.2.0_Resources_Resources.generated.approved.cs b/Utilities/CodeGeneration/EdFi.Ods.CodeGen.Tests/Approval/5.2.0/DataStandard_520_ApprovalTests.Verify.Extensions.Sample.1.0.0_Std_5.2.0_Resources_Resources.generated.approved.cs index 723d956509..91421dcfab 100644 --- a/Utilities/CodeGeneration/EdFi.Ods.CodeGen.Tests/Approval/5.2.0/DataStandard_520_ApprovalTests.Verify.Extensions.Sample.1.0.0_Std_5.2.0_Resources_Resources.generated.approved.cs +++ b/Utilities/CodeGeneration/EdFi.Ods.CodeGen.Tests/Approval/5.2.0/DataStandard_520_ApprovalTests.Verify.Extensions.Sample.1.0.0_Std_5.2.0_Resources_Resources.generated.approved.cs @@ -23,6 +23,8 @@ using EdFi.Ods.Entities.Common.Sample; using Newtonsoft.Json; using FluentValidation.Results; +using MessagePack; +using KeyAttribute = MessagePack.KeyAttribute; // Aggregate: ArtMediumDescriptor @@ -31,7 +33,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.ArtMediumDescriptor.Sample /// /// A class which represents the sample.ArtMediumDescriptor table of the ArtMediumDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class ArtMediumDescriptor : Entities.Common.Sample.IArtMediumDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -60,6 +62,7 @@ public class ArtMediumDescriptor : Entities.Common.Sample.IArtMediumDescriptor, /// The unique identifier for the ArtMediumDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -144,6 +147,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -152,6 +156,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -159,6 +164,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -166,6 +172,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -175,6 +182,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -184,6 +192,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -227,9 +236,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -302,27 +313,33 @@ namespace EdFi.Ods.Api.Common.Models.Resources.Bus.Sample /// /// Represents a reference to the Bus resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class BusReference : IResourceReference { [DataMember(Name="busId")] + [Key(0)] public string BusId { get; set; } /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(1)] 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. /// + [Key(2)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(3)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -391,7 +408,7 @@ private Link CreateLink() /// /// A class which represents the sample.Bus table of the Bus aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class Bus : Entities.Common.Sample.IBus, IHasETag, IDateVersionedEntity { @@ -420,6 +437,7 @@ public class Bus : Entities.Common.Sample.IBus, IHasETag, IDateVersionedEntity /// The unique identifier for the Bus resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -440,6 +458,7 @@ public class Bus : Entities.Common.Sample.IBus, IHasETag, IDateVersionedEntity [RequiredWithNonDefault] [NonDefaultStringLength(60, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="busId")] + [Key(1)] public string BusId { get; set; } // ------------------------------------------------------------- @@ -534,9 +553,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(2)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(3)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -609,30 +630,37 @@ namespace EdFi.Ods.Api.Common.Models.Resources.BusRoute.Sample /// /// Represents a reference to the BusRoute resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class BusRouteReference : IResourceReference { [DataMember(Name="busId")] + [Key(0)] public string BusId { get; set; } [DataMember(Name="busRouteNumber")] + [Key(1)] public int BusRouteNumber { get; set; } /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(2)] 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. /// + [Key(3)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(4)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -706,7 +734,7 @@ private Link CreateLink() /// /// A class which represents the sample.BusRoute table of the BusRoute aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] [NoUnsuppliedRequiredMembersWithMeaningfulDefaults] public class BusRoute : Entities.Common.Sample.IBusRoute, IHasETag, IDateVersionedEntity, IHasRequiredMembersWithMeaningfulDefaultValues, IValidatableObject @@ -744,6 +772,7 @@ public BusRoute() /// The unique identifier for the BusRoute resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -767,6 +796,7 @@ private StaffEducationOrganizationAssignmentAssociation.EdFi.StaffEducationOrgan } [DataMember(Name="staffEducationOrganizationAssignmentAssociationReference")] + [Key(1)] [FullyDefinedReference] public StaffEducationOrganizationAssignmentAssociation.EdFi.StaffEducationOrganizationAssignmentAssociationReference StaffEducationOrganizationAssignmentAssociationReference { @@ -798,6 +828,7 @@ public StaffEducationOrganizationAssignmentAssociation.EdFi.StaffEducationOrgani [RequiredWithNonDefault] [NonDefaultStringLength(60, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="busId")] + [Key(2)] public string BusId { get; set; } /// @@ -806,6 +837,7 @@ public StaffEducationOrganizationAssignmentAssociation.EdFi.StaffEducationOrgani // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] [DataMember(Name="busRouteNumber")] + [Key(3)] public int BusRouteNumber { get; set; } // ------------------------------------------------------------- @@ -907,6 +939,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(15, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="busRouteDirection")] + [Key(4)] public string BusRouteDirection { get; set; } /// @@ -915,6 +948,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(1, 2147483647, ErrorMessage=ValidationHelpers.RangeMinOnlyMessageFormat)] [DataMember(Name="busRouteDuration")] + [Key(5)] public int? BusRouteDuration { get; set; } /// @@ -922,6 +956,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="daily")] + [Key(6)] public bool? Daily { get; set; } /// @@ -930,8 +965,16 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="disabilityDescriptor")][DescriptorExists("DisabilityDescriptor")] + [IgnoreMember] public string DisabilityDescriptor { get; set; } + [Key(7)][JsonIgnore] + public int DisabilityDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("DisabilityDescriptor", DisabilityDescriptor); } + set { DisabilityDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("DisabilityDescriptor", value); } + } + /// /// The identifier assigned to an education organization. /// @@ -966,6 +1009,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(30, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="expectedTransitTime")] + [Key(8)] public string ExpectedTransitTime { get; set; } private bool _hoursPerWeekExplicitlyAssigned = false; @@ -977,6 +1021,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-999.99", "999.99", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="hoursPerWeek")] + [Key(9)] public decimal HoursPerWeek { get => _hoursPerWeek; @@ -997,6 +1042,7 @@ public decimal HoursPerWeek // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-922337203685477.5808", "922337203685477.5807", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="operatingCost")] + [Key(10)] public decimal OperatingCost { get => _operatingCost; @@ -1014,6 +1060,7 @@ public decimal OperatingCost // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-9.9999", "9.9999", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="optimalCapacity")] + [Key(11)] public decimal? OptimalCapacity { get; set; } /// @@ -1073,6 +1120,7 @@ string Entities.Common.Sample.IBusRoute.StaffUniqueId /// // NOT in a reference, NOT a lookup column [DataMember(Name="startDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(12)] public DateTime? StartDate { get; set; } /// @@ -1081,6 +1129,7 @@ string Entities.Common.Sample.IBusRoute.StaffUniqueId // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-999.99", "999.99", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="weeklyMileage")] + [Key(13)] public decimal? WeeklyMileage { get; set; } // ------------------------------------------------------------- @@ -1129,6 +1178,7 @@ public System.Collections.IDictionary Extensions { [NoDuplicateMembers] [DataMember(Name="busYears")] + [Key(14)] public ICollection BusRouteBusYears { get { return _busRouteBusYears; } @@ -1159,6 +1209,7 @@ public ICollection BusRouteBusYears [NoDuplicateMembers] [DataMember(Name="programs")] + [Key(15)] public ICollection BusRoutePrograms { get { return _busRoutePrograms; } @@ -1189,6 +1240,7 @@ public ICollection BusRoutePrograms [NoDuplicateMembers][RequiredCollection] [DataMember(Name="serviceAreaPostalCodes")] + [Key(16)] public ICollection BusRouteServiceAreaPostalCodes { get { return _busRouteServiceAreaPostalCodes; } @@ -1219,6 +1271,7 @@ public ICollection BusRouteServiceAreaPostalCodes [NoDuplicateMembers][RequiredCollection] [DataMember(Name="startTimes")] + [Key(17)] public ICollection BusRouteStartTimes { get { return _busRouteStartTimes; } @@ -1249,6 +1302,7 @@ public ICollection BusRouteStartTimes [NoDuplicateMembers][RequiredCollection] [DataMember(Name="telephones")] + [Key(18)] public ICollection BusRouteTelephones { get { return _busRouteTelephones; } @@ -1281,9 +1335,11 @@ public ICollection BusRouteTelephones // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(19)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(20)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -1575,7 +1631,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// /// A class which represents the sample.BusRouteBusYear table of the BusRoute aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class BusRouteBusYear : Entities.Common.Sample.IBusRouteBusYear { @@ -1618,6 +1674,7 @@ Entities.Common.Sample.IBusRoute Entities.Common.Sample.IBusRouteBusYear.BusRout set { SetBusRoute(value); } } + [IgnoreMember] public Entities.Common.Sample.IBusRoute BusRoute { set { SetBusRoute(value); } @@ -1634,6 +1691,7 @@ private void SetBusRoute(Entities.Common.Sample.IBusRoute value) // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] [DataMember(Name="busYear")] + [Key(0)] public short BusYear { get; set; } // ------------------------------------------------------------- @@ -1798,7 +1856,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the sample.BusRouteProgram table of the BusRoute aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class BusRouteProgram : Entities.Common.Sample.IBusRouteProgram { @@ -1843,6 +1901,7 @@ private Program.EdFi.ProgramReference ImplicitProgramReference } [DataMember(Name="programReference")] + [Key(0)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Program.EdFi.ProgramReference ProgramReference { @@ -1875,6 +1934,7 @@ Entities.Common.Sample.IBusRoute Entities.Common.Sample.IBusRouteProgram.BusRout set { SetBusRoute(value); } } + [IgnoreMember] public Entities.Common.Sample.IBusRoute BusRoute { set { SetBusRoute(value); } @@ -2148,7 +2208,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the sample.BusRouteServiceAreaPostalCode table of the BusRoute aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class BusRouteServiceAreaPostalCode : Entities.Common.Sample.IBusRouteServiceAreaPostalCode { @@ -2191,6 +2251,7 @@ Entities.Common.Sample.IBusRoute Entities.Common.Sample.IBusRouteServiceAreaPost set { SetBusRoute(value); } } + [IgnoreMember] public Entities.Common.Sample.IBusRoute BusRoute { set { SetBusRoute(value); } @@ -2208,6 +2269,7 @@ private void SetBusRoute(Entities.Common.Sample.IBusRoute value) [RequiredWithNonDefault] [NonDefaultStringLength(17, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="serviceAreaPostalCode")] + [Key(0)] public string ServiceAreaPostalCode { get; set; } // ------------------------------------------------------------- @@ -2372,7 +2434,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the sample.BusRouteStartTime table of the BusRoute aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class BusRouteStartTime : Entities.Common.Sample.IBusRouteStartTime { @@ -2415,6 +2477,7 @@ Entities.Common.Sample.IBusRoute Entities.Common.Sample.IBusRouteStartTime.BusRo set { SetBusRoute(value); } } + [IgnoreMember] public Entities.Common.Sample.IBusRoute BusRoute { set { SetBusRoute(value); } @@ -2431,6 +2494,7 @@ private void SetBusRoute(Entities.Common.Sample.IBusRoute value) // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] [DataMember(Name="startTime")][JsonConverter(typeof(UtcTimeConverter))] + [Key(0)] public TimeSpan StartTime { get; set; } // ------------------------------------------------------------- @@ -2595,7 +2659,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the sample.BusRouteTelephone table of the BusRoute aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class BusRouteTelephone : Entities.Common.Sample.IBusRouteTelephone { @@ -2638,6 +2702,7 @@ Entities.Common.Sample.IBusRoute Entities.Common.Sample.IBusRouteTelephone.BusRo set { SetBusRoute(value); } } + [IgnoreMember] public Entities.Common.Sample.IBusRoute BusRoute { set { SetBusRoute(value); } @@ -2655,6 +2720,7 @@ private void SetBusRoute(Entities.Common.Sample.IBusRoute value) [RequiredWithNonDefault] [NonDefaultStringLength(24, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="telephoneNumber")] + [Key(0)] public string TelephoneNumber { get; set; } /// @@ -2664,7 +2730,15 @@ private void SetBusRoute(Entities.Common.Sample.IBusRoute value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="telephoneNumberTypeDescriptor")][DescriptorExists("TelephoneNumberTypeDescriptor")] + [IgnoreMember] public string TelephoneNumberTypeDescriptor { get; set; } + + [Key(1)][JsonIgnore] + public int TelephoneNumberTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("TelephoneNumberTypeDescriptor", TelephoneNumberTypeDescriptor); } + set { TelephoneNumberTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("TelephoneNumberTypeDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -2743,6 +2817,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="doNotPublishIndicator")] + [Key(2)] public bool? DoNotPublishIndicator { get; set; } /// @@ -2751,6 +2826,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(1, 2147483647, ErrorMessage=ValidationHelpers.RangeMinOnlyMessageFormat)] [DataMember(Name="orderOfPriority")] + [Key(3)] public int? OrderOfPriority { get; set; } /// @@ -2758,6 +2834,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="textMessageCapabilityIndicator")] + [Key(4)] public bool? TextMessageCapabilityIndicator { get; set; } // ------------------------------------------------------------- @@ -2864,7 +2941,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.Contact.EdFi.Extensions.Sample /// /// A class which represents the sample.ContactAddressExtension table of the Contact aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] [Display(Name="Sample")] [NoUnsuppliedRequiredMembersWithMeaningfulDefaults] @@ -2914,6 +2991,7 @@ Entities.Common.EdFi.IContactAddress Entities.Common.Sample.IContactAddressExten set { SetContactAddress(value); } } + [IgnoreMember] public Entities.Common.EdFi.IContactAddress ContactAddress { set { SetContactAddress(value); } @@ -2984,6 +3062,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(255, MinimumLength=1, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText] [DataMember(Name="complex")] + [Key(0)] public string Complex { get; set; } private bool _onBusRouteExplicitlyAssigned = false; @@ -2994,6 +3073,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="onBusRoute")] + [Key(1)] public bool OnBusRoute { get => _onBusRoute; @@ -3047,6 +3127,7 @@ public System.Collections.IDictionary Extensions { [NoDuplicateMembers][RequiredCollection] [DataMember(Name="schoolDistricts")] + [Key(2)] public ICollection ContactAddressSchoolDistricts { get { return _contactAddressSchoolDistricts; } @@ -3077,6 +3158,7 @@ public ICollection ContactAddressSchoolDistricts [NoDuplicateMembers] [DataMember(Name="terms")] + [Key(3)] public ICollection ContactAddressTerms { get { return _contactAddressTerms; } @@ -3301,7 +3383,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the sample.ContactAddressSchoolDistrict table of the Contact aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class ContactAddressSchoolDistrict : Entities.Common.Sample.IContactAddressSchoolDistrict { @@ -3344,6 +3426,7 @@ Entities.Common.Sample.IContactAddressExtension Entities.Common.Sample.IContactA set { SetContactAddressExtension(value); } } + [IgnoreMember] public Entities.Common.Sample.IContactAddressExtension ContactAddressExtension { set { SetContactAddressExtension(value); } @@ -3361,6 +3444,7 @@ private void SetContactAddressExtension(Entities.Common.Sample.IContactAddressEx [RequiredWithNonDefault] [NonDefaultStringLength(250, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="schoolDistrict")] + [Key(0)] public string SchoolDistrict { get; set; } // ------------------------------------------------------------- @@ -3525,7 +3609,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the sample.ContactAddressTerm table of the Contact aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class ContactAddressTerm : Entities.Common.Sample.IContactAddressTerm { @@ -3568,6 +3652,7 @@ Entities.Common.Sample.IContactAddressExtension Entities.Common.Sample.IContactA set { SetContactAddressExtension(value); } } + [IgnoreMember] public Entities.Common.Sample.IContactAddressExtension ContactAddressExtension { set { SetContactAddressExtension(value); } @@ -3585,7 +3670,15 @@ private void SetContactAddressExtension(Entities.Common.Sample.IContactAddressEx [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="termDescriptor")][DescriptorExists("TermDescriptor")] + [IgnoreMember] public string TermDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int TermDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("TermDescriptor", TermDescriptor); } + set { TermDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("TermDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -3749,7 +3842,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the sample.ContactAuthor table of the Contact aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class ContactAuthor : Entities.Common.Sample.IContactAuthor { @@ -3792,6 +3885,7 @@ Entities.Common.Sample.IContactExtension Entities.Common.Sample.IContactAuthor.C set { SetContactExtension(value); } } + [IgnoreMember] public Entities.Common.Sample.IContactExtension ContactExtension { set { SetContactExtension(value); } @@ -3809,6 +3903,7 @@ private void SetContactExtension(Entities.Common.Sample.IContactExtension value) [RequiredWithNonDefault] [NonDefaultStringLength(100, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="author")] + [Key(0)] public string Author { get; set; } // ------------------------------------------------------------- @@ -3973,7 +4068,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the sample.ContactCeilingHeight table of the Contact aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] [NoUnsuppliedRequiredMembersWithMeaningfulDefaults] public class ContactCeilingHeight : Entities.Common.Sample.IContactCeilingHeight, IHasRequiredMembersWithMeaningfulDefaultValues @@ -4017,6 +4112,7 @@ Entities.Common.Sample.IContactExtension Entities.Common.Sample.IContactCeilingH set { SetContactExtension(value); } } + [IgnoreMember] public Entities.Common.Sample.IContactExtension ContactExtension { set { SetContactExtension(value); } @@ -4036,6 +4132,7 @@ private void SetContactExtension(Entities.Common.Sample.IContactExtension value) // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-9999.9", "9999.9", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="ceilingHeight")] + [Key(0)] public decimal CeilingHeight { get => _ceilingHeight; @@ -4217,7 +4314,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the sample.ContactCTEProgramService table of the Contact aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class ContactCTEProgramService : Entities.Common.Sample.IContactCTEProgramService { @@ -4260,6 +4357,7 @@ Entities.Common.Sample.IContactExtension Entities.Common.Sample.IContactCTEProgr set { SetContactExtension(value); } } + [IgnoreMember] public Entities.Common.Sample.IContactExtension ContactExtension { set { SetContactExtension(value); } @@ -4330,6 +4428,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(120, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="cipCode")] + [Key(0)] public string CIPCode { get; set; } /// @@ -4339,13 +4438,22 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="cteProgramServiceDescriptor")][DescriptorExists("CTEProgramServiceDescriptor")] + [IgnoreMember] public string CTEProgramServiceDescriptor { get; set; } + [Key(1)][JsonIgnore] + public int CTEProgramServiceDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("CTEProgramServiceDescriptor", CTEProgramServiceDescriptor); } + set { CTEProgramServiceDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("CTEProgramServiceDescriptor", value); } + } + /// /// True if service is a primary service. /// // NOT in a reference, NOT a lookup column [DataMember(Name="primaryIndicator")] + [Key(2)] public bool? PrimaryIndicator { get; set; } /// @@ -4353,6 +4461,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="serviceBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? ServiceBeginDate { get; set; } /// @@ -4360,6 +4469,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="serviceEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? ServiceEndDate { get; set; } // ------------------------------------------------------------- @@ -4461,7 +4571,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the sample.ContactEducationContent table of the Contact aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class ContactEducationContent : Entities.Common.Sample.IContactEducationContent { @@ -4506,6 +4616,7 @@ private EducationContent.EdFi.EducationContentReference ImplicitEducationContent } [DataMember(Name="educationContentReference")] + [Key(0)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public EducationContent.EdFi.EducationContentReference EducationContentReference { @@ -4538,6 +4649,7 @@ Entities.Common.Sample.IContactExtension Entities.Common.Sample.IContactEducatio set { SetContactExtension(value); } } + [IgnoreMember] public Entities.Common.Sample.IContactExtension ContactExtension { set { SetContactExtension(value); } @@ -4748,7 +4860,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the sample.ContactExtension table of the Contact aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] [Display(Name="Sample")] [NoUnsuppliedRequiredMembersWithMeaningfulDefaults] @@ -4801,6 +4913,7 @@ Entities.Common.EdFi.IContact Entities.Common.Sample.IContactExtension.Contact set { SetContact(value); } } + [IgnoreMember] public Entities.Common.EdFi.IContact Contact { set { SetContact(value); } @@ -4871,6 +4984,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(30, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="averageCarLineWait")] + [Key(0)] public string AverageCarLineWait { get; set; } /// @@ -4878,6 +4992,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="becameParent")] + [Key(1)] public short? BecameParent { get; set; } /// @@ -4886,6 +5001,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-922337203685477.5808", "922337203685477.5807", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="coffeeSpend")] + [Key(2)] public decimal? CoffeeSpend { get; set; } /// @@ -4894,14 +5010,23 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="credentialFieldDescriptor")][DescriptorExists("CredentialFieldDescriptor")] + [IgnoreMember] public string CredentialFieldDescriptor { get; set; } + [Key(3)][JsonIgnore] + public int CredentialFieldDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("CredentialFieldDescriptor", CredentialFieldDescriptor); } + set { CredentialFieldDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("CredentialFieldDescriptor", value); } + } + /// /// The amount of time the contact spends reading to his/her children at bedtime. /// // NOT in a reference, NOT a lookup column [Range(1, 2147483647, ErrorMessage=ValidationHelpers.RangeMinOnlyMessageFormat)] [DataMember(Name="duration")] + [Key(4)] public int? Duration { get; set; } /// @@ -4910,6 +5035,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "0", "99999999999999.9999", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="gpa")] + [Key(5)] public decimal? GPA { get; set; } /// @@ -4917,6 +5043,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="graduationDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(6)] public DateTime? GraduationDate { get; set; } private bool _isSportsFanExplicitlyAssigned = false; @@ -4927,6 +5054,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="isSportsFan")] + [Key(7)] public bool IsSportsFan { get => _isSportsFan; @@ -4943,6 +5071,7 @@ public bool IsSportsFan /// // NOT in a reference, NOT a lookup column [DataMember(Name="luckyNumber")] + [Key(8)] public int? LuckyNumber { get; set; } /// @@ -4950,6 +5079,7 @@ public bool IsSportsFan /// // NOT in a reference, NOT a lookup column [DataMember(Name="preferredWakeUpTime")][JsonConverter(typeof(UtcTimeConverter))] + [Key(9)] public TimeSpan? PreferredWakeUpTime { get; set; } /// @@ -4958,6 +5088,7 @@ public bool IsSportsFan // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-9.9999", "9.9999", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="rainCertainty")] + [Key(10)] public decimal? RainCertainty { get; set; } // ------------------------------------------------------------- @@ -4977,6 +5108,7 @@ IEnumerable IHasRequiredMembersWithMeaningfulDefaultValues.GetUnassigned /// [DataMember(Name = "cteProgramService")] + [Key(11)] public ContactCTEProgramService ContactCTEProgramService { get; set; } Entities.Common.Sample.IContactCTEProgramService Entities.Common.Sample.IContactExtension.ContactCTEProgramService @@ -4990,6 +5122,7 @@ Entities.Common.Sample.IContactCTEProgramService Entities.Common.Sample.IContact /// [Required(ErrorMessage=ValidationHelpers.RequiredObjectMessageFormat)] [DataMember(Name = "teacherConference")] + [Key(12)] public ContactTeacherConference ContactTeacherConference { get; set; } Entities.Common.Sample.IContactTeacherConference Entities.Common.Sample.IContactExtension.ContactTeacherConference @@ -5028,6 +5161,7 @@ public System.Collections.IDictionary Extensions { [NoDuplicateMembers] [DataMember(Name="authors")] + [Key(13)] public ICollection ContactAuthors { get { return _contactAuthors; } @@ -5058,6 +5192,7 @@ public ICollection ContactAuthors [NoDuplicateMembers] [DataMember(Name="ceilingHeights")] + [Key(14)] public ICollection ContactCeilingHeights { get { return _contactCeilingHeights; } @@ -5088,6 +5223,7 @@ public ICollection ContactCeilingHeights [NoDuplicateMembers] [DataMember(Name="educationContents")] + [Key(15)] public ICollection ContactEducationContents { get { return _contactEducationContents; } @@ -5118,6 +5254,7 @@ public ICollection ContactEducationContents [NoDuplicateMembers][RequiredCollection] [DataMember(Name="favoriteBookTitles")] + [Key(16)] public ICollection ContactFavoriteBookTitles { get { return _contactFavoriteBookTitles; } @@ -5148,6 +5285,7 @@ public ICollection ContactFavoriteBookTitles [NoDuplicateMembers] [DataMember(Name="studentProgramAssociations")] + [Key(17)] public ICollection ContactStudentProgramAssociations { get { return _contactStudentProgramAssociations; } @@ -5483,7 +5621,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the sample.ContactFavoriteBookTitle table of the Contact aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class ContactFavoriteBookTitle : Entities.Common.Sample.IContactFavoriteBookTitle { @@ -5526,6 +5664,7 @@ Entities.Common.Sample.IContactExtension Entities.Common.Sample.IContactFavorite set { SetContactExtension(value); } } + [IgnoreMember] public Entities.Common.Sample.IContactExtension ContactExtension { set { SetContactExtension(value); } @@ -5543,6 +5682,7 @@ private void SetContactExtension(Entities.Common.Sample.IContactExtension value) [RequiredWithNonDefault] [NonDefaultStringLength(100, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="favoriteBookTitle")] + [Key(0)] public string FavoriteBookTitle { get; set; } // ------------------------------------------------------------- @@ -5707,7 +5847,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the sample.ContactStudentProgramAssociation table of the Contact aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class ContactStudentProgramAssociation : Entities.Common.Sample.IContactStudentProgramAssociation { @@ -5752,6 +5892,7 @@ private StudentProgramAssociation.EdFi.StudentProgramAssociationReference Implic } [DataMember(Name="studentProgramAssociationReference")] + [Key(0)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public StudentProgramAssociation.EdFi.StudentProgramAssociationReference StudentProgramAssociationReference { @@ -5784,6 +5925,7 @@ Entities.Common.Sample.IContactExtension Entities.Common.Sample.IContactStudentP set { SetContactExtension(value); } } + [IgnoreMember] public Entities.Common.Sample.IContactExtension ContactExtension { set { SetContactExtension(value); } @@ -6150,7 +6292,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the sample.ContactTeacherConference table of the Contact aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class ContactTeacherConference : Entities.Common.Sample.IContactTeacherConference { @@ -6193,6 +6335,7 @@ Entities.Common.Sample.IContactExtension Entities.Common.Sample.IContactTeacherC set { SetContactExtension(value); } } + [IgnoreMember] public Entities.Common.Sample.IContactExtension ContactExtension { set { SetContactExtension(value); } @@ -6264,6 +6407,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(10, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="dayOfWeek")] + [Key(0)] public string DayOfWeek { get; set; } /// @@ -6272,6 +6416,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] [DataMember(Name="endTime")][JsonConverter(typeof(UtcTimeConverter))] + [Key(1)] public TimeSpan EndTime { get; set; } /// @@ -6280,6 +6425,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] [DataMember(Name="startTime")][JsonConverter(typeof(UtcTimeConverter))] + [Key(2)] public TimeSpan StartTime { get; set; } // ------------------------------------------------------------- @@ -6386,7 +6532,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.FavoriteBookCategoryDescriptor.Sa /// /// A class which represents the sample.FavoriteBookCategoryDescriptor table of the FavoriteBookCategoryDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class FavoriteBookCategoryDescriptor : Entities.Common.Sample.IFavoriteBookCategoryDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -6415,6 +6561,7 @@ public class FavoriteBookCategoryDescriptor : Entities.Common.Sample.IFavoriteBo /// The unique identifier for the FavoriteBookCategoryDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -6499,6 +6646,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -6507,6 +6655,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -6514,6 +6663,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -6521,6 +6671,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -6530,6 +6681,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -6539,6 +6691,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -6582,9 +6735,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -6657,7 +6812,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.MembershipTypeDescriptor.Sample /// /// A class which represents the sample.MembershipTypeDescriptor table of the MembershipTypeDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class MembershipTypeDescriptor : Entities.Common.Sample.IMembershipTypeDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -6686,6 +6841,7 @@ public class MembershipTypeDescriptor : Entities.Common.Sample.IMembershipTypeDe /// The unique identifier for the MembershipTypeDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -6770,6 +6926,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -6778,6 +6935,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -6785,6 +6943,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -6792,6 +6951,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -6801,6 +6961,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -6810,6 +6971,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -6853,9 +7015,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -6928,7 +7092,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.School.EdFi.Extensions.Sample /// /// A class which represents the sample.SchoolCTEProgramService table of the School aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class SchoolCTEProgramService : Entities.Common.Sample.ISchoolCTEProgramService { @@ -6971,6 +7135,7 @@ Entities.Common.Sample.ISchoolExtension Entities.Common.Sample.ISchoolCTEProgram set { SetSchoolExtension(value); } } + [IgnoreMember] public Entities.Common.Sample.ISchoolExtension SchoolExtension { set { SetSchoolExtension(value); } @@ -7041,6 +7206,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(120, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="cipCode")] + [Key(0)] public string CIPCode { get; set; } /// @@ -7050,13 +7216,22 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="cteProgramServiceDescriptor")][DescriptorExists("CTEProgramServiceDescriptor")] + [IgnoreMember] public string CTEProgramServiceDescriptor { get; set; } + [Key(1)][JsonIgnore] + public int CTEProgramServiceDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("CTEProgramServiceDescriptor", CTEProgramServiceDescriptor); } + set { CTEProgramServiceDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("CTEProgramServiceDescriptor", value); } + } + /// /// True if service is a primary service. /// // NOT in a reference, NOT a lookup column [DataMember(Name="primaryIndicator")] + [Key(2)] public bool? PrimaryIndicator { get; set; } /// @@ -7064,6 +7239,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="serviceBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? ServiceBeginDate { get; set; } /// @@ -7071,6 +7247,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="serviceEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? ServiceEndDate { get; set; } // ------------------------------------------------------------- @@ -7172,7 +7349,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the sample.SchoolDirectlyOwnedBus table of the School aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class SchoolDirectlyOwnedBus : Entities.Common.Sample.ISchoolDirectlyOwnedBus { @@ -7217,6 +7394,7 @@ private Bus.Sample.BusReference ImplicitDirectlyOwnedBusReference } [DataMember(Name="directlyOwnedBusReference")] + [Key(0)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Bus.Sample.BusReference DirectlyOwnedBusReference { @@ -7249,6 +7427,7 @@ Entities.Common.Sample.ISchoolExtension Entities.Common.Sample.ISchoolDirectlyOw set { SetSchoolExtension(value); } } + [IgnoreMember] public Entities.Common.Sample.ISchoolExtension SchoolExtension { set { SetSchoolExtension(value); } @@ -7459,7 +7638,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the sample.SchoolExtension table of the School aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] [Display(Name="Sample")] public class SchoolExtension : Entities.Common.Sample.ISchoolExtension, IChildEntity, IValidatableObject @@ -7507,6 +7686,7 @@ Entities.Common.EdFi.ISchool Entities.Common.Sample.ISchoolExtension.School set { SetSchool(value); } } + [IgnoreMember] public Entities.Common.EdFi.ISchool School { set { SetSchool(value); } @@ -7576,6 +7756,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="isExemplary")] + [Key(0)] public bool? IsExemplary { get; set; } // ------------------------------------------------------------- @@ -7587,6 +7768,7 @@ public override int GetHashCode() /// [DataMember(Name = "cteProgramService")] + [Key(1)] public SchoolCTEProgramService SchoolCTEProgramService { get; set; } Entities.Common.Sample.ISchoolCTEProgramService Entities.Common.Sample.ISchoolExtension.SchoolCTEProgramService @@ -7625,6 +7807,7 @@ public System.Collections.IDictionary Extensions { [NoDuplicateMembers] [DataMember(Name="directlyOwnedBuses")] + [Key(2)] public ICollection SchoolDirectlyOwnedBuses { get { return _schoolDirectlyOwnedBuses; } @@ -7837,7 +8020,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.Staff.EdFi.Extensions.Sample /// /// A class which represents the sample.StaffExtension table of the Staff aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] [Display(Name="Sample")] public class StaffExtension : Entities.Common.Sample.IStaffExtension, IChildEntity, IValidatableObject @@ -7885,6 +8068,7 @@ Entities.Common.EdFi.IStaff Entities.Common.Sample.IStaffExtension.Staff set { SetStaff(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStaff Staff { set { SetStaff(value); } @@ -7954,6 +8138,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="firstPetOwnedDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(0)] public DateTime? FirstPetOwnedDate { get; set; } // ------------------------------------------------------------- @@ -7965,6 +8150,7 @@ public override int GetHashCode() /// [DataMember(Name = "petPreference")] + [Key(1)] public StaffPetPreference StaffPetPreference { get; set; } Entities.Common.Sample.IStaffPetPreference Entities.Common.Sample.IStaffExtension.StaffPetPreference @@ -8003,6 +8189,7 @@ public System.Collections.IDictionary Extensions { [NoDuplicateMembers] [DataMember(Name="pets")] + [Key(2)] public ICollection StaffPets { get { return _staffPets; } @@ -8210,7 +8397,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the sample.StaffPet table of the Staff aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StaffPet : Entities.Common.Sample.IStaffPet { @@ -8253,6 +8440,7 @@ Entities.Common.Sample.IStaffExtension Entities.Common.Sample.IStaffPet.StaffExt set { SetStaffExtension(value); } } + [IgnoreMember] public Entities.Common.Sample.IStaffExtension StaffExtension { set { SetStaffExtension(value); } @@ -8270,6 +8458,7 @@ private void SetStaffExtension(Entities.Common.Sample.IStaffExtension value) [RequiredWithNonDefault] [NonDefaultStringLength(20, MinimumLength=3, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="petName")] + [Key(0)] public string PetName { get; set; } // ------------------------------------------------------------- @@ -8340,6 +8529,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="isFixed")] + [Key(1)] public bool? IsFixed { get; set; } // ------------------------------------------------------------- @@ -8441,7 +8631,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// /// A class which represents the sample.StaffPetPreference table of the Staff aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] [NoUnsuppliedRequiredMembersWithMeaningfulDefaults] public class StaffPetPreference : Entities.Common.Sample.IStaffPetPreference, IHasRequiredMembersWithMeaningfulDefaultValues @@ -8485,6 +8675,7 @@ Entities.Common.Sample.IStaffExtension Entities.Common.Sample.IStaffPetPreferenc set { SetStaffExtension(value); } } + [IgnoreMember] public Entities.Common.Sample.IStaffExtension StaffExtension { set { SetStaffExtension(value); } @@ -8557,6 +8748,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="maximumWeight")] + [Key(0)] public int MaximumWeight { get => _maximumWeight; @@ -8576,6 +8768,7 @@ public int MaximumWeight /// // NOT in a reference, NOT a lookup column [DataMember(Name="minimumWeight")] + [Key(1)] public int MinimumWeight { get => _minimumWeight; @@ -8703,7 +8896,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.Student.EdFi.Extensions.Sample /// /// A class which represents the sample.StudentAquaticPet table of the Student aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] [NoUnsuppliedRequiredMembersWithMeaningfulDefaults] public class StudentAquaticPet : Entities.Common.Sample.IStudentAquaticPet, IHasRequiredMembersWithMeaningfulDefaultValues @@ -8747,6 +8940,7 @@ Entities.Common.Sample.IStudentExtension Entities.Common.Sample.IStudentAquaticP set { SetStudentExtension(value); } } + [IgnoreMember] public Entities.Common.Sample.IStudentExtension StudentExtension { set { SetStudentExtension(value); } @@ -8765,6 +8959,7 @@ private void SetStudentExtension(Entities.Common.Sample.IStudentExtension value) /// // NOT in a reference, NOT a lookup column [DataMember(Name="mimimumTankVolume")] + [Key(0)] public int MimimumTankVolume { get => _mimimumTankVolume; @@ -8783,6 +8978,7 @@ public int MimimumTankVolume [RequiredWithNonDefault] [NonDefaultStringLength(20, MinimumLength=3, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="petName")] + [Key(1)] public string PetName { get; set; } // ------------------------------------------------------------- @@ -8862,6 +9058,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="isFixed")] + [Key(2)] public bool? IsFixed { get; set; } // ------------------------------------------------------------- @@ -8971,7 +9168,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the sample.StudentExtension table of the Student aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] [Display(Name="Sample")] public class StudentExtension : Entities.Common.Sample.IStudentExtension, IChildEntity, IValidatableObject @@ -9021,6 +9218,7 @@ Entities.Common.EdFi.IStudent Entities.Common.Sample.IStudentExtension.Student set { SetStudent(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStudent Student { set { SetStudent(value); } @@ -9094,6 +9292,7 @@ public override int GetHashCode() /// [DataMember(Name = "petPreference")] + [Key(0)] public StudentPetPreference StudentPetPreference { get; set; } Entities.Common.Sample.IStudentPetPreference Entities.Common.Sample.IStudentExtension.StudentPetPreference @@ -9132,6 +9331,7 @@ public System.Collections.IDictionary Extensions { [NoDuplicateMembers] [DataMember(Name="aquaticPets")] + [Key(1)] public ICollection StudentAquaticPets { get { return _studentAquaticPets; } @@ -9162,6 +9362,7 @@ public ICollection StudentAquaticPets [NoDuplicateMembers] [DataMember(Name="favoriteBooks")] + [Key(2)] public ICollection StudentFavoriteBooks { get { return _studentFavoriteBooks; } @@ -9192,6 +9393,7 @@ public ICollection StudentFavoriteBooks [NoDuplicateMembers] [DataMember(Name="pets")] + [Key(3)] public ICollection StudentPets { get { return _studentPets; } @@ -9457,7 +9659,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the sample.StudentFavoriteBook table of the Student aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentFavoriteBook : Entities.Common.Sample.IStudentFavoriteBook, IValidatableObject { @@ -9504,6 +9706,7 @@ Entities.Common.Sample.IStudentExtension Entities.Common.Sample.IStudentFavorite set { SetStudentExtension(value); } } + [IgnoreMember] public Entities.Common.Sample.IStudentExtension StudentExtension { set { SetStudentExtension(value); } @@ -9521,7 +9724,15 @@ private void SetStudentExtension(Entities.Common.Sample.IStudentExtension value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="favoriteBookCategoryDescriptor")][DescriptorExists("FavoriteBookCategoryDescriptor")] + [IgnoreMember] public string FavoriteBookCategoryDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int FavoriteBookCategoryDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("FavoriteBookCategoryDescriptor", FavoriteBookCategoryDescriptor); } + set { FavoriteBookCategoryDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("FavoriteBookCategoryDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -9592,6 +9803,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(200, MinimumLength=1, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText] [DataMember(Name="bookTitle")] + [Key(1)] public string BookTitle { get; set; } // ------------------------------------------------------------- @@ -9628,6 +9840,7 @@ public System.Collections.IDictionary Extensions { [NoDuplicateMembers] [DataMember(Name="artMedia")] + [Key(2)] public ICollection StudentFavoriteBookArtMedia { get { return _studentFavoriteBookArtMedia; } @@ -9818,7 +10031,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the sample.StudentFavoriteBookArtMedium table of the Student aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentFavoriteBookArtMedium : Entities.Common.Sample.IStudentFavoriteBookArtMedium { @@ -9861,6 +10074,7 @@ Entities.Common.Sample.IStudentFavoriteBook Entities.Common.Sample.IStudentFavor set { SetStudentFavoriteBook(value); } } + [IgnoreMember] public Entities.Common.Sample.IStudentFavoriteBook StudentFavoriteBook { set { SetStudentFavoriteBook(value); } @@ -9878,7 +10092,15 @@ private void SetStudentFavoriteBook(Entities.Common.Sample.IStudentFavoriteBook [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="artMediumDescriptor")][DescriptorExists("ArtMediumDescriptor")] + [IgnoreMember] public string ArtMediumDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int ArtMediumDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ArtMediumDescriptor", ArtMediumDescriptor); } + set { ArtMediumDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ArtMediumDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -9949,6 +10171,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(0, 100, ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="artPieces")] + [Key(1)] public int? ArtPieces { get; set; } // ------------------------------------------------------------- @@ -10050,7 +10273,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the sample.StudentPet table of the Student aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentPet : Entities.Common.Sample.IStudentPet { @@ -10093,6 +10316,7 @@ Entities.Common.Sample.IStudentExtension Entities.Common.Sample.IStudentPet.Stud set { SetStudentExtension(value); } } + [IgnoreMember] public Entities.Common.Sample.IStudentExtension StudentExtension { set { SetStudentExtension(value); } @@ -10110,6 +10334,7 @@ private void SetStudentExtension(Entities.Common.Sample.IStudentExtension value) [RequiredWithNonDefault] [NonDefaultStringLength(20, MinimumLength=3, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="petName")] + [Key(0)] public string PetName { get; set; } // ------------------------------------------------------------- @@ -10180,6 +10405,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="isFixed")] + [Key(1)] public bool? IsFixed { get; set; } // ------------------------------------------------------------- @@ -10281,7 +10507,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the sample.StudentPetPreference table of the Student aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] [NoUnsuppliedRequiredMembersWithMeaningfulDefaults] public class StudentPetPreference : Entities.Common.Sample.IStudentPetPreference, IHasRequiredMembersWithMeaningfulDefaultValues @@ -10325,6 +10551,7 @@ Entities.Common.Sample.IStudentExtension Entities.Common.Sample.IStudentPetPrefe set { SetStudentExtension(value); } } + [IgnoreMember] public Entities.Common.Sample.IStudentExtension StudentExtension { set { SetStudentExtension(value); } @@ -10397,6 +10624,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="maximumWeight")] + [Key(0)] public int MaximumWeight { get => _maximumWeight; @@ -10416,6 +10644,7 @@ public int MaximumWeight /// // NOT in a reference, NOT a lookup column [DataMember(Name="minimumWeight")] + [Key(1)] public int MinimumWeight { get => _minimumWeight; @@ -10543,25 +10772,37 @@ namespace EdFi.Ods.Api.Common.Models.Resources.StudentArtProgramAssociation.Samp /// /// Represents a reference to the StudentArtProgramAssociation resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentArtProgramAssociationReference : IResourceReference { [DataMember(Name="beginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(0)] public DateTime BeginDate { get; set; } [DataMember(Name="educationOrganizationId")] + [Key(1)] public long EducationOrganizationId { get; set; } [DataMember(Name="programEducationOrganizationId")] + [Key(2)] public long ProgramEducationOrganizationId { get; set; } [DataMember(Name="programName")] + [Key(3)] public string ProgramName { get; set; } [DataMember(Name="programTypeDescriptor")][DescriptorExists("ProgramTypeDescriptor")] + [IgnoreMember] public string ProgramTypeDescriptor { get; set; } + [Key(4)][JsonIgnore] + public int ProgramTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ProgramTypeDescriptor", ProgramTypeDescriptor); } + set { ProgramTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ProgramTypeDescriptor", value); } + } + [DataMember(Name="studentUniqueId")] public string StudentUniqueId { @@ -10577,11 +10818,15 @@ public string StudentUniqueId /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(5)] public Guid ResourceId { get; set; } - private Link _link; + [JsonIgnore] + [Key(6)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -10656,7 +10901,7 @@ private Link CreateLink() /// /// A class which represents the sample.StudentArtProgramAssociation table of the StudentArtProgramAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] [NoUnsuppliedRequiredMembersWithMeaningfulDefaults] public class StudentArtProgramAssociation : Entities.Common.Sample.IStudentArtProgramAssociation, Entities.Common.EdFi.IGeneralStudentProgramAssociation, IHasETag, IDateVersionedEntity, IHasRequiredMembersWithMeaningfulDefaultValues, IValidatableObject @@ -10696,6 +10941,7 @@ public StudentArtProgramAssociation() /// The unique identifier for the StudentArtProgramAssociation resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -10719,6 +10965,7 @@ private EducationOrganization.EdFi.EducationOrganizationReference ImplicitEducat } [DataMember(Name="educationOrganizationReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public EducationOrganization.EdFi.EducationOrganizationReference EducationOrganizationReference { @@ -10752,6 +10999,7 @@ private Program.EdFi.ProgramReference ImplicitProgramReference } [DataMember(Name="programReference")] + [Key(2)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Program.EdFi.ProgramReference ProgramReference { @@ -10785,6 +11033,7 @@ private Student.EdFi.StudentReference ImplicitStudentReference } [DataMember(Name="studentReference")] + [Key(3)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Student.EdFi.StudentReference StudentReference { @@ -10815,6 +11064,7 @@ public Student.EdFi.StudentReference StudentReference // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] [DataMember(Name="beginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime BeginDate { get; set; } /// @@ -11036,6 +11286,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="endDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(5)] public DateTime? EndDate { get; set; } /// @@ -11044,13 +11295,22 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="reasonExitedDescriptor")][DescriptorExists("ReasonExitedDescriptor")] + [IgnoreMember] public string ReasonExitedDescriptor { get; set; } + [Key(6)][JsonIgnore] + public int ReasonExitedDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ReasonExitedDescriptor", ReasonExitedDescriptor); } + set { ReasonExitedDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ReasonExitedDescriptor", value); } + } + /// /// Indicates whether the student received services during the summer session or between sessions. /// // NOT in a reference, NOT a lookup column [DataMember(Name="servedOutsideOfRegularSession")] + [Key(7)] public bool? ServedOutsideOfRegularSession { get; set; } // ------------------------------------------------------------- @@ -11064,6 +11324,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(0, 100, ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="artPieces")] + [Key(8)] public int? ArtPieces { get; set; } /// @@ -11071,6 +11332,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="exhibitDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(9)] public DateTime? ExhibitDate { get; set; } /// @@ -11079,6 +11341,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-999.99", "999.99", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="hoursPerDay")] + [Key(10)] public decimal? HoursPerDay { get; set; } /// @@ -11087,6 +11350,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(60, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="identificationCode")] + [Key(11)] public string IdentificationCode { get; set; } /// @@ -11094,6 +11358,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="kilnReservation")][JsonConverter(typeof(UtcTimeConverter))] + [Key(12)] public TimeSpan? KilnReservation { get; set; } /// @@ -11102,6 +11367,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(30, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="kilnReservationLength")] + [Key(13)] public string KilnReservationLength { get; set; } /// @@ -11110,6 +11376,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-9.9999", "9.9999", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="masteredMediums")] + [Key(14)] public decimal? MasteredMediums { get; set; } /// @@ -11118,6 +11385,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "0", "99999999999999.9999", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="numberOfDaysInAttendance")] + [Key(15)] public decimal? NumberOfDaysInAttendance { get; set; } /// @@ -11126,6 +11394,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(0, 100, ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="portfolioPieces")] + [Key(16)] public int? PortfolioPieces { get; set; } private bool _privateArtProgramExplicitlyAssigned = false; @@ -11136,6 +11405,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="privateArtProgram")] + [Key(17)] public bool PrivateArtProgram { get => _privateArtProgram; @@ -11153,6 +11423,7 @@ public bool PrivateArtProgram // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-922337203685477.5808", "922337203685477.5807", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="programFees")] + [Key(18)] public decimal? ProgramFees { get; set; } // ------------------------------------------------------------- @@ -11172,6 +11443,7 @@ IEnumerable IHasRequiredMembersWithMeaningfulDefaultValues.GetUnassigned /// [DataMember(Name = "favoriteBook")] + [Key(19)] public StudentArtProgramAssociationFavoriteBook StudentArtProgramAssociationFavoriteBook { get; set; } Entities.Common.Sample.IStudentArtProgramAssociationFavoriteBook Entities.Common.Sample.IStudentArtProgramAssociation.StudentArtProgramAssociationFavoriteBook @@ -11195,6 +11467,7 @@ Entities.Common.Sample.IStudentArtProgramAssociationFavoriteBook Entities.Common [NoDuplicateMembers] [DataMember(Name="programParticipationStatuses")] + [Key(20)] public ICollection GeneralStudentProgramAssociationProgramParticipationStatuses { get { return _generalStudentProgramAssociationProgramParticipationStatuses; } @@ -11231,6 +11504,7 @@ public System.Collections.IDictionary Extensions { [NoDuplicateMembers] [DataMember(Name="artMedia")] + [Key(21)] public ICollection StudentArtProgramAssociationArtMedia { get { return _studentArtProgramAssociationArtMedia; } @@ -11261,6 +11535,7 @@ public ICollection StudentArtProgramAssoc [NoDuplicateMembers] [DataMember(Name="portfolioYears")] + [Key(22)] public ICollection StudentArtProgramAssociationPortfolioYears { get { return _studentArtProgramAssociationPortfolioYears; } @@ -11291,6 +11566,7 @@ public ICollection StudentArtProgram [NoDuplicateMembers] [DataMember(Name="services")] + [Key(23)] public ICollection StudentArtProgramAssociationServices { get { return _studentArtProgramAssociationServices; } @@ -11321,6 +11597,7 @@ public ICollection StudentArtProgramAssocia [NoDuplicateMembers][RequiredCollection] [DataMember(Name="styles")] + [Key(24)] public ICollection StudentArtProgramAssociationStyles { get { return _studentArtProgramAssociationStyles; } @@ -11353,9 +11630,11 @@ public ICollection StudentArtProgramAssociati // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(25)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(26)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -11687,7 +11966,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the sample.StudentArtProgramAssociationArtMedium table of the StudentArtProgramAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentArtProgramAssociationArtMedium : Entities.Common.Sample.IStudentArtProgramAssociationArtMedium { @@ -11730,6 +12009,7 @@ Entities.Common.Sample.IStudentArtProgramAssociation Entities.Common.Sample.IStu set { SetStudentArtProgramAssociation(value); } } + [IgnoreMember] public Entities.Common.Sample.IStudentArtProgramAssociation StudentArtProgramAssociation { set { SetStudentArtProgramAssociation(value); } @@ -11747,7 +12027,15 @@ private void SetStudentArtProgramAssociation(Entities.Common.Sample.IStudentArtP [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="artMediumDescriptor")][DescriptorExists("ArtMediumDescriptor")] + [IgnoreMember] public string ArtMediumDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int ArtMediumDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ArtMediumDescriptor", ArtMediumDescriptor); } + set { ArtMediumDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ArtMediumDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -11911,7 +12199,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the sample.StudentArtProgramAssociationFavoriteBook table of the StudentArtProgramAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentArtProgramAssociationFavoriteBook : Entities.Common.Sample.IStudentArtProgramAssociationFavoriteBook, IValidatableObject { @@ -11958,6 +12246,7 @@ Entities.Common.Sample.IStudentArtProgramAssociation Entities.Common.Sample.IStu set { SetStudentArtProgramAssociation(value); } } + [IgnoreMember] public Entities.Common.Sample.IStudentArtProgramAssociation StudentArtProgramAssociation { set { SetStudentArtProgramAssociation(value); } @@ -12028,6 +12317,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(200, MinimumLength=1, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText] [DataMember(Name="bookTitle")] + [Key(0)] public string BookTitle { get; set; } /// @@ -12037,7 +12327,15 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="favoriteBookCategoryDescriptor")][DescriptorExists("FavoriteBookCategoryDescriptor")] + [IgnoreMember] public string FavoriteBookCategoryDescriptor { get; set; } + + [Key(1)][JsonIgnore] + public int FavoriteBookCategoryDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("FavoriteBookCategoryDescriptor", FavoriteBookCategoryDescriptor); } + set { FavoriteBookCategoryDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("FavoriteBookCategoryDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -12073,6 +12371,7 @@ public System.Collections.IDictionary Extensions { [NoDuplicateMembers] [DataMember(Name="artMedia")] + [Key(2)] public ICollection StudentArtProgramAssociationFavoriteBookArtMedia { get { return _studentArtProgramAssociationFavoriteBookArtMedia; } @@ -12263,7 +12562,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the sample.StudentArtProgramAssociationFavoriteBookArtMedium table of the StudentArtProgramAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentArtProgramAssociationFavoriteBookArtMedium : Entities.Common.Sample.IStudentArtProgramAssociationFavoriteBookArtMedium { @@ -12306,6 +12605,7 @@ Entities.Common.Sample.IStudentArtProgramAssociationFavoriteBook Entities.Common set { SetStudentArtProgramAssociationFavoriteBook(value); } } + [IgnoreMember] public Entities.Common.Sample.IStudentArtProgramAssociationFavoriteBook StudentArtProgramAssociationFavoriteBook { set { SetStudentArtProgramAssociationFavoriteBook(value); } @@ -12323,7 +12623,15 @@ private void SetStudentArtProgramAssociationFavoriteBook(Entities.Common.Sample. [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="artMediumDescriptor")][DescriptorExists("ArtMediumDescriptor")] + [IgnoreMember] public string ArtMediumDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int ArtMediumDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ArtMediumDescriptor", ArtMediumDescriptor); } + set { ArtMediumDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ArtMediumDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -12394,6 +12702,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(0, 100, ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="artPieces")] + [Key(1)] public int? ArtPieces { get; set; } // ------------------------------------------------------------- @@ -12495,7 +12804,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the sample.StudentArtProgramAssociationPortfolioYears table of the StudentArtProgramAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] [NoUnsuppliedRequiredMembersWithMeaningfulDefaults] public class StudentArtProgramAssociationPortfolioYears : Entities.Common.Sample.IStudentArtProgramAssociationPortfolioYears, IHasRequiredMembersWithMeaningfulDefaultValues @@ -12539,6 +12848,7 @@ Entities.Common.Sample.IStudentArtProgramAssociation Entities.Common.Sample.IStu set { SetStudentArtProgramAssociation(value); } } + [IgnoreMember] public Entities.Common.Sample.IStudentArtProgramAssociation StudentArtProgramAssociation { set { SetStudentArtProgramAssociation(value); } @@ -12557,6 +12867,7 @@ private void SetStudentArtProgramAssociation(Entities.Common.Sample.IStudentArtP /// // NOT in a reference, NOT a lookup column [DataMember(Name="portfolioYears")] + [Key(0)] public short PortfolioYears { get => _portfolioYears; @@ -12738,7 +13049,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the sample.StudentArtProgramAssociationService table of the StudentArtProgramAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentArtProgramAssociationService : Entities.Common.Sample.IStudentArtProgramAssociationService { @@ -12781,6 +13092,7 @@ Entities.Common.Sample.IStudentArtProgramAssociation Entities.Common.Sample.IStu set { SetStudentArtProgramAssociation(value); } } + [IgnoreMember] public Entities.Common.Sample.IStudentArtProgramAssociation StudentArtProgramAssociation { set { SetStudentArtProgramAssociation(value); } @@ -12798,7 +13110,15 @@ private void SetStudentArtProgramAssociation(Entities.Common.Sample.IStudentArtP [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="serviceDescriptor")][DescriptorExists("ServiceDescriptor")] + [IgnoreMember] public string ServiceDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int ServiceDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ServiceDescriptor", ServiceDescriptor); } + set { ServiceDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ServiceDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -12868,6 +13188,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="primaryIndicator")] + [Key(1)] public bool? PrimaryIndicator { get; set; } /// @@ -12875,6 +13196,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="serviceBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(2)] public DateTime? ServiceBeginDate { get; set; } /// @@ -12882,6 +13204,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="serviceEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? ServiceEndDate { get; set; } // ------------------------------------------------------------- @@ -12983,7 +13306,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the sample.StudentArtProgramAssociationStyle table of the StudentArtProgramAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentArtProgramAssociationStyle : Entities.Common.Sample.IStudentArtProgramAssociationStyle { @@ -13026,6 +13349,7 @@ Entities.Common.Sample.IStudentArtProgramAssociation Entities.Common.Sample.IStu set { SetStudentArtProgramAssociation(value); } } + [IgnoreMember] public Entities.Common.Sample.IStudentArtProgramAssociation StudentArtProgramAssociation { set { SetStudentArtProgramAssociation(value); } @@ -13043,6 +13367,7 @@ private void SetStudentArtProgramAssociation(Entities.Common.Sample.IStudentArtP [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="style")] + [Key(0)] public string Style { get; set; } // ------------------------------------------------------------- @@ -13212,7 +13537,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.StudentContactAssociation.EdFi.Ex /// /// A class which represents the sample.StudentContactAssociationDiscipline table of the StudentContactAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentContactAssociationDiscipline : Entities.Common.Sample.IStudentContactAssociationDiscipline { @@ -13255,6 +13580,7 @@ Entities.Common.Sample.IStudentContactAssociationExtension Entities.Common.Sampl set { SetStudentContactAssociationExtension(value); } } + [IgnoreMember] public Entities.Common.Sample.IStudentContactAssociationExtension StudentContactAssociationExtension { set { SetStudentContactAssociationExtension(value); } @@ -13272,7 +13598,15 @@ private void SetStudentContactAssociationExtension(Entities.Common.Sample.IStude [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="disciplineDescriptor")][DescriptorExists("DisciplineDescriptor")] + [IgnoreMember] public string DisciplineDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int DisciplineDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("DisciplineDescriptor", DisciplineDescriptor); } + set { DisciplineDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("DisciplineDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -13436,7 +13770,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the sample.StudentContactAssociationExtension table of the StudentContactAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] [Display(Name="Sample")] [NoUnsuppliedRequiredMembersWithMeaningfulDefaults] @@ -13491,6 +13825,7 @@ private InterventionStudy.EdFi.InterventionStudyReference ImplicitInterventionSt } [DataMember(Name="interventionStudyReference")] + [Key(0)] [FullyDefinedReference] public InterventionStudy.EdFi.InterventionStudyReference InterventionStudyReference { @@ -13523,6 +13858,7 @@ Entities.Common.EdFi.IStudentContactAssociation Entities.Common.Sample.IStudentC set { SetStudentContactAssociation(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStudentContactAssociation StudentContactAssociation { set { SetStudentContactAssociation(value); } @@ -13595,6 +13931,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="bedtimeReader")] + [Key(1)] public bool BedtimeReader { get => _bedtimeReader; @@ -13612,6 +13949,7 @@ public bool BedtimeReader // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-9.9999", "9.9999", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="bedtimeReadingRate")] + [Key(2)] public decimal? BedtimeReadingRate { get; set; } /// @@ -13620,6 +13958,7 @@ public bool BedtimeReader // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-922337203685477.5808", "922337203685477.5807", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="bookBudget")] + [Key(3)] public decimal? BookBudget { get; set; } /// @@ -13627,6 +13966,7 @@ public bool BedtimeReader /// // NOT in a reference, NOT a lookup column [DataMember(Name="booksBorrowed")] + [Key(4)] public int? BooksBorrowed { get; set; } /// @@ -13689,6 +14029,7 @@ string Entities.Common.Sample.IStudentContactAssociationExtension.InterventionSt // NOT in a reference, NOT a lookup column [Range(1, 2147483647, ErrorMessage=ValidationHelpers.RangeMinOnlyMessageFormat)] [DataMember(Name="libraryDuration")] + [Key(5)] public int? LibraryDuration { get; set; } /// @@ -13696,6 +14037,7 @@ string Entities.Common.Sample.IStudentContactAssociationExtension.InterventionSt /// // NOT in a reference, NOT a lookup column [DataMember(Name="libraryTime")][JsonConverter(typeof(UtcTimeConverter))] + [Key(6)] public TimeSpan? LibraryTime { get; set; } /// @@ -13703,6 +14045,7 @@ string Entities.Common.Sample.IStudentContactAssociationExtension.InterventionSt /// // NOT in a reference, NOT a lookup column [DataMember(Name="libraryVisits")] + [Key(7)] public short? LibraryVisits { get; set; } /// @@ -13711,6 +14054,7 @@ string Entities.Common.Sample.IStudentContactAssociationExtension.InterventionSt // NOT in a reference, NOT a lookup column [NonDefaultStringLength(250, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="priorContactRestrictions")] + [Key(8)] public string PriorContactRestrictions { get; set; } /// @@ -13718,6 +14062,7 @@ string Entities.Common.Sample.IStudentContactAssociationExtension.InterventionSt /// // NOT in a reference, NOT a lookup column [DataMember(Name="readGreenEggsAndHamDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(9)] public DateTime? ReadGreenEggsAndHamDate { get; set; } /// @@ -13726,6 +14071,7 @@ string Entities.Common.Sample.IStudentContactAssociationExtension.InterventionSt // NOT in a reference, NOT a lookup column [NonDefaultStringLength(30, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="readingTimeSpent")] + [Key(10)] public string ReadingTimeSpent { get; set; } /// @@ -13733,6 +14079,7 @@ string Entities.Common.Sample.IStudentContactAssociationExtension.InterventionSt /// // NOT in a reference, NOT a lookup column [DataMember(Name="studentRead")] + [Key(11)] public short? StudentRead { get; set; } // ------------------------------------------------------------- @@ -13752,6 +14099,7 @@ IEnumerable IHasRequiredMembersWithMeaningfulDefaultValues.GetUnassigned /// [DataMember(Name = "telephone")] + [Key(12)] public StudentContactAssociationTelephone StudentContactAssociationTelephone { get; set; } Entities.Common.Sample.IStudentContactAssociationTelephone Entities.Common.Sample.IStudentContactAssociationExtension.StudentContactAssociationTelephone @@ -13790,6 +14138,7 @@ public System.Collections.IDictionary Extensions { [NoDuplicateMembers] [DataMember(Name="disciplines")] + [Key(13)] public ICollection StudentContactAssociationDisciplines { get { return _studentContactAssociationDisciplines; } @@ -13820,6 +14169,7 @@ public ICollection StudentContactAssociatio [NoDuplicateMembers][RequiredCollection] [DataMember(Name="favoriteBookTitles")] + [Key(14)] public ICollection StudentContactAssociationFavoriteBookTitles { get { return _studentContactAssociationFavoriteBookTitles; } @@ -13850,6 +14200,7 @@ public ICollection StudentContactAss [NoDuplicateMembers] [DataMember(Name="hoursPerWeeks")] + [Key(15)] public ICollection StudentContactAssociationHoursPerWeeks { get { return _studentContactAssociationHoursPerWeeks; } @@ -13880,6 +14231,7 @@ public ICollection StudentContactAssociat [NoDuplicateMembers] [DataMember(Name="pagesReads")] + [Key(16)] public ICollection StudentContactAssociationPagesReads { get { return _studentContactAssociationPagesReads; } @@ -13910,6 +14262,7 @@ public ICollection StudentContactAssociation [NoDuplicateMembers] [DataMember(Name="staffEducationOrganizationEmploymentAssociations")] + [Key(17)] public ICollection StudentContactAssociationStaffEducationOrganizationEmploymentAssociations { get { return _studentContactAssociationStaffEducationOrganizationEmploymentAssociations; } @@ -14247,7 +14600,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the sample.StudentContactAssociationFavoriteBookTitle table of the StudentContactAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentContactAssociationFavoriteBookTitle : Entities.Common.Sample.IStudentContactAssociationFavoriteBookTitle { @@ -14290,6 +14643,7 @@ Entities.Common.Sample.IStudentContactAssociationExtension Entities.Common.Sampl set { SetStudentContactAssociationExtension(value); } } + [IgnoreMember] public Entities.Common.Sample.IStudentContactAssociationExtension StudentContactAssociationExtension { set { SetStudentContactAssociationExtension(value); } @@ -14307,6 +14661,7 @@ private void SetStudentContactAssociationExtension(Entities.Common.Sample.IStude [RequiredWithNonDefault] [NonDefaultStringLength(100, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="favoriteBookTitle")] + [Key(0)] public string FavoriteBookTitle { get; set; } // ------------------------------------------------------------- @@ -14471,7 +14826,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the sample.StudentContactAssociationHoursPerWeek table of the StudentContactAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] [NoUnsuppliedRequiredMembersWithMeaningfulDefaults] public class StudentContactAssociationHoursPerWeek : Entities.Common.Sample.IStudentContactAssociationHoursPerWeek, IHasRequiredMembersWithMeaningfulDefaultValues @@ -14515,6 +14870,7 @@ Entities.Common.Sample.IStudentContactAssociationExtension Entities.Common.Sampl set { SetStudentContactAssociationExtension(value); } } + [IgnoreMember] public Entities.Common.Sample.IStudentContactAssociationExtension StudentContactAssociationExtension { set { SetStudentContactAssociationExtension(value); } @@ -14534,6 +14890,7 @@ private void SetStudentContactAssociationExtension(Entities.Common.Sample.IStude // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-999.99", "999.99", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="hoursPerWeek")] + [Key(0)] public decimal HoursPerWeek { get => _hoursPerWeek; @@ -14715,7 +15072,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the sample.StudentContactAssociationPagesRead table of the StudentContactAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] [NoUnsuppliedRequiredMembersWithMeaningfulDefaults] public class StudentContactAssociationPagesRead : Entities.Common.Sample.IStudentContactAssociationPagesRead, IHasRequiredMembersWithMeaningfulDefaultValues @@ -14759,6 +15116,7 @@ Entities.Common.Sample.IStudentContactAssociationExtension Entities.Common.Sampl set { SetStudentContactAssociationExtension(value); } } + [IgnoreMember] public Entities.Common.Sample.IStudentContactAssociationExtension StudentContactAssociationExtension { set { SetStudentContactAssociationExtension(value); } @@ -14778,6 +15136,7 @@ private void SetStudentContactAssociationExtension(Entities.Common.Sample.IStude // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-9999999999999999.99", "9999999999999999.99", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="pagesRead")] + [Key(0)] public decimal PagesRead { get => _pagesRead; @@ -14959,7 +15318,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the sample.StudentContactAssociationStaffEducationOrganizationEmploymentAssociation table of the StudentContactAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentContactAssociationStaffEducationOrganizationEmploymentAssociation : Entities.Common.Sample.IStudentContactAssociationStaffEducationOrganizationEmploymentAssociation { @@ -15004,6 +15363,7 @@ private StaffEducationOrganizationEmploymentAssociation.EdFi.StaffEducationOrgan } [DataMember(Name="staffEducationOrganizationEmploymentAssociationReference")] + [Key(0)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public StaffEducationOrganizationEmploymentAssociation.EdFi.StaffEducationOrganizationEmploymentAssociationReference StaffEducationOrganizationEmploymentAssociationReference { @@ -15036,6 +15396,7 @@ Entities.Common.Sample.IStudentContactAssociationExtension Entities.Common.Sampl set { SetStudentContactAssociationExtension(value); } } + [IgnoreMember] public Entities.Common.Sample.IStudentContactAssociationExtension StudentContactAssociationExtension { set { SetStudentContactAssociationExtension(value); } @@ -15343,7 +15704,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the sample.StudentContactAssociationTelephone table of the StudentContactAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentContactAssociationTelephone : Entities.Common.Sample.IStudentContactAssociationTelephone { @@ -15386,6 +15747,7 @@ Entities.Common.Sample.IStudentContactAssociationExtension Entities.Common.Sampl set { SetStudentContactAssociationExtension(value); } } + [IgnoreMember] public Entities.Common.Sample.IStudentContactAssociationExtension StudentContactAssociationExtension { set { SetStudentContactAssociationExtension(value); } @@ -15455,6 +15817,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="doNotPublishIndicator")] + [Key(0)] public bool? DoNotPublishIndicator { get; set; } /// @@ -15463,6 +15826,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(1, 2147483647, ErrorMessage=ValidationHelpers.RangeMinOnlyMessageFormat)] [DataMember(Name="orderOfPriority")] + [Key(1)] public int? OrderOfPriority { get; set; } /// @@ -15472,6 +15836,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(24, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="telephoneNumber")] + [Key(2)] public string TelephoneNumber { get; set; } /// @@ -15481,13 +15846,22 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="telephoneNumberTypeDescriptor")][DescriptorExists("TelephoneNumberTypeDescriptor")] + [IgnoreMember] public string TelephoneNumberTypeDescriptor { get; set; } + [Key(3)][JsonIgnore] + public int TelephoneNumberTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("TelephoneNumberTypeDescriptor", TelephoneNumberTypeDescriptor); } + set { TelephoneNumberTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("TelephoneNumberTypeDescriptor", value); } + } + /// /// An indication that the telephone number is technically capable of sending and receiving Short Message Service (SMS) text messages. /// // NOT in a reference, NOT a lookup column [DataMember(Name="textMessageCapabilityIndicator")] + [Key(4)] public bool? TextMessageCapabilityIndicator { get; set; } // ------------------------------------------------------------- @@ -15594,7 +15968,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.StudentCTEProgramAssociation.EdFi /// /// A class which represents the sample.StudentCTEProgramAssociationExtension table of the StudentCTEProgramAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] [Display(Name="Sample")] public class StudentCTEProgramAssociationExtension : Entities.Common.Sample.IStudentCTEProgramAssociationExtension, IChildEntity @@ -15638,6 +16012,7 @@ Entities.Common.EdFi.IStudentCTEProgramAssociation Entities.Common.Sample.IStude set { SetStudentCTEProgramAssociation(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStudentCTEProgramAssociation StudentCTEProgramAssociation { set { SetStudentCTEProgramAssociation(value); } @@ -15707,6 +16082,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="analysisCompleted")] + [Key(0)] public bool? AnalysisCompleted { get; set; } /// @@ -15714,6 +16090,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="analysisDate")] + [Key(1)] public DateTime? AnalysisDate { get; set; } // ------------------------------------------------------------- @@ -15825,7 +16202,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.StudentEducationOrganizationAssoc /// /// A class which represents the sample.StudentEducationOrganizationAssociationAddressExtension table of the StudentEducationOrganizationAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] [Display(Name="Sample")] [NoUnsuppliedRequiredMembersWithMeaningfulDefaults] @@ -15875,6 +16252,7 @@ Entities.Common.EdFi.IStudentEducationOrganizationAssociationAddress Entities.Co set { SetStudentEducationOrganizationAssociationAddress(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStudentEducationOrganizationAssociationAddress StudentEducationOrganizationAssociationAddress { set { SetStudentEducationOrganizationAssociationAddress(value); } @@ -15945,6 +16323,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(255, MinimumLength=1, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText] [DataMember(Name="complex")] + [Key(0)] public string Complex { get; set; } private bool _onBusRouteExplicitlyAssigned = false; @@ -15955,6 +16334,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="onBusRoute")] + [Key(1)] public bool OnBusRoute { get => _onBusRoute; @@ -16008,6 +16388,7 @@ public System.Collections.IDictionary Extensions { [NoDuplicateMembers][RequiredCollection] [DataMember(Name="schoolDistricts")] + [Key(2)] public ICollection StudentEducationOrganizationAssociationAddressSchoolDistricts { get { return _studentEducationOrganizationAssociationAddressSchoolDistricts; } @@ -16038,6 +16419,7 @@ public ICollection [NoDuplicateMembers] [DataMember(Name="terms")] + [Key(3)] public ICollection StudentEducationOrganizationAssociationAddressTerms { get { return _studentEducationOrganizationAssociationAddressTerms; } @@ -16262,7 +16644,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the sample.StudentEducationOrganizationAssociationAddressSchoolDistrict table of the StudentEducationOrganizationAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentEducationOrganizationAssociationAddressSchoolDistrict : Entities.Common.Sample.IStudentEducationOrganizationAssociationAddressSchoolDistrict { @@ -16305,6 +16687,7 @@ Entities.Common.Sample.IStudentEducationOrganizationAssociationAddressExtension set { SetStudentEducationOrganizationAssociationAddressExtension(value); } } + [IgnoreMember] public Entities.Common.Sample.IStudentEducationOrganizationAssociationAddressExtension StudentEducationOrganizationAssociationAddressExtension { set { SetStudentEducationOrganizationAssociationAddressExtension(value); } @@ -16322,6 +16705,7 @@ private void SetStudentEducationOrganizationAssociationAddressExtension(Entities [RequiredWithNonDefault] [NonDefaultStringLength(250, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="schoolDistrict")] + [Key(0)] public string SchoolDistrict { get; set; } // ------------------------------------------------------------- @@ -16486,7 +16870,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the sample.StudentEducationOrganizationAssociationAddressTerm table of the StudentEducationOrganizationAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentEducationOrganizationAssociationAddressTerm : Entities.Common.Sample.IStudentEducationOrganizationAssociationAddressTerm { @@ -16529,6 +16913,7 @@ Entities.Common.Sample.IStudentEducationOrganizationAssociationAddressExtension set { SetStudentEducationOrganizationAssociationAddressExtension(value); } } + [IgnoreMember] public Entities.Common.Sample.IStudentEducationOrganizationAssociationAddressExtension StudentEducationOrganizationAssociationAddressExtension { set { SetStudentEducationOrganizationAssociationAddressExtension(value); } @@ -16546,7 +16931,15 @@ private void SetStudentEducationOrganizationAssociationAddressExtension(Entities [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="termDescriptor")][DescriptorExists("TermDescriptor")] + [IgnoreMember] public string TermDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int TermDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("TermDescriptor", TermDescriptor); } + set { TermDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("TermDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -16710,7 +17103,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the sample.StudentEducationOrganizationAssociationExtension table of the StudentEducationOrganizationAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] [Display(Name="Sample")] public class StudentEducationOrganizationAssociationExtension : Entities.Common.Sample.IStudentEducationOrganizationAssociationExtension, IChildEntity @@ -16756,6 +17149,7 @@ private Program.EdFi.ProgramReference ImplicitFavoriteProgramReference } [DataMember(Name="favoriteProgramReference")] + [Key(0)] [FullyDefinedReference] public Program.EdFi.ProgramReference FavoriteProgramReference { @@ -16788,6 +17182,7 @@ Entities.Common.EdFi.IStudentEducationOrganizationAssociation Entities.Common.Sa set { SetStudentEducationOrganizationAssociation(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStudentEducationOrganizationAssociation StudentEducationOrganizationAssociation { set { SetStudentEducationOrganizationAssociation(value); } @@ -17033,7 +17428,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the sample.StudentEducationOrganizationAssociationStudentCharacteristicExtension table of the StudentEducationOrganizationAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] [Display(Name="Sample")] public class StudentEducationOrganizationAssociationStudentCharacteristicExtension : Entities.Common.Sample.IStudentEducationOrganizationAssociationStudentCharacteristicExtension, IChildEntity, IValidatableObject @@ -17081,6 +17476,7 @@ Entities.Common.EdFi.IStudentEducationOrganizationAssociationStudentCharacterist set { SetStudentEducationOrganizationAssociationStudentCharacteristic(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStudentEducationOrganizationAssociationStudentCharacteristic StudentEducationOrganizationAssociationStudentCharacteristic { set { SetStudentEducationOrganizationAssociationStudentCharacteristic(value); } @@ -17179,6 +17575,7 @@ public System.Collections.IDictionary Extensions { [NoDuplicateMembers] [DataMember(Name="studentNeeds")] + [Key(0)] public ICollection StudentEducationOrganizationAssociationStudentCharacteristicStudentNeeds { get { return _studentEducationOrganizationAssociationStudentCharacteristicStudentNeeds; } @@ -17374,7 +17771,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the sample.StudentEducationOrganizationAssociationStudentCharacteristicStudentNeed table of the StudentEducationOrganizationAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentEducationOrganizationAssociationStudentCharacteristicStudentNeed : Entities.Common.Sample.IStudentEducationOrganizationAssociationStudentCharacteristicStudentNeed { @@ -17417,6 +17814,7 @@ Entities.Common.Sample.IStudentEducationOrganizationAssociationStudentCharacteri set { SetStudentEducationOrganizationAssociationStudentCharacteristicExtension(value); } } + [IgnoreMember] public Entities.Common.Sample.IStudentEducationOrganizationAssociationStudentCharacteristicExtension StudentEducationOrganizationAssociationStudentCharacteristicExtension { set { SetStudentEducationOrganizationAssociationStudentCharacteristicExtension(value); } @@ -17433,6 +17831,7 @@ private void SetStudentEducationOrganizationAssociationStudentCharacteristicExte // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] [DataMember(Name="beginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(0)] public DateTime BeginDate { get; set; } // ------------------------------------------------------------- @@ -17503,6 +17902,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="endDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(1)] public DateTime? EndDate { get; set; } /// @@ -17510,6 +17910,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="primaryStudentNeedIndicator")] + [Key(2)] public bool? PrimaryStudentNeedIndicator { get; set; } // ------------------------------------------------------------- @@ -17616,17 +18017,27 @@ namespace EdFi.Ods.Api.Common.Models.Resources.StudentGraduationPlanAssociation. /// /// Represents a reference to the StudentGraduationPlanAssociation resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentGraduationPlanAssociationReference : IResourceReference { [DataMember(Name="educationOrganizationId")] + [Key(0)] public long EducationOrganizationId { get; set; } [DataMember(Name="graduationPlanTypeDescriptor")][DescriptorExists("GraduationPlanTypeDescriptor")] + [IgnoreMember] public string GraduationPlanTypeDescriptor { get; set; } + [Key(1)][JsonIgnore] + public int GraduationPlanTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("GraduationPlanTypeDescriptor", GraduationPlanTypeDescriptor); } + set { GraduationPlanTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("GraduationPlanTypeDescriptor", value); } + } + [DataMember(Name="graduationSchoolYear")] + [Key(2)] public short GraduationSchoolYear { get; set; } [DataMember(Name="studentUniqueId")] @@ -17644,17 +18055,22 @@ public string StudentUniqueId /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(3)] 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. /// + [Key(4)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(5)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -17738,7 +18154,7 @@ private Link CreateLink() /// /// A class which represents the sample.StudentGraduationPlanAssociation table of the StudentGraduationPlanAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] [NoUnsuppliedRequiredMembersWithMeaningfulDefaults] public class StudentGraduationPlanAssociation : Entities.Common.Sample.IStudentGraduationPlanAssociation, IHasETag, IDateVersionedEntity, IHasRequiredMembersWithMeaningfulDefaultValues, IValidatableObject @@ -17778,6 +18194,7 @@ public StudentGraduationPlanAssociation() /// The unique identifier for the StudentGraduationPlanAssociation resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -17801,6 +18218,7 @@ private GraduationPlan.EdFi.GraduationPlanReference ImplicitGraduationPlanRefere } [DataMember(Name="graduationPlanReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public GraduationPlan.EdFi.GraduationPlanReference GraduationPlanReference { @@ -17834,6 +18252,7 @@ private Staff.EdFi.StaffReference ImplicitStaffReference } [DataMember(Name="staffReference")] + [Key(2)] [FullyDefinedReference] public Staff.EdFi.StaffReference StaffReference { @@ -17867,6 +18286,7 @@ private Student.EdFi.StudentReference ImplicitStudentReference } [DataMember(Name="studentReference")] + [Key(3)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Student.EdFi.StudentReference StudentReference { @@ -18073,6 +18493,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="commencementTime")][JsonConverter(typeof(UtcTimeConverter))] + [Key(4)] public TimeSpan? CommencementTime { get; set; } /// @@ -18081,6 +18502,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] [DataMember(Name="effectiveDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(5)] public DateTime EffectiveDate { get; set; } /// @@ -18089,6 +18511,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-922337203685477.5808", "922337203685477.5807", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="graduationFee")] + [Key(6)] public decimal? GraduationFee { get; set; } /// @@ -18097,6 +18520,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(30, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="highSchoolDuration")] + [Key(7)] public string HighSchoolDuration { get; set; } private bool _hoursPerWeekExplicitlyAssigned = false; @@ -18108,6 +18532,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-999.99", "999.99", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="hoursPerWeek")] + [Key(8)] public decimal HoursPerWeek { get => _hoursPerWeek; @@ -18124,6 +18549,7 @@ public decimal HoursPerWeek /// // NOT in a reference, NOT a lookup column [DataMember(Name="isActivePlan")] + [Key(9)] public bool? IsActivePlan { get; set; } /// @@ -18132,6 +18558,7 @@ public decimal HoursPerWeek // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-9.9999", "9.9999", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="requiredAttendance")] + [Key(10)] public decimal? RequiredAttendance { get; set; } /// @@ -18171,6 +18598,7 @@ string Entities.Common.Sample.IStudentGraduationPlanAssociation.StaffUniqueId // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-99999999999999.9999", "99999999999999.9999", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="targetGPA")] + [Key(11)] public decimal TargetGPA { get => _targetGPA; @@ -18203,6 +18631,7 @@ IEnumerable IHasRequiredMembersWithMeaningfulDefaultValues.GetUnassigned /// [DataMember(Name = "cteProgramService")] + [Key(12)] public StudentGraduationPlanAssociationCTEProgramService StudentGraduationPlanAssociationCTEProgramService { get; set; } Entities.Common.Sample.IStudentGraduationPlanAssociationCTEProgramService Entities.Common.Sample.IStudentGraduationPlanAssociation.StudentGraduationPlanAssociationCTEProgramService @@ -18241,6 +18670,7 @@ public System.Collections.IDictionary Extensions { [NoDuplicateMembers][RequiredCollection] [DataMember(Name="academicSubjects")] + [Key(13)] public ICollection StudentGraduationPlanAssociationAcademicSubjects { get { return _studentGraduationPlanAssociationAcademicSubjects; } @@ -18271,6 +18701,7 @@ public ICollection StudentGradu [NoDuplicateMembers] [DataMember(Name="careerPathwayCodes")] + [Key(14)] public ICollection StudentGraduationPlanAssociationCareerPathwayCodes { get { return _studentGraduationPlanAssociationCareerPathwayCodes; } @@ -18301,6 +18732,7 @@ public ICollection StudentGra [NoDuplicateMembers] [DataMember(Name="descriptions")] + [Key(15)] public ICollection StudentGraduationPlanAssociationDescriptions { get { return _studentGraduationPlanAssociationDescriptions; } @@ -18331,6 +18763,7 @@ public ICollection StudentGraduatio [NoDuplicateMembers][RequiredCollection] [DataMember(Name="designatedBies")] + [Key(16)] public ICollection StudentGraduationPlanAssociationDesignatedBies { get { return _studentGraduationPlanAssociationDesignatedBies; } @@ -18361,6 +18794,7 @@ public ICollection StudentGraduati [NoDuplicateMembers] [DataMember(Name="industryCredentials")] + [Key(17)] public ICollection StudentGraduationPlanAssociationIndustryCredentials { get { return _studentGraduationPlanAssociationIndustryCredentials; } @@ -18391,6 +18825,7 @@ public ICollection StudentGr [NoDuplicateMembers] [DataMember(Name="studentContactAssociations")] + [Key(18)] public ICollection StudentGraduationPlanAssociationStudentContactAssociations { get { return _studentGraduationPlanAssociationStudentContactAssociations; } @@ -18421,6 +18856,7 @@ public ICollection St [NoDuplicateMembers][RequiredCollection] [DataMember(Name="yearsAttendeds")] + [Key(19)] public ICollection StudentGraduationPlanAssociationYearsAttendeds { get { return _studentGraduationPlanAssociationYearsAttendeds; } @@ -18453,9 +18889,11 @@ public ICollection StudentGraduat // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(20)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(21)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -18845,7 +19283,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the sample.StudentGraduationPlanAssociationAcademicSubject table of the StudentGraduationPlanAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentGraduationPlanAssociationAcademicSubject : Entities.Common.Sample.IStudentGraduationPlanAssociationAcademicSubject { @@ -18888,6 +19326,7 @@ Entities.Common.Sample.IStudentGraduationPlanAssociation Entities.Common.Sample. set { SetStudentGraduationPlanAssociation(value); } } + [IgnoreMember] public Entities.Common.Sample.IStudentGraduationPlanAssociation StudentGraduationPlanAssociation { set { SetStudentGraduationPlanAssociation(value); } @@ -18905,7 +19344,15 @@ private void SetStudentGraduationPlanAssociation(Entities.Common.Sample.IStudent [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="academicSubjectDescriptor")][DescriptorExists("AcademicSubjectDescriptor")] + [IgnoreMember] public string AcademicSubjectDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int AcademicSubjectDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("AcademicSubjectDescriptor", AcademicSubjectDescriptor); } + set { AcademicSubjectDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("AcademicSubjectDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -19069,7 +19516,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the sample.StudentGraduationPlanAssociationCareerPathwayCode table of the StudentGraduationPlanAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] [NoUnsuppliedRequiredMembersWithMeaningfulDefaults] public class StudentGraduationPlanAssociationCareerPathwayCode : Entities.Common.Sample.IStudentGraduationPlanAssociationCareerPathwayCode, IHasRequiredMembersWithMeaningfulDefaultValues @@ -19113,6 +19560,7 @@ Entities.Common.Sample.IStudentGraduationPlanAssociation Entities.Common.Sample. set { SetStudentGraduationPlanAssociation(value); } } + [IgnoreMember] public Entities.Common.Sample.IStudentGraduationPlanAssociation StudentGraduationPlanAssociation { set { SetStudentGraduationPlanAssociation(value); } @@ -19131,6 +19579,7 @@ private void SetStudentGraduationPlanAssociation(Entities.Common.Sample.IStudent /// // NOT in a reference, NOT a lookup column [DataMember(Name="careerPathwayCode")] + [Key(0)] public int CareerPathwayCode { get => _careerPathwayCode; @@ -19312,7 +19761,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the sample.StudentGraduationPlanAssociationCTEProgramService table of the StudentGraduationPlanAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentGraduationPlanAssociationCTEProgramService : Entities.Common.Sample.IStudentGraduationPlanAssociationCTEProgramService { @@ -19355,6 +19804,7 @@ Entities.Common.Sample.IStudentGraduationPlanAssociation Entities.Common.Sample. set { SetStudentGraduationPlanAssociation(value); } } + [IgnoreMember] public Entities.Common.Sample.IStudentGraduationPlanAssociation StudentGraduationPlanAssociation { set { SetStudentGraduationPlanAssociation(value); } @@ -19425,6 +19875,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(120, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="cipCode")] + [Key(0)] public string CIPCode { get; set; } /// @@ -19434,13 +19885,22 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="cteProgramServiceDescriptor")][DescriptorExists("CTEProgramServiceDescriptor")] + [IgnoreMember] public string CTEProgramServiceDescriptor { get; set; } + [Key(1)][JsonIgnore] + public int CTEProgramServiceDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("CTEProgramServiceDescriptor", CTEProgramServiceDescriptor); } + set { CTEProgramServiceDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("CTEProgramServiceDescriptor", value); } + } + /// /// True if service is a primary service. /// // NOT in a reference, NOT a lookup column [DataMember(Name="primaryIndicator")] + [Key(2)] public bool? PrimaryIndicator { get; set; } /// @@ -19448,6 +19908,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="serviceBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? ServiceBeginDate { get; set; } /// @@ -19455,6 +19916,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="serviceEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? ServiceEndDate { get; set; } // ------------------------------------------------------------- @@ -19556,7 +20018,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the sample.StudentGraduationPlanAssociationDescription table of the StudentGraduationPlanAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentGraduationPlanAssociationDescription : Entities.Common.Sample.IStudentGraduationPlanAssociationDescription { @@ -19599,6 +20061,7 @@ Entities.Common.Sample.IStudentGraduationPlanAssociation Entities.Common.Sample. set { SetStudentGraduationPlanAssociation(value); } } + [IgnoreMember] public Entities.Common.Sample.IStudentGraduationPlanAssociation StudentGraduationPlanAssociation { set { SetStudentGraduationPlanAssociation(value); } @@ -19616,6 +20079,7 @@ private void SetStudentGraduationPlanAssociation(Entities.Common.Sample.IStudent [RequiredWithNonDefault] [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="description")] + [Key(0)] public string Description { get; set; } // ------------------------------------------------------------- @@ -19780,7 +20244,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the sample.StudentGraduationPlanAssociationDesignatedBy table of the StudentGraduationPlanAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentGraduationPlanAssociationDesignatedBy : Entities.Common.Sample.IStudentGraduationPlanAssociationDesignatedBy { @@ -19823,6 +20287,7 @@ Entities.Common.Sample.IStudentGraduationPlanAssociation Entities.Common.Sample. set { SetStudentGraduationPlanAssociation(value); } } + [IgnoreMember] public Entities.Common.Sample.IStudentGraduationPlanAssociation StudentGraduationPlanAssociation { set { SetStudentGraduationPlanAssociation(value); } @@ -19840,6 +20305,7 @@ private void SetStudentGraduationPlanAssociation(Entities.Common.Sample.IStudent [RequiredWithNonDefault] [NonDefaultStringLength(60, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="designatedBy")] + [Key(0)] public string DesignatedBy { get; set; } // ------------------------------------------------------------- @@ -20004,7 +20470,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the sample.StudentGraduationPlanAssociationIndustryCredential table of the StudentGraduationPlanAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentGraduationPlanAssociationIndustryCredential : Entities.Common.Sample.IStudentGraduationPlanAssociationIndustryCredential { @@ -20047,6 +20513,7 @@ Entities.Common.Sample.IStudentGraduationPlanAssociation Entities.Common.Sample. set { SetStudentGraduationPlanAssociation(value); } } + [IgnoreMember] public Entities.Common.Sample.IStudentGraduationPlanAssociation StudentGraduationPlanAssociation { set { SetStudentGraduationPlanAssociation(value); } @@ -20064,6 +20531,7 @@ private void SetStudentGraduationPlanAssociation(Entities.Common.Sample.IStudent [RequiredWithNonDefault] [NonDefaultStringLength(100, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="industryCredential")] + [Key(0)] public string IndustryCredential { get; set; } // ------------------------------------------------------------- @@ -20228,7 +20696,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the sample.StudentGraduationPlanAssociationStudentContactAssociation table of the StudentGraduationPlanAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentGraduationPlanAssociationStudentContactAssociation : Entities.Common.Sample.IStudentGraduationPlanAssociationStudentContactAssociation { @@ -20273,6 +20741,7 @@ private StudentContactAssociation.EdFi.StudentContactAssociationReference Implic } [DataMember(Name="studentContactAssociationReference")] + [Key(0)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public StudentContactAssociation.EdFi.StudentContactAssociationReference StudentContactAssociationReference { @@ -20305,6 +20774,7 @@ Entities.Common.Sample.IStudentGraduationPlanAssociation Entities.Common.Sample. set { SetStudentGraduationPlanAssociation(value); } } + [IgnoreMember] public Entities.Common.Sample.IStudentGraduationPlanAssociation StudentGraduationPlanAssociation { set { SetStudentGraduationPlanAssociation(value); } @@ -20528,7 +20998,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the sample.StudentGraduationPlanAssociationYearsAttended table of the StudentGraduationPlanAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] [NoUnsuppliedRequiredMembersWithMeaningfulDefaults] public class StudentGraduationPlanAssociationYearsAttended : Entities.Common.Sample.IStudentGraduationPlanAssociationYearsAttended, IHasRequiredMembersWithMeaningfulDefaultValues @@ -20572,6 +21042,7 @@ Entities.Common.Sample.IStudentGraduationPlanAssociation Entities.Common.Sample. set { SetStudentGraduationPlanAssociation(value); } } + [IgnoreMember] public Entities.Common.Sample.IStudentGraduationPlanAssociation StudentGraduationPlanAssociation { set { SetStudentGraduationPlanAssociation(value); } @@ -20590,6 +21061,7 @@ private void SetStudentGraduationPlanAssociation(Entities.Common.Sample.IStudent /// // NOT in a reference, NOT a lookup column [DataMember(Name="yearsAttended")] + [Key(0)] public short YearsAttended { get => _yearsAttended; @@ -20776,7 +21248,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.StudentSchoolAssociation.EdFi.Ext /// /// A class which represents the sample.StudentSchoolAssociationExtension table of the StudentSchoolAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] [Display(Name="Sample")] public class StudentSchoolAssociationExtension : Entities.Common.Sample.IStudentSchoolAssociationExtension, IChildEntity @@ -20820,6 +21292,7 @@ Entities.Common.EdFi.IStudentSchoolAssociation Entities.Common.Sample.IStudentSc set { SetStudentSchoolAssociation(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStudentSchoolAssociation StudentSchoolAssociation { set { SetStudentSchoolAssociation(value); } @@ -20890,7 +21363,15 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="membershipTypeDescriptor")][DescriptorExists("MembershipTypeDescriptor")] + [IgnoreMember] public string MembershipTypeDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int MembershipTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("MembershipTypeDescriptor", MembershipTypeDescriptor); } + set { MembershipTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("MembershipTypeDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -21001,7 +21482,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.StudentSectionAssociation.EdFi.Ex /// /// A class which represents the sample.StudentSectionAssociationExtension table of the StudentSectionAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] [Display(Name="Sample")] public class StudentSectionAssociationExtension : Entities.Common.Sample.IStudentSectionAssociationExtension, IChildEntity, IValidatableObject @@ -21049,6 +21530,7 @@ Entities.Common.EdFi.IStudentSectionAssociation Entities.Common.Sample.IStudentS set { SetStudentSectionAssociation(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStudentSectionAssociation StudentSectionAssociation { set { SetStudentSectionAssociation(value); } @@ -21147,6 +21629,7 @@ public System.Collections.IDictionary Extensions { [NoDuplicateMembers] [DataMember(Name="relatedGeneralStudentProgramAssociations")] + [Key(0)] public ICollection StudentSectionAssociationRelatedGeneralStudentProgramAssociations { get { return _studentSectionAssociationRelatedGeneralStudentProgramAssociations; } @@ -21342,7 +21825,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the sample.StudentSectionAssociationRelatedGeneralStudentProgramAssociation table of the StudentSectionAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentSectionAssociationRelatedGeneralStudentProgramAssociation : Entities.Common.Sample.IStudentSectionAssociationRelatedGeneralStudentProgramAssociation { @@ -21387,6 +21870,7 @@ private GeneralStudentProgramAssociation.EdFi.GeneralStudentProgramAssociationRe } [DataMember(Name="relatedGeneralStudentProgramAssociationReference")] + [Key(0)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public GeneralStudentProgramAssociation.EdFi.GeneralStudentProgramAssociationReference RelatedGeneralStudentProgramAssociationReference { @@ -21419,6 +21903,7 @@ Entities.Common.Sample.IStudentSectionAssociationExtension Entities.Common.Sampl set { SetStudentSectionAssociationExtension(value); } } + [IgnoreMember] public Entities.Common.Sample.IStudentSectionAssociationExtension StudentSectionAssociationExtension { set { SetStudentSectionAssociationExtension(value); } diff --git a/Utilities/CodeGeneration/EdFi.Ods.CodeGen.Tests/Approval/5.2.0/DataStandard_520_ApprovalTests.Verify.Extensions.SampleAlternativeEducationProgram.1.0.0_Std_5.2.0_Resources_Resources.generated.approved.cs b/Utilities/CodeGeneration/EdFi.Ods.CodeGen.Tests/Approval/5.2.0/DataStandard_520_ApprovalTests.Verify.Extensions.SampleAlternativeEducationProgram.1.0.0_Std_5.2.0_Resources_Resources.generated.approved.cs index 1aa0a0e274..ae860a899c 100644 --- a/Utilities/CodeGeneration/EdFi.Ods.CodeGen.Tests/Approval/5.2.0/DataStandard_520_ApprovalTests.Verify.Extensions.SampleAlternativeEducationProgram.1.0.0_Std_5.2.0_Resources_Resources.generated.approved.cs +++ b/Utilities/CodeGeneration/EdFi.Ods.CodeGen.Tests/Approval/5.2.0/DataStandard_520_ApprovalTests.Verify.Extensions.SampleAlternativeEducationProgram.1.0.0_Std_5.2.0_Resources_Resources.generated.approved.cs @@ -23,6 +23,8 @@ using EdFi.Ods.Entities.Common.SampleAlternativeEducationProgram; using Newtonsoft.Json; using FluentValidation.Results; +using MessagePack; +using KeyAttribute = MessagePack.KeyAttribute; // Aggregate: AlternativeEducationEligibilityReasonDescriptor @@ -31,7 +33,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.AlternativeEducationEligibilityRe /// /// A class which represents the samplealternativeeducationprogram.AlternativeEducationEligibilityReasonDescriptor table of the AlternativeEducationEligibilityReasonDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class AlternativeEducationEligibilityReasonDescriptor : Entities.Common.SampleAlternativeEducationProgram.IAlternativeEducationEligibilityReasonDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -60,6 +62,7 @@ public class AlternativeEducationEligibilityReasonDescriptor : Entities.Common.S /// The unique identifier for the AlternativeEducationEligibilityReasonDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -144,6 +147,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -152,6 +156,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -159,6 +164,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -166,6 +172,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -175,6 +182,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -184,6 +192,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -227,9 +236,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -302,25 +313,37 @@ namespace EdFi.Ods.Api.Common.Models.Resources.StudentAlternativeEducationProgra /// /// Represents a reference to the StudentAlternativeEducationProgramAssociation resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentAlternativeEducationProgramAssociationReference : IResourceReference { [DataMember(Name="beginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(0)] public DateTime BeginDate { get; set; } [DataMember(Name="educationOrganizationId")] + [Key(1)] public long EducationOrganizationId { get; set; } [DataMember(Name="programEducationOrganizationId")] + [Key(2)] public long ProgramEducationOrganizationId { get; set; } [DataMember(Name="programName")] + [Key(3)] public string ProgramName { get; set; } [DataMember(Name="programTypeDescriptor")][DescriptorExists("ProgramTypeDescriptor")] + [IgnoreMember] public string ProgramTypeDescriptor { get; set; } + [Key(4)][JsonIgnore] + public int ProgramTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ProgramTypeDescriptor", ProgramTypeDescriptor); } + set { ProgramTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ProgramTypeDescriptor", value); } + } + [DataMember(Name="studentUniqueId")] public string StudentUniqueId { @@ -336,11 +359,15 @@ public string StudentUniqueId /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(5)] public Guid ResourceId { get; set; } - private Link _link; + [JsonIgnore] + [Key(6)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -415,7 +442,7 @@ private Link CreateLink() /// /// A class which represents the samplealternativeeducationprogram.StudentAlternativeEducationProgramAssociation table of the StudentAlternativeEducationProgramAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentAlternativeEducationProgramAssociation : Entities.Common.SampleAlternativeEducationProgram.IStudentAlternativeEducationProgramAssociation, Entities.Common.EdFi.IGeneralStudentProgramAssociation, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -451,6 +478,7 @@ public StudentAlternativeEducationProgramAssociation() /// The unique identifier for the StudentAlternativeEducationProgramAssociation resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -474,6 +502,7 @@ private EducationOrganization.EdFi.EducationOrganizationReference ImplicitEducat } [DataMember(Name="educationOrganizationReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public EducationOrganization.EdFi.EducationOrganizationReference EducationOrganizationReference { @@ -507,6 +536,7 @@ private Program.EdFi.ProgramReference ImplicitProgramReference } [DataMember(Name="programReference")] + [Key(2)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Program.EdFi.ProgramReference ProgramReference { @@ -540,6 +570,7 @@ private Student.EdFi.StudentReference ImplicitStudentReference } [DataMember(Name="studentReference")] + [Key(3)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Student.EdFi.StudentReference StudentReference { @@ -570,6 +601,7 @@ public Student.EdFi.StudentReference StudentReference // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] [DataMember(Name="beginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime BeginDate { get; set; } /// @@ -791,6 +823,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="endDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(5)] public DateTime? EndDate { get; set; } /// @@ -799,13 +832,22 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="reasonExitedDescriptor")][DescriptorExists("ReasonExitedDescriptor")] + [IgnoreMember] public string ReasonExitedDescriptor { get; set; } + [Key(6)][JsonIgnore] + public int ReasonExitedDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ReasonExitedDescriptor", ReasonExitedDescriptor); } + set { ReasonExitedDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ReasonExitedDescriptor", value); } + } + /// /// Indicates whether the student received services during the summer session or between sessions. /// // NOT in a reference, NOT a lookup column [DataMember(Name="servedOutsideOfRegularSession")] + [Key(7)] public bool? ServedOutsideOfRegularSession { get; set; } // ------------------------------------------------------------- @@ -820,7 +862,15 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="alternativeEducationEligibilityReasonDescriptor")][DescriptorExists("AlternativeEducationEligibilityReasonDescriptor")] + [IgnoreMember] public string AlternativeEducationEligibilityReasonDescriptor { get; set; } + + [Key(8)][JsonIgnore] + public int AlternativeEducationEligibilityReasonDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("AlternativeEducationEligibilityReasonDescriptor", AlternativeEducationEligibilityReasonDescriptor); } + set { AlternativeEducationEligibilityReasonDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("AlternativeEducationEligibilityReasonDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -841,6 +891,7 @@ public override int GetHashCode() [NoDuplicateMembers] [DataMember(Name="programParticipationStatuses")] + [Key(9)] public ICollection GeneralStudentProgramAssociationProgramParticipationStatuses { get { return _generalStudentProgramAssociationProgramParticipationStatuses; } @@ -877,6 +928,7 @@ public System.Collections.IDictionary Extensions { [NoDuplicateMembers] [DataMember(Name="meetingTimes")] + [Key(10)] public ICollection StudentAlternativeEducationProgramAssociationMeetingTimes { get { return _studentAlternativeEducationProgramAssociationMeetingTimes; } @@ -909,9 +961,11 @@ public ICollection Stu // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(11)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(12)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -1144,7 +1198,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the samplealternativeeducationprogram.StudentAlternativeEducationProgramAssociationMeetingTime table of the StudentAlternativeEducationProgramAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentAlternativeEducationProgramAssociationMeetingTime : Entities.Common.SampleAlternativeEducationProgram.IStudentAlternativeEducationProgramAssociationMeetingTime { @@ -1187,6 +1241,7 @@ Entities.Common.SampleAlternativeEducationProgram.IStudentAlternativeEducationPr set { SetStudentAlternativeEducationProgramAssociation(value); } } + [IgnoreMember] public Entities.Common.SampleAlternativeEducationProgram.IStudentAlternativeEducationProgramAssociation StudentAlternativeEducationProgramAssociation { set { SetStudentAlternativeEducationProgramAssociation(value); } @@ -1203,6 +1258,7 @@ private void SetStudentAlternativeEducationProgramAssociation(Entities.Common.Sa // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] [DataMember(Name="endTime")][JsonConverter(typeof(UtcTimeConverter))] + [Key(0)] public TimeSpan EndTime { get; set; } /// @@ -1211,6 +1267,7 @@ private void SetStudentAlternativeEducationProgramAssociation(Entities.Common.Sa // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] [DataMember(Name="startTime")][JsonConverter(typeof(UtcTimeConverter))] + [Key(1)] public TimeSpan StartTime { get; set; } // ------------------------------------------------------------- diff --git a/Utilities/CodeGeneration/EdFi.Ods.CodeGen.Tests/Approval/5.2.0/DataStandard_520_ApprovalTests.Verify.Extensions.SampleStudentTranscript.1.0.0_Std_5.2.0_Resources_Resources.generated.approved.cs b/Utilities/CodeGeneration/EdFi.Ods.CodeGen.Tests/Approval/5.2.0/DataStandard_520_ApprovalTests.Verify.Extensions.SampleStudentTranscript.1.0.0_Std_5.2.0_Resources_Resources.generated.approved.cs index 28c7e3a1f8..53205df727 100644 --- a/Utilities/CodeGeneration/EdFi.Ods.CodeGen.Tests/Approval/5.2.0/DataStandard_520_ApprovalTests.Verify.Extensions.SampleStudentTranscript.1.0.0_Std_5.2.0_Resources_Resources.generated.approved.cs +++ b/Utilities/CodeGeneration/EdFi.Ods.CodeGen.Tests/Approval/5.2.0/DataStandard_520_ApprovalTests.Verify.Extensions.SampleStudentTranscript.1.0.0_Std_5.2.0_Resources_Resources.generated.approved.cs @@ -23,6 +23,8 @@ using EdFi.Ods.Entities.Common.SampleStudentTranscript; using Newtonsoft.Json; using FluentValidation.Results; +using MessagePack; +using KeyAttribute = MessagePack.KeyAttribute; // Aggregate: InstitutionControlDescriptor @@ -31,7 +33,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.InstitutionControlDescriptor.Samp /// /// A class which represents the samplestudenttranscript.InstitutionControlDescriptor table of the InstitutionControlDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class InstitutionControlDescriptor : Entities.Common.SampleStudentTranscript.IInstitutionControlDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -60,6 +62,7 @@ public class InstitutionControlDescriptor : Entities.Common.SampleStudentTranscr /// The unique identifier for the InstitutionControlDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -144,6 +147,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -152,6 +156,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -159,6 +164,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -166,6 +172,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -175,6 +182,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -184,6 +192,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -227,9 +236,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -302,7 +313,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.InstitutionLevelDescriptor.Sample /// /// A class which represents the samplestudenttranscript.InstitutionLevelDescriptor table of the InstitutionLevelDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class InstitutionLevelDescriptor : Entities.Common.SampleStudentTranscript.IInstitutionLevelDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -331,6 +342,7 @@ public class InstitutionLevelDescriptor : Entities.Common.SampleStudentTranscrip /// The unique identifier for the InstitutionLevelDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -415,6 +427,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -423,6 +436,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -430,6 +444,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -437,6 +452,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -446,6 +462,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -455,6 +472,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -498,9 +516,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -573,27 +593,33 @@ namespace EdFi.Ods.Api.Common.Models.Resources.PostSecondaryOrganization.SampleS /// /// Represents a reference to the PostSecondaryOrganization resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class PostSecondaryOrganizationReference : IResourceReference { [DataMember(Name="nameOfInstitution")] + [Key(0)] public string NameOfInstitution { get; set; } /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(1)] 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. /// + [Key(2)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(3)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -662,7 +688,7 @@ private Link CreateLink() /// /// A class which represents the samplestudenttranscript.PostSecondaryOrganization table of the PostSecondaryOrganization aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] [NoUnsuppliedRequiredMembersWithMeaningfulDefaults] public class PostSecondaryOrganization : Entities.Common.SampleStudentTranscript.IPostSecondaryOrganization, IHasETag, IDateVersionedEntity, IHasRequiredMembersWithMeaningfulDefaultValues @@ -692,6 +718,7 @@ public class PostSecondaryOrganization : Entities.Common.SampleStudentTranscript /// The unique identifier for the PostSecondaryOrganization resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -712,6 +739,7 @@ public class PostSecondaryOrganization : Entities.Common.SampleStudentTranscript [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="nameOfInstitution")] + [Key(1)] public string NameOfInstitution { get; set; } // ------------------------------------------------------------- @@ -778,6 +806,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="acceptanceIndicator")] + [Key(2)] public bool AcceptanceIndicator { get => _acceptanceIndicator; @@ -796,8 +825,16 @@ public bool AcceptanceIndicator [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="institutionControlDescriptor")][DescriptorExists("InstitutionControlDescriptor")] + [IgnoreMember] public string InstitutionControlDescriptor { get; set; } + [Key(3)][JsonIgnore] + public int InstitutionControlDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("InstitutionControlDescriptor", InstitutionControlDescriptor); } + set { InstitutionControlDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("InstitutionControlDescriptor", value); } + } + /// /// The level of the institution. /// @@ -805,7 +842,15 @@ public bool AcceptanceIndicator [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="institutionLevelDescriptor")][DescriptorExists("InstitutionLevelDescriptor")] + [IgnoreMember] public string InstitutionLevelDescriptor { get; set; } + + [Key(4)][JsonIgnore] + public int InstitutionLevelDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("InstitutionLevelDescriptor", InstitutionLevelDescriptor); } + set { InstitutionLevelDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("InstitutionLevelDescriptor", value); } + } // ------------------------------------------------------------- IEnumerable IHasRequiredMembersWithMeaningfulDefaultValues.GetUnassignedMemberNames() @@ -851,9 +896,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(5)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(6)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -926,7 +973,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.SpecialEducationGraduationStatusD /// /// A class which represents the samplestudenttranscript.SpecialEducationGraduationStatusDescriptor table of the SpecialEducationGraduationStatusDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class SpecialEducationGraduationStatusDescriptor : Entities.Common.SampleStudentTranscript.ISpecialEducationGraduationStatusDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -955,6 +1002,7 @@ public class SpecialEducationGraduationStatusDescriptor : Entities.Common.Sample /// The unique identifier for the SpecialEducationGraduationStatusDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -1039,6 +1087,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -1047,6 +1096,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -1054,6 +1104,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -1061,6 +1112,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -1070,6 +1122,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -1079,6 +1132,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -1122,9 +1176,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -1197,7 +1253,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.StudentAcademicRecord.EdFi.Extens /// /// A class which represents the samplestudenttranscript.StudentAcademicRecordClassRankingExtension table of the StudentAcademicRecord aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] [Display(Name="SampleStudentTranscript")] public class StudentAcademicRecordClassRankingExtension : Entities.Common.SampleStudentTranscript.IStudentAcademicRecordClassRankingExtension, IChildEntity @@ -1241,6 +1297,7 @@ Entities.Common.EdFi.IStudentAcademicRecordClassRanking Entities.Common.SampleSt set { SetStudentAcademicRecordClassRanking(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStudentAcademicRecordClassRanking StudentAcademicRecordClassRanking { set { SetStudentAcademicRecordClassRanking(value); } @@ -1312,7 +1369,15 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="specialEducationGraduationStatusDescriptor")][DescriptorExists("SpecialEducationGraduationStatusDescriptor")] + [IgnoreMember] public string SpecialEducationGraduationStatusDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int SpecialEducationGraduationStatusDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("SpecialEducationGraduationStatusDescriptor", SpecialEducationGraduationStatusDescriptor); } + set { SpecialEducationGraduationStatusDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("SpecialEducationGraduationStatusDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -1418,7 +1483,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the samplestudenttranscript.StudentAcademicRecordExtension table of the StudentAcademicRecord aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] [Display(Name="SampleStudentTranscript")] public class StudentAcademicRecordExtension : Entities.Common.SampleStudentTranscript.IStudentAcademicRecordExtension, IChildEntity @@ -1464,6 +1529,7 @@ private PostSecondaryOrganization.SampleStudentTranscript.PostSecondaryOrganizat } [DataMember(Name="postSecondaryOrganizationReference")] + [Key(0)] [FullyDefinedReference] public PostSecondaryOrganization.SampleStudentTranscript.PostSecondaryOrganizationReference PostSecondaryOrganizationReference { @@ -1496,6 +1562,7 @@ Entities.Common.EdFi.IStudentAcademicRecord Entities.Common.SampleStudentTranscr set { SetStudentAcademicRecord(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStudentAcademicRecord StudentAcademicRecord { set { SetStudentAcademicRecord(value); } @@ -1593,7 +1660,15 @@ string Entities.Common.SampleStudentTranscript.IStudentAcademicRecordExtension.N // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="submissionCertificationDescriptor")][DescriptorExists("SubmissionCertificationDescriptor")] + [IgnoreMember] public string SubmissionCertificationDescriptor { get; set; } + + [Key(1)][JsonIgnore] + public int SubmissionCertificationDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("SubmissionCertificationDescriptor", SubmissionCertificationDescriptor); } + set { SubmissionCertificationDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("SubmissionCertificationDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -1718,7 +1793,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.SubmissionCertificationDescriptor /// /// A class which represents the samplestudenttranscript.SubmissionCertificationDescriptor table of the SubmissionCertificationDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class SubmissionCertificationDescriptor : Entities.Common.SampleStudentTranscript.ISubmissionCertificationDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -1747,6 +1822,7 @@ public class SubmissionCertificationDescriptor : Entities.Common.SampleStudentTr /// The unique identifier for the SubmissionCertificationDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -1831,6 +1907,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -1839,6 +1916,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -1846,6 +1924,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -1853,6 +1932,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -1862,6 +1942,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -1871,6 +1952,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -1914,9 +1996,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- diff --git a/Utilities/CodeGeneration/EdFi.Ods.CodeGen.Tests/Approval/5.2.0/DataStandard_520_ApprovalTests.Verify.Extensions.TPDM.1.1.0_Std_5.2.0_Resources_Resources.generated.approved.cs b/Utilities/CodeGeneration/EdFi.Ods.CodeGen.Tests/Approval/5.2.0/DataStandard_520_ApprovalTests.Verify.Extensions.TPDM.1.1.0_Std_5.2.0_Resources_Resources.generated.approved.cs index 0beb7f5cfb..13f04ac177 100644 --- a/Utilities/CodeGeneration/EdFi.Ods.CodeGen.Tests/Approval/5.2.0/DataStandard_520_ApprovalTests.Verify.Extensions.TPDM.1.1.0_Std_5.2.0_Resources_Resources.generated.approved.cs +++ b/Utilities/CodeGeneration/EdFi.Ods.CodeGen.Tests/Approval/5.2.0/DataStandard_520_ApprovalTests.Verify.Extensions.TPDM.1.1.0_Std_5.2.0_Resources_Resources.generated.approved.cs @@ -23,6 +23,8 @@ using EdFi.Ods.Entities.Common.TPDM; using Newtonsoft.Json; using FluentValidation.Results; +using MessagePack; +using KeyAttribute = MessagePack.KeyAttribute; // Aggregate: AccreditationStatusDescriptor @@ -31,7 +33,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.AccreditationStatusDescriptor.TPD /// /// A class which represents the tpdm.AccreditationStatusDescriptor table of the AccreditationStatusDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class AccreditationStatusDescriptor : Entities.Common.TPDM.IAccreditationStatusDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -60,6 +62,7 @@ public class AccreditationStatusDescriptor : Entities.Common.TPDM.IAccreditation /// The unique identifier for the AccreditationStatusDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -144,6 +147,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -152,6 +156,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -159,6 +164,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -166,6 +172,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -175,6 +182,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -184,6 +192,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -227,9 +236,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -302,7 +313,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.AidTypeDescriptor.TPDM /// /// A class which represents the tpdm.AidTypeDescriptor table of the AidTypeDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class AidTypeDescriptor : Entities.Common.TPDM.IAidTypeDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -331,6 +342,7 @@ public class AidTypeDescriptor : Entities.Common.TPDM.IAidTypeDescriptor, Entiti /// The unique identifier for the AidTypeDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -415,6 +427,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -423,6 +436,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -430,6 +444,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -437,6 +452,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -446,6 +462,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -455,6 +472,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -498,9 +516,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -573,27 +593,33 @@ namespace EdFi.Ods.Api.Common.Models.Resources.Candidate.TPDM /// /// Represents a reference to the Candidate resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class CandidateReference : IResourceReference { [DataMember(Name="candidateIdentifier")] + [Key(0)] public string CandidateIdentifier { get; set; } /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(1)] 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. /// + [Key(2)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(3)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -662,7 +688,7 @@ private Link CreateLink() /// /// A class which represents the tpdm.Candidate table of the Candidate aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class Candidate : Entities.Common.TPDM.ICandidate, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -702,6 +728,7 @@ public Candidate() /// The unique identifier for the Candidate resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -725,6 +752,7 @@ private Person.EdFi.PersonReference ImplicitPersonReference } [DataMember(Name="personReference")] + [Key(1)] [FullyDefinedReference] public Person.EdFi.PersonReference PersonReference { @@ -756,6 +784,7 @@ public Person.EdFi.PersonReference PersonReference [RequiredWithNonDefault] [NonDefaultStringLength(32, MinimumLength=1, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="candidateIdentifier")] + [Key(2)] public string CandidateIdentifier { get; set; } // ------------------------------------------------------------- @@ -820,6 +849,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(30, MinimumLength=2, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText] [DataMember(Name="birthCity")] + [Key(3)] public string BirthCity { get; set; } /// @@ -828,14 +858,23 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="birthCountryDescriptor")][DescriptorExists("CountryDescriptor")] + [IgnoreMember] public string BirthCountryDescriptor { get; set; } + [Key(4)][JsonIgnore] + public int BirthCountryDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("CountryDescriptor", BirthCountryDescriptor); } + set { BirthCountryDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("CountryDescriptor", value); } + } + /// /// The month, day, and year on which an individual was born. /// // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] [DataMember(Name="birthDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(5)] public DateTime BirthDate { get; set; } /// @@ -844,6 +883,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(150, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="birthInternationalProvince")] + [Key(6)] public string BirthInternationalProvince { get; set; } /// @@ -852,21 +892,38 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="birthSexDescriptor")][DescriptorExists("SexDescriptor")] + [IgnoreMember] public string BirthSexDescriptor { get; set; } + [Key(7)][JsonIgnore] + public int BirthSexDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("SexDescriptor", BirthSexDescriptor); } + set { BirthSexDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("SexDescriptor", value); } + } + /// /// The abbreviation for the name of the state (within the United States) or extra-state jurisdiction in which an individual was born. /// // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="birthStateAbbreviationDescriptor")][DescriptorExists("StateAbbreviationDescriptor")] + [IgnoreMember] public string BirthStateAbbreviationDescriptor { get; set; } + [Key(8)][JsonIgnore] + public int BirthStateAbbreviationDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("StateAbbreviationDescriptor", BirthStateAbbreviationDescriptor); } + set { BirthStateAbbreviationDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("StateAbbreviationDescriptor", value); } + } + /// /// For students born outside of the U.S., the date the student entered the U.S. /// // NOT in a reference, NOT a lookup column [DataMember(Name="dateEnteredUS")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(9)] public DateTime? DateEnteredUS { get; set; } /// @@ -875,6 +932,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(30, MinimumLength=1, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText] [DataMember(Name="displacementStatus")] + [Key(10)] public string DisplacementStatus { get; set; } /// @@ -882,6 +940,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="economicDisadvantaged")] + [Key(11)] public bool? EconomicDisadvantaged { get; set; } /// @@ -890,13 +949,22 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="englishLanguageExamDescriptor")][DescriptorExists("EnglishLanguageExamDescriptor")] + [IgnoreMember] public string EnglishLanguageExamDescriptor { get; set; } + [Key(12)][JsonIgnore] + public int EnglishLanguageExamDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("EnglishLanguageExamDescriptor", EnglishLanguageExamDescriptor); } + set { EnglishLanguageExamDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("EnglishLanguageExamDescriptor", value); } + } + /// /// Indicator of whether individual is a first generation college student. /// // NOT in a reference, NOT a lookup column [DataMember(Name="firstGenerationStudent")] + [Key(13)] public bool? FirstGenerationStudent { get; set; } /// @@ -906,6 +974,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="firstName")] + [Key(14)] public string FirstName { get; set; } /// @@ -914,14 +983,23 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="genderDescriptor")][DescriptorExists("GenderDescriptor")] + [IgnoreMember] public string GenderDescriptor { get; set; } + [Key(15)][JsonIgnore] + public int GenderDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("GenderDescriptor", GenderDescriptor); } + set { GenderDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("GenderDescriptor", value); } + } + /// /// An appendage, if any, used to denote an individual's generation in his family (e.g., Jr., Sr., III). /// // NOT in a reference, NOT a lookup column [NonDefaultStringLength(10, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="generationCodeSuffix")] + [Key(16)] public string GenerationCodeSuffix { get; set; } /// @@ -929,6 +1007,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="hispanicLatinoEthnicity")] + [Key(17)] public bool? HispanicLatinoEthnicity { get; set; } /// @@ -938,6 +1017,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="lastSurname")] + [Key(18)] public string LastSurname { get; set; } /// @@ -946,14 +1026,23 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="limitedEnglishProficiencyDescriptor")][DescriptorExists("LimitedEnglishProficiencyDescriptor")] + [IgnoreMember] public string LimitedEnglishProficiencyDescriptor { get; set; } + [Key(19)][JsonIgnore] + public int LimitedEnglishProficiencyDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("LimitedEnglishProficiencyDescriptor", LimitedEnglishProficiencyDescriptor); } + set { LimitedEnglishProficiencyDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("LimitedEnglishProficiencyDescriptor", value); } + } + /// /// The individual's maiden name. /// // NOT in a reference, NOT a lookup column [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="maidenName")] + [Key(20)] public string MaidenName { get; set; } /// @@ -962,6 +1051,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="middleName")] + [Key(21)] public string MiddleName { get; set; } /// @@ -969,6 +1059,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="multipleBirthStatus")] + [Key(22)] public bool? MultipleBirthStatus { get; set; } /// @@ -977,6 +1068,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(30, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="personalTitlePrefix")] + [Key(23)] public string PersonalTitlePrefix { get; set; } /// @@ -1012,6 +1104,7 @@ string Entities.Common.TPDM.ICandidate.PersonId // NOT in a reference, NOT a lookup column [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="preferredFirstName")] + [Key(24)] public string PreferredFirstName { get; set; } /// @@ -1020,6 +1113,7 @@ string Entities.Common.TPDM.ICandidate.PersonId // NOT in a reference, NOT a lookup column [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="preferredLastSurname")] + [Key(25)] public string PreferredLastSurname { get; set; } /// @@ -1028,8 +1122,16 @@ string Entities.Common.TPDM.ICandidate.PersonId // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="sexDescriptor")][DescriptorExists("SexDescriptor")] + [IgnoreMember] public string SexDescriptor { get; set; } + [Key(26)][JsonIgnore] + public int SexDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("SexDescriptor", SexDescriptor); } + set { SexDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("SexDescriptor", value); } + } + /// /// This descriptor defines the originating record source system for the person. /// @@ -1088,6 +1190,7 @@ public System.Collections.IDictionary Extensions { [NoDuplicateMembers] [DataMember(Name="addresses")] + [Key(27)] public ICollection CandidateAddresses { get { return _candidateAddresses; } @@ -1118,6 +1221,7 @@ public ICollection CandidateAddresses [NoDuplicateMembers] [DataMember(Name="disabilities")] + [Key(28)] public ICollection CandidateDisabilities { get { return _candidateDisabilities; } @@ -1148,6 +1252,7 @@ public ICollection CandidateDisabilities [NoDuplicateMembers] [DataMember(Name="electronicMails")] + [Key(29)] public ICollection CandidateElectronicMails { get { return _candidateElectronicMails; } @@ -1178,6 +1283,7 @@ public ICollection CandidateElectronicMails [NoDuplicateMembers] [DataMember(Name="languages")] + [Key(30)] public ICollection CandidateLanguages { get { return _candidateLanguages; } @@ -1208,6 +1314,7 @@ public ICollection CandidateLanguages [NoDuplicateMembers] [DataMember(Name="otherNames")] + [Key(31)] public ICollection CandidateOtherNames { get { return _candidateOtherNames; } @@ -1238,6 +1345,7 @@ public ICollection CandidateOtherNames [NoDuplicateMembers] [DataMember(Name="personalIdentificationDocuments")] + [Key(32)] public ICollection CandidatePersonalIdentificationDocuments { get { return _candidatePersonalIdentificationDocuments; } @@ -1268,6 +1376,7 @@ public ICollection CandidatePersonalIde [NoDuplicateMembers] [DataMember(Name="races")] + [Key(33)] public ICollection CandidateRaces { get { return _candidateRaces; } @@ -1298,6 +1407,7 @@ public ICollection CandidateRaces [NoDuplicateMembers] [DataMember(Name="telephones")] + [Key(34)] public ICollection CandidateTelephones { get { return _candidateTelephones; } @@ -1330,9 +1440,11 @@ public ICollection CandidateTelephones // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(35)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(36)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -1711,7 +1823,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the tpdm.CandidateAddress table of the Candidate aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class CandidateAddress : Entities.Common.TPDM.ICandidateAddress, IValidatableObject { @@ -1758,6 +1870,7 @@ Entities.Common.TPDM.ICandidate Entities.Common.TPDM.ICandidateAddress.Candidate set { SetCandidate(value); } } + [IgnoreMember] public Entities.Common.TPDM.ICandidate Candidate { set { SetCandidate(value); } @@ -1775,8 +1888,16 @@ private void SetCandidate(Entities.Common.TPDM.ICandidate value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="addressTypeDescriptor")][DescriptorExists("AddressTypeDescriptor")] + [IgnoreMember] public string AddressTypeDescriptor { get; set; } + [Key(0)][JsonIgnore] + public int AddressTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("AddressTypeDescriptor", AddressTypeDescriptor); } + set { AddressTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("AddressTypeDescriptor", value); } + } + /// /// The name of the city in which an address is located. /// @@ -1784,6 +1905,7 @@ private void SetCandidate(Entities.Common.TPDM.ICandidate value) [RequiredWithNonDefault] [NonDefaultStringLength(30, MinimumLength=2, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="city")] + [Key(1)] public string City { get; set; } /// @@ -1793,6 +1915,7 @@ private void SetCandidate(Entities.Common.TPDM.ICandidate value) [RequiredWithNonDefault] [NonDefaultStringLength(17, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="postalCode")] + [Key(2)] public string PostalCode { get; set; } /// @@ -1802,8 +1925,16 @@ private void SetCandidate(Entities.Common.TPDM.ICandidate value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="stateAbbreviationDescriptor")][DescriptorExists("StateAbbreviationDescriptor")] + [IgnoreMember] public string StateAbbreviationDescriptor { get; set; } + [Key(3)][JsonIgnore] + public int StateAbbreviationDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("StateAbbreviationDescriptor", StateAbbreviationDescriptor); } + set { StateAbbreviationDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("StateAbbreviationDescriptor", value); } + } + /// /// The street number and street name or post office box number of an address. /// @@ -1811,6 +1942,7 @@ private void SetCandidate(Entities.Common.TPDM.ICandidate value) [RequiredWithNonDefault] [NonDefaultStringLength(150, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="streetNumberName")] + [Key(4)] public string StreetNumberName { get; set; } // ------------------------------------------------------------- @@ -1918,6 +2050,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="apartmentRoomSuiteNumber")] + [Key(5)] public string ApartmentRoomSuiteNumber { get; set; } /// @@ -1926,6 +2059,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(20, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="buildingSiteNumber")] + [Key(6)] public string BuildingSiteNumber { get; set; } /// @@ -1934,6 +2068,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(30, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="congressionalDistrict")] + [Key(7)] public string CongressionalDistrict { get; set; } /// @@ -1942,6 +2077,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(5, MinimumLength=3, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText] [DataMember(Name="countyFIPSCode")] + [Key(8)] public string CountyFIPSCode { get; set; } /// @@ -1949,6 +2085,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="doNotPublishIndicator")] + [Key(9)] public bool? DoNotPublishIndicator { get; set; } /// @@ -1957,6 +2094,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(20, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="latitude")] + [Key(10)] public string Latitude { get; set; } /// @@ -1965,14 +2103,23 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="localeDescriptor")][DescriptorExists("LocaleDescriptor")] + [IgnoreMember] public string LocaleDescriptor { get; set; } + [Key(11)][JsonIgnore] + public int LocaleDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("LocaleDescriptor", LocaleDescriptor); } + set { LocaleDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("LocaleDescriptor", value); } + } + /// /// The geographic longitude of the physical address. /// // NOT in a reference, NOT a lookup column [NonDefaultStringLength(20, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="longitude")] + [Key(12)] public string Longitude { get; set; } /// @@ -1981,6 +2128,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(30, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="nameOfCounty")] + [Key(13)] public string NameOfCounty { get; set; } // ------------------------------------------------------------- @@ -2017,6 +2165,7 @@ public System.Collections.IDictionary Extensions { [NoDuplicateMembers] [DataMember(Name="periods")] + [Key(14)] public ICollection CandidateAddressPeriods { get { return _candidateAddressPeriods; } @@ -2207,7 +2356,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the tpdm.CandidateAddressPeriod table of the Candidate aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class CandidateAddressPeriod : Entities.Common.TPDM.ICandidateAddressPeriod { @@ -2250,6 +2399,7 @@ Entities.Common.TPDM.ICandidateAddress Entities.Common.TPDM.ICandidateAddressPer set { SetCandidateAddress(value); } } + [IgnoreMember] public Entities.Common.TPDM.ICandidateAddress CandidateAddress { set { SetCandidateAddress(value); } @@ -2266,6 +2416,7 @@ private void SetCandidateAddress(Entities.Common.TPDM.ICandidateAddress value) // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] [DataMember(Name="beginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(0)] public DateTime BeginDate { get; set; } // ------------------------------------------------------------- @@ -2336,6 +2487,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="endDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(1)] public DateTime? EndDate { get; set; } // ------------------------------------------------------------- @@ -2437,7 +2589,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the tpdm.CandidateDisability table of the Candidate aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class CandidateDisability : Entities.Common.TPDM.ICandidateDisability, IValidatableObject { @@ -2484,6 +2636,7 @@ Entities.Common.TPDM.ICandidate Entities.Common.TPDM.ICandidateDisability.Candid set { SetCandidate(value); } } + [IgnoreMember] public Entities.Common.TPDM.ICandidate Candidate { set { SetCandidate(value); } @@ -2501,7 +2654,15 @@ private void SetCandidate(Entities.Common.TPDM.ICandidate value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="disabilityDescriptor")][DescriptorExists("DisabilityDescriptor")] + [IgnoreMember] public string DisabilityDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int DisabilityDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("DisabilityDescriptor", DisabilityDescriptor); } + set { DisabilityDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("DisabilityDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -2572,14 +2733,23 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="disabilityDeterminationSourceTypeDescriptor")][DescriptorExists("DisabilityDeterminationSourceTypeDescriptor")] + [IgnoreMember] public string DisabilityDeterminationSourceTypeDescriptor { get; set; } + [Key(1)][JsonIgnore] + public int DisabilityDeterminationSourceTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("DisabilityDeterminationSourceTypeDescriptor", DisabilityDeterminationSourceTypeDescriptor); } + set { DisabilityDeterminationSourceTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("DisabilityDeterminationSourceTypeDescriptor", value); } + } + /// /// A description of the disability diagnosis. /// // NOT in a reference, NOT a lookup column [NonDefaultStringLength(80, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="disabilityDiagnosis")] + [Key(2)] public string DisabilityDiagnosis { get; set; } /// @@ -2587,6 +2757,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="orderOfDisability")] + [Key(3)] public int? OrderOfDisability { get; set; } // ------------------------------------------------------------- @@ -2623,6 +2794,7 @@ public System.Collections.IDictionary Extensions { [NoDuplicateMembers] [DataMember(Name="designations")] + [Key(4)] public ICollection CandidateDisabilityDesignations { get { return _candidateDisabilityDesignations; } @@ -2813,7 +2985,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the tpdm.CandidateDisabilityDesignation table of the Candidate aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class CandidateDisabilityDesignation : Entities.Common.TPDM.ICandidateDisabilityDesignation { @@ -2856,6 +3028,7 @@ Entities.Common.TPDM.ICandidateDisability Entities.Common.TPDM.ICandidateDisabil set { SetCandidateDisability(value); } } + [IgnoreMember] public Entities.Common.TPDM.ICandidateDisability CandidateDisability { set { SetCandidateDisability(value); } @@ -2873,7 +3046,15 @@ private void SetCandidateDisability(Entities.Common.TPDM.ICandidateDisability va [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="disabilityDesignationDescriptor")][DescriptorExists("DisabilityDesignationDescriptor")] + [IgnoreMember] public string DisabilityDesignationDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int DisabilityDesignationDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("DisabilityDesignationDescriptor", DisabilityDesignationDescriptor); } + set { DisabilityDesignationDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("DisabilityDesignationDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -3037,7 +3218,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the tpdm.CandidateElectronicMail table of the Candidate aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class CandidateElectronicMail : Entities.Common.TPDM.ICandidateElectronicMail { @@ -3080,6 +3261,7 @@ Entities.Common.TPDM.ICandidate Entities.Common.TPDM.ICandidateElectronicMail.Ca set { SetCandidate(value); } } + [IgnoreMember] public Entities.Common.TPDM.ICandidate Candidate { set { SetCandidate(value); } @@ -3097,6 +3279,7 @@ private void SetCandidate(Entities.Common.TPDM.ICandidate value) [RequiredWithNonDefault] [NonDefaultStringLength(128, MinimumLength=7, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="electronicMailAddress")] + [Key(0)] public string ElectronicMailAddress { get; set; } /// @@ -3106,7 +3289,15 @@ private void SetCandidate(Entities.Common.TPDM.ICandidate value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="electronicMailTypeDescriptor")][DescriptorExists("ElectronicMailTypeDescriptor")] + [IgnoreMember] public string ElectronicMailTypeDescriptor { get; set; } + + [Key(1)][JsonIgnore] + public int ElectronicMailTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ElectronicMailTypeDescriptor", ElectronicMailTypeDescriptor); } + set { ElectronicMailTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ElectronicMailTypeDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -3185,6 +3376,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="doNotPublishIndicator")] + [Key(2)] public bool? DoNotPublishIndicator { get; set; } /// @@ -3192,6 +3384,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="primaryEmailAddressIndicator")] + [Key(3)] public bool? PrimaryEmailAddressIndicator { get; set; } // ------------------------------------------------------------- @@ -3293,7 +3486,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the tpdm.CandidateLanguage table of the Candidate aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class CandidateLanguage : Entities.Common.TPDM.ICandidateLanguage, IValidatableObject { @@ -3340,6 +3533,7 @@ Entities.Common.TPDM.ICandidate Entities.Common.TPDM.ICandidateLanguage.Candidat set { SetCandidate(value); } } + [IgnoreMember] public Entities.Common.TPDM.ICandidate Candidate { set { SetCandidate(value); } @@ -3357,7 +3551,15 @@ private void SetCandidate(Entities.Common.TPDM.ICandidate value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="languageDescriptor")][DescriptorExists("LanguageDescriptor")] + [IgnoreMember] public string LanguageDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int LanguageDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("LanguageDescriptor", LanguageDescriptor); } + set { LanguageDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("LanguageDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -3456,6 +3658,7 @@ public System.Collections.IDictionary Extensions { [NoDuplicateMembers] [DataMember(Name="uses")] + [Key(1)] public ICollection CandidateLanguageUses { get { return _candidateLanguageUses; } @@ -3646,7 +3849,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the tpdm.CandidateLanguageUse table of the Candidate aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class CandidateLanguageUse : Entities.Common.TPDM.ICandidateLanguageUse { @@ -3689,6 +3892,7 @@ Entities.Common.TPDM.ICandidateLanguage Entities.Common.TPDM.ICandidateLanguageU set { SetCandidateLanguage(value); } } + [IgnoreMember] public Entities.Common.TPDM.ICandidateLanguage CandidateLanguage { set { SetCandidateLanguage(value); } @@ -3706,7 +3910,15 @@ private void SetCandidateLanguage(Entities.Common.TPDM.ICandidateLanguage value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="languageUseDescriptor")][DescriptorExists("LanguageUseDescriptor")] + [IgnoreMember] public string LanguageUseDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int LanguageUseDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("LanguageUseDescriptor", LanguageUseDescriptor); } + set { LanguageUseDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("LanguageUseDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -3870,7 +4082,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the tpdm.CandidateOtherName table of the Candidate aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class CandidateOtherName : Entities.Common.TPDM.ICandidateOtherName { @@ -3913,6 +4125,7 @@ Entities.Common.TPDM.ICandidate Entities.Common.TPDM.ICandidateOtherName.Candida set { SetCandidate(value); } } + [IgnoreMember] public Entities.Common.TPDM.ICandidate Candidate { set { SetCandidate(value); } @@ -3930,7 +4143,15 @@ private void SetCandidate(Entities.Common.TPDM.ICandidate value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="otherNameTypeDescriptor")][DescriptorExists("OtherNameTypeDescriptor")] + [IgnoreMember] public string OtherNameTypeDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int OtherNameTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("OtherNameTypeDescriptor", OtherNameTypeDescriptor); } + set { OtherNameTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("OtherNameTypeDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -4002,6 +4223,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="firstName")] + [Key(1)] public string FirstName { get; set; } /// @@ -4010,6 +4232,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(10, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="generationCodeSuffix")] + [Key(2)] public string GenerationCodeSuffix { get; set; } /// @@ -4019,6 +4242,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="lastSurname")] + [Key(3)] public string LastSurname { get; set; } /// @@ -4027,6 +4251,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="middleName")] + [Key(4)] public string MiddleName { get; set; } /// @@ -4035,6 +4260,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(30, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="personalTitlePrefix")] + [Key(5)] public string PersonalTitlePrefix { get; set; } // ------------------------------------------------------------- @@ -4136,7 +4362,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the tpdm.CandidatePersonalIdentificationDocument table of the Candidate aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class CandidatePersonalIdentificationDocument : Entities.Common.TPDM.ICandidatePersonalIdentificationDocument { @@ -4179,6 +4405,7 @@ Entities.Common.TPDM.ICandidate Entities.Common.TPDM.ICandidatePersonalIdentific set { SetCandidate(value); } } + [IgnoreMember] public Entities.Common.TPDM.ICandidate Candidate { set { SetCandidate(value); } @@ -4196,8 +4423,16 @@ private void SetCandidate(Entities.Common.TPDM.ICandidate value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="identificationDocumentUseDescriptor")][DescriptorExists("IdentificationDocumentUseDescriptor")] + [IgnoreMember] public string IdentificationDocumentUseDescriptor { get; set; } + [Key(0)][JsonIgnore] + public int IdentificationDocumentUseDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("IdentificationDocumentUseDescriptor", IdentificationDocumentUseDescriptor); } + set { IdentificationDocumentUseDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("IdentificationDocumentUseDescriptor", value); } + } + /// /// The category of the document relative to its purpose. /// @@ -4205,7 +4440,15 @@ private void SetCandidate(Entities.Common.TPDM.ICandidate value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="personalInformationVerificationDescriptor")][DescriptorExists("PersonalInformationVerificationDescriptor")] + [IgnoreMember] public string PersonalInformationVerificationDescriptor { get; set; } + + [Key(1)][JsonIgnore] + public int PersonalInformationVerificationDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("PersonalInformationVerificationDescriptor", PersonalInformationVerificationDescriptor); } + set { PersonalInformationVerificationDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("PersonalInformationVerificationDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -4284,6 +4527,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="documentExpirationDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(2)] public DateTime? DocumentExpirationDate { get; set; } /// @@ -4292,6 +4536,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(60, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="documentTitle")] + [Key(3)] public string DocumentTitle { get; set; } /// @@ -4300,14 +4545,23 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="issuerCountryDescriptor")][DescriptorExists("CountryDescriptor")] + [IgnoreMember] public string IssuerCountryDescriptor { get; set; } + [Key(4)][JsonIgnore] + public int IssuerCountryDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("CountryDescriptor", IssuerCountryDescriptor); } + set { IssuerCountryDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("CountryDescriptor", value); } + } + /// /// The unique identifier on the issuer's identification system. /// // NOT in a reference, NOT a lookup column [NonDefaultStringLength(60, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="issuerDocumentIdentificationCode")] + [Key(5)] public string IssuerDocumentIdentificationCode { get; set; } /// @@ -4316,6 +4570,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(150, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="issuerName")] + [Key(6)] public string IssuerName { get; set; } // ------------------------------------------------------------- @@ -4417,7 +4672,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the tpdm.CandidateRace table of the Candidate aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class CandidateRace : Entities.Common.TPDM.ICandidateRace { @@ -4460,6 +4715,7 @@ Entities.Common.TPDM.ICandidate Entities.Common.TPDM.ICandidateRace.Candidate set { SetCandidate(value); } } + [IgnoreMember] public Entities.Common.TPDM.ICandidate Candidate { set { SetCandidate(value); } @@ -4477,7 +4733,15 @@ private void SetCandidate(Entities.Common.TPDM.ICandidate value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="raceDescriptor")][DescriptorExists("RaceDescriptor")] + [IgnoreMember] public string RaceDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int RaceDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("RaceDescriptor", RaceDescriptor); } + set { RaceDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("RaceDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -4641,7 +4905,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the tpdm.CandidateTelephone table of the Candidate aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class CandidateTelephone : Entities.Common.TPDM.ICandidateTelephone { @@ -4684,6 +4948,7 @@ Entities.Common.TPDM.ICandidate Entities.Common.TPDM.ICandidateTelephone.Candida set { SetCandidate(value); } } + [IgnoreMember] public Entities.Common.TPDM.ICandidate Candidate { set { SetCandidate(value); } @@ -4701,6 +4966,7 @@ private void SetCandidate(Entities.Common.TPDM.ICandidate value) [RequiredWithNonDefault] [NonDefaultStringLength(24, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="telephoneNumber")] + [Key(0)] public string TelephoneNumber { get; set; } /// @@ -4710,7 +4976,15 @@ private void SetCandidate(Entities.Common.TPDM.ICandidate value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="telephoneNumberTypeDescriptor")][DescriptorExists("TelephoneNumberTypeDescriptor")] + [IgnoreMember] public string TelephoneNumberTypeDescriptor { get; set; } + + [Key(1)][JsonIgnore] + public int TelephoneNumberTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("TelephoneNumberTypeDescriptor", TelephoneNumberTypeDescriptor); } + set { TelephoneNumberTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("TelephoneNumberTypeDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -4789,6 +5063,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="doNotPublishIndicator")] + [Key(2)] public bool? DoNotPublishIndicator { get; set; } /// @@ -4797,6 +5072,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(1, 2147483647, ErrorMessage=ValidationHelpers.RangeMinOnlyMessageFormat)] [DataMember(Name="orderOfPriority")] + [Key(3)] public int? OrderOfPriority { get; set; } /// @@ -4804,6 +5080,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="textMessageCapabilityIndicator")] + [Key(4)] public bool? TextMessageCapabilityIndicator { get; set; } // ------------------------------------------------------------- @@ -4910,39 +5187,56 @@ namespace EdFi.Ods.Api.Common.Models.Resources.CandidateEducatorPreparationProgr /// /// Represents a reference to the CandidateEducatorPreparationProgramAssociation resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class CandidateEducatorPreparationProgramAssociationReference : IResourceReference { [DataMember(Name="beginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(0)] public DateTime BeginDate { get; set; } [DataMember(Name="candidateIdentifier")] + [Key(1)] public string CandidateIdentifier { get; set; } [DataMember(Name="educationOrganizationId")] + [Key(2)] public long EducationOrganizationId { get; set; } [DataMember(Name="programName")] + [Key(3)] public string ProgramName { get; set; } [DataMember(Name="programTypeDescriptor")][DescriptorExists("ProgramTypeDescriptor")] + [IgnoreMember] public string ProgramTypeDescriptor { get; set; } + [Key(4)][JsonIgnore] + public int ProgramTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ProgramTypeDescriptor", ProgramTypeDescriptor); } + set { ProgramTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ProgramTypeDescriptor", value); } + } + /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(5)] 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. /// + [Key(6)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(7)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -5031,7 +5325,7 @@ private Link CreateLink() /// /// A class which represents the tpdm.CandidateEducatorPreparationProgramAssociation table of the CandidateEducatorPreparationProgramAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class CandidateEducatorPreparationProgramAssociation : Entities.Common.TPDM.ICandidateEducatorPreparationProgramAssociation, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -5065,6 +5359,7 @@ public CandidateEducatorPreparationProgramAssociation() /// The unique identifier for the CandidateEducatorPreparationProgramAssociation resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -5088,6 +5383,7 @@ private Candidate.TPDM.CandidateReference ImplicitCandidateReference } [DataMember(Name="candidateReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Candidate.TPDM.CandidateReference CandidateReference { @@ -5121,6 +5417,7 @@ private EducatorPreparationProgram.TPDM.EducatorPreparationProgramReference Impl } [DataMember(Name="educatorPreparationProgramReference")] + [Key(2)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public EducatorPreparationProgram.TPDM.EducatorPreparationProgramReference EducatorPreparationProgramReference { @@ -5151,6 +5448,7 @@ public EducatorPreparationProgram.TPDM.EducatorPreparationProgramReference Educa // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] [DataMember(Name="beginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime BeginDate { get; set; } /// @@ -5343,6 +5641,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="endDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EndDate { get; set; } /// @@ -5351,15 +5650,31 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="eppProgramPathwayDescriptor")][DescriptorExists("EPPProgramPathwayDescriptor")] + [IgnoreMember] public string EPPProgramPathwayDescriptor { get; set; } + [Key(5)][JsonIgnore] + public int EPPProgramPathwayDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("EPPProgramPathwayDescriptor", EPPProgramPathwayDescriptor); } + set { EPPProgramPathwayDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("EPPProgramPathwayDescriptor", value); } + } + /// /// Reason exited for the association. /// // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="reasonExitedDescriptor")][DescriptorExists("ReasonExitedDescriptor")] + [IgnoreMember] public string ReasonExitedDescriptor { get; set; } + + [Key(6)][JsonIgnore] + public int ReasonExitedDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ReasonExitedDescriptor", ReasonExitedDescriptor); } + set { ReasonExitedDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ReasonExitedDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -5395,6 +5710,7 @@ public System.Collections.IDictionary Extensions { [NoDuplicateMembers] [DataMember(Name="cohortYears")] + [Key(7)] public ICollection CandidateEducatorPreparationProgramAssociationCohortYears { get { return _candidateEducatorPreparationProgramAssociationCohortYears; } @@ -5425,6 +5741,7 @@ public ICollection Can [NoDuplicateMembers] [DataMember(Name="degreeSpecializations")] + [Key(8)] public ICollection CandidateEducatorPreparationProgramAssociationDegreeSpecializations { get { return _candidateEducatorPreparationProgramAssociationDegreeSpecializations; } @@ -5457,9 +5774,11 @@ public ICollection /// A class which represents the tpdm.CandidateEducatorPreparationProgramAssociationCohortYear table of the CandidateEducatorPreparationProgramAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class CandidateEducatorPreparationProgramAssociationCohortYear : Entities.Common.TPDM.ICandidateEducatorPreparationProgramAssociationCohortYear { @@ -5723,6 +6042,7 @@ private SchoolYearType.EdFi.SchoolYearTypeReference ImplicitSchoolYearTypeRefere } [DataMember(Name="schoolYearTypeReference")] + [Key(0)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public SchoolYearType.EdFi.SchoolYearTypeReference SchoolYearTypeReference { @@ -5755,6 +6075,7 @@ Entities.Common.TPDM.ICandidateEducatorPreparationProgramAssociation Entities.Co set { SetCandidateEducatorPreparationProgramAssociation(value); } } + [IgnoreMember] public Entities.Common.TPDM.ICandidateEducatorPreparationProgramAssociation CandidateEducatorPreparationProgramAssociation { set { SetCandidateEducatorPreparationProgramAssociation(value); } @@ -5772,8 +6093,16 @@ private void SetCandidateEducatorPreparationProgramAssociation(Entities.Common.T [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="cohortYearTypeDescriptor")][DescriptorExists("CohortYearTypeDescriptor")] + [IgnoreMember] public string CohortYearTypeDescriptor { get; set; } + [Key(1)][JsonIgnore] + public int CohortYearTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("CohortYearTypeDescriptor", CohortYearTypeDescriptor); } + set { CohortYearTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("CohortYearTypeDescriptor", value); } + } + /// /// The school year associated with the cohort; for example, the intended school year of graduation. /// @@ -5876,7 +6205,15 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="termDescriptor")][DescriptorExists("TermDescriptor")] + [IgnoreMember] public string TermDescriptor { get; set; } + + [Key(2)][JsonIgnore] + public int TermDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("TermDescriptor", TermDescriptor); } + set { TermDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("TermDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -5984,7 +6321,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the tpdm.CandidateEducatorPreparationProgramAssociationDegreeSpecialization table of the CandidateEducatorPreparationProgramAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class CandidateEducatorPreparationProgramAssociationDegreeSpecialization : Entities.Common.TPDM.ICandidateEducatorPreparationProgramAssociationDegreeSpecialization { @@ -6027,6 +6364,7 @@ Entities.Common.TPDM.ICandidateEducatorPreparationProgramAssociation Entities.Co set { SetCandidateEducatorPreparationProgramAssociation(value); } } + [IgnoreMember] public Entities.Common.TPDM.ICandidateEducatorPreparationProgramAssociation CandidateEducatorPreparationProgramAssociation { set { SetCandidateEducatorPreparationProgramAssociation(value); } @@ -6044,6 +6382,7 @@ private void SetCandidateEducatorPreparationProgramAssociation(Entities.Common.T [RequiredWithNonDefault] [NonDefaultStringLength(255, MinimumLength=1, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="majorSpecialization")] + [Key(0)] public string MajorSpecialization { get; set; } // ------------------------------------------------------------- @@ -6114,6 +6453,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="endDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(1)] public DateTime? EndDate { get; set; } /// @@ -6122,6 +6462,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(255, MinimumLength=1, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText] [DataMember(Name="minorSpecialization")] + [Key(2)] public string MinorSpecialization { get; set; } // ------------------------------------------------------------- @@ -6228,7 +6569,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.CertificationRouteDescriptor.TPDM /// /// A class which represents the tpdm.CertificationRouteDescriptor table of the CertificationRouteDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class CertificationRouteDescriptor : Entities.Common.TPDM.ICertificationRouteDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -6257,6 +6598,7 @@ public class CertificationRouteDescriptor : Entities.Common.TPDM.ICertificationR /// The unique identifier for the CertificationRouteDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -6341,6 +6683,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -6349,6 +6692,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -6356,6 +6700,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -6363,6 +6708,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -6372,6 +6718,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -6381,6 +6728,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -6424,9 +6772,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -6499,7 +6849,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.CoteachingStyleObservedDescriptor /// /// A class which represents the tpdm.CoteachingStyleObservedDescriptor table of the CoteachingStyleObservedDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class CoteachingStyleObservedDescriptor : Entities.Common.TPDM.ICoteachingStyleObservedDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -6528,6 +6878,7 @@ public class CoteachingStyleObservedDescriptor : Entities.Common.TPDM.ICoteachin /// The unique identifier for the CoteachingStyleObservedDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -6612,6 +6963,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -6620,6 +6972,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -6627,6 +6980,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -6634,6 +6988,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -6643,6 +6998,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -6652,6 +7008,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -6695,9 +7052,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -6770,7 +7129,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.Credential.EdFi.Extensions.TPDM /// /// A class which represents the tpdm.CredentialExtension table of the Credential aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] [Display(Name="TPDM")] public class CredentialExtension : Entities.Common.TPDM.ICredentialExtension, IChildEntity, IValidatableObject @@ -6820,6 +7179,7 @@ private Person.EdFi.PersonReference ImplicitPersonReference } [DataMember(Name="personReference")] + [Key(0)] [FullyDefinedReference] public Person.EdFi.PersonReference PersonReference { @@ -6852,6 +7212,7 @@ Entities.Common.EdFi.ICredential Entities.Common.TPDM.ICredentialExtension.Crede set { SetCredential(value); } } + [IgnoreMember] public Entities.Common.EdFi.ICredential Credential { set { SetCredential(value); } @@ -6921,6 +7282,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="boardCertificationIndicator")] + [Key(1)] public bool? BoardCertificationIndicator { get; set; } /// @@ -6929,14 +7291,23 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="certificationRouteDescriptor")][DescriptorExists("CertificationRouteDescriptor")] + [IgnoreMember] public string CertificationRouteDescriptor { get; set; } + [Key(2)][JsonIgnore] + public int CertificationRouteDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("CertificationRouteDescriptor", CertificationRouteDescriptor); } + set { CertificationRouteDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("CertificationRouteDescriptor", value); } + } + /// /// The title of the certification obtained by the educator. /// // NOT in a reference, NOT a lookup column [NonDefaultStringLength(64, MinimumLength=1, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText] [DataMember(Name="certificationTitle")] + [Key(3)] public string CertificationTitle { get; set; } /// @@ -6944,6 +7315,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="credentialStatusDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? CredentialStatusDate { get; set; } /// @@ -6952,16 +7324,32 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="credentialStatusDescriptor")][DescriptorExists("CredentialStatusDescriptor")] + [IgnoreMember] public string CredentialStatusDescriptor { get; set; } + [Key(5)][JsonIgnore] + public int CredentialStatusDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("CredentialStatusDescriptor", CredentialStatusDescriptor); } + set { CredentialStatusDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("CredentialStatusDescriptor", value); } + } + /// /// The specific roles or positions within an organization that the credential is intended to authorize (e.g., Principal, Reading Specialist), typically associated with service and administrative certifications. /// // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="educatorRoleDescriptor")][DescriptorExists("EducatorRoleDescriptor")] + [IgnoreMember] public string EducatorRoleDescriptor { get; set; } + [Key(6)][JsonIgnore] + public int EducatorRoleDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("EducatorRoleDescriptor", EducatorRoleDescriptor); } + set { EducatorRoleDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("EducatorRoleDescriptor", value); } + } + /// /// A unique alphanumeric code assigned to a person. /// @@ -7047,6 +7435,7 @@ public System.Collections.IDictionary Extensions { [NoDuplicateMembers] [DataMember(Name="studentAcademicRecords")] + [Key(7)] public ICollection CredentialStudentAcademicRecords { get { return _credentialStudentAcademicRecords; } @@ -7256,7 +7645,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the tpdm.CredentialStudentAcademicRecord table of the Credential aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class CredentialStudentAcademicRecord : Entities.Common.TPDM.ICredentialStudentAcademicRecord { @@ -7301,6 +7690,7 @@ private StudentAcademicRecord.EdFi.StudentAcademicRecordReference ImplicitStuden } [DataMember(Name="studentAcademicRecordReference")] + [Key(0)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public StudentAcademicRecord.EdFi.StudentAcademicRecordReference StudentAcademicRecordReference { @@ -7333,6 +7723,7 @@ Entities.Common.TPDM.ICredentialExtension Entities.Common.TPDM.ICredentialStuden set { SetCredentialExtension(value); } } + [IgnoreMember] public Entities.Common.TPDM.ICredentialExtension CredentialExtension { set { SetCredentialExtension(value); } @@ -7645,7 +8036,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.CredentialStatusDescriptor.TPDM /// /// A class which represents the tpdm.CredentialStatusDescriptor table of the CredentialStatusDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class CredentialStatusDescriptor : Entities.Common.TPDM.ICredentialStatusDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -7674,6 +8065,7 @@ public class CredentialStatusDescriptor : Entities.Common.TPDM.ICredentialStatus /// The unique identifier for the CredentialStatusDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -7758,6 +8150,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -7766,6 +8159,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -7773,6 +8167,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -7780,6 +8175,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -7789,6 +8185,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -7798,6 +8195,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -7841,9 +8239,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -7916,33 +8316,48 @@ namespace EdFi.Ods.Api.Common.Models.Resources.EducatorPreparationProgram.TPDM /// /// Represents a reference to the EducatorPreparationProgram resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class EducatorPreparationProgramReference : IResourceReference { [DataMember(Name="educationOrganizationId")] + [Key(0)] public long EducationOrganizationId { get; set; } [DataMember(Name="programName")] + [Key(1)] public string ProgramName { get; set; } [DataMember(Name="programTypeDescriptor")][DescriptorExists("ProgramTypeDescriptor")] + [IgnoreMember] public string ProgramTypeDescriptor { get; set; } + [Key(2)][JsonIgnore] + public int ProgramTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ProgramTypeDescriptor", ProgramTypeDescriptor); } + set { ProgramTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ProgramTypeDescriptor", value); } + } + /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(3)] 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. /// + [Key(4)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(5)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -8021,7 +8436,7 @@ private Link CreateLink() /// /// A class which represents the tpdm.EducatorPreparationProgram table of the EducatorPreparationProgram aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class EducatorPreparationProgram : Entities.Common.TPDM.IEducatorPreparationProgram, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -8054,6 +8469,7 @@ public EducatorPreparationProgram() /// The unique identifier for the EducatorPreparationProgram resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -8077,6 +8493,7 @@ private EducationOrganization.EdFi.EducationOrganizationReference ImplicitEducat } [DataMember(Name="educationOrganizationReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public EducationOrganization.EdFi.EducationOrganizationReference EducationOrganizationReference { @@ -8133,6 +8550,7 @@ long Entities.Common.TPDM.IEducatorPreparationProgram.EducationOrganizationId [RequiredWithNonDefault] [NonDefaultStringLength(255, MinimumLength=1, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="programName")] + [Key(2)] public string ProgramName { get; set; } /// @@ -8142,7 +8560,15 @@ long Entities.Common.TPDM.IEducatorPreparationProgram.EducationOrganizationId [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="programTypeDescriptor")][DescriptorExists("ProgramTypeDescriptor")] + [IgnoreMember] public string ProgramTypeDescriptor { get; set; } + + [Key(3)][JsonIgnore] + public int ProgramTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ProgramTypeDescriptor", ProgramTypeDescriptor); } + set { ProgramTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ProgramTypeDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -8223,14 +8649,23 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="accreditationStatusDescriptor")][DescriptorExists("AccreditationStatusDescriptor")] + [IgnoreMember] public string AccreditationStatusDescriptor { get; set; } + [Key(4)][JsonIgnore] + public int AccreditationStatusDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("AccreditationStatusDescriptor", AccreditationStatusDescriptor); } + set { AccreditationStatusDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("AccreditationStatusDescriptor", value); } + } + /// /// A unique number or alphanumeric code assigned to a program by a school, school system, a state, or other agency or entity. /// // NOT in a reference, NOT a lookup column [NonDefaultStringLength(20, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="programId")] + [Key(5)] public string ProgramId { get; set; } // ------------------------------------------------------------- @@ -8267,6 +8702,7 @@ public System.Collections.IDictionary Extensions { [NoDuplicateMembers] [DataMember(Name="gradeLevels")] + [Key(6)] public ICollection EducatorPreparationProgramGradeLevels { get { return _educatorPreparationProgramGradeLevels; } @@ -8299,9 +8735,11 @@ public ICollection EducatorPreparationProg // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -8477,7 +8915,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the tpdm.EducatorPreparationProgramGradeLevel table of the EducatorPreparationProgram aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class EducatorPreparationProgramGradeLevel : Entities.Common.TPDM.IEducatorPreparationProgramGradeLevel { @@ -8520,6 +8958,7 @@ Entities.Common.TPDM.IEducatorPreparationProgram Entities.Common.TPDM.IEducatorP set { SetEducatorPreparationProgram(value); } } + [IgnoreMember] public Entities.Common.TPDM.IEducatorPreparationProgram EducatorPreparationProgram { set { SetEducatorPreparationProgram(value); } @@ -8537,7 +8976,15 @@ private void SetEducatorPreparationProgram(Entities.Common.TPDM.IEducatorPrepara [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="gradeLevelDescriptor")][DescriptorExists("GradeLevelDescriptor")] + [IgnoreMember] public string GradeLevelDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int GradeLevelDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("GradeLevelDescriptor", GradeLevelDescriptor); } + set { GradeLevelDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("GradeLevelDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -8706,7 +9153,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.EducatorRoleDescriptor.TPDM /// /// A class which represents the tpdm.EducatorRoleDescriptor table of the EducatorRoleDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class EducatorRoleDescriptor : Entities.Common.TPDM.IEducatorRoleDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -8735,6 +9182,7 @@ public class EducatorRoleDescriptor : Entities.Common.TPDM.IEducatorRoleDescript /// The unique identifier for the EducatorRoleDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -8819,6 +9267,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -8827,6 +9276,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -8834,6 +9284,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -8841,6 +9292,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -8850,6 +9302,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -8859,6 +9312,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -8902,9 +9356,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -8977,7 +9433,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.EnglishLanguageExamDescriptor.TPD /// /// A class which represents the tpdm.EnglishLanguageExamDescriptor table of the EnglishLanguageExamDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class EnglishLanguageExamDescriptor : Entities.Common.TPDM.IEnglishLanguageExamDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -9006,6 +9462,7 @@ public class EnglishLanguageExamDescriptor : Entities.Common.TPDM.IEnglishLangua /// The unique identifier for the EnglishLanguageExamDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -9090,6 +9547,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -9098,6 +9556,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -9105,6 +9564,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -9112,6 +9572,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -9121,6 +9582,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -9130,6 +9592,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -9173,9 +9636,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -9248,7 +9713,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.EPPProgramPathwayDescriptor.TPDM /// /// A class which represents the tpdm.EPPProgramPathwayDescriptor table of the EPPProgramPathwayDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class EPPProgramPathwayDescriptor : Entities.Common.TPDM.IEPPProgramPathwayDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -9277,6 +9742,7 @@ public class EPPProgramPathwayDescriptor : Entities.Common.TPDM.IEPPProgramPathw /// The unique identifier for the EPPProgramPathwayDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -9361,6 +9827,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -9369,6 +9836,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -9376,6 +9844,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -9383,6 +9852,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -9392,6 +9862,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -9401,6 +9872,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -9444,9 +9916,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -9519,45 +9993,78 @@ namespace EdFi.Ods.Api.Common.Models.Resources.Evaluation.TPDM /// /// Represents a reference to the Evaluation resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class EvaluationReference : IResourceReference { [DataMember(Name="educationOrganizationId")] + [Key(0)] public long EducationOrganizationId { get; set; } [DataMember(Name="evaluationPeriodDescriptor")][DescriptorExists("EvaluationPeriodDescriptor")] + [IgnoreMember] public string EvaluationPeriodDescriptor { get; set; } + [Key(1)][JsonIgnore] + public int EvaluationPeriodDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("EvaluationPeriodDescriptor", EvaluationPeriodDescriptor); } + set { EvaluationPeriodDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("EvaluationPeriodDescriptor", value); } + } + [DataMember(Name="evaluationTitle")] + [Key(2)] public string EvaluationTitle { get; set; } [DataMember(Name="performanceEvaluationTitle")] + [Key(3)] public string PerformanceEvaluationTitle { get; set; } [DataMember(Name="performanceEvaluationTypeDescriptor")][DescriptorExists("PerformanceEvaluationTypeDescriptor")] + [IgnoreMember] public string PerformanceEvaluationTypeDescriptor { get; set; } + [Key(4)][JsonIgnore] + public int PerformanceEvaluationTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("PerformanceEvaluationTypeDescriptor", PerformanceEvaluationTypeDescriptor); } + set { PerformanceEvaluationTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("PerformanceEvaluationTypeDescriptor", value); } + } + [DataMember(Name="schoolYear")] + [Key(5)] public short SchoolYear { get; set; } [DataMember(Name="termDescriptor")][DescriptorExists("TermDescriptor")] + [IgnoreMember] public string TermDescriptor { get; set; } + [Key(6)][JsonIgnore] + public int TermDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("TermDescriptor", TermDescriptor); } + set { TermDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("TermDescriptor", value); } + } + /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(7)] 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. /// + [Key(8)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(9)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -9656,7 +10163,7 @@ private Link CreateLink() /// /// A class which represents the tpdm.Evaluation table of the Evaluation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class Evaluation : Entities.Common.TPDM.IEvaluation, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -9689,6 +10196,7 @@ public Evaluation() /// The unique identifier for the Evaluation resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -9712,6 +10220,7 @@ private PerformanceEvaluation.TPDM.PerformanceEvaluationReference ImplicitPerfor } [DataMember(Name="performanceEvaluationReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public PerformanceEvaluation.TPDM.PerformanceEvaluationReference PerformanceEvaluationReference { @@ -9789,6 +10298,7 @@ string Entities.Common.TPDM.IEvaluation.EvaluationPeriodDescriptor [RequiredWithNonDefault] [NonDefaultStringLength(50, MinimumLength=1, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="evaluationTitle")] + [Key(2)] public string EvaluationTitle { get; set; } /// @@ -9996,6 +10506,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="evaluationDescription")] + [Key(3)] public string EvaluationDescription { get; set; } /// @@ -10004,13 +10515,22 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="evaluationTypeDescriptor")][DescriptorExists("EvaluationTypeDescriptor")] + [IgnoreMember] public string EvaluationTypeDescriptor { get; set; } + [Key(4)][JsonIgnore] + public int EvaluationTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("EvaluationTypeDescriptor", EvaluationTypeDescriptor); } + set { EvaluationTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("EvaluationTypeDescriptor", value); } + } + /// /// A score indicating how much homogeneity, or consensus, there is in the ratings given by judges. Most commonly a percentage scale (1-100) /// // NOT in a reference, NOT a lookup column [DataMember(Name="interRaterReliabilityScore")] + [Key(5)] public int? InterRaterReliabilityScore { get; set; } /// @@ -10019,6 +10539,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-999.999", "999.999", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="maxRating")] + [Key(6)] public decimal? MaxRating { get; set; } /// @@ -10027,6 +10548,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-999.999", "999.999", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="minRating")] + [Key(7)] public decimal? MinRating { get; set; } // ------------------------------------------------------------- @@ -10063,6 +10585,7 @@ public System.Collections.IDictionary Extensions { [NoDuplicateMembers] [DataMember(Name="ratingLevels")] + [Key(8)] public ICollection EvaluationRatingLevels { get { return _evaluationRatingLevels; } @@ -10095,9 +10618,11 @@ public ICollection EvaluationRatingLevels // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(9)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(10)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -10273,7 +10798,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the tpdm.EvaluationRatingLevel table of the Evaluation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class EvaluationRatingLevel : Entities.Common.TPDM.IEvaluationRatingLevel { @@ -10316,6 +10841,7 @@ Entities.Common.TPDM.IEvaluation Entities.Common.TPDM.IEvaluationRatingLevel.Eva set { SetEvaluation(value); } } + [IgnoreMember] public Entities.Common.TPDM.IEvaluation Evaluation { set { SetEvaluation(value); } @@ -10333,7 +10859,15 @@ private void SetEvaluation(Entities.Common.TPDM.IEvaluation value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="evaluationRatingLevelDescriptor")][DescriptorExists("EvaluationRatingLevelDescriptor")] + [IgnoreMember] public string EvaluationRatingLevelDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int EvaluationRatingLevelDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("EvaluationRatingLevelDescriptor", EvaluationRatingLevelDescriptor); } + set { EvaluationRatingLevelDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("EvaluationRatingLevelDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -10404,6 +10938,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-999.999", "999.999", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="maxRating")] + [Key(1)] public decimal? MaxRating { get; set; } /// @@ -10412,6 +10947,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-999.999", "999.999", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="minRating")] + [Key(2)] public decimal? MinRating { get; set; } // ------------------------------------------------------------- @@ -10518,51 +11054,86 @@ namespace EdFi.Ods.Api.Common.Models.Resources.EvaluationElement.TPDM /// /// Represents a reference to the EvaluationElement resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class EvaluationElementReference : IResourceReference { [DataMember(Name="educationOrganizationId")] + [Key(0)] public long EducationOrganizationId { get; set; } [DataMember(Name="evaluationElementTitle")] + [Key(1)] public string EvaluationElementTitle { get; set; } [DataMember(Name="evaluationObjectiveTitle")] + [Key(2)] public string EvaluationObjectiveTitle { get; set; } [DataMember(Name="evaluationPeriodDescriptor")][DescriptorExists("EvaluationPeriodDescriptor")] + [IgnoreMember] public string EvaluationPeriodDescriptor { get; set; } + [Key(3)][JsonIgnore] + public int EvaluationPeriodDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("EvaluationPeriodDescriptor", EvaluationPeriodDescriptor); } + set { EvaluationPeriodDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("EvaluationPeriodDescriptor", value); } + } + [DataMember(Name="evaluationTitle")] + [Key(4)] public string EvaluationTitle { get; set; } [DataMember(Name="performanceEvaluationTitle")] + [Key(5)] public string PerformanceEvaluationTitle { get; set; } [DataMember(Name="performanceEvaluationTypeDescriptor")][DescriptorExists("PerformanceEvaluationTypeDescriptor")] + [IgnoreMember] public string PerformanceEvaluationTypeDescriptor { get; set; } + [Key(6)][JsonIgnore] + public int PerformanceEvaluationTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("PerformanceEvaluationTypeDescriptor", PerformanceEvaluationTypeDescriptor); } + set { PerformanceEvaluationTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("PerformanceEvaluationTypeDescriptor", value); } + } + [DataMember(Name="schoolYear")] + [Key(7)] public short SchoolYear { get; set; } [DataMember(Name="termDescriptor")][DescriptorExists("TermDescriptor")] + [IgnoreMember] public string TermDescriptor { get; set; } + [Key(8)][JsonIgnore] + public int TermDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("TermDescriptor", TermDescriptor); } + set { TermDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("TermDescriptor", value); } + } + /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(9)] 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. /// + [Key(10)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(11)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -10671,7 +11242,7 @@ private Link CreateLink() /// /// A class which represents the tpdm.EvaluationElement table of the EvaluationElement aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class EvaluationElement : Entities.Common.TPDM.IEvaluationElement, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -10704,6 +11275,7 @@ public EvaluationElement() /// The unique identifier for the EvaluationElement resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -10727,6 +11299,7 @@ private EvaluationObjective.TPDM.EvaluationObjectiveReference ImplicitEvaluation } [DataMember(Name="evaluationObjectiveReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public EvaluationObjective.TPDM.EvaluationObjectiveReference EvaluationObjectiveReference { @@ -10783,6 +11356,7 @@ long Entities.Common.TPDM.IEvaluationElement.EducationOrganizationId [RequiredWithNonDefault] [NonDefaultStringLength(255, MinimumLength=1, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="evaluationElementTitle")] + [Key(2)] public string EvaluationElementTitle { get; set; } /// @@ -11077,14 +11651,23 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="evaluationTypeDescriptor")][DescriptorExists("EvaluationTypeDescriptor")] + [IgnoreMember] public string EvaluationTypeDescriptor { get; set; } + [Key(3)][JsonIgnore] + public int EvaluationTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("EvaluationTypeDescriptor", EvaluationTypeDescriptor); } + set { EvaluationTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("EvaluationTypeDescriptor", value); } + } + /// /// The maximum summary numerical rating or score for the evaluation element. /// // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-999.999", "999.999", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="maxRating")] + [Key(4)] public decimal? MaxRating { get; set; } /// @@ -11093,6 +11676,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-999.999", "999.999", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="minRating")] + [Key(5)] public decimal? MinRating { get; set; } /// @@ -11100,6 +11684,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="sortOrder")] + [Key(6)] public int? SortOrder { get; set; } // ------------------------------------------------------------- @@ -11136,6 +11721,7 @@ public System.Collections.IDictionary Extensions { [NoDuplicateMembers] [DataMember(Name="ratingLevels")] + [Key(7)] public ICollection EvaluationElementRatingLevels { get { return _evaluationElementRatingLevels; } @@ -11168,9 +11754,11 @@ public ICollection EvaluationElementRatingLevels // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(8)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(9)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -11346,7 +11934,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the tpdm.EvaluationElementRatingLevel table of the EvaluationElement aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class EvaluationElementRatingLevel : Entities.Common.TPDM.IEvaluationElementRatingLevel { @@ -11389,6 +11977,7 @@ Entities.Common.TPDM.IEvaluationElement Entities.Common.TPDM.IEvaluationElementR set { SetEvaluationElement(value); } } + [IgnoreMember] public Entities.Common.TPDM.IEvaluationElement EvaluationElement { set { SetEvaluationElement(value); } @@ -11406,7 +11995,15 @@ private void SetEvaluationElement(Entities.Common.TPDM.IEvaluationElement value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="evaluationRatingLevelDescriptor")][DescriptorExists("EvaluationRatingLevelDescriptor")] + [IgnoreMember] public string EvaluationRatingLevelDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int EvaluationRatingLevelDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("EvaluationRatingLevelDescriptor", EvaluationRatingLevelDescriptor); } + set { EvaluationRatingLevelDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("EvaluationRatingLevelDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -11477,6 +12074,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-999.999", "999.999", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="maxRating")] + [Key(1)] public decimal? MaxRating { get; set; } /// @@ -11485,6 +12083,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-999.999", "999.999", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="minRating")] + [Key(2)] public decimal? MinRating { get; set; } // ------------------------------------------------------------- @@ -11591,60 +12190,105 @@ namespace EdFi.Ods.Api.Common.Models.Resources.EvaluationElementRating.TPDM /// /// Represents a reference to the EvaluationElementRating resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class EvaluationElementRatingReference : IResourceReference { [DataMember(Name="educationOrganizationId")] + [Key(0)] public long EducationOrganizationId { get; set; } [DataMember(Name="evaluationDate")] + [Key(1)] public DateTime EvaluationDate { get; set; } [DataMember(Name="evaluationElementTitle")] + [Key(2)] public string EvaluationElementTitle { get; set; } [DataMember(Name="evaluationObjectiveTitle")] + [Key(3)] public string EvaluationObjectiveTitle { get; set; } [DataMember(Name="evaluationPeriodDescriptor")][DescriptorExists("EvaluationPeriodDescriptor")] + [IgnoreMember] public string EvaluationPeriodDescriptor { get; set; } + [Key(4)][JsonIgnore] + public int EvaluationPeriodDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("EvaluationPeriodDescriptor", EvaluationPeriodDescriptor); } + set { EvaluationPeriodDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("EvaluationPeriodDescriptor", value); } + } + [DataMember(Name="evaluationTitle")] + [Key(5)] public string EvaluationTitle { get; set; } [DataMember(Name="performanceEvaluationTitle")] + [Key(6)] public string PerformanceEvaluationTitle { get; set; } [DataMember(Name="performanceEvaluationTypeDescriptor")][DescriptorExists("PerformanceEvaluationTypeDescriptor")] + [IgnoreMember] public string PerformanceEvaluationTypeDescriptor { get; set; } + [Key(7)][JsonIgnore] + public int PerformanceEvaluationTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("PerformanceEvaluationTypeDescriptor", PerformanceEvaluationTypeDescriptor); } + set { PerformanceEvaluationTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("PerformanceEvaluationTypeDescriptor", value); } + } + [DataMember(Name="personId")] + [Key(8)] public string PersonId { get; set; } [DataMember(Name="schoolYear")] + [Key(9)] public short SchoolYear { get; set; } [DataMember(Name="sourceSystemDescriptor")][DescriptorExists("SourceSystemDescriptor")] + [IgnoreMember] public string SourceSystemDescriptor { get; set; } + [Key(10)][JsonIgnore] + public int SourceSystemDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("SourceSystemDescriptor", SourceSystemDescriptor); } + set { SourceSystemDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("SourceSystemDescriptor", value); } + } + [DataMember(Name="termDescriptor")][DescriptorExists("TermDescriptor")] + [IgnoreMember] public string TermDescriptor { get; set; } + [Key(11)][JsonIgnore] + public int TermDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("TermDescriptor", TermDescriptor); } + set { TermDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("TermDescriptor", value); } + } + /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(12)] 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. /// + [Key(13)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(14)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -11768,7 +12412,7 @@ private Link CreateLink() /// /// A class which represents the tpdm.EvaluationElementRating table of the EvaluationElementRating aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class EvaluationElementRating : Entities.Common.TPDM.IEvaluationElementRating, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -11801,6 +12445,7 @@ public EvaluationElementRating() /// The unique identifier for the EvaluationElementRating resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -11824,6 +12469,7 @@ private EvaluationElement.TPDM.EvaluationElementReference ImplicitEvaluationElem } [DataMember(Name="evaluationElementReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public EvaluationElement.TPDM.EvaluationElementReference EvaluationElementReference { @@ -11857,6 +12503,7 @@ private EvaluationObjectiveRating.TPDM.EvaluationObjectiveRatingReference Implic } [DataMember(Name="evaluationObjectiveRatingReference")] + [Key(2)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public EvaluationObjectiveRating.TPDM.EvaluationObjectiveRatingReference EvaluationObjectiveRatingReference { @@ -12341,6 +12988,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, MinimumLength=1, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText] [DataMember(Name="areaOfRefinement")] + [Key(3)] public string AreaOfRefinement { get; set; } /// @@ -12349,6 +12997,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, MinimumLength=1, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText] [DataMember(Name="areaOfReinforcement")] + [Key(4)] public string AreaOfReinforcement { get; set; } /// @@ -12357,6 +13006,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, MinimumLength=1, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText] [DataMember(Name="comments")] + [Key(5)] public string Comments { get; set; } /// @@ -12365,14 +13015,23 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="evaluationElementRatingLevelDescriptor")][DescriptorExists("EvaluationElementRatingLevelDescriptor")] + [IgnoreMember] public string EvaluationElementRatingLevelDescriptor { get; set; } + [Key(6)][JsonIgnore] + public int EvaluationElementRatingLevelDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("EvaluationElementRatingLevelDescriptor", EvaluationElementRatingLevelDescriptor); } + set { EvaluationElementRatingLevelDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("EvaluationElementRatingLevelDescriptor", value); } + } + /// /// Feedback provided to the evaluated person. /// // NOT in a reference, NOT a lookup column [NonDefaultStringLength(2048, MinimumLength=1, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText] [DataMember(Name="feedback")] + [Key(7)] public string Feedback { get; set; } // ------------------------------------------------------------- @@ -12409,6 +13068,7 @@ public System.Collections.IDictionary Extensions { [NoDuplicateMembers] [DataMember(Name="results")] + [Key(8)] public ICollection EvaluationElementRatingResults { get { return _evaluationElementRatingResults; } @@ -12441,9 +13101,11 @@ public ICollection EvaluationElementRatingResults // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(9)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(10)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -12896,7 +13558,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the tpdm.EvaluationElementRatingResult table of the EvaluationElementRating aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] [NoUnsuppliedRequiredMembersWithMeaningfulDefaults] public class EvaluationElementRatingResult : Entities.Common.TPDM.IEvaluationElementRatingResult, IHasRequiredMembersWithMeaningfulDefaultValues @@ -12940,6 +13602,7 @@ Entities.Common.TPDM.IEvaluationElementRating Entities.Common.TPDM.IEvaluationEl set { SetEvaluationElementRating(value); } } + [IgnoreMember] public Entities.Common.TPDM.IEvaluationElementRating EvaluationElementRating { set { SetEvaluationElementRating(value); } @@ -12959,6 +13622,7 @@ private void SetEvaluationElementRating(Entities.Common.TPDM.IEvaluationElementR // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-999.999", "999.999", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="rating")] + [Key(0)] public decimal Rating { get => _rating; @@ -12977,6 +13641,7 @@ public decimal Rating [RequiredWithNonDefault] [NonDefaultStringLength(50, MinimumLength=1, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="ratingResultTitle")] + [Key(1)] public string RatingResultTitle { get; set; } // ------------------------------------------------------------- @@ -13058,7 +13723,15 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="resultDatatypeTypeDescriptor")][DescriptorExists("ResultDatatypeTypeDescriptor")] + [IgnoreMember] public string ResultDatatypeTypeDescriptor { get; set; } + + [Key(2)][JsonIgnore] + public int ResultDatatypeTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ResultDatatypeTypeDescriptor", ResultDatatypeTypeDescriptor); } + set { ResultDatatypeTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ResultDatatypeTypeDescriptor", value); } + } // ------------------------------------------------------------- IEnumerable IHasRequiredMembersWithMeaningfulDefaultValues.GetUnassignedMemberNames() @@ -13172,7 +13845,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.EvaluationElementRatingLevelDescr /// /// A class which represents the tpdm.EvaluationElementRatingLevelDescriptor table of the EvaluationElementRatingLevelDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class EvaluationElementRatingLevelDescriptor : Entities.Common.TPDM.IEvaluationElementRatingLevelDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -13201,6 +13874,7 @@ public class EvaluationElementRatingLevelDescriptor : Entities.Common.TPDM.IEval /// The unique identifier for the EvaluationElementRatingLevelDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -13285,6 +13959,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -13293,6 +13968,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -13300,6 +13976,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -13307,6 +13984,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -13316,6 +13994,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -13325,6 +14004,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -13368,9 +14048,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -13443,48 +14125,82 @@ namespace EdFi.Ods.Api.Common.Models.Resources.EvaluationObjective.TPDM /// /// Represents a reference to the EvaluationObjective resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class EvaluationObjectiveReference : IResourceReference { [DataMember(Name="educationOrganizationId")] + [Key(0)] public long EducationOrganizationId { get; set; } [DataMember(Name="evaluationObjectiveTitle")] + [Key(1)] public string EvaluationObjectiveTitle { get; set; } [DataMember(Name="evaluationPeriodDescriptor")][DescriptorExists("EvaluationPeriodDescriptor")] + [IgnoreMember] public string EvaluationPeriodDescriptor { get; set; } + [Key(2)][JsonIgnore] + public int EvaluationPeriodDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("EvaluationPeriodDescriptor", EvaluationPeriodDescriptor); } + set { EvaluationPeriodDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("EvaluationPeriodDescriptor", value); } + } + [DataMember(Name="evaluationTitle")] + [Key(3)] public string EvaluationTitle { get; set; } [DataMember(Name="performanceEvaluationTitle")] + [Key(4)] public string PerformanceEvaluationTitle { get; set; } [DataMember(Name="performanceEvaluationTypeDescriptor")][DescriptorExists("PerformanceEvaluationTypeDescriptor")] + [IgnoreMember] public string PerformanceEvaluationTypeDescriptor { get; set; } + [Key(5)][JsonIgnore] + public int PerformanceEvaluationTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("PerformanceEvaluationTypeDescriptor", PerformanceEvaluationTypeDescriptor); } + set { PerformanceEvaluationTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("PerformanceEvaluationTypeDescriptor", value); } + } + [DataMember(Name="schoolYear")] + [Key(6)] public short SchoolYear { get; set; } [DataMember(Name="termDescriptor")][DescriptorExists("TermDescriptor")] + [IgnoreMember] public string TermDescriptor { get; set; } + [Key(7)][JsonIgnore] + public int TermDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("TermDescriptor", TermDescriptor); } + set { TermDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("TermDescriptor", value); } + } + /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(8)] 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. /// + [Key(9)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(10)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -13588,7 +14304,7 @@ private Link CreateLink() /// /// A class which represents the tpdm.EvaluationObjective table of the EvaluationObjective aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class EvaluationObjective : Entities.Common.TPDM.IEvaluationObjective, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -13621,6 +14337,7 @@ public EvaluationObjective() /// The unique identifier for the EvaluationObjective resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -13644,6 +14361,7 @@ private Evaluation.TPDM.EvaluationReference ImplicitEvaluationReference } [DataMember(Name="evaluationReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Evaluation.TPDM.EvaluationReference EvaluationReference { @@ -13700,6 +14418,7 @@ long Entities.Common.TPDM.IEvaluationObjective.EducationOrganizationId [RequiredWithNonDefault] [NonDefaultStringLength(50, MinimumLength=1, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="evaluationObjectiveTitle")] + [Key(2)] public string EvaluationObjectiveTitle { get; set; } /// @@ -13961,6 +14680,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="evaluationObjectiveDescription")] + [Key(3)] public string EvaluationObjectiveDescription { get; set; } /// @@ -13969,14 +14689,23 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="evaluationTypeDescriptor")][DescriptorExists("EvaluationTypeDescriptor")] + [IgnoreMember] public string EvaluationTypeDescriptor { get; set; } + [Key(4)][JsonIgnore] + public int EvaluationTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("EvaluationTypeDescriptor", EvaluationTypeDescriptor); } + set { EvaluationTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("EvaluationTypeDescriptor", value); } + } + /// /// The maximum summary numerical rating or score for the evaluation Objective. /// // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-999.999", "999.999", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="maxRating")] + [Key(5)] public decimal? MaxRating { get; set; } /// @@ -13985,6 +14714,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-999.999", "999.999", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="minRating")] + [Key(6)] public decimal? MinRating { get; set; } /// @@ -13992,6 +14722,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="sortOrder")] + [Key(7)] public int? SortOrder { get; set; } // ------------------------------------------------------------- @@ -14028,6 +14759,7 @@ public System.Collections.IDictionary Extensions { [NoDuplicateMembers] [DataMember(Name="ratingLevels")] + [Key(8)] public ICollection EvaluationObjectiveRatingLevels { get { return _evaluationObjectiveRatingLevels; } @@ -14060,9 +14792,11 @@ public ICollection EvaluationObjectiveRatingLeve // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(9)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(10)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -14238,7 +14972,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the tpdm.EvaluationObjectiveRatingLevel table of the EvaluationObjective aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class EvaluationObjectiveRatingLevel : Entities.Common.TPDM.IEvaluationObjectiveRatingLevel { @@ -14281,6 +15015,7 @@ Entities.Common.TPDM.IEvaluationObjective Entities.Common.TPDM.IEvaluationObject set { SetEvaluationObjective(value); } } + [IgnoreMember] public Entities.Common.TPDM.IEvaluationObjective EvaluationObjective { set { SetEvaluationObjective(value); } @@ -14298,7 +15033,15 @@ private void SetEvaluationObjective(Entities.Common.TPDM.IEvaluationObjective va [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="evaluationRatingLevelDescriptor")][DescriptorExists("EvaluationRatingLevelDescriptor")] + [IgnoreMember] public string EvaluationRatingLevelDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int EvaluationRatingLevelDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("EvaluationRatingLevelDescriptor", EvaluationRatingLevelDescriptor); } + set { EvaluationRatingLevelDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("EvaluationRatingLevelDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -14369,6 +15112,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-999.999", "999.999", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="maxRating")] + [Key(1)] public decimal? MaxRating { get; set; } /// @@ -14377,6 +15121,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-999.999", "999.999", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="minRating")] + [Key(2)] public decimal? MinRating { get; set; } // ------------------------------------------------------------- @@ -14483,57 +15228,101 @@ namespace EdFi.Ods.Api.Common.Models.Resources.EvaluationObjectiveRating.TPDM /// /// Represents a reference to the EvaluationObjectiveRating resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class EvaluationObjectiveRatingReference : IResourceReference { [DataMember(Name="educationOrganizationId")] + [Key(0)] public long EducationOrganizationId { get; set; } [DataMember(Name="evaluationDate")] + [Key(1)] public DateTime EvaluationDate { get; set; } [DataMember(Name="evaluationObjectiveTitle")] + [Key(2)] public string EvaluationObjectiveTitle { get; set; } [DataMember(Name="evaluationPeriodDescriptor")][DescriptorExists("EvaluationPeriodDescriptor")] + [IgnoreMember] public string EvaluationPeriodDescriptor { get; set; } + [Key(3)][JsonIgnore] + public int EvaluationPeriodDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("EvaluationPeriodDescriptor", EvaluationPeriodDescriptor); } + set { EvaluationPeriodDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("EvaluationPeriodDescriptor", value); } + } + [DataMember(Name="evaluationTitle")] + [Key(4)] public string EvaluationTitle { get; set; } [DataMember(Name="performanceEvaluationTitle")] + [Key(5)] public string PerformanceEvaluationTitle { get; set; } [DataMember(Name="performanceEvaluationTypeDescriptor")][DescriptorExists("PerformanceEvaluationTypeDescriptor")] + [IgnoreMember] public string PerformanceEvaluationTypeDescriptor { get; set; } + [Key(6)][JsonIgnore] + public int PerformanceEvaluationTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("PerformanceEvaluationTypeDescriptor", PerformanceEvaluationTypeDescriptor); } + set { PerformanceEvaluationTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("PerformanceEvaluationTypeDescriptor", value); } + } + [DataMember(Name="personId")] + [Key(7)] public string PersonId { get; set; } [DataMember(Name="schoolYear")] + [Key(8)] public short SchoolYear { get; set; } [DataMember(Name="sourceSystemDescriptor")][DescriptorExists("SourceSystemDescriptor")] + [IgnoreMember] public string SourceSystemDescriptor { get; set; } + [Key(9)][JsonIgnore] + public int SourceSystemDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("SourceSystemDescriptor", SourceSystemDescriptor); } + set { SourceSystemDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("SourceSystemDescriptor", value); } + } + [DataMember(Name="termDescriptor")][DescriptorExists("TermDescriptor")] + [IgnoreMember] public string TermDescriptor { get; set; } + [Key(10)][JsonIgnore] + public int TermDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("TermDescriptor", TermDescriptor); } + set { TermDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("TermDescriptor", value); } + } + /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(11)] 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. /// + [Key(12)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(13)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -14652,7 +15441,7 @@ private Link CreateLink() /// /// A class which represents the tpdm.EvaluationObjectiveRating table of the EvaluationObjectiveRating aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class EvaluationObjectiveRating : Entities.Common.TPDM.IEvaluationObjectiveRating, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -14685,6 +15474,7 @@ public EvaluationObjectiveRating() /// The unique identifier for the EvaluationObjectiveRating resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -14708,6 +15498,7 @@ private EvaluationObjective.TPDM.EvaluationObjectiveReference ImplicitEvaluation } [DataMember(Name="evaluationObjectiveReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public EvaluationObjective.TPDM.EvaluationObjectiveReference EvaluationObjectiveReference { @@ -14741,6 +15532,7 @@ private EvaluationRating.TPDM.EvaluationRatingReference ImplicitEvaluationRating } [DataMember(Name="evaluationRatingReference")] + [Key(2)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public EvaluationRating.TPDM.EvaluationRatingReference EvaluationRatingReference { @@ -15188,6 +15980,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, MinimumLength=1, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText] [DataMember(Name="comments")] + [Key(3)] public string Comments { get; set; } /// @@ -15196,7 +15989,15 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="objectiveRatingLevelDescriptor")][DescriptorExists("ObjectiveRatingLevelDescriptor")] + [IgnoreMember] public string ObjectiveRatingLevelDescriptor { get; set; } + + [Key(4)][JsonIgnore] + public int ObjectiveRatingLevelDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ObjectiveRatingLevelDescriptor", ObjectiveRatingLevelDescriptor); } + set { ObjectiveRatingLevelDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ObjectiveRatingLevelDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -15232,6 +16033,7 @@ public System.Collections.IDictionary Extensions { [NoDuplicateMembers] [DataMember(Name="results")] + [Key(5)] public ICollection EvaluationObjectiveRatingResults { get { return _evaluationObjectiveRatingResults; } @@ -15264,9 +16066,11 @@ public ICollection EvaluationObjectiveRatingRes // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(6)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(7)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -15687,7 +16491,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the tpdm.EvaluationObjectiveRatingResult table of the EvaluationObjectiveRating aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] [NoUnsuppliedRequiredMembersWithMeaningfulDefaults] public class EvaluationObjectiveRatingResult : Entities.Common.TPDM.IEvaluationObjectiveRatingResult, IHasRequiredMembersWithMeaningfulDefaultValues @@ -15731,6 +16535,7 @@ Entities.Common.TPDM.IEvaluationObjectiveRating Entities.Common.TPDM.IEvaluation set { SetEvaluationObjectiveRating(value); } } + [IgnoreMember] public Entities.Common.TPDM.IEvaluationObjectiveRating EvaluationObjectiveRating { set { SetEvaluationObjectiveRating(value); } @@ -15750,6 +16555,7 @@ private void SetEvaluationObjectiveRating(Entities.Common.TPDM.IEvaluationObject // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-999.999", "999.999", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="rating")] + [Key(0)] public decimal Rating { get => _rating; @@ -15768,6 +16574,7 @@ public decimal Rating [RequiredWithNonDefault] [NonDefaultStringLength(50, MinimumLength=1, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="ratingResultTitle")] + [Key(1)] public string RatingResultTitle { get; set; } // ------------------------------------------------------------- @@ -15849,7 +16656,15 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="resultDatatypeTypeDescriptor")][DescriptorExists("ResultDatatypeTypeDescriptor")] + [IgnoreMember] public string ResultDatatypeTypeDescriptor { get; set; } + + [Key(2)][JsonIgnore] + public int ResultDatatypeTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ResultDatatypeTypeDescriptor", ResultDatatypeTypeDescriptor); } + set { ResultDatatypeTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ResultDatatypeTypeDescriptor", value); } + } // ------------------------------------------------------------- IEnumerable IHasRequiredMembersWithMeaningfulDefaultValues.GetUnassignedMemberNames() @@ -15963,7 +16778,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.EvaluationPeriodDescriptor.TPDM /// /// A class which represents the tpdm.EvaluationPeriodDescriptor table of the EvaluationPeriodDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class EvaluationPeriodDescriptor : Entities.Common.TPDM.IEvaluationPeriodDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -15992,6 +16807,7 @@ public class EvaluationPeriodDescriptor : Entities.Common.TPDM.IEvaluationPeriod /// The unique identifier for the EvaluationPeriodDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -16076,6 +16892,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -16084,6 +16901,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -16091,6 +16909,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -16098,6 +16917,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -16107,6 +16927,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -16116,6 +16937,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -16159,9 +16981,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -16234,54 +17058,97 @@ namespace EdFi.Ods.Api.Common.Models.Resources.EvaluationRating.TPDM /// /// Represents a reference to the EvaluationRating resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class EvaluationRatingReference : IResourceReference { [DataMember(Name="educationOrganizationId")] + [Key(0)] public long EducationOrganizationId { get; set; } [DataMember(Name="evaluationDate")] + [Key(1)] public DateTime EvaluationDate { get; set; } [DataMember(Name="evaluationPeriodDescriptor")][DescriptorExists("EvaluationPeriodDescriptor")] + [IgnoreMember] public string EvaluationPeriodDescriptor { get; set; } + [Key(2)][JsonIgnore] + public int EvaluationPeriodDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("EvaluationPeriodDescriptor", EvaluationPeriodDescriptor); } + set { EvaluationPeriodDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("EvaluationPeriodDescriptor", value); } + } + [DataMember(Name="evaluationTitle")] + [Key(3)] public string EvaluationTitle { get; set; } [DataMember(Name="performanceEvaluationTitle")] + [Key(4)] public string PerformanceEvaluationTitle { get; set; } [DataMember(Name="performanceEvaluationTypeDescriptor")][DescriptorExists("PerformanceEvaluationTypeDescriptor")] + [IgnoreMember] public string PerformanceEvaluationTypeDescriptor { get; set; } + [Key(5)][JsonIgnore] + public int PerformanceEvaluationTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("PerformanceEvaluationTypeDescriptor", PerformanceEvaluationTypeDescriptor); } + set { PerformanceEvaluationTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("PerformanceEvaluationTypeDescriptor", value); } + } + [DataMember(Name="personId")] + [Key(6)] public string PersonId { get; set; } [DataMember(Name="schoolYear")] + [Key(7)] public short SchoolYear { get; set; } [DataMember(Name="sourceSystemDescriptor")][DescriptorExists("SourceSystemDescriptor")] + [IgnoreMember] public string SourceSystemDescriptor { get; set; } + [Key(8)][JsonIgnore] + public int SourceSystemDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("SourceSystemDescriptor", SourceSystemDescriptor); } + set { SourceSystemDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("SourceSystemDescriptor", value); } + } + [DataMember(Name="termDescriptor")][DescriptorExists("TermDescriptor")] + [IgnoreMember] public string TermDescriptor { get; set; } + [Key(9)][JsonIgnore] + public int TermDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("TermDescriptor", TermDescriptor); } + set { TermDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("TermDescriptor", value); } + } + /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(10)] 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. /// + [Key(11)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(12)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -16395,7 +17262,7 @@ private Link CreateLink() /// /// A class which represents the tpdm.EvaluationRating table of the EvaluationRating aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class EvaluationRating : Entities.Common.TPDM.IEvaluationRating, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -16429,6 +17296,7 @@ public EvaluationRating() /// The unique identifier for the EvaluationRating resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -16452,6 +17320,7 @@ private Evaluation.TPDM.EvaluationReference ImplicitEvaluationReference } [DataMember(Name="evaluationReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Evaluation.TPDM.EvaluationReference EvaluationReference { @@ -16485,6 +17354,7 @@ private PerformanceEvaluationRating.TPDM.PerformanceEvaluationRatingReference Im } [DataMember(Name="performanceEvaluationRatingReference")] + [Key(2)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public PerformanceEvaluationRating.TPDM.PerformanceEvaluationRatingReference PerformanceEvaluationRatingReference { @@ -16518,6 +17388,7 @@ private Section.EdFi.SectionReference ImplicitSectionReference } [DataMember(Name="sectionReference")] + [Key(3)] [FullyDefinedReference] public Section.EdFi.SectionReference SectionReference { @@ -16577,6 +17448,7 @@ long Entities.Common.TPDM.IEvaluationRating.EducationOrganizationId // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] [DataMember(Name="evaluationDate")] + [Key(4)] public DateTime EvaluationDate { get; set; } /// @@ -16916,6 +17788,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(1, 2147483647, ErrorMessage=ValidationHelpers.RangeMinOnlyMessageFormat)] [DataMember(Name="actualDuration")] + [Key(5)] public int? ActualDuration { get; set; } /// @@ -16924,6 +17797,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, MinimumLength=1, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText] [DataMember(Name="comments")] + [Key(6)] public string Comments { get; set; } /// @@ -16932,16 +17806,32 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="evaluationRatingLevelDescriptor")][DescriptorExists("EvaluationRatingLevelDescriptor")] + [IgnoreMember] public string EvaluationRatingLevelDescriptor { get; set; } + [Key(7)][JsonIgnore] + public int EvaluationRatingLevelDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("EvaluationRatingLevelDescriptor", EvaluationRatingLevelDescriptor); } + set { EvaluationRatingLevelDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("EvaluationRatingLevelDescriptor", value); } + } + /// /// The Status of the poerformance evaluation. /// // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="evaluationRatingStatusDescriptor")][DescriptorExists("EvaluationRatingStatusDescriptor")] + [IgnoreMember] public string EvaluationRatingStatusDescriptor { get; set; } + [Key(8)][JsonIgnore] + public int EvaluationRatingStatusDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("EvaluationRatingStatusDescriptor", EvaluationRatingStatusDescriptor); } + set { EvaluationRatingStatusDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("EvaluationRatingStatusDescriptor", value); } + } + /// /// The local code assigned by the School that identifies the course offering provided for the instruction of students. /// @@ -17084,6 +17974,7 @@ public System.Collections.IDictionary Extensions { [NoDuplicateMembers] [DataMember(Name="results")] + [Key(9)] public ICollection EvaluationRatingResults { get { return _evaluationRatingResults; } @@ -17114,6 +18005,7 @@ public ICollection EvaluationRatingResults [NoDuplicateMembers] [DataMember(Name="reviewers")] + [Key(10)] public ICollection EvaluationRatingReviewers { get { return _evaluationRatingReviewers; } @@ -17146,9 +18038,11 @@ public ICollection EvaluationRatingReviewers // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(11)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(12)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -17588,7 +18482,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the tpdm.EvaluationRatingResult table of the EvaluationRating aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] [NoUnsuppliedRequiredMembersWithMeaningfulDefaults] public class EvaluationRatingResult : Entities.Common.TPDM.IEvaluationRatingResult, IHasRequiredMembersWithMeaningfulDefaultValues @@ -17632,6 +18526,7 @@ Entities.Common.TPDM.IEvaluationRating Entities.Common.TPDM.IEvaluationRatingRes set { SetEvaluationRating(value); } } + [IgnoreMember] public Entities.Common.TPDM.IEvaluationRating EvaluationRating { set { SetEvaluationRating(value); } @@ -17651,6 +18546,7 @@ private void SetEvaluationRating(Entities.Common.TPDM.IEvaluationRating value) // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-999.999", "999.999", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="rating")] + [Key(0)] public decimal Rating { get => _rating; @@ -17669,6 +18565,7 @@ public decimal Rating [RequiredWithNonDefault] [NonDefaultStringLength(50, MinimumLength=1, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="ratingResultTitle")] + [Key(1)] public string RatingResultTitle { get; set; } // ------------------------------------------------------------- @@ -17750,7 +18647,15 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="resultDatatypeTypeDescriptor")][DescriptorExists("ResultDatatypeTypeDescriptor")] + [IgnoreMember] public string ResultDatatypeTypeDescriptor { get; set; } + + [Key(2)][JsonIgnore] + public int ResultDatatypeTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ResultDatatypeTypeDescriptor", ResultDatatypeTypeDescriptor); } + set { ResultDatatypeTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ResultDatatypeTypeDescriptor", value); } + } // ------------------------------------------------------------- IEnumerable IHasRequiredMembersWithMeaningfulDefaultValues.GetUnassignedMemberNames() @@ -17859,7 +18764,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the tpdm.EvaluationRatingReviewer table of the EvaluationRating aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class EvaluationRatingReviewer : Entities.Common.TPDM.IEvaluationRatingReviewer, IValidatableObject { @@ -17904,6 +18809,7 @@ private Person.EdFi.PersonReference ImplicitReviewerPersonReference } [DataMember(Name="reviewerPersonReference")] + [Key(0)] [FullyDefinedReference] public Person.EdFi.PersonReference ReviewerPersonReference { @@ -17936,6 +18842,7 @@ Entities.Common.TPDM.IEvaluationRating Entities.Common.TPDM.IEvaluationRatingRev set { SetEvaluationRating(value); } } + [IgnoreMember] public Entities.Common.TPDM.IEvaluationRating EvaluationRating { set { SetEvaluationRating(value); } @@ -17953,6 +18860,7 @@ private void SetEvaluationRating(Entities.Common.TPDM.IEvaluationRating value) [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="firstName")] + [Key(1)] public string FirstName { get; set; } /// @@ -17962,6 +18870,7 @@ private void SetEvaluationRating(Entities.Common.TPDM.IEvaluationRating value) [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="lastSurname")] + [Key(2)] public string LastSurname { get; set; } // ------------------------------------------------------------- @@ -18096,6 +19005,7 @@ string Entities.Common.TPDM.IEvaluationRatingReviewer.ReviewerSourceSystemDescri /// [DataMember(Name = "receivedTraining")] + [Key(3)] public EvaluationRatingReviewerReceivedTraining EvaluationRatingReviewerReceivedTraining { get; set; } Entities.Common.TPDM.IEvaluationRatingReviewerReceivedTraining Entities.Common.TPDM.IEvaluationRatingReviewer.EvaluationRatingReviewerReceivedTraining @@ -18270,7 +19180,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the tpdm.EvaluationRatingReviewerReceivedTraining table of the EvaluationRating aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class EvaluationRatingReviewerReceivedTraining : Entities.Common.TPDM.IEvaluationRatingReviewerReceivedTraining { @@ -18313,6 +19223,7 @@ Entities.Common.TPDM.IEvaluationRatingReviewer Entities.Common.TPDM.IEvaluationR set { SetEvaluationRatingReviewer(value); } } + [IgnoreMember] public Entities.Common.TPDM.IEvaluationRatingReviewer EvaluationRatingReviewer { set { SetEvaluationRatingReviewer(value); } @@ -18382,6 +19293,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="interRaterReliabilityScore")] + [Key(0)] public int? InterRaterReliabilityScore { get; set; } /// @@ -18389,6 +19301,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="receivedTrainingDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(1)] public DateTime? ReceivedTrainingDate { get; set; } // ------------------------------------------------------------- @@ -18495,7 +19408,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.EvaluationRatingLevelDescriptor.T /// /// A class which represents the tpdm.EvaluationRatingLevelDescriptor table of the EvaluationRatingLevelDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class EvaluationRatingLevelDescriptor : Entities.Common.TPDM.IEvaluationRatingLevelDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -18524,6 +19437,7 @@ public class EvaluationRatingLevelDescriptor : Entities.Common.TPDM.IEvaluationR /// The unique identifier for the EvaluationRatingLevelDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -18608,6 +19522,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -18616,6 +19531,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -18623,6 +19539,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -18630,6 +19547,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -18639,6 +19557,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -18648,6 +19567,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -18691,9 +19611,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -18766,7 +19688,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.EvaluationRatingStatusDescriptor. /// /// A class which represents the tpdm.EvaluationRatingStatusDescriptor table of the EvaluationRatingStatusDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class EvaluationRatingStatusDescriptor : Entities.Common.TPDM.IEvaluationRatingStatusDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -18795,6 +19717,7 @@ public class EvaluationRatingStatusDescriptor : Entities.Common.TPDM.IEvaluation /// The unique identifier for the EvaluationRatingStatusDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -18879,6 +19802,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -18887,6 +19811,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -18894,6 +19819,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -18901,6 +19827,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -18910,6 +19837,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -18919,6 +19847,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -18962,9 +19891,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -19037,7 +19968,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.EvaluationTypeDescriptor.TPDM /// /// A class which represents the tpdm.EvaluationTypeDescriptor table of the EvaluationTypeDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class EvaluationTypeDescriptor : Entities.Common.TPDM.IEvaluationTypeDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -19066,6 +19997,7 @@ public class EvaluationTypeDescriptor : Entities.Common.TPDM.IEvaluationTypeDesc /// The unique identifier for the EvaluationTypeDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -19150,6 +20082,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -19158,6 +20091,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -19165,6 +20099,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -19172,6 +20107,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -19181,6 +20117,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -19190,6 +20127,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -19233,9 +20171,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -19308,14 +20248,23 @@ namespace EdFi.Ods.Api.Common.Models.Resources.FinancialAid.TPDM /// /// Represents a reference to the FinancialAid resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class FinancialAidReference : IResourceReference { [DataMember(Name="aidTypeDescriptor")][DescriptorExists("AidTypeDescriptor")] + [IgnoreMember] public string AidTypeDescriptor { get; set; } + [Key(0)][JsonIgnore] + public int AidTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("AidTypeDescriptor", AidTypeDescriptor); } + set { AidTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("AidTypeDescriptor", value); } + } + [DataMember(Name="beginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(1)] public DateTime BeginDate { get; set; } [DataMember(Name="studentUniqueId")] @@ -19333,17 +20282,22 @@ public string StudentUniqueId /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(2)] 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. /// + [Key(3)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(4)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -19422,7 +20376,7 @@ private Link CreateLink() /// /// A class which represents the tpdm.FinancialAid table of the FinancialAid aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class FinancialAid : Entities.Common.TPDM.IFinancialAid, IHasETag, IDateVersionedEntity { @@ -19451,6 +20405,7 @@ public class FinancialAid : Entities.Common.TPDM.IFinancialAid, IHasETag, IDateV /// The unique identifier for the FinancialAid resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -19474,6 +20429,7 @@ private Student.EdFi.StudentReference ImplicitStudentReference } [DataMember(Name="studentReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Student.EdFi.StudentReference StudentReference { @@ -19505,14 +20461,23 @@ public Student.EdFi.StudentReference StudentReference [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="aidTypeDescriptor")][DescriptorExists("AidTypeDescriptor")] + [IgnoreMember] public string AidTypeDescriptor { get; set; } + [Key(2)][JsonIgnore] + public int AidTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("AidTypeDescriptor", AidTypeDescriptor); } + set { AidTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("AidTypeDescriptor", value); } + } + /// /// The date the award was designated. Note: Date interpretation may vary. Ed-Fi recommends inclusive dates, but states may define dates as inclusive or exclusive. For calculations, align with local guidelines. /// // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] [DataMember(Name="beginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime BeginDate { get; set; } /// @@ -19620,6 +20585,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-999999999999999.9999", "999999999999999.9999", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="aidAmount")] + [Key(4)] public decimal? AidAmount { get; set; } /// @@ -19628,6 +20594,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="aidConditionDescription")] + [Key(5)] public string AidConditionDescription { get; set; } /// @@ -19635,6 +20602,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="endDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(6)] public DateTime? EndDate { get; set; } /// @@ -19642,6 +20610,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="pellGrantRecipient")] + [Key(7)] public bool? PellGrantRecipient { get; set; } // ------------------------------------------------------------- @@ -19680,9 +20649,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(8)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(9)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -19769,7 +20740,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.GenderDescriptor.TPDM /// /// A class which represents the tpdm.GenderDescriptor table of the GenderDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class GenderDescriptor : Entities.Common.TPDM.IGenderDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -19798,6 +20769,7 @@ public class GenderDescriptor : Entities.Common.TPDM.IGenderDescriptor, Entities /// The unique identifier for the GenderDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -19882,6 +20854,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -19890,6 +20863,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -19897,6 +20871,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -19904,6 +20879,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -19913,6 +20889,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -19922,6 +20899,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -19965,9 +20943,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -20040,7 +21020,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.ObjectiveRatingLevelDescriptor.TP /// /// A class which represents the tpdm.ObjectiveRatingLevelDescriptor table of the ObjectiveRatingLevelDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class ObjectiveRatingLevelDescriptor : Entities.Common.TPDM.IObjectiveRatingLevelDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -20069,6 +21049,7 @@ public class ObjectiveRatingLevelDescriptor : Entities.Common.TPDM.IObjectiveRat /// The unique identifier for the ObjectiveRatingLevelDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -20153,6 +21134,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -20161,6 +21143,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -20168,6 +21151,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -20175,6 +21159,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -20184,6 +21169,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -20193,6 +21179,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -20236,9 +21223,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -20311,42 +21300,74 @@ namespace EdFi.Ods.Api.Common.Models.Resources.PerformanceEvaluation.TPDM /// /// Represents a reference to the PerformanceEvaluation resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class PerformanceEvaluationReference : IResourceReference { [DataMember(Name="educationOrganizationId")] + [Key(0)] public long EducationOrganizationId { get; set; } [DataMember(Name="evaluationPeriodDescriptor")][DescriptorExists("EvaluationPeriodDescriptor")] + [IgnoreMember] public string EvaluationPeriodDescriptor { get; set; } + [Key(1)][JsonIgnore] + public int EvaluationPeriodDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("EvaluationPeriodDescriptor", EvaluationPeriodDescriptor); } + set { EvaluationPeriodDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("EvaluationPeriodDescriptor", value); } + } + [DataMember(Name="performanceEvaluationTitle")] + [Key(2)] public string PerformanceEvaluationTitle { get; set; } [DataMember(Name="performanceEvaluationTypeDescriptor")][DescriptorExists("PerformanceEvaluationTypeDescriptor")] + [IgnoreMember] public string PerformanceEvaluationTypeDescriptor { get; set; } + [Key(3)][JsonIgnore] + public int PerformanceEvaluationTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("PerformanceEvaluationTypeDescriptor", PerformanceEvaluationTypeDescriptor); } + set { PerformanceEvaluationTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("PerformanceEvaluationTypeDescriptor", value); } + } + [DataMember(Name="schoolYear")] + [Key(4)] public short SchoolYear { get; set; } [DataMember(Name="termDescriptor")][DescriptorExists("TermDescriptor")] + [IgnoreMember] public string TermDescriptor { get; set; } + [Key(5)][JsonIgnore] + public int TermDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("TermDescriptor", TermDescriptor); } + set { TermDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("TermDescriptor", value); } + } + /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(6)] 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. /// + [Key(7)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(8)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -20440,7 +21461,7 @@ private Link CreateLink() /// /// A class which represents the tpdm.PerformanceEvaluation table of the PerformanceEvaluation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class PerformanceEvaluation : Entities.Common.TPDM.IPerformanceEvaluation, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -20474,6 +21495,7 @@ public PerformanceEvaluation() /// The unique identifier for the PerformanceEvaluation resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -20497,6 +21519,7 @@ private EducationOrganization.EdFi.EducationOrganizationReference ImplicitEducat } [DataMember(Name="educationOrganizationReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public EducationOrganization.EdFi.EducationOrganizationReference EducationOrganizationReference { @@ -20530,6 +21553,7 @@ private SchoolYearType.EdFi.SchoolYearTypeReference ImplicitSchoolYearTypeRefere } [DataMember(Name="schoolYearTypeReference")] + [Key(2)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public SchoolYearType.EdFi.SchoolYearTypeReference SchoolYearTypeReference { @@ -20586,8 +21610,16 @@ long Entities.Common.TPDM.IPerformanceEvaluation.EducationOrganizationId [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="evaluationPeriodDescriptor")][DescriptorExists("EvaluationPeriodDescriptor")] + [IgnoreMember] public string EvaluationPeriodDescriptor { get; set; } + [Key(3)][JsonIgnore] + public int EvaluationPeriodDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("EvaluationPeriodDescriptor", EvaluationPeriodDescriptor); } + set { EvaluationPeriodDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("EvaluationPeriodDescriptor", value); } + } + /// /// An assigned unique identifier for the performance evaluation. /// @@ -20595,6 +21627,7 @@ long Entities.Common.TPDM.IPerformanceEvaluation.EducationOrganizationId [RequiredWithNonDefault] [NonDefaultStringLength(50, MinimumLength=1, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="performanceEvaluationTitle")] + [Key(4)] public string PerformanceEvaluationTitle { get; set; } /// @@ -20604,8 +21637,16 @@ long Entities.Common.TPDM.IPerformanceEvaluation.EducationOrganizationId [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="performanceEvaluationTypeDescriptor")][DescriptorExists("PerformanceEvaluationTypeDescriptor")] + [IgnoreMember] public string PerformanceEvaluationTypeDescriptor { get; set; } + [Key(5)][JsonIgnore] + public int PerformanceEvaluationTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("PerformanceEvaluationTypeDescriptor", PerformanceEvaluationTypeDescriptor); } + set { PerformanceEvaluationTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("PerformanceEvaluationTypeDescriptor", value); } + } + /// /// The identifier for the school year. /// @@ -20638,7 +21679,15 @@ short Entities.Common.TPDM.IPerformanceEvaluation.SchoolYear [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="termDescriptor")][DescriptorExists("TermDescriptor")] + [IgnoreMember] public string TermDescriptor { get; set; } + + [Key(6)][JsonIgnore] + public int TermDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("TermDescriptor", TermDescriptor); } + set { TermDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("TermDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -20745,14 +21794,23 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="academicSubjectDescriptor")][DescriptorExists("AcademicSubjectDescriptor")] + [IgnoreMember] public string AcademicSubjectDescriptor { get; set; } + [Key(7)][JsonIgnore] + public int AcademicSubjectDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("AcademicSubjectDescriptor", AcademicSubjectDescriptor); } + set { AcademicSubjectDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("AcademicSubjectDescriptor", value); } + } + /// /// The long description of the Performance Evaluation. /// // NOT in a reference, NOT a lookup column [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="performanceEvaluationDescription")] + [Key(8)] public string PerformanceEvaluationDescription { get; set; } // ------------------------------------------------------------- @@ -20789,6 +21847,7 @@ public System.Collections.IDictionary Extensions { [NoDuplicateMembers] [DataMember(Name="gradeLevels")] + [Key(9)] public ICollection PerformanceEvaluationGradeLevels { get { return _performanceEvaluationGradeLevels; } @@ -20819,6 +21878,7 @@ public ICollection PerformanceEvaluationGradeLe [NoDuplicateMembers] [DataMember(Name="ratingLevels")] + [Key(10)] public ICollection PerformanceEvaluationRatingLevels { get { return _performanceEvaluationRatingLevels; } @@ -20851,9 +21911,11 @@ public ICollection PerformanceEvaluationRating // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(11)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(12)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -21065,7 +22127,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the tpdm.PerformanceEvaluationGradeLevel table of the PerformanceEvaluation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class PerformanceEvaluationGradeLevel : Entities.Common.TPDM.IPerformanceEvaluationGradeLevel { @@ -21108,6 +22170,7 @@ Entities.Common.TPDM.IPerformanceEvaluation Entities.Common.TPDM.IPerformanceEva set { SetPerformanceEvaluation(value); } } + [IgnoreMember] public Entities.Common.TPDM.IPerformanceEvaluation PerformanceEvaluation { set { SetPerformanceEvaluation(value); } @@ -21125,7 +22188,15 @@ private void SetPerformanceEvaluation(Entities.Common.TPDM.IPerformanceEvaluatio [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="gradeLevelDescriptor")][DescriptorExists("GradeLevelDescriptor")] + [IgnoreMember] public string GradeLevelDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int GradeLevelDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("GradeLevelDescriptor", GradeLevelDescriptor); } + set { GradeLevelDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("GradeLevelDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -21289,7 +22360,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the tpdm.PerformanceEvaluationRatingLevel table of the PerformanceEvaluation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class PerformanceEvaluationRatingLevel : Entities.Common.TPDM.IPerformanceEvaluationRatingLevel { @@ -21332,6 +22403,7 @@ Entities.Common.TPDM.IPerformanceEvaluation Entities.Common.TPDM.IPerformanceEva set { SetPerformanceEvaluation(value); } } + [IgnoreMember] public Entities.Common.TPDM.IPerformanceEvaluation PerformanceEvaluation { set { SetPerformanceEvaluation(value); } @@ -21349,7 +22421,15 @@ private void SetPerformanceEvaluation(Entities.Common.TPDM.IPerformanceEvaluatio [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="evaluationRatingLevelDescriptor")][DescriptorExists("EvaluationRatingLevelDescriptor")] + [IgnoreMember] public string EvaluationRatingLevelDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int EvaluationRatingLevelDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("EvaluationRatingLevelDescriptor", EvaluationRatingLevelDescriptor); } + set { EvaluationRatingLevelDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("EvaluationRatingLevelDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -21420,6 +22500,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-999.999", "999.999", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="maxRating")] + [Key(1)] public decimal? MaxRating { get; set; } /// @@ -21428,6 +22509,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-999.999", "999.999", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="minRating")] + [Key(2)] public decimal? MinRating { get; set; } // ------------------------------------------------------------- @@ -21534,48 +22616,89 @@ namespace EdFi.Ods.Api.Common.Models.Resources.PerformanceEvaluationRating.TPDM /// /// Represents a reference to the PerformanceEvaluationRating resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class PerformanceEvaluationRatingReference : IResourceReference { [DataMember(Name="educationOrganizationId")] + [Key(0)] public long EducationOrganizationId { get; set; } [DataMember(Name="evaluationPeriodDescriptor")][DescriptorExists("EvaluationPeriodDescriptor")] + [IgnoreMember] public string EvaluationPeriodDescriptor { get; set; } + [Key(1)][JsonIgnore] + public int EvaluationPeriodDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("EvaluationPeriodDescriptor", EvaluationPeriodDescriptor); } + set { EvaluationPeriodDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("EvaluationPeriodDescriptor", value); } + } + [DataMember(Name="performanceEvaluationTitle")] + [Key(2)] public string PerformanceEvaluationTitle { get; set; } [DataMember(Name="performanceEvaluationTypeDescriptor")][DescriptorExists("PerformanceEvaluationTypeDescriptor")] + [IgnoreMember] public string PerformanceEvaluationTypeDescriptor { get; set; } + [Key(3)][JsonIgnore] + public int PerformanceEvaluationTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("PerformanceEvaluationTypeDescriptor", PerformanceEvaluationTypeDescriptor); } + set { PerformanceEvaluationTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("PerformanceEvaluationTypeDescriptor", value); } + } + [DataMember(Name="personId")] + [Key(4)] public string PersonId { get; set; } [DataMember(Name="schoolYear")] + [Key(5)] public short SchoolYear { get; set; } [DataMember(Name="sourceSystemDescriptor")][DescriptorExists("SourceSystemDescriptor")] + [IgnoreMember] public string SourceSystemDescriptor { get; set; } + [Key(6)][JsonIgnore] + public int SourceSystemDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("SourceSystemDescriptor", SourceSystemDescriptor); } + set { SourceSystemDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("SourceSystemDescriptor", value); } + } + [DataMember(Name="termDescriptor")][DescriptorExists("TermDescriptor")] + [IgnoreMember] public string TermDescriptor { get; set; } + [Key(7)][JsonIgnore] + public int TermDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("TermDescriptor", TermDescriptor); } + set { TermDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("TermDescriptor", value); } + } + /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(8)] 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. /// + [Key(9)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(10)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -21679,7 +22802,7 @@ private Link CreateLink() /// /// A class which represents the tpdm.PerformanceEvaluationRating table of the PerformanceEvaluationRating aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class PerformanceEvaluationRating : Entities.Common.TPDM.IPerformanceEvaluationRating, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -21713,6 +22836,7 @@ public PerformanceEvaluationRating() /// The unique identifier for the PerformanceEvaluationRating resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -21736,6 +22860,7 @@ private PerformanceEvaluation.TPDM.PerformanceEvaluationReference ImplicitPerfor } [DataMember(Name="performanceEvaluationReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public PerformanceEvaluation.TPDM.PerformanceEvaluationReference PerformanceEvaluationReference { @@ -21769,6 +22894,7 @@ private Person.EdFi.PersonReference ImplicitPersonReference } [DataMember(Name="personReference")] + [Key(2)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Person.EdFi.PersonReference PersonReference { @@ -22098,6 +23224,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] [DataMember(Name="actualDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime ActualDate { get; set; } /// @@ -22106,6 +23233,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(1, 2147483647, ErrorMessage=ValidationHelpers.RangeMinOnlyMessageFormat)] [DataMember(Name="actualDuration")] + [Key(4)] public int? ActualDuration { get; set; } /// @@ -22113,6 +23241,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="actualTime")][JsonConverter(typeof(UtcTimeConverter))] + [Key(5)] public TimeSpan? ActualTime { get; set; } /// @@ -22120,6 +23249,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="announced")] + [Key(6)] public bool? Announced { get; set; } /// @@ -22128,6 +23258,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, MinimumLength=1, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText] [DataMember(Name="comments")] + [Key(7)] public string Comments { get; set; } /// @@ -22136,21 +23267,38 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="coteachingStyleObservedDescriptor")][DescriptorExists("CoteachingStyleObservedDescriptor")] + [IgnoreMember] public string CoteachingStyleObservedDescriptor { get; set; } + [Key(8)][JsonIgnore] + public int CoteachingStyleObservedDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("CoteachingStyleObservedDescriptor", CoteachingStyleObservedDescriptor); } + set { CoteachingStyleObservedDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("CoteachingStyleObservedDescriptor", value); } + } + /// /// The rating level achieved based upon the rating or score. /// // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="performanceEvaluationRatingLevelDescriptor")][DescriptorExists("PerformanceEvaluationRatingLevelDescriptor")] + [IgnoreMember] public string PerformanceEvaluationRatingLevelDescriptor { get; set; } + [Key(9)][JsonIgnore] + public int PerformanceEvaluationRatingLevelDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("PerformanceEvaluationRatingLevelDescriptor", PerformanceEvaluationRatingLevelDescriptor); } + set { PerformanceEvaluationRatingLevelDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("PerformanceEvaluationRatingLevelDescriptor", value); } + } + /// /// The month, day, and year on which the performance evaluation was scheduled. /// // NOT in a reference, NOT a lookup column [DataMember(Name="scheduleDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(10)] public DateTime? ScheduleDate { get; set; } // ------------------------------------------------------------- @@ -22187,6 +23335,7 @@ public System.Collections.IDictionary Extensions { [NoDuplicateMembers] [DataMember(Name="results")] + [Key(11)] public ICollection PerformanceEvaluationRatingResults { get { return _performanceEvaluationRatingResults; } @@ -22217,6 +23366,7 @@ public ICollection PerformanceEvaluationRatin [NoDuplicateMembers] [DataMember(Name="reviewers")] + [Key(12)] public ICollection PerformanceEvaluationRatingReviewers { get { return _performanceEvaluationRatingReviewers; } @@ -22249,9 +23399,11 @@ public ICollection PerformanceEvaluationRat // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(13)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(14)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -22470,7 +23622,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the tpdm.PerformanceEvaluationRatingResult table of the PerformanceEvaluationRating aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] [NoUnsuppliedRequiredMembersWithMeaningfulDefaults] public class PerformanceEvaluationRatingResult : Entities.Common.TPDM.IPerformanceEvaluationRatingResult, IHasRequiredMembersWithMeaningfulDefaultValues @@ -22514,6 +23666,7 @@ Entities.Common.TPDM.IPerformanceEvaluationRating Entities.Common.TPDM.IPerforma set { SetPerformanceEvaluationRating(value); } } + [IgnoreMember] public Entities.Common.TPDM.IPerformanceEvaluationRating PerformanceEvaluationRating { set { SetPerformanceEvaluationRating(value); } @@ -22533,6 +23686,7 @@ private void SetPerformanceEvaluationRating(Entities.Common.TPDM.IPerformanceEva // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-999.999", "999.999", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="rating")] + [Key(0)] public decimal Rating { get => _rating; @@ -22551,6 +23705,7 @@ public decimal Rating [RequiredWithNonDefault] [NonDefaultStringLength(50, MinimumLength=1, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="ratingResultTitle")] + [Key(1)] public string RatingResultTitle { get; set; } // ------------------------------------------------------------- @@ -22632,7 +23787,15 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="resultDatatypeTypeDescriptor")][DescriptorExists("ResultDatatypeTypeDescriptor")] + [IgnoreMember] public string ResultDatatypeTypeDescriptor { get; set; } + + [Key(2)][JsonIgnore] + public int ResultDatatypeTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ResultDatatypeTypeDescriptor", ResultDatatypeTypeDescriptor); } + set { ResultDatatypeTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ResultDatatypeTypeDescriptor", value); } + } // ------------------------------------------------------------- IEnumerable IHasRequiredMembersWithMeaningfulDefaultValues.GetUnassignedMemberNames() @@ -22741,7 +23904,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the tpdm.PerformanceEvaluationRatingReviewer table of the PerformanceEvaluationRating aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class PerformanceEvaluationRatingReviewer : Entities.Common.TPDM.IPerformanceEvaluationRatingReviewer, IValidatableObject { @@ -22786,6 +23949,7 @@ private Person.EdFi.PersonReference ImplicitReviewerPersonReference } [DataMember(Name="reviewerPersonReference")] + [Key(0)] [FullyDefinedReference] public Person.EdFi.PersonReference ReviewerPersonReference { @@ -22818,6 +23982,7 @@ Entities.Common.TPDM.IPerformanceEvaluationRating Entities.Common.TPDM.IPerforma set { SetPerformanceEvaluationRating(value); } } + [IgnoreMember] public Entities.Common.TPDM.IPerformanceEvaluationRating PerformanceEvaluationRating { set { SetPerformanceEvaluationRating(value); } @@ -22835,6 +24000,7 @@ private void SetPerformanceEvaluationRating(Entities.Common.TPDM.IPerformanceEva [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="firstName")] + [Key(1)] public string FirstName { get; set; } /// @@ -22844,6 +24010,7 @@ private void SetPerformanceEvaluationRating(Entities.Common.TPDM.IPerformanceEva [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="lastSurname")] + [Key(2)] public string LastSurname { get; set; } // ------------------------------------------------------------- @@ -22978,6 +24145,7 @@ string Entities.Common.TPDM.IPerformanceEvaluationRatingReviewer.ReviewerSourceS /// [DataMember(Name = "receivedTraining")] + [Key(3)] public PerformanceEvaluationRatingReviewerReceivedTraining PerformanceEvaluationRatingReviewerReceivedTraining { get; set; } Entities.Common.TPDM.IPerformanceEvaluationRatingReviewerReceivedTraining Entities.Common.TPDM.IPerformanceEvaluationRatingReviewer.PerformanceEvaluationRatingReviewerReceivedTraining @@ -23152,7 +24320,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the tpdm.PerformanceEvaluationRatingReviewerReceivedTraining table of the PerformanceEvaluationRating aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class PerformanceEvaluationRatingReviewerReceivedTraining : Entities.Common.TPDM.IPerformanceEvaluationRatingReviewerReceivedTraining { @@ -23195,6 +24363,7 @@ Entities.Common.TPDM.IPerformanceEvaluationRatingReviewer Entities.Common.TPDM.I set { SetPerformanceEvaluationRatingReviewer(value); } } + [IgnoreMember] public Entities.Common.TPDM.IPerformanceEvaluationRatingReviewer PerformanceEvaluationRatingReviewer { set { SetPerformanceEvaluationRatingReviewer(value); } @@ -23264,6 +24433,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="interRaterReliabilityScore")] + [Key(0)] public int? InterRaterReliabilityScore { get; set; } /// @@ -23271,6 +24441,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="receivedTrainingDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(1)] public DateTime? ReceivedTrainingDate { get; set; } // ------------------------------------------------------------- @@ -23377,7 +24548,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.PerformanceEvaluationRatingLevelD /// /// A class which represents the tpdm.PerformanceEvaluationRatingLevelDescriptor table of the PerformanceEvaluationRatingLevelDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class PerformanceEvaluationRatingLevelDescriptor : Entities.Common.TPDM.IPerformanceEvaluationRatingLevelDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -23406,6 +24577,7 @@ public class PerformanceEvaluationRatingLevelDescriptor : Entities.Common.TPDM.I /// The unique identifier for the PerformanceEvaluationRatingLevelDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -23490,6 +24662,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -23498,6 +24671,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -23505,6 +24679,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -23512,6 +24687,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -23521,6 +24697,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -23530,6 +24707,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -23573,9 +24751,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -23648,7 +24828,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.PerformanceEvaluationTypeDescript /// /// A class which represents the tpdm.PerformanceEvaluationTypeDescriptor table of the PerformanceEvaluationTypeDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class PerformanceEvaluationTypeDescriptor : Entities.Common.TPDM.IPerformanceEvaluationTypeDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -23677,6 +24857,7 @@ public class PerformanceEvaluationTypeDescriptor : Entities.Common.TPDM.IPerform /// The unique identifier for the PerformanceEvaluationTypeDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -23761,6 +24942,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -23769,6 +24951,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -23776,6 +24959,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -23783,6 +24967,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -23792,6 +24977,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -23801,6 +24987,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -23844,9 +25031,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -23919,54 +25108,90 @@ namespace EdFi.Ods.Api.Common.Models.Resources.RubricDimension.TPDM /// /// Represents a reference to the RubricDimension resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class RubricDimensionReference : IResourceReference { [DataMember(Name="educationOrganizationId")] + [Key(0)] public long EducationOrganizationId { get; set; } [DataMember(Name="evaluationElementTitle")] + [Key(1)] public string EvaluationElementTitle { get; set; } [DataMember(Name="evaluationObjectiveTitle")] + [Key(2)] public string EvaluationObjectiveTitle { get; set; } [DataMember(Name="evaluationPeriodDescriptor")][DescriptorExists("EvaluationPeriodDescriptor")] + [IgnoreMember] public string EvaluationPeriodDescriptor { get; set; } + [Key(3)][JsonIgnore] + public int EvaluationPeriodDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("EvaluationPeriodDescriptor", EvaluationPeriodDescriptor); } + set { EvaluationPeriodDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("EvaluationPeriodDescriptor", value); } + } + [DataMember(Name="evaluationTitle")] + [Key(4)] public string EvaluationTitle { get; set; } [DataMember(Name="performanceEvaluationTitle")] + [Key(5)] public string PerformanceEvaluationTitle { get; set; } [DataMember(Name="performanceEvaluationTypeDescriptor")][DescriptorExists("PerformanceEvaluationTypeDescriptor")] + [IgnoreMember] public string PerformanceEvaluationTypeDescriptor { get; set; } + [Key(6)][JsonIgnore] + public int PerformanceEvaluationTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("PerformanceEvaluationTypeDescriptor", PerformanceEvaluationTypeDescriptor); } + set { PerformanceEvaluationTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("PerformanceEvaluationTypeDescriptor", value); } + } + [DataMember(Name="rubricRating")] + [Key(7)] public int RubricRating { get; set; } [DataMember(Name="schoolYear")] + [Key(8)] public short SchoolYear { get; set; } [DataMember(Name="termDescriptor")][DescriptorExists("TermDescriptor")] + [IgnoreMember] public string TermDescriptor { get; set; } + [Key(9)][JsonIgnore] + public int TermDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("TermDescriptor", TermDescriptor); } + set { TermDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("TermDescriptor", value); } + } + /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(10)] 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. /// + [Key(11)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(12)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -24080,7 +25305,7 @@ private Link CreateLink() /// /// A class which represents the tpdm.RubricDimension table of the RubricDimension aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] [NoUnsuppliedRequiredMembersWithMeaningfulDefaults] public class RubricDimension : Entities.Common.TPDM.IRubricDimension, IHasETag, IDateVersionedEntity, IHasRequiredMembersWithMeaningfulDefaultValues @@ -24110,6 +25335,7 @@ public class RubricDimension : Entities.Common.TPDM.IRubricDimension, IHasETag, /// The unique identifier for the RubricDimension resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -24133,6 +25359,7 @@ private EvaluationElement.TPDM.EvaluationElementReference ImplicitEvaluationElem } [DataMember(Name="evaluationElementReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public EvaluationElement.TPDM.EvaluationElementReference EvaluationElementReference { @@ -24332,6 +25559,7 @@ string Entities.Common.TPDM.IRubricDimension.PerformanceEvaluationTypeDescriptor /// // NOT in a reference, NOT a lookup column [DataMember(Name="rubricRating")] + [Key(2)] public int RubricRating { get => _rubricRating; @@ -24527,6 +25755,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="criterionDescription")] + [Key(3)] public string CriterionDescription { get; set; } /// @@ -24534,6 +25763,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="dimensionOrder")] + [Key(4)] public int? DimensionOrder { get; set; } /// @@ -24542,7 +25772,15 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="rubricRatingLevelDescriptor")][DescriptorExists("RubricRatingLevelDescriptor")] + [IgnoreMember] public string RubricRatingLevelDescriptor { get; set; } + + [Key(5)][JsonIgnore] + public int RubricRatingLevelDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("RubricRatingLevelDescriptor", RubricRatingLevelDescriptor); } + set { RubricRatingLevelDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("RubricRatingLevelDescriptor", value); } + } // ------------------------------------------------------------- IEnumerable IHasRequiredMembersWithMeaningfulDefaultValues.GetUnassignedMemberNames() @@ -24588,9 +25826,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(6)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(7)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -24677,7 +25917,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.RubricRatingLevelDescriptor.TPDM /// /// A class which represents the tpdm.RubricRatingLevelDescriptor table of the RubricRatingLevelDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class RubricRatingLevelDescriptor : Entities.Common.TPDM.IRubricRatingLevelDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -24706,6 +25946,7 @@ public class RubricRatingLevelDescriptor : Entities.Common.TPDM.IRubricRatingLev /// The unique identifier for the RubricRatingLevelDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -24790,6 +26031,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -24798,6 +26040,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -24805,6 +26048,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -24812,6 +26056,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -24821,6 +26066,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -24830,6 +26076,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -24873,9 +26120,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -24948,7 +26197,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.School.EdFi.Extensions.TPDM /// /// A class which represents the tpdm.SchoolExtension table of the School aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] [Display(Name="TPDM")] public class SchoolExtension : Entities.Common.TPDM.ISchoolExtension, IChildEntity @@ -24994,6 +26243,7 @@ private PostSecondaryInstitution.EdFi.PostSecondaryInstitutionReference Implicit } [DataMember(Name="postSecondaryInstitutionReference")] + [Key(0)] [FullyDefinedReference] public PostSecondaryInstitution.EdFi.PostSecondaryInstitutionReference PostSecondaryInstitutionReference { @@ -25026,6 +26276,7 @@ Entities.Common.EdFi.ISchool Entities.Common.TPDM.ISchoolExtension.School set { SetSchool(value); } } + [IgnoreMember] public Entities.Common.EdFi.ISchool School { set { SetSchool(value); } @@ -25233,7 +26484,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.SurveyResponse.EdFi.Extensions.TP /// /// A class which represents the tpdm.SurveyResponseExtension table of the SurveyResponse aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] [Display(Name="TPDM")] public class SurveyResponseExtension : Entities.Common.TPDM.ISurveyResponseExtension, IChildEntity @@ -25279,6 +26530,7 @@ private Person.EdFi.PersonReference ImplicitPersonReference } [DataMember(Name="personReference")] + [Key(0)] [FullyDefinedReference] public Person.EdFi.PersonReference PersonReference { @@ -25311,6 +26563,7 @@ Entities.Common.EdFi.ISurveyResponse Entities.Common.TPDM.ISurveyResponseExtensi set { SetSurveyResponse(value); } } + [IgnoreMember] public Entities.Common.EdFi.ISurveyResponse SurveyResponse { set { SetSurveyResponse(value); } @@ -25549,39 +26802,56 @@ namespace EdFi.Ods.Api.Common.Models.Resources.SurveyResponsePersonTargetAssocia /// /// Represents a reference to the SurveyResponsePersonTargetAssociation resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class SurveyResponsePersonTargetAssociationReference : IResourceReference { [DataMember(Name="namespace")] + [Key(0)] public string Namespace { get; set; } [DataMember(Name="personId")] + [Key(1)] public string PersonId { get; set; } [DataMember(Name="sourceSystemDescriptor")][DescriptorExists("SourceSystemDescriptor")] + [IgnoreMember] public string SourceSystemDescriptor { get; set; } + [Key(2)][JsonIgnore] + public int SourceSystemDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("SourceSystemDescriptor", SourceSystemDescriptor); } + set { SourceSystemDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("SourceSystemDescriptor", value); } + } + [DataMember(Name="surveyIdentifier")] + [Key(3)] public string SurveyIdentifier { get; set; } [DataMember(Name="surveyResponseIdentifier")] + [Key(4)] public string SurveyResponseIdentifier { get; set; } /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(5)] 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. /// + [Key(6)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(7)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -25670,7 +26940,7 @@ private Link CreateLink() /// /// A class which represents the tpdm.SurveyResponsePersonTargetAssociation table of the SurveyResponsePersonTargetAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class SurveyResponsePersonTargetAssociation : Entities.Common.TPDM.ISurveyResponsePersonTargetAssociation, IHasETag, IDateVersionedEntity { @@ -25699,6 +26969,7 @@ public class SurveyResponsePersonTargetAssociation : Entities.Common.TPDM.ISurve /// The unique identifier for the SurveyResponsePersonTargetAssociation resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -25722,6 +26993,7 @@ private Person.EdFi.PersonReference ImplicitPersonReference } [DataMember(Name="personReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Person.EdFi.PersonReference PersonReference { @@ -25755,6 +27027,7 @@ private SurveyResponse.EdFi.SurveyResponseReference ImplicitSurveyResponseRefere } [DataMember(Name="surveyResponseReference")] + [Key(2)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public SurveyResponse.EdFi.SurveyResponseReference SurveyResponseReference { @@ -26024,9 +27297,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(3)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(4)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -26127,42 +27402,60 @@ namespace EdFi.Ods.Api.Common.Models.Resources.SurveySectionResponsePersonTarget /// /// Represents a reference to the SurveySectionResponsePersonTargetAssociation resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class SurveySectionResponsePersonTargetAssociationReference : IResourceReference { [DataMember(Name="namespace")] + [Key(0)] public string Namespace { get; set; } [DataMember(Name="personId")] + [Key(1)] public string PersonId { get; set; } [DataMember(Name="sourceSystemDescriptor")][DescriptorExists("SourceSystemDescriptor")] + [IgnoreMember] public string SourceSystemDescriptor { get; set; } + [Key(2)][JsonIgnore] + public int SourceSystemDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("SourceSystemDescriptor", SourceSystemDescriptor); } + set { SourceSystemDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("SourceSystemDescriptor", value); } + } + [DataMember(Name="surveyIdentifier")] + [Key(3)] public string SurveyIdentifier { get; set; } [DataMember(Name="surveyResponseIdentifier")] + [Key(4)] public string SurveyResponseIdentifier { get; set; } [DataMember(Name="surveySectionTitle")] + [Key(5)] public string SurveySectionTitle { get; set; } /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(6)] 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. /// + [Key(7)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(8)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -26256,7 +27549,7 @@ private Link CreateLink() /// /// A class which represents the tpdm.SurveySectionResponsePersonTargetAssociation table of the SurveySectionResponsePersonTargetAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class SurveySectionResponsePersonTargetAssociation : Entities.Common.TPDM.ISurveySectionResponsePersonTargetAssociation, IHasETag, IDateVersionedEntity { @@ -26285,6 +27578,7 @@ public class SurveySectionResponsePersonTargetAssociation : Entities.Common.TPDM /// The unique identifier for the SurveySectionResponsePersonTargetAssociation resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -26308,6 +27602,7 @@ private Person.EdFi.PersonReference ImplicitPersonReference } [DataMember(Name="personReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Person.EdFi.PersonReference PersonReference { @@ -26341,6 +27636,7 @@ private SurveySectionResponse.EdFi.SurveySectionResponseReference ImplicitSurvey } [DataMember(Name="surveySectionResponseReference")] + [Key(2)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public SurveySectionResponse.EdFi.SurveySectionResponseReference SurveySectionResponseReference { @@ -26643,9 +27939,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(3)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(4)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- diff --git a/Utilities/CodeGeneration/EdFi.Ods.CodeGen.Tests/Approval/5.2.0/DataStandard_520_ApprovalTests.Verify.Standard_Std_5.2.0_Resources_Resources.generated.approved.cs b/Utilities/CodeGeneration/EdFi.Ods.CodeGen.Tests/Approval/5.2.0/DataStandard_520_ApprovalTests.Verify.Standard_Std_5.2.0_Resources_Resources.generated.approved.cs index 1757c176ff..ba50c48506 100644 --- a/Utilities/CodeGeneration/EdFi.Ods.CodeGen.Tests/Approval/5.2.0/DataStandard_520_ApprovalTests.Verify.Standard_Std_5.2.0_Resources_Resources.generated.approved.cs +++ b/Utilities/CodeGeneration/EdFi.Ods.CodeGen.Tests/Approval/5.2.0/DataStandard_520_ApprovalTests.Verify.Standard_Std_5.2.0_Resources_Resources.generated.approved.cs @@ -22,6 +22,8 @@ using EdFi.Ods.Entities.Common.EdFi; using Newtonsoft.Json; using FluentValidation.Results; +using MessagePack; +using KeyAttribute = MessagePack.KeyAttribute; // Aggregate: AbsenceEventCategoryDescriptor @@ -30,7 +32,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.AbsenceEventCategoryDescriptor.Ed /// /// A class which represents the edfi.AbsenceEventCategoryDescriptor table of the AbsenceEventCategoryDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class AbsenceEventCategoryDescriptor : Entities.Common.EdFi.IAbsenceEventCategoryDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -59,6 +61,7 @@ public class AbsenceEventCategoryDescriptor : Entities.Common.EdFi.IAbsenceEvent /// The unique identifier for the AbsenceEventCategoryDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -143,6 +146,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -151,6 +155,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -158,6 +163,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -165,6 +171,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -174,6 +181,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -183,6 +191,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -226,9 +235,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -301,7 +312,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.AcademicHonorCategoryDescriptor.E /// /// A class which represents the edfi.AcademicHonorCategoryDescriptor table of the AcademicHonorCategoryDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class AcademicHonorCategoryDescriptor : Entities.Common.EdFi.IAcademicHonorCategoryDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -330,6 +341,7 @@ public class AcademicHonorCategoryDescriptor : Entities.Common.EdFi.IAcademicHon /// The unique identifier for the AcademicHonorCategoryDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -414,6 +426,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -422,6 +435,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -429,6 +443,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -436,6 +451,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -445,6 +461,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -454,6 +471,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -497,9 +515,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -572,7 +592,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.AcademicSubjectDescriptor.EdFi /// /// A class which represents the edfi.AcademicSubjectDescriptor table of the AcademicSubjectDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class AcademicSubjectDescriptor : Entities.Common.EdFi.IAcademicSubjectDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -601,6 +621,7 @@ public class AcademicSubjectDescriptor : Entities.Common.EdFi.IAcademicSubjectDe /// The unique identifier for the AcademicSubjectDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -685,6 +706,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -693,6 +715,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -700,6 +723,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -707,6 +731,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -716,6 +741,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -725,6 +751,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -768,9 +795,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -843,30 +872,37 @@ namespace EdFi.Ods.Api.Common.Models.Resources.AcademicWeek.EdFi /// /// Represents a reference to the AcademicWeek resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class AcademicWeekReference : IResourceReference { [DataMember(Name="schoolId")] + [Key(0)] public long SchoolId { get; set; } [DataMember(Name="weekIdentifier")] + [Key(1)] public string WeekIdentifier { get; set; } /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(2)] 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. /// + [Key(3)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(4)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -940,7 +976,7 @@ private Link CreateLink() /// /// A class which represents the edfi.AcademicWeek table of the AcademicWeek aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] [NoUnsuppliedRequiredMembersWithMeaningfulDefaults] public class AcademicWeek : Entities.Common.EdFi.IAcademicWeek, IHasETag, IDateVersionedEntity, IHasRequiredMembersWithMeaningfulDefaultValues, IValidatableObject @@ -970,6 +1006,7 @@ public class AcademicWeek : Entities.Common.EdFi.IAcademicWeek, IHasETag, IDateV /// The unique identifier for the AcademicWeek resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -993,6 +1030,7 @@ private School.EdFi.SchoolReference ImplicitSchoolReference } [DataMember(Name="schoolReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public School.EdFi.SchoolReference SchoolReference { @@ -1049,6 +1087,7 @@ long Entities.Common.EdFi.IAcademicWeek.SchoolId [RequiredWithNonDefault] [NonDefaultStringLength(80, MinimumLength=5, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="weekIdentifier")] + [Key(2)] public string WeekIdentifier { get; set; } // ------------------------------------------------------------- @@ -1121,6 +1160,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] [DataMember(Name="beginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime BeginDate { get; set; } /// @@ -1129,6 +1169,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] [DataMember(Name="endDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime EndDate { get; set; } private bool _totalInstructionalDaysExplicitlyAssigned = false; @@ -1140,6 +1181,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(0, 2147483647, ErrorMessage=ValidationHelpers.RangeMinOnlyMessageFormat)] [DataMember(Name="totalInstructionalDays")] + [Key(5)] public int TotalInstructionalDays { get => _totalInstructionalDays; @@ -1179,6 +1221,7 @@ IEnumerable IHasRequiredMembersWithMeaningfulDefaultValues.GetUnassigned // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "AcademicWeek", "AcademicWeek")] + [Key(6)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -1192,9 +1235,11 @@ IEnumerable IHasRequiredMembersWithMeaningfulDefaultValues.GetUnassigned // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -1333,7 +1378,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.AccommodationDescriptor.EdFi /// /// A class which represents the edfi.AccommodationDescriptor table of the AccommodationDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class AccommodationDescriptor : Entities.Common.EdFi.IAccommodationDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -1362,6 +1407,7 @@ public class AccommodationDescriptor : Entities.Common.EdFi.IAccommodationDescri /// The unique identifier for the AccommodationDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -1446,6 +1492,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -1454,6 +1501,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -1461,6 +1509,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -1468,6 +1517,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -1477,6 +1527,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -1486,6 +1537,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -1529,9 +1581,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -1604,33 +1658,41 @@ namespace EdFi.Ods.Api.Common.Models.Resources.AccountabilityRating.EdFi /// /// Represents a reference to the AccountabilityRating resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class AccountabilityRatingReference : IResourceReference { [DataMember(Name="educationOrganizationId")] + [Key(0)] public long EducationOrganizationId { get; set; } [DataMember(Name="ratingTitle")] + [Key(1)] public string RatingTitle { get; set; } [DataMember(Name="schoolYear")] + [Key(2)] public short SchoolYear { get; set; } /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(3)] 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. /// + [Key(4)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(5)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -1709,7 +1771,7 @@ private Link CreateLink() /// /// A class which represents the edfi.AccountabilityRating table of the AccountabilityRating aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class AccountabilityRating : Entities.Common.EdFi.IAccountabilityRating, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -1738,6 +1800,7 @@ public class AccountabilityRating : Entities.Common.EdFi.IAccountabilityRating, /// The unique identifier for the AccountabilityRating resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -1761,6 +1824,7 @@ private EducationOrganization.EdFi.EducationOrganizationReference ImplicitEducat } [DataMember(Name="educationOrganizationReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public EducationOrganization.EdFi.EducationOrganizationReference EducationOrganizationReference { @@ -1794,6 +1858,7 @@ private SchoolYearType.EdFi.SchoolYearTypeReference ImplicitSchoolYearTypeRefere } [DataMember(Name="schoolYearTypeReference")] + [Key(2)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public SchoolYearType.EdFi.SchoolYearTypeReference SchoolYearTypeReference { @@ -1850,6 +1915,7 @@ long Entities.Common.EdFi.IAccountabilityRating.EducationOrganizationId [RequiredWithNonDefault] [NonDefaultStringLength(60, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="ratingTitle")] + [Key(3)] public string RatingTitle { get; set; } /// @@ -1956,6 +2022,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(35, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="rating")] + [Key(4)] public string Rating { get; set; } /// @@ -1963,6 +2030,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="ratingDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(5)] public DateTime? RatingDate { get; set; } /// @@ -1971,6 +2039,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(35, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="ratingOrganization")] + [Key(6)] public string RatingOrganization { get; set; } /// @@ -1979,6 +2048,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(30, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="ratingProgram")] + [Key(7)] public string RatingProgram { get; set; } // ------------------------------------------------------------- @@ -2001,6 +2071,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "AccountabilityRating", "AccountabilityRating")] + [Key(8)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -2014,9 +2085,11 @@ public override int GetHashCode() // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(9)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(10)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -2169,7 +2242,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.AccountTypeDescriptor.EdFi /// /// A class which represents the edfi.AccountTypeDescriptor table of the AccountTypeDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class AccountTypeDescriptor : Entities.Common.EdFi.IAccountTypeDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -2198,6 +2271,7 @@ public class AccountTypeDescriptor : Entities.Common.EdFi.IAccountTypeDescriptor /// The unique identifier for the AccountTypeDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -2282,6 +2356,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -2290,6 +2365,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -2297,6 +2373,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -2304,6 +2381,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -2313,6 +2391,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -2322,6 +2401,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -2365,9 +2445,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -2440,7 +2522,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.AchievementCategoryDescriptor.EdF /// /// A class which represents the edfi.AchievementCategoryDescriptor table of the AchievementCategoryDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class AchievementCategoryDescriptor : Entities.Common.EdFi.IAchievementCategoryDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -2469,6 +2551,7 @@ public class AchievementCategoryDescriptor : Entities.Common.EdFi.IAchievementCa /// The unique identifier for the AchievementCategoryDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -2553,6 +2636,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -2561,6 +2645,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -2568,6 +2653,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -2575,6 +2661,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -2584,6 +2671,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -2593,6 +2681,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -2636,9 +2725,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -2711,7 +2802,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.AdditionalCreditTypeDescriptor.Ed /// /// A class which represents the edfi.AdditionalCreditTypeDescriptor table of the AdditionalCreditTypeDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class AdditionalCreditTypeDescriptor : Entities.Common.EdFi.IAdditionalCreditTypeDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -2740,6 +2831,7 @@ public class AdditionalCreditTypeDescriptor : Entities.Common.EdFi.IAdditionalCr /// The unique identifier for the AdditionalCreditTypeDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -2824,6 +2916,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -2832,6 +2925,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -2839,6 +2933,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -2846,6 +2941,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -2855,6 +2951,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -2864,6 +2961,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -2907,9 +3005,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -2982,7 +3082,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.AddressTypeDescriptor.EdFi /// /// A class which represents the edfi.AddressTypeDescriptor table of the AddressTypeDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class AddressTypeDescriptor : Entities.Common.EdFi.IAddressTypeDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -3011,6 +3111,7 @@ public class AddressTypeDescriptor : Entities.Common.EdFi.IAddressTypeDescriptor /// The unique identifier for the AddressTypeDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -3095,6 +3196,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -3103,6 +3205,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -3110,6 +3213,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -3117,6 +3221,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -3126,6 +3231,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -3135,6 +3241,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -3178,9 +3285,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -3253,7 +3362,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.AdministrationEnvironmentDescript /// /// A class which represents the edfi.AdministrationEnvironmentDescriptor table of the AdministrationEnvironmentDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class AdministrationEnvironmentDescriptor : Entities.Common.EdFi.IAdministrationEnvironmentDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -3282,6 +3391,7 @@ public class AdministrationEnvironmentDescriptor : Entities.Common.EdFi.IAdminis /// The unique identifier for the AdministrationEnvironmentDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -3366,6 +3476,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -3374,6 +3485,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -3381,6 +3493,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -3388,6 +3501,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -3397,6 +3511,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -3406,6 +3521,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -3449,9 +3565,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -3524,7 +3642,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.AdministrativeFundingControlDescr /// /// A class which represents the edfi.AdministrativeFundingControlDescriptor table of the AdministrativeFundingControlDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class AdministrativeFundingControlDescriptor : Entities.Common.EdFi.IAdministrativeFundingControlDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -3553,6 +3671,7 @@ public class AdministrativeFundingControlDescriptor : Entities.Common.EdFi.IAdmi /// The unique identifier for the AdministrativeFundingControlDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -3637,6 +3756,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -3645,6 +3765,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -3652,6 +3773,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -3659,6 +3781,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -3668,6 +3791,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -3677,6 +3801,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -3720,9 +3845,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -3795,7 +3922,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.AncestryEthnicOriginDescriptor.Ed /// /// A class which represents the edfi.AncestryEthnicOriginDescriptor table of the AncestryEthnicOriginDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class AncestryEthnicOriginDescriptor : Entities.Common.EdFi.IAncestryEthnicOriginDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -3824,6 +3951,7 @@ public class AncestryEthnicOriginDescriptor : Entities.Common.EdFi.IAncestryEthn /// The unique identifier for the AncestryEthnicOriginDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -3908,6 +4036,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -3916,6 +4045,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -3923,6 +4053,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -3930,6 +4061,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -3939,6 +4071,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -3948,6 +4081,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -3991,9 +4125,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -4066,30 +4202,37 @@ namespace EdFi.Ods.Api.Common.Models.Resources.Assessment.EdFi /// /// Represents a reference to the Assessment resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class AssessmentReference : IResourceReference { [DataMember(Name="assessmentIdentifier")] + [Key(0)] public string AssessmentIdentifier { get; set; } [DataMember(Name="namespace")] + [Key(1)] public string Namespace { get; set; } /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(2)] 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. /// + [Key(3)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(4)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -4163,7 +4306,7 @@ private Link CreateLink() /// /// A class which represents the edfi.Assessment table of the Assessment aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class Assessment : Entities.Common.EdFi.IAssessment, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -4205,6 +4348,7 @@ public Assessment() /// The unique identifier for the Assessment resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -4228,6 +4372,7 @@ private EducationOrganization.EdFi.EducationOrganizationReference ImplicitEducat } [DataMember(Name="educationOrganizationReference")] + [Key(1)] [FullyDefinedReference] public EducationOrganization.EdFi.EducationOrganizationReference EducationOrganizationReference { @@ -4259,6 +4404,7 @@ public EducationOrganization.EdFi.EducationOrganizationReference EducationOrgani [RequiredWithNonDefault] [NonDefaultStringLength(60, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="assessmentIdentifier")] + [Key(2)] public string AssessmentIdentifier { get; set; } /// @@ -4268,6 +4414,7 @@ public EducationOrganization.EdFi.EducationOrganizationReference EducationOrgani [RequiredWithNonDefault] [NonDefaultStringLength(255, MinimumLength=5, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="namespace")] + [Key(3)] public string Namespace { get; set; } // ------------------------------------------------------------- @@ -4340,6 +4487,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="adaptiveAssessment")] + [Key(4)] public bool? AdaptiveAssessment { get; set; } /// @@ -4348,14 +4496,23 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="assessmentCategoryDescriptor")][DescriptorExists("AssessmentCategoryDescriptor")] + [IgnoreMember] public string AssessmentCategoryDescriptor { get; set; } + [Key(5)][JsonIgnore] + public int AssessmentCategoryDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("AssessmentCategoryDescriptor", AssessmentCategoryDescriptor); } + set { AssessmentCategoryDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("AssessmentCategoryDescriptor", value); } + } + /// /// The assessment family this assessment is a member of. /// // NOT in a reference, NOT a lookup column [NonDefaultStringLength(60, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="assessmentFamily")] + [Key(6)] public string AssessmentFamily { get; set; } /// @@ -4364,6 +4521,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(60, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="assessmentForm")] + [Key(7)] public string AssessmentForm { get; set; } /// @@ -4373,6 +4531,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="assessmentTitle")] + [Key(8)] public string AssessmentTitle { get; set; } /// @@ -4380,6 +4539,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="assessmentVersion")] + [Key(9)] public int? AssessmentVersion { get; set; } /// @@ -4415,6 +4575,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-9999999999.99999", "9999999999.99999", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="maxRawScore")] + [Key(10)] public decimal? MaxRawScore { get; set; } /// @@ -4423,6 +4584,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(100, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="nomenclature")] + [Key(11)] public string Nomenclature { get; set; } /// @@ -4430,6 +4592,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="revisionDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(12)] public DateTime? RevisionDate { get; set; } // ------------------------------------------------------------- @@ -4441,6 +4604,7 @@ public override int GetHashCode() /// [DataMember(Name = "contentStandard")] + [Key(13)] public AssessmentContentStandard AssessmentContentStandard { get; set; } Entities.Common.EdFi.IAssessmentContentStandard Entities.Common.EdFi.IAssessment.AssessmentContentStandard @@ -4465,6 +4629,7 @@ Entities.Common.EdFi.IAssessmentContentStandard Entities.Common.EdFi.IAssessment // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "Assessment", "Assessment")] + [Key(14)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -4476,6 +4641,7 @@ Entities.Common.EdFi.IAssessmentContentStandard Entities.Common.EdFi.IAssessment [NoDuplicateMembers][RequiredCollection] [DataMember(Name="academicSubjects")] + [Key(15)] public ICollection AssessmentAcademicSubjects { get { return _assessmentAcademicSubjects; } @@ -4506,6 +4672,7 @@ public ICollection AssessmentAcademicSubjects [NoDuplicateMembers] [DataMember(Name="assessedGradeLevels")] + [Key(16)] public ICollection AssessmentAssessedGradeLevels { get { return _assessmentAssessedGradeLevels; } @@ -4536,6 +4703,7 @@ public ICollection AssessmentAssessedGradeLevels [NoDuplicateMembers] [DataMember(Name="identificationCodes")] + [Key(17)] public ICollection AssessmentIdentificationCodes { get { return _assessmentIdentificationCodes; } @@ -4566,6 +4734,7 @@ public ICollection AssessmentIdentificationCodes [NoDuplicateMembers] [DataMember(Name="languages")] + [Key(18)] public ICollection AssessmentLanguages { get { return _assessmentLanguages; } @@ -4596,6 +4765,7 @@ public ICollection AssessmentLanguages [NoDuplicateMembers] [DataMember(Name="performanceLevels")] + [Key(19)] public ICollection AssessmentPerformanceLevels { get { return _assessmentPerformanceLevels; } @@ -4626,6 +4796,7 @@ public ICollection AssessmentPerformanceLevels [NoDuplicateMembers] [DataMember(Name="periods")] + [Key(20)] public ICollection AssessmentPeriods { get { return _assessmentPeriods; } @@ -4656,6 +4827,7 @@ public ICollection AssessmentPeriods [NoDuplicateMembers] [DataMember(Name="platformTypes")] + [Key(21)] public ICollection AssessmentPlatformTypes { get { return _assessmentPlatformTypes; } @@ -4686,6 +4858,7 @@ public ICollection AssessmentPlatformTypes [NoDuplicateMembers] [DataMember(Name="programs")] + [Key(22)] public ICollection AssessmentPrograms { get { return _assessmentPrograms; } @@ -4716,6 +4889,7 @@ public ICollection AssessmentPrograms [NoDuplicateMembers] [DataMember(Name="scores")] + [Key(23)] public ICollection AssessmentScores { get { return _assessmentScores; } @@ -4746,6 +4920,7 @@ public ICollection AssessmentScores [NoDuplicateMembers] [DataMember(Name="sections")] + [Key(24)] public ICollection AssessmentSections { get { return _assessmentSections; } @@ -4778,9 +4953,11 @@ public ICollection AssessmentSections // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(25)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(26)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -5244,7 +5421,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.AssessmentAcademicSubject table of the Assessment aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class AssessmentAcademicSubject : Entities.Common.EdFi.IAssessmentAcademicSubject, IValidatableObject { @@ -5287,6 +5464,7 @@ Entities.Common.EdFi.IAssessment IAssessmentAcademicSubject.Assessment set { SetAssessment(value); } } + [IgnoreMember] public Entities.Common.EdFi.IAssessment Assessment { set { SetAssessment(value); } @@ -5304,7 +5482,15 @@ private void SetAssessment(Entities.Common.EdFi.IAssessment value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="academicSubjectDescriptor")][DescriptorExists("AcademicSubjectDescriptor")] + [IgnoreMember] public string AcademicSubjectDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int AcademicSubjectDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("AcademicSubjectDescriptor", AcademicSubjectDescriptor); } + set { AcademicSubjectDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("AcademicSubjectDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -5389,6 +5575,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "Assessment", "AssessmentAcademicSubject")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -5525,7 +5712,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.AssessmentAssessedGradeLevel table of the Assessment aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class AssessmentAssessedGradeLevel : Entities.Common.EdFi.IAssessmentAssessedGradeLevel, IValidatableObject { @@ -5568,6 +5755,7 @@ Entities.Common.EdFi.IAssessment IAssessmentAssessedGradeLevel.Assessment set { SetAssessment(value); } } + [IgnoreMember] public Entities.Common.EdFi.IAssessment Assessment { set { SetAssessment(value); } @@ -5585,7 +5773,15 @@ private void SetAssessment(Entities.Common.EdFi.IAssessment value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="gradeLevelDescriptor")][DescriptorExists("GradeLevelDescriptor")] + [IgnoreMember] public string GradeLevelDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int GradeLevelDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("GradeLevelDescriptor", GradeLevelDescriptor); } + set { GradeLevelDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("GradeLevelDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -5670,6 +5866,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "Assessment", "AssessmentAssessedGradeLevel")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -5806,7 +6003,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.AssessmentContentStandard table of the Assessment aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class AssessmentContentStandard : Entities.Common.EdFi.IAssessmentContentStandard, IValidatableObject { @@ -5855,6 +6052,7 @@ private EducationOrganization.EdFi.EducationOrganizationReference ImplicitMandat } [DataMember(Name="mandatingEducationOrganizationReference")] + [Key(0)] [FullyDefinedReference] public EducationOrganization.EdFi.EducationOrganizationReference MandatingEducationOrganizationReference { @@ -5887,6 +6085,7 @@ Entities.Common.EdFi.IAssessment IAssessmentContentStandard.Assessment set { SetAssessment(value); } } + [IgnoreMember] public Entities.Common.EdFi.IAssessment Assessment { set { SetAssessment(value); } @@ -5956,6 +6155,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="beginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(1)] public DateTime? BeginDate { get; set; } /// @@ -5963,6 +6163,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="endDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(2)] public DateTime? EndDate { get; set; } /// @@ -5997,6 +6198,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="publicationDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? PublicationDate { get; set; } /// @@ -6005,13 +6207,22 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="publicationStatusDescriptor")][DescriptorExists("PublicationStatusDescriptor")] + [IgnoreMember] public string PublicationStatusDescriptor { get; set; } + [Key(4)][JsonIgnore] + public int PublicationStatusDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("PublicationStatusDescriptor", PublicationStatusDescriptor); } + set { PublicationStatusDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("PublicationStatusDescriptor", value); } + } + /// /// The year at which this content was first published. /// // NOT in a reference, NOT a lookup column [DataMember(Name="publicationYear")] + [Key(5)] public short? PublicationYear { get; set; } /// @@ -6021,6 +6232,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="title")] + [Key(6)] public string Title { get; set; } /// @@ -6029,6 +6241,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(255, MinimumLength=5, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText] [DataMember(Name="uri")] + [Key(7)] public string URI { get; set; } /// @@ -6037,6 +6250,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="version")] + [Key(8)] public string Version { get; set; } // ------------------------------------------------------------- @@ -6059,6 +6273,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "Assessment", "AssessmentContentStandard")] + [Key(9)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -6070,6 +6285,7 @@ public override int GetHashCode() [NoDuplicateMembers] [DataMember(Name="authors")] + [Key(10)] public ICollection AssessmentContentStandardAuthors { get { return _assessmentContentStandardAuthors; } @@ -6289,7 +6505,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.AssessmentContentStandardAuthor table of the Assessment aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class AssessmentContentStandardAuthor : Entities.Common.EdFi.IAssessmentContentStandardAuthor, IValidatableObject { @@ -6332,6 +6548,7 @@ Entities.Common.EdFi.IAssessmentContentStandard IAssessmentContentStandardAuthor set { SetAssessmentContentStandard(value); } } + [IgnoreMember] public Entities.Common.EdFi.IAssessmentContentStandard AssessmentContentStandard { set { SetAssessmentContentStandard(value); } @@ -6349,6 +6566,7 @@ private void SetAssessmentContentStandard(Entities.Common.EdFi.IAssessmentConten [RequiredWithNonDefault] [NonDefaultStringLength(100, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="author")] + [Key(0)] public string Author { get; set; } // ------------------------------------------------------------- @@ -6434,6 +6652,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "Assessment", "AssessmentContentStandardAuthor")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -6570,7 +6789,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.AssessmentIdentificationCode table of the Assessment aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class AssessmentIdentificationCode : Entities.Common.EdFi.IAssessmentIdentificationCode, IValidatableObject { @@ -6613,6 +6832,7 @@ Entities.Common.EdFi.IAssessment IAssessmentIdentificationCode.Assessment set { SetAssessment(value); } } + [IgnoreMember] public Entities.Common.EdFi.IAssessment Assessment { set { SetAssessment(value); } @@ -6630,7 +6850,15 @@ private void SetAssessment(Entities.Common.EdFi.IAssessment value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="assessmentIdentificationSystemDescriptor")][DescriptorExists("AssessmentIdentificationSystemDescriptor")] + [IgnoreMember] public string AssessmentIdentificationSystemDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int AssessmentIdentificationSystemDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("AssessmentIdentificationSystemDescriptor", AssessmentIdentificationSystemDescriptor); } + set { AssessmentIdentificationSystemDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("AssessmentIdentificationSystemDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -6701,6 +6929,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(60, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="assigningOrganizationIdentificationCode")] + [Key(1)] public string AssigningOrganizationIdentificationCode { get; set; } /// @@ -6710,6 +6939,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(60, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="identificationCode")] + [Key(2)] public string IdentificationCode { get; set; } // ------------------------------------------------------------- @@ -6732,6 +6962,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "Assessment", "AssessmentIdentificationCode")] + [Key(3)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -6868,7 +7099,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.AssessmentLanguage table of the Assessment aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class AssessmentLanguage : Entities.Common.EdFi.IAssessmentLanguage, IValidatableObject { @@ -6911,6 +7142,7 @@ Entities.Common.EdFi.IAssessment IAssessmentLanguage.Assessment set { SetAssessment(value); } } + [IgnoreMember] public Entities.Common.EdFi.IAssessment Assessment { set { SetAssessment(value); } @@ -6928,7 +7160,15 @@ private void SetAssessment(Entities.Common.EdFi.IAssessment value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="languageDescriptor")][DescriptorExists("LanguageDescriptor")] + [IgnoreMember] public string LanguageDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int LanguageDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("LanguageDescriptor", LanguageDescriptor); } + set { LanguageDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("LanguageDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -7013,6 +7253,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "Assessment", "AssessmentLanguage")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -7149,7 +7390,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.AssessmentPerformanceLevel table of the Assessment aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class AssessmentPerformanceLevel : Entities.Common.EdFi.IAssessmentPerformanceLevel, IValidatableObject { @@ -7192,6 +7433,7 @@ Entities.Common.EdFi.IAssessment IAssessmentPerformanceLevel.Assessment set { SetAssessment(value); } } + [IgnoreMember] public Entities.Common.EdFi.IAssessment Assessment { set { SetAssessment(value); } @@ -7209,8 +7451,16 @@ private void SetAssessment(Entities.Common.EdFi.IAssessment value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="assessmentReportingMethodDescriptor")][DescriptorExists("AssessmentReportingMethodDescriptor")] + [IgnoreMember] public string AssessmentReportingMethodDescriptor { get; set; } + [Key(0)][JsonIgnore] + public int AssessmentReportingMethodDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("AssessmentReportingMethodDescriptor", AssessmentReportingMethodDescriptor); } + set { AssessmentReportingMethodDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("AssessmentReportingMethodDescriptor", value); } + } + /// /// The performance level(s) defined for the assessment. /// @@ -7218,7 +7468,15 @@ private void SetAssessment(Entities.Common.EdFi.IAssessment value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="performanceLevelDescriptor")][DescriptorExists("PerformanceLevelDescriptor")] + [IgnoreMember] public string PerformanceLevelDescriptor { get; set; } + + [Key(1)][JsonIgnore] + public int PerformanceLevelDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("PerformanceLevelDescriptor", PerformanceLevelDescriptor); } + set { PerformanceLevelDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("PerformanceLevelDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -7298,6 +7556,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(35, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="maximumScore")] + [Key(2)] public string MaximumScore { get; set; } /// @@ -7306,6 +7565,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(35, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="minimumScore")] + [Key(3)] public string MinimumScore { get; set; } /// @@ -7314,6 +7574,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(60, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="performanceLevelIndicatorName")] + [Key(4)] public string PerformanceLevelIndicatorName { get; set; } /// @@ -7322,7 +7583,15 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="resultDatatypeTypeDescriptor")][DescriptorExists("ResultDatatypeTypeDescriptor")] + [IgnoreMember] public string ResultDatatypeTypeDescriptor { get; set; } + + [Key(5)][JsonIgnore] + public int ResultDatatypeTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ResultDatatypeTypeDescriptor", ResultDatatypeTypeDescriptor); } + set { ResultDatatypeTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ResultDatatypeTypeDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -7344,6 +7613,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "Assessment", "AssessmentPerformanceLevel")] + [Key(6)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -7480,7 +7750,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.AssessmentPeriod table of the Assessment aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class AssessmentPeriod : Entities.Common.EdFi.IAssessmentPeriod, IValidatableObject { @@ -7523,6 +7793,7 @@ Entities.Common.EdFi.IAssessment IAssessmentPeriod.Assessment set { SetAssessment(value); } } + [IgnoreMember] public Entities.Common.EdFi.IAssessment Assessment { set { SetAssessment(value); } @@ -7540,7 +7811,15 @@ private void SetAssessment(Entities.Common.EdFi.IAssessment value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="assessmentPeriodDescriptor")][DescriptorExists("AssessmentPeriodDescriptor")] + [IgnoreMember] public string AssessmentPeriodDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int AssessmentPeriodDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("AssessmentPeriodDescriptor", AssessmentPeriodDescriptor); } + set { AssessmentPeriodDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("AssessmentPeriodDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -7610,6 +7889,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="beginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(1)] public DateTime? BeginDate { get; set; } /// @@ -7617,6 +7897,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="endDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(2)] public DateTime? EndDate { get; set; } // ------------------------------------------------------------- @@ -7639,6 +7920,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "Assessment", "AssessmentPeriod")] + [Key(3)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -7775,7 +8057,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.AssessmentPlatformType table of the Assessment aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class AssessmentPlatformType : Entities.Common.EdFi.IAssessmentPlatformType, IValidatableObject { @@ -7818,6 +8100,7 @@ Entities.Common.EdFi.IAssessment IAssessmentPlatformType.Assessment set { SetAssessment(value); } } + [IgnoreMember] public Entities.Common.EdFi.IAssessment Assessment { set { SetAssessment(value); } @@ -7835,7 +8118,15 @@ private void SetAssessment(Entities.Common.EdFi.IAssessment value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="platformTypeDescriptor")][DescriptorExists("PlatformTypeDescriptor")] + [IgnoreMember] public string PlatformTypeDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int PlatformTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("PlatformTypeDescriptor", PlatformTypeDescriptor); } + set { PlatformTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("PlatformTypeDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -7920,6 +8211,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "Assessment", "AssessmentPlatformType")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -8056,7 +8348,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.AssessmentProgram table of the Assessment aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class AssessmentProgram : Entities.Common.EdFi.IAssessmentProgram, IValidatableObject { @@ -8101,6 +8393,7 @@ private Program.EdFi.ProgramReference ImplicitProgramReference } [DataMember(Name="programReference")] + [Key(0)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Program.EdFi.ProgramReference ProgramReference { @@ -8133,6 +8426,7 @@ Entities.Common.EdFi.IAssessment IAssessmentProgram.Assessment set { SetAssessment(value); } } + [IgnoreMember] public Entities.Common.EdFi.IAssessment Assessment { set { SetAssessment(value); } @@ -8313,6 +8607,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "Assessment", "AssessmentProgram")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -8463,7 +8758,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.AssessmentScore table of the Assessment aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class AssessmentScore : Entities.Common.EdFi.IAssessmentScore, IValidatableObject { @@ -8506,6 +8801,7 @@ Entities.Common.EdFi.IAssessment IAssessmentScore.Assessment set { SetAssessment(value); } } + [IgnoreMember] public Entities.Common.EdFi.IAssessment Assessment { set { SetAssessment(value); } @@ -8523,7 +8819,15 @@ private void SetAssessment(Entities.Common.EdFi.IAssessment value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="assessmentReportingMethodDescriptor")][DescriptorExists("AssessmentReportingMethodDescriptor")] + [IgnoreMember] public string AssessmentReportingMethodDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int AssessmentReportingMethodDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("AssessmentReportingMethodDescriptor", AssessmentReportingMethodDescriptor); } + set { AssessmentReportingMethodDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("AssessmentReportingMethodDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -8594,6 +8898,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(35, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="maximumScore")] + [Key(1)] public string MaximumScore { get; set; } /// @@ -8602,6 +8907,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(35, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="minimumScore")] + [Key(2)] public string MinimumScore { get; set; } /// @@ -8610,7 +8916,15 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="resultDatatypeTypeDescriptor")][DescriptorExists("ResultDatatypeTypeDescriptor")] + [IgnoreMember] public string ResultDatatypeTypeDescriptor { get; set; } + + [Key(3)][JsonIgnore] + public int ResultDatatypeTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ResultDatatypeTypeDescriptor", ResultDatatypeTypeDescriptor); } + set { ResultDatatypeTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ResultDatatypeTypeDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -8632,6 +8946,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "Assessment", "AssessmentScore")] + [Key(4)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -8768,7 +9083,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.AssessmentSection table of the Assessment aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class AssessmentSection : Entities.Common.EdFi.IAssessmentSection, IValidatableObject { @@ -8813,6 +9128,7 @@ private Section.EdFi.SectionReference ImplicitSectionReference } [DataMember(Name="sectionReference")] + [Key(0)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Section.EdFi.SectionReference SectionReference { @@ -8845,6 +9161,7 @@ Entities.Common.EdFi.IAssessment IAssessmentSection.Assessment set { SetAssessment(value); } } + [IgnoreMember] public Entities.Common.EdFi.IAssessment Assessment { set { SetAssessment(value); } @@ -9094,6 +9411,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "Assessment", "AssessmentSection")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -9249,7 +9567,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.AssessmentCategoryDescriptor.EdFi /// /// A class which represents the edfi.AssessmentCategoryDescriptor table of the AssessmentCategoryDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class AssessmentCategoryDescriptor : Entities.Common.EdFi.IAssessmentCategoryDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -9278,6 +9596,7 @@ public class AssessmentCategoryDescriptor : Entities.Common.EdFi.IAssessmentCate /// The unique identifier for the AssessmentCategoryDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -9362,6 +9681,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -9370,6 +9690,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -9377,6 +9698,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -9384,6 +9706,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -9393,6 +9716,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -9402,6 +9726,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -9445,9 +9770,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -9520,7 +9847,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.AssessmentIdentificationSystemDes /// /// A class which represents the edfi.AssessmentIdentificationSystemDescriptor table of the AssessmentIdentificationSystemDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class AssessmentIdentificationSystemDescriptor : Entities.Common.EdFi.IAssessmentIdentificationSystemDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -9549,6 +9876,7 @@ public class AssessmentIdentificationSystemDescriptor : Entities.Common.EdFi.IAs /// The unique identifier for the AssessmentIdentificationSystemDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -9633,6 +9961,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -9641,6 +9970,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -9648,6 +9978,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -9655,6 +9986,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -9664,6 +9996,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -9673,6 +10006,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -9716,9 +10050,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -9791,33 +10127,41 @@ namespace EdFi.Ods.Api.Common.Models.Resources.AssessmentItem.EdFi /// /// Represents a reference to the AssessmentItem resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class AssessmentItemReference : IResourceReference { [DataMember(Name="assessmentIdentifier")] + [Key(0)] public string AssessmentIdentifier { get; set; } [DataMember(Name="identificationCode")] + [Key(1)] public string IdentificationCode { get; set; } [DataMember(Name="namespace")] + [Key(2)] public string Namespace { get; set; } /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(3)] 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. /// + [Key(4)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(5)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -9896,7 +10240,7 @@ private Link CreateLink() /// /// A class which represents the edfi.AssessmentItem table of the AssessmentItem aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class AssessmentItem : Entities.Common.EdFi.IAssessmentItem, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -9930,6 +10274,7 @@ public AssessmentItem() /// The unique identifier for the AssessmentItem resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -9953,6 +10298,7 @@ private Assessment.EdFi.AssessmentReference ImplicitAssessmentReference } [DataMember(Name="assessmentReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Assessment.EdFi.AssessmentReference AssessmentReference { @@ -10009,6 +10355,7 @@ string Entities.Common.EdFi.IAssessmentItem.AssessmentIdentifier [RequiredWithNonDefault] [NonDefaultStringLength(60, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="identificationCode")] + [Key(2)] public string IdentificationCode { get; set; } /// @@ -10114,14 +10461,23 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="assessmentItemCategoryDescriptor")][DescriptorExists("AssessmentItemCategoryDescriptor")] + [IgnoreMember] public string AssessmentItemCategoryDescriptor { get; set; } + [Key(3)][JsonIgnore] + public int AssessmentItemCategoryDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("AssessmentItemCategoryDescriptor", AssessmentItemCategoryDescriptor); } + set { AssessmentItemCategoryDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("AssessmentItemCategoryDescriptor", value); } + } + /// /// The URI (typical a URL) pointing to the entry in an assessment item bank, which describes this content item. /// // NOT in a reference, NOT a lookup column [NonDefaultStringLength(255, MinimumLength=5, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText] [DataMember(Name="assessmentItemURI")] + [Key(4)] public string AssessmentItemURI { get; set; } /// @@ -10130,6 +10486,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(30, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="expectedTimeAssessed")] + [Key(5)] public string ExpectedTimeAssessed { get; set; } /// @@ -10138,6 +10495,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="itemText")] + [Key(6)] public string ItemText { get; set; } /// @@ -10146,6 +10504,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-9999999999.99999", "9999999999.99999", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="maxRawScore")] + [Key(7)] public decimal? MaxRawScore { get; set; } /// @@ -10154,6 +10513,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(100, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="nomenclature")] + [Key(8)] public string Nomenclature { get; set; } // ------------------------------------------------------------- @@ -10176,6 +10536,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "AssessmentItem", "AssessmentItem")] + [Key(9)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -10187,6 +10548,7 @@ public override int GetHashCode() [NoDuplicateMembers] [DataMember(Name="learningStandards")] + [Key(10)] public ICollection AssessmentItemLearningStandards { get { return _assessmentItemLearningStandards; } @@ -10217,6 +10579,7 @@ public ICollection AssessmentItemLearningStandar [NoDuplicateMembers] [DataMember(Name="possibleResponses")] + [Key(11)] public ICollection AssessmentItemPossibleResponses { get { return _assessmentItemPossibleResponses; } @@ -10249,9 +10612,11 @@ public ICollection AssessmentItemPossibleRespons // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(12)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(13)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -10471,7 +10836,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.AssessmentItemLearningStandard table of the AssessmentItem aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class AssessmentItemLearningStandard : Entities.Common.EdFi.IAssessmentItemLearningStandard, IValidatableObject { @@ -10516,6 +10881,7 @@ private LearningStandard.EdFi.LearningStandardReference ImplicitLearningStandard } [DataMember(Name="learningStandardReference")] + [Key(0)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public LearningStandard.EdFi.LearningStandardReference LearningStandardReference { @@ -10548,6 +10914,7 @@ Entities.Common.EdFi.IAssessmentItem IAssessmentItemLearningStandard.AssessmentI set { SetAssessmentItem(value); } } + [IgnoreMember] public Entities.Common.EdFi.IAssessmentItem AssessmentItem { set { SetAssessmentItem(value); } @@ -10665,6 +11032,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "AssessmentItem", "AssessmentItemLearningStandard")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -10815,7 +11183,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.AssessmentItemPossibleResponse table of the AssessmentItem aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class AssessmentItemPossibleResponse : Entities.Common.EdFi.IAssessmentItemPossibleResponse, IValidatableObject { @@ -10858,6 +11226,7 @@ Entities.Common.EdFi.IAssessmentItem IAssessmentItemPossibleResponse.AssessmentI set { SetAssessmentItem(value); } } + [IgnoreMember] public Entities.Common.EdFi.IAssessmentItem AssessmentItem { set { SetAssessmentItem(value); } @@ -10875,6 +11244,7 @@ private void SetAssessmentItem(Entities.Common.EdFi.IAssessmentItem value) [RequiredWithNonDefault] [NonDefaultStringLength(60, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="responseValue")] + [Key(0)] public string ResponseValue { get; set; } // ------------------------------------------------------------- @@ -10945,6 +11315,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="correctResponse")] + [Key(1)] public bool? CorrectResponse { get; set; } /// @@ -10953,6 +11324,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="responseDescription")] + [Key(2)] public string ResponseDescription { get; set; } // ------------------------------------------------------------- @@ -10975,6 +11347,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "AssessmentItem", "AssessmentItemPossibleResponse")] + [Key(3)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -11116,7 +11489,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.AssessmentItemCategoryDescriptor. /// /// A class which represents the edfi.AssessmentItemCategoryDescriptor table of the AssessmentItemCategoryDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class AssessmentItemCategoryDescriptor : Entities.Common.EdFi.IAssessmentItemCategoryDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -11145,6 +11518,7 @@ public class AssessmentItemCategoryDescriptor : Entities.Common.EdFi.IAssessment /// The unique identifier for the AssessmentItemCategoryDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -11229,6 +11603,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -11237,6 +11612,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -11244,6 +11620,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -11251,6 +11628,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -11260,6 +11638,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -11269,6 +11648,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -11312,9 +11692,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -11387,7 +11769,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.AssessmentItemResultDescriptor.Ed /// /// A class which represents the edfi.AssessmentItemResultDescriptor table of the AssessmentItemResultDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class AssessmentItemResultDescriptor : Entities.Common.EdFi.IAssessmentItemResultDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -11416,6 +11798,7 @@ public class AssessmentItemResultDescriptor : Entities.Common.EdFi.IAssessmentIt /// The unique identifier for the AssessmentItemResultDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -11500,6 +11883,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -11508,6 +11892,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -11515,6 +11900,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -11522,6 +11908,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -11531,6 +11918,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -11540,6 +11928,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -11583,9 +11972,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -11658,7 +12049,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.AssessmentPeriodDescriptor.EdFi /// /// A class which represents the edfi.AssessmentPeriodDescriptor table of the AssessmentPeriodDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class AssessmentPeriodDescriptor : Entities.Common.EdFi.IAssessmentPeriodDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -11687,6 +12078,7 @@ public class AssessmentPeriodDescriptor : Entities.Common.EdFi.IAssessmentPeriod /// The unique identifier for the AssessmentPeriodDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -11771,6 +12163,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -11779,6 +12172,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -11786,6 +12180,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -11793,6 +12188,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -11802,6 +12198,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -11811,6 +12208,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -11854,9 +12252,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -11929,7 +12329,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.AssessmentReportingMethodDescript /// /// A class which represents the edfi.AssessmentReportingMethodDescriptor table of the AssessmentReportingMethodDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class AssessmentReportingMethodDescriptor : Entities.Common.EdFi.IAssessmentReportingMethodDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -11958,6 +12358,7 @@ public class AssessmentReportingMethodDescriptor : Entities.Common.EdFi.IAssessm /// The unique identifier for the AssessmentReportingMethodDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -12042,6 +12443,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -12050,6 +12452,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -12057,6 +12460,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -12064,6 +12468,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -12073,6 +12478,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -12082,6 +12488,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -12125,9 +12532,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -12200,33 +12609,41 @@ namespace EdFi.Ods.Api.Common.Models.Resources.AssessmentScoreRangeLearningStand /// /// Represents a reference to the AssessmentScoreRangeLearningStandard resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class AssessmentScoreRangeLearningStandardReference : IResourceReference { [DataMember(Name="assessmentIdentifier")] + [Key(0)] public string AssessmentIdentifier { get; set; } [DataMember(Name="namespace")] + [Key(1)] public string Namespace { get; set; } [DataMember(Name="scoreRangeId")] + [Key(2)] public string ScoreRangeId { get; set; } /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(3)] 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. /// + [Key(4)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(5)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -12305,7 +12722,7 @@ private Link CreateLink() /// /// A class which represents the edfi.AssessmentScoreRangeLearningStandard table of the AssessmentScoreRangeLearningStandard aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class AssessmentScoreRangeLearningStandard : Entities.Common.EdFi.IAssessmentScoreRangeLearningStandard, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -12338,6 +12755,7 @@ public AssessmentScoreRangeLearningStandard() /// The unique identifier for the AssessmentScoreRangeLearningStandard resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -12361,6 +12779,7 @@ private Assessment.EdFi.AssessmentReference ImplicitAssessmentReference } [DataMember(Name="assessmentReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Assessment.EdFi.AssessmentReference AssessmentReference { @@ -12394,6 +12813,7 @@ private ObjectiveAssessment.EdFi.ObjectiveAssessmentReference ImplicitObjectiveA } [DataMember(Name="objectiveAssessmentReference")] + [Key(2)] [FullyDefinedReference] public ObjectiveAssessment.EdFi.ObjectiveAssessmentReference ObjectiveAssessmentReference { @@ -12483,6 +12903,7 @@ string Entities.Common.EdFi.IAssessmentScoreRangeLearningStandard.Namespace [RequiredWithNonDefault] [NonDefaultStringLength(60, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="scoreRangeId")] + [Key(3)] public string ScoreRangeId { get; set; } // ------------------------------------------------------------- @@ -12563,8 +12984,16 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="assessmentReportingMethodDescriptor")][DescriptorExists("AssessmentReportingMethodDescriptor")] + [IgnoreMember] public string AssessmentReportingMethodDescriptor { get; set; } + [Key(4)][JsonIgnore] + public int AssessmentReportingMethodDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("AssessmentReportingMethodDescriptor", AssessmentReportingMethodDescriptor); } + set { AssessmentReportingMethodDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("AssessmentReportingMethodDescriptor", value); } + } + /// /// A unique number or alphanumeric code assigned to an objective assessment by a school, school system, a state, or other agency or entity. /// @@ -12599,6 +13028,7 @@ string Entities.Common.EdFi.IAssessmentScoreRangeLearningStandard.Identification [RequiredWithNonDefault] [NonDefaultStringLength(35, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="maximumScore")] + [Key(5)] public string MaximumScore { get; set; } /// @@ -12608,6 +13038,7 @@ string Entities.Common.EdFi.IAssessmentScoreRangeLearningStandard.Identification [RequiredWithNonDefault] [NonDefaultStringLength(35, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="minimumScore")] + [Key(6)] public string MinimumScore { get; set; } // ------------------------------------------------------------- @@ -12630,6 +13061,7 @@ string Entities.Common.EdFi.IAssessmentScoreRangeLearningStandard.Identification // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "AssessmentScoreRangeLearningStandard", "AssessmentScoreRangeLearningStandard")] + [Key(7)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -12641,6 +13073,7 @@ string Entities.Common.EdFi.IAssessmentScoreRangeLearningStandard.Identification [NoDuplicateMembers][RequiredCollection] [DataMember(Name="learningStandards")] + [Key(8)] public ICollection AssessmentScoreRangeLearningStandardLearningStandards { get { return _assessmentScoreRangeLearningStandardLearningStandards; } @@ -12673,9 +13106,11 @@ public ICollection Assessm // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(9)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(10)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -12951,7 +13386,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.AssessmentScoreRangeLearningStandardLearningStandard table of the AssessmentScoreRangeLearningStandard aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class AssessmentScoreRangeLearningStandardLearningStandard : Entities.Common.EdFi.IAssessmentScoreRangeLearningStandardLearningStandard, IValidatableObject { @@ -12996,6 +13431,7 @@ private LearningStandard.EdFi.LearningStandardReference ImplicitLearningStandard } [DataMember(Name="learningStandardReference")] + [Key(0)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public LearningStandard.EdFi.LearningStandardReference LearningStandardReference { @@ -13028,6 +13464,7 @@ Entities.Common.EdFi.IAssessmentScoreRangeLearningStandard IAssessmentScoreRange set { SetAssessmentScoreRangeLearningStandard(value); } } + [IgnoreMember] public Entities.Common.EdFi.IAssessmentScoreRangeLearningStandard AssessmentScoreRangeLearningStandard { set { SetAssessmentScoreRangeLearningStandard(value); } @@ -13145,6 +13582,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "AssessmentScoreRangeLearningStandard", "AssessmentScoreRangeLearningStandardLearningStandard")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -13300,7 +13738,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.AssignmentLateStatusDescriptor.Ed /// /// A class which represents the edfi.AssignmentLateStatusDescriptor table of the AssignmentLateStatusDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class AssignmentLateStatusDescriptor : Entities.Common.EdFi.IAssignmentLateStatusDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -13329,6 +13767,7 @@ public class AssignmentLateStatusDescriptor : Entities.Common.EdFi.IAssignmentLa /// The unique identifier for the AssignmentLateStatusDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -13413,6 +13852,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -13421,6 +13861,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -13428,6 +13869,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -13435,6 +13877,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -13444,6 +13887,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -13453,6 +13897,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -13496,9 +13941,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -13571,7 +14018,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.AttemptStatusDescriptor.EdFi /// /// A class which represents the edfi.AttemptStatusDescriptor table of the AttemptStatusDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class AttemptStatusDescriptor : Entities.Common.EdFi.IAttemptStatusDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -13600,6 +14047,7 @@ public class AttemptStatusDescriptor : Entities.Common.EdFi.IAttemptStatusDescri /// The unique identifier for the AttemptStatusDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -13684,6 +14132,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -13692,6 +14141,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -13699,6 +14149,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -13706,6 +14157,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -13715,6 +14167,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -13724,6 +14177,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -13767,9 +14221,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -13842,7 +14298,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.AttendanceEventCategoryDescriptor /// /// A class which represents the edfi.AttendanceEventCategoryDescriptor table of the AttendanceEventCategoryDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class AttendanceEventCategoryDescriptor : Entities.Common.EdFi.IAttendanceEventCategoryDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -13871,6 +14327,7 @@ public class AttendanceEventCategoryDescriptor : Entities.Common.EdFi.IAttendanc /// The unique identifier for the AttendanceEventCategoryDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -13955,6 +14412,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -13963,6 +14421,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -13970,6 +14429,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -13977,6 +14437,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -13986,6 +14447,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -13995,6 +14457,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -14038,9 +14501,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -14113,30 +14578,37 @@ namespace EdFi.Ods.Api.Common.Models.Resources.BalanceSheetDimension.EdFi /// /// Represents a reference to the BalanceSheetDimension resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class BalanceSheetDimensionReference : IResourceReference { [DataMember(Name="code")] + [Key(0)] public string Code { get; set; } [DataMember(Name="fiscalYear")] + [Key(1)] public int FiscalYear { get; set; } /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(2)] 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. /// + [Key(3)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(4)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -14210,7 +14682,7 @@ private Link CreateLink() /// /// A class which represents the edfi.BalanceSheetDimension table of the BalanceSheetDimension aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] [NoUnsuppliedRequiredMembersWithMeaningfulDefaults] public class BalanceSheetDimension : Entities.Common.EdFi.IBalanceSheetDimension, IHasETag, IDateVersionedEntity, IHasRequiredMembersWithMeaningfulDefaultValues, IValidatableObject @@ -14244,6 +14716,7 @@ public BalanceSheetDimension() /// The unique identifier for the BalanceSheetDimension resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -14264,6 +14737,7 @@ public BalanceSheetDimension() [RequiredWithNonDefault] [NonDefaultStringLength(16, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="code")] + [Key(1)] public string Code { get; set; } private bool _fiscalYearExplicitlyAssigned = false; @@ -14275,6 +14749,7 @@ public BalanceSheetDimension() // NOT in a reference, NOT a lookup column [Range(2020, 2040, ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="fiscalYear")] + [Key(2)] public int FiscalYear { get => _fiscalYear; @@ -14357,6 +14832,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(100, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeName")] + [Key(3)] public string CodeName { get; set; } // ------------------------------------------------------------- @@ -14387,6 +14863,7 @@ IEnumerable IHasRequiredMembersWithMeaningfulDefaultValues.GetUnassigned // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "BalanceSheetDimension", "BalanceSheetDimension")] + [Key(4)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -14398,6 +14875,7 @@ IEnumerable IHasRequiredMembersWithMeaningfulDefaultValues.GetUnassigned [NoDuplicateMembers] [DataMember(Name="reportingTags")] + [Key(5)] public ICollection BalanceSheetDimensionReportingTags { get { return _balanceSheetDimensionReportingTags; } @@ -14430,9 +14908,11 @@ public ICollection BalanceSheetDimensionRepor // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(6)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(7)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -14609,7 +15089,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.BalanceSheetDimensionReportingTag table of the BalanceSheetDimension aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class BalanceSheetDimensionReportingTag : Entities.Common.EdFi.IBalanceSheetDimensionReportingTag, IValidatableObject { @@ -14652,6 +15132,7 @@ Entities.Common.EdFi.IBalanceSheetDimension IBalanceSheetDimensionReportingTag.B set { SetBalanceSheetDimension(value); } } + [IgnoreMember] public Entities.Common.EdFi.IBalanceSheetDimension BalanceSheetDimension { set { SetBalanceSheetDimension(value); } @@ -14669,7 +15150,15 @@ private void SetBalanceSheetDimension(Entities.Common.EdFi.IBalanceSheetDimensio [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="reportingTagDescriptor")][DescriptorExists("ReportingTagDescriptor")] + [IgnoreMember] public string ReportingTagDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int ReportingTagDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ReportingTagDescriptor", ReportingTagDescriptor); } + set { ReportingTagDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ReportingTagDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -14754,6 +15243,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "BalanceSheetDimension", "BalanceSheetDimensionReportingTag")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -14895,7 +15385,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.BarrierToInternetAccessInResidenc /// /// A class which represents the edfi.BarrierToInternetAccessInResidenceDescriptor table of the BarrierToInternetAccessInResidenceDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class BarrierToInternetAccessInResidenceDescriptor : Entities.Common.EdFi.IBarrierToInternetAccessInResidenceDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -14924,6 +15414,7 @@ public class BarrierToInternetAccessInResidenceDescriptor : Entities.Common.EdFi /// The unique identifier for the BarrierToInternetAccessInResidenceDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -15008,6 +15499,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -15016,6 +15508,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -15023,6 +15516,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -15030,6 +15524,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -15039,6 +15534,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -15048,6 +15544,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -15091,9 +15588,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -15166,7 +15665,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.BehaviorDescriptor.EdFi /// /// A class which represents the edfi.BehaviorDescriptor table of the BehaviorDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class BehaviorDescriptor : Entities.Common.EdFi.IBehaviorDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -15195,6 +15694,7 @@ public class BehaviorDescriptor : Entities.Common.EdFi.IBehaviorDescriptor, Enti /// The unique identifier for the BehaviorDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -15279,6 +15779,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -15287,6 +15788,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -15294,6 +15796,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -15301,6 +15804,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -15310,6 +15814,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -15319,6 +15824,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -15362,9 +15868,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -15437,30 +15945,37 @@ namespace EdFi.Ods.Api.Common.Models.Resources.BellSchedule.EdFi /// /// Represents a reference to the BellSchedule resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class BellScheduleReference : IResourceReference { [DataMember(Name="bellScheduleName")] + [Key(0)] public string BellScheduleName { get; set; } [DataMember(Name="schoolId")] + [Key(1)] public long SchoolId { get; set; } /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(2)] 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. /// + [Key(3)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(4)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -15534,7 +16049,7 @@ private Link CreateLink() /// /// A class which represents the edfi.BellSchedule table of the BellSchedule aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class BellSchedule : Entities.Common.EdFi.IBellSchedule, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -15569,6 +16084,7 @@ public BellSchedule() /// The unique identifier for the BellSchedule resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -15592,6 +16108,7 @@ private School.EdFi.SchoolReference ImplicitSchoolReference } [DataMember(Name="schoolReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public School.EdFi.SchoolReference SchoolReference { @@ -15623,6 +16140,7 @@ public School.EdFi.SchoolReference SchoolReference [RequiredWithNonDefault] [NonDefaultStringLength(60, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="bellScheduleName")] + [Key(2)] public string BellScheduleName { get; set; } /// @@ -15720,6 +16238,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(20, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="alternateDayName")] + [Key(3)] public string AlternateDayName { get; set; } /// @@ -15727,6 +16246,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="endTime")][JsonConverter(typeof(UtcTimeConverter))] + [Key(4)] public TimeSpan? EndTime { get; set; } /// @@ -15734,6 +16254,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="startTime")][JsonConverter(typeof(UtcTimeConverter))] + [Key(5)] public TimeSpan? StartTime { get; set; } /// @@ -15741,6 +16262,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="totalInstructionalTime")] + [Key(6)] public int? TotalInstructionalTime { get; set; } // ------------------------------------------------------------- @@ -15763,6 +16285,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "BellSchedule", "BellSchedule")] + [Key(7)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -15774,6 +16297,7 @@ public override int GetHashCode() [NoDuplicateMembers][RequiredCollection] [DataMember(Name="classPeriods")] + [Key(8)] public ICollection BellScheduleClassPeriods { get { return _bellScheduleClassPeriods; } @@ -15804,6 +16328,7 @@ public ICollection BellScheduleClassPeriods [NoDuplicateMembers] [DataMember(Name="dates")] + [Key(9)] public ICollection BellScheduleDates { get { return _bellScheduleDates; } @@ -15834,6 +16359,7 @@ public ICollection BellScheduleDates [NoDuplicateMembers] [DataMember(Name="gradeLevels")] + [Key(10)] public ICollection BellScheduleGradeLevels { get { return _bellScheduleGradeLevels; } @@ -15866,9 +16392,11 @@ public ICollection BellScheduleGradeLevels // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(11)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(12)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -16110,7 +16638,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.BellScheduleClassPeriod table of the BellSchedule aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class BellScheduleClassPeriod : Entities.Common.EdFi.IBellScheduleClassPeriod, IValidatableObject { @@ -16155,6 +16683,7 @@ private ClassPeriod.EdFi.ClassPeriodReference ImplicitClassPeriodReference } [DataMember(Name="classPeriodReference")] + [Key(0)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public ClassPeriod.EdFi.ClassPeriodReference ClassPeriodReference { @@ -16187,6 +16716,7 @@ Entities.Common.EdFi.IBellSchedule IBellScheduleClassPeriod.BellSchedule set { SetBellSchedule(value); } } + [IgnoreMember] public Entities.Common.EdFi.IBellSchedule BellSchedule { set { SetBellSchedule(value); } @@ -16310,6 +16840,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "BellSchedule", "BellScheduleClassPeriod")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -16500,7 +17031,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.BellScheduleDate table of the BellSchedule aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class BellScheduleDate : Entities.Common.EdFi.IBellScheduleDate, IValidatableObject { @@ -16543,6 +17074,7 @@ Entities.Common.EdFi.IBellSchedule IBellScheduleDate.BellSchedule set { SetBellSchedule(value); } } + [IgnoreMember] public Entities.Common.EdFi.IBellSchedule BellSchedule { set { SetBellSchedule(value); } @@ -16559,6 +17091,7 @@ private void SetBellSchedule(Entities.Common.EdFi.IBellSchedule value) // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] [DataMember(Name="date")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(0)] public DateTime Date { get; set; } // ------------------------------------------------------------- @@ -16644,6 +17177,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "BellSchedule", "BellScheduleDate")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -16780,7 +17314,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.BellScheduleGradeLevel table of the BellSchedule aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class BellScheduleGradeLevel : Entities.Common.EdFi.IBellScheduleGradeLevel, IValidatableObject { @@ -16823,6 +17357,7 @@ Entities.Common.EdFi.IBellSchedule IBellScheduleGradeLevel.BellSchedule set { SetBellSchedule(value); } } + [IgnoreMember] public Entities.Common.EdFi.IBellSchedule BellSchedule { set { SetBellSchedule(value); } @@ -16840,7 +17375,15 @@ private void SetBellSchedule(Entities.Common.EdFi.IBellSchedule value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="gradeLevelDescriptor")][DescriptorExists("GradeLevelDescriptor")] + [IgnoreMember] public string GradeLevelDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int GradeLevelDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("GradeLevelDescriptor", GradeLevelDescriptor); } + set { GradeLevelDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("GradeLevelDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -16925,6 +17468,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "BellSchedule", "BellScheduleGradeLevel")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -17066,7 +17610,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.BusRouteDescriptor.EdFi /// /// A class which represents the edfi.BusRouteDescriptor table of the BusRouteDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class BusRouteDescriptor : Entities.Common.EdFi.IBusRouteDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -17095,6 +17639,7 @@ public class BusRouteDescriptor : Entities.Common.EdFi.IBusRouteDescriptor, Enti /// The unique identifier for the BusRouteDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -17179,6 +17724,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -17187,6 +17733,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -17194,6 +17741,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -17201,6 +17749,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -17210,6 +17759,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -17219,6 +17769,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -17262,9 +17813,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -17337,33 +17890,41 @@ namespace EdFi.Ods.Api.Common.Models.Resources.Calendar.EdFi /// /// Represents a reference to the Calendar resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class CalendarReference : IResourceReference { [DataMember(Name="calendarCode")] + [Key(0)] public string CalendarCode { get; set; } [DataMember(Name="schoolId")] + [Key(1)] public long SchoolId { get; set; } [DataMember(Name="schoolYear")] + [Key(2)] public short SchoolYear { get; set; } /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(3)] 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. /// + [Key(4)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(5)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -17442,7 +18003,7 @@ private Link CreateLink() /// /// A class which represents the edfi.Calendar table of the Calendar aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class Calendar : Entities.Common.EdFi.ICalendar, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -17475,6 +18036,7 @@ public Calendar() /// The unique identifier for the Calendar resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -17498,6 +18060,7 @@ private School.EdFi.SchoolReference ImplicitSchoolReference } [DataMember(Name="schoolReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public School.EdFi.SchoolReference SchoolReference { @@ -17531,6 +18094,7 @@ private SchoolYearType.EdFi.SchoolYearTypeReference ImplicitSchoolYearTypeRefere } [DataMember(Name="schoolYearTypeReference")] + [Key(2)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public SchoolYearType.EdFi.SchoolYearTypeReference SchoolYearTypeReference { @@ -17562,6 +18126,7 @@ public SchoolYearType.EdFi.SchoolYearTypeReference SchoolYearTypeReference [RequiredWithNonDefault] [NonDefaultStringLength(60, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="calendarCode")] + [Key(3)] public string CalendarCode { get; set; } /// @@ -17693,7 +18258,15 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="calendarTypeDescriptor")][DescriptorExists("CalendarTypeDescriptor")] + [IgnoreMember] public string CalendarTypeDescriptor { get; set; } + + [Key(4)][JsonIgnore] + public int CalendarTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("CalendarTypeDescriptor", CalendarTypeDescriptor); } + set { CalendarTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("CalendarTypeDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -17715,6 +18288,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "Calendar", "Calendar")] + [Key(5)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -17726,6 +18300,7 @@ public override int GetHashCode() [NoDuplicateMembers] [DataMember(Name="gradeLevels")] + [Key(6)] public ICollection CalendarGradeLevels { get { return _calendarGradeLevels; } @@ -17758,9 +18333,11 @@ public ICollection CalendarGradeLevels // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -17951,7 +18528,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// /// A class which represents the edfi.CalendarGradeLevel table of the Calendar aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class CalendarGradeLevel : Entities.Common.EdFi.ICalendarGradeLevel, IValidatableObject { @@ -17994,6 +18571,7 @@ Entities.Common.EdFi.ICalendar ICalendarGradeLevel.Calendar set { SetCalendar(value); } } + [IgnoreMember] public Entities.Common.EdFi.ICalendar Calendar { set { SetCalendar(value); } @@ -18011,7 +18589,15 @@ private void SetCalendar(Entities.Common.EdFi.ICalendar value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="gradeLevelDescriptor")][DescriptorExists("GradeLevelDescriptor")] + [IgnoreMember] public string GradeLevelDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int GradeLevelDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("GradeLevelDescriptor", GradeLevelDescriptor); } + set { GradeLevelDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("GradeLevelDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -18096,6 +18682,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "Calendar", "CalendarGradeLevel")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -18237,36 +18824,45 @@ namespace EdFi.Ods.Api.Common.Models.Resources.CalendarDate.EdFi /// /// Represents a reference to the CalendarDate resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class CalendarDateReference : IResourceReference { [DataMember(Name="calendarCode")] + [Key(0)] public string CalendarCode { get; set; } [DataMember(Name="date")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(1)] public DateTime Date { get; set; } [DataMember(Name="schoolId")] + [Key(2)] public long SchoolId { get; set; } [DataMember(Name="schoolYear")] + [Key(3)] public short SchoolYear { get; set; } /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(4)] 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. /// + [Key(5)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(6)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -18350,7 +18946,7 @@ private Link CreateLink() /// /// A class which represents the edfi.CalendarDate table of the CalendarDate aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class CalendarDate : Entities.Common.EdFi.ICalendarDate, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -18383,6 +18979,7 @@ public CalendarDate() /// The unique identifier for the CalendarDate resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -18406,6 +19003,7 @@ private Calendar.EdFi.CalendarReference ImplicitCalendarReference } [DataMember(Name="calendarReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Calendar.EdFi.CalendarReference CalendarReference { @@ -18461,6 +19059,7 @@ string Entities.Common.EdFi.ICalendarDate.CalendarCode // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] [DataMember(Name="date")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(2)] public DateTime Date { get; set; } /// @@ -18613,6 +19212,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "CalendarDate", "CalendarDate")] + [Key(3)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -18624,6 +19224,7 @@ public override int GetHashCode() [NoDuplicateMembers][RequiredCollection] [DataMember(Name="calendarEvents")] + [Key(4)] public ICollection CalendarDateCalendarEvents { get { return _calendarDateCalendarEvents; } @@ -18656,9 +19257,11 @@ public ICollection CalendarDateCalendarEvents // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(5)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(6)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -18849,7 +19452,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.CalendarDateCalendarEvent table of the CalendarDate aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class CalendarDateCalendarEvent : Entities.Common.EdFi.ICalendarDateCalendarEvent, IValidatableObject { @@ -18892,6 +19495,7 @@ Entities.Common.EdFi.ICalendarDate ICalendarDateCalendarEvent.CalendarDate set { SetCalendarDate(value); } } + [IgnoreMember] public Entities.Common.EdFi.ICalendarDate CalendarDate { set { SetCalendarDate(value); } @@ -18909,7 +19513,15 @@ private void SetCalendarDate(Entities.Common.EdFi.ICalendarDate value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="calendarEventDescriptor")][DescriptorExists("CalendarEventDescriptor")] + [IgnoreMember] public string CalendarEventDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int CalendarEventDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("CalendarEventDescriptor", CalendarEventDescriptor); } + set { CalendarEventDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("CalendarEventDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -18994,6 +19606,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "CalendarDate", "CalendarDateCalendarEvent")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -19135,7 +19748,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.CalendarEventDescriptor.EdFi /// /// A class which represents the edfi.CalendarEventDescriptor table of the CalendarEventDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class CalendarEventDescriptor : Entities.Common.EdFi.ICalendarEventDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -19164,6 +19777,7 @@ public class CalendarEventDescriptor : Entities.Common.EdFi.ICalendarEventDescri /// The unique identifier for the CalendarEventDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -19248,6 +19862,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -19256,6 +19871,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -19263,6 +19879,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -19270,6 +19887,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -19279,6 +19897,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -19288,6 +19907,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -19331,9 +19951,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -19406,7 +20028,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.CalendarTypeDescriptor.EdFi /// /// A class which represents the edfi.CalendarTypeDescriptor table of the CalendarTypeDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class CalendarTypeDescriptor : Entities.Common.EdFi.ICalendarTypeDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -19435,6 +20057,7 @@ public class CalendarTypeDescriptor : Entities.Common.EdFi.ICalendarTypeDescript /// The unique identifier for the CalendarTypeDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -19519,6 +20142,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -19527,6 +20151,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -19534,6 +20159,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -19541,6 +20167,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -19550,6 +20177,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -19559,6 +20187,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -19602,9 +20231,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -19677,7 +20308,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.CareerPathwayDescriptor.EdFi /// /// A class which represents the edfi.CareerPathwayDescriptor table of the CareerPathwayDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class CareerPathwayDescriptor : Entities.Common.EdFi.ICareerPathwayDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -19706,6 +20337,7 @@ public class CareerPathwayDescriptor : Entities.Common.EdFi.ICareerPathwayDescri /// The unique identifier for the CareerPathwayDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -19790,6 +20422,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -19798,6 +20431,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -19805,6 +20439,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -19812,6 +20447,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -19821,6 +20457,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -19830,6 +20467,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -19873,9 +20511,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -19948,7 +20588,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.CharterApprovalAgencyTypeDescript /// /// A class which represents the edfi.CharterApprovalAgencyTypeDescriptor table of the CharterApprovalAgencyTypeDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class CharterApprovalAgencyTypeDescriptor : Entities.Common.EdFi.ICharterApprovalAgencyTypeDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -19977,6 +20617,7 @@ public class CharterApprovalAgencyTypeDescriptor : Entities.Common.EdFi.ICharter /// The unique identifier for the CharterApprovalAgencyTypeDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -20061,6 +20702,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -20069,6 +20711,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -20076,6 +20719,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -20083,6 +20727,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -20092,6 +20737,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -20101,6 +20747,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -20144,9 +20791,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -20219,7 +20868,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.CharterStatusDescriptor.EdFi /// /// A class which represents the edfi.CharterStatusDescriptor table of the CharterStatusDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class CharterStatusDescriptor : Entities.Common.EdFi.ICharterStatusDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -20248,6 +20897,7 @@ public class CharterStatusDescriptor : Entities.Common.EdFi.ICharterStatusDescri /// The unique identifier for the CharterStatusDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -20332,6 +20982,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -20340,6 +20991,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -20347,6 +20999,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -20354,6 +21007,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -20363,6 +21017,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -20372,6 +21027,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -20415,9 +21071,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -20490,33 +21148,41 @@ namespace EdFi.Ods.Api.Common.Models.Resources.ChartOfAccount.EdFi /// /// Represents a reference to the ChartOfAccount resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class ChartOfAccountReference : IResourceReference { [DataMember(Name="accountIdentifier")] + [Key(0)] public string AccountIdentifier { get; set; } [DataMember(Name="educationOrganizationId")] + [Key(1)] public long EducationOrganizationId { get; set; } [DataMember(Name="fiscalYear")] + [Key(2)] public int FiscalYear { get; set; } /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(3)] 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. /// + [Key(4)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(5)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -20595,7 +21261,7 @@ private Link CreateLink() /// /// A class which represents the edfi.ChartOfAccount table of the ChartOfAccount aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] [NoUnsuppliedRequiredMembersWithMeaningfulDefaults] public class ChartOfAccount : Entities.Common.EdFi.IChartOfAccount, IHasETag, IDateVersionedEntity, IHasRequiredMembersWithMeaningfulDefaultValues, IValidatableObject @@ -20629,6 +21295,7 @@ public ChartOfAccount() /// The unique identifier for the ChartOfAccount resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -20652,6 +21319,7 @@ private BalanceSheetDimension.EdFi.BalanceSheetDimensionReference ImplicitBalanc } [DataMember(Name="balanceSheetDimensionReference")] + [Key(1)] [FullyDefinedReference] public BalanceSheetDimension.EdFi.BalanceSheetDimensionReference BalanceSheetDimensionReference { @@ -20685,6 +21353,7 @@ private EducationOrganization.EdFi.EducationOrganizationReference ImplicitEducat } [DataMember(Name="educationOrganizationReference")] + [Key(2)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public EducationOrganization.EdFi.EducationOrganizationReference EducationOrganizationReference { @@ -20718,6 +21387,7 @@ private FunctionDimension.EdFi.FunctionDimensionReference ImplicitFunctionDimens } [DataMember(Name="functionDimensionReference")] + [Key(3)] [FullyDefinedReference] public FunctionDimension.EdFi.FunctionDimensionReference FunctionDimensionReference { @@ -20751,6 +21421,7 @@ private FundDimension.EdFi.FundDimensionReference ImplicitFundDimensionReference } [DataMember(Name="fundDimensionReference")] + [Key(4)] [FullyDefinedReference] public FundDimension.EdFi.FundDimensionReference FundDimensionReference { @@ -20784,6 +21455,7 @@ private ObjectDimension.EdFi.ObjectDimensionReference ImplicitObjectDimensionRef } [DataMember(Name="objectDimensionReference")] + [Key(5)] [FullyDefinedReference] public ObjectDimension.EdFi.ObjectDimensionReference ObjectDimensionReference { @@ -20817,6 +21489,7 @@ private OperationalUnitDimension.EdFi.OperationalUnitDimensionReference Implicit } [DataMember(Name="operationalUnitDimensionReference")] + [Key(6)] [FullyDefinedReference] public OperationalUnitDimension.EdFi.OperationalUnitDimensionReference OperationalUnitDimensionReference { @@ -20850,6 +21523,7 @@ private ProgramDimension.EdFi.ProgramDimensionReference ImplicitProgramDimension } [DataMember(Name="programDimensionReference")] + [Key(7)] [FullyDefinedReference] public ProgramDimension.EdFi.ProgramDimensionReference ProgramDimensionReference { @@ -20883,6 +21557,7 @@ private ProjectDimension.EdFi.ProjectDimensionReference ImplicitProjectDimension } [DataMember(Name="projectDimensionReference")] + [Key(8)] [FullyDefinedReference] public ProjectDimension.EdFi.ProjectDimensionReference ProjectDimensionReference { @@ -20916,6 +21591,7 @@ private SourceDimension.EdFi.SourceDimensionReference ImplicitSourceDimensionRef } [DataMember(Name="sourceDimensionReference")] + [Key(9)] [FullyDefinedReference] public SourceDimension.EdFi.SourceDimensionReference SourceDimensionReference { @@ -20947,6 +21623,7 @@ public SourceDimension.EdFi.SourceDimensionReference SourceDimensionReference [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="accountIdentifier")] + [Key(10)] public string AccountIdentifier { get; set; } /// @@ -20983,6 +21660,7 @@ long Entities.Common.EdFi.IChartOfAccount.EducationOrganizationId // IS in a reference, NOT a lookup column [Range(2020, 2040, ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="fiscalYear")] + [Key(11)] public int FiscalYear { get @@ -21109,6 +21787,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(100, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="accountName")] + [Key(12)] public string AccountName { get; set; } /// @@ -21118,8 +21797,16 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="accountTypeDescriptor")][DescriptorExists("AccountTypeDescriptor")] + [IgnoreMember] public string AccountTypeDescriptor { get; set; } + [Key(13)][JsonIgnore] + public int AccountTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("AccountTypeDescriptor", AccountTypeDescriptor); } + set { AccountTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("AccountTypeDescriptor", value); } + } + /// /// The code representation of the account balance sheet dimension. /// @@ -21364,6 +22051,7 @@ IEnumerable IHasRequiredMembersWithMeaningfulDefaultValues.GetUnassigned // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "ChartOfAccount", "ChartOfAccount")] + [Key(14)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -21375,6 +22063,7 @@ IEnumerable IHasRequiredMembersWithMeaningfulDefaultValues.GetUnassigned [NoDuplicateMembers] [DataMember(Name="reportingTags")] + [Key(15)] public ICollection ChartOfAccountReportingTags { get { return _chartOfAccountReportingTags; } @@ -21407,9 +22096,11 @@ public ICollection ChartOfAccountReportingTags // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(16)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(17)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -21802,7 +22493,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.ChartOfAccountReportingTag table of the ChartOfAccount aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class ChartOfAccountReportingTag : Entities.Common.EdFi.IChartOfAccountReportingTag, IValidatableObject { @@ -21845,6 +22536,7 @@ Entities.Common.EdFi.IChartOfAccount IChartOfAccountReportingTag.ChartOfAccount set { SetChartOfAccount(value); } } + [IgnoreMember] public Entities.Common.EdFi.IChartOfAccount ChartOfAccount { set { SetChartOfAccount(value); } @@ -21862,7 +22554,15 @@ private void SetChartOfAccount(Entities.Common.EdFi.IChartOfAccount value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="reportingTagDescriptor")][DescriptorExists("ReportingTagDescriptor")] + [IgnoreMember] public string ReportingTagDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int ReportingTagDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ReportingTagDescriptor", ReportingTagDescriptor); } + set { ReportingTagDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ReportingTagDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -21933,6 +22633,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(100, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="tagValue")] + [Key(1)] public string TagValue { get; set; } // ------------------------------------------------------------- @@ -21955,6 +22656,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "ChartOfAccount", "ChartOfAccountReportingTag")] + [Key(2)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -22096,7 +22798,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.CitizenshipStatusDescriptor.EdFi /// /// A class which represents the edfi.CitizenshipStatusDescriptor table of the CitizenshipStatusDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class CitizenshipStatusDescriptor : Entities.Common.EdFi.ICitizenshipStatusDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -22125,6 +22827,7 @@ public class CitizenshipStatusDescriptor : Entities.Common.EdFi.ICitizenshipStat /// The unique identifier for the CitizenshipStatusDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -22209,6 +22912,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -22217,6 +22921,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -22224,6 +22929,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -22231,6 +22937,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -22240,6 +22947,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -22249,6 +22957,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -22292,9 +23001,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -22367,30 +23078,37 @@ namespace EdFi.Ods.Api.Common.Models.Resources.ClassPeriod.EdFi /// /// Represents a reference to the ClassPeriod resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class ClassPeriodReference : IResourceReference { [DataMember(Name="classPeriodName")] + [Key(0)] public string ClassPeriodName { get; set; } [DataMember(Name="schoolId")] + [Key(1)] public long SchoolId { get; set; } /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(2)] 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. /// + [Key(3)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(4)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -22464,7 +23182,7 @@ private Link CreateLink() /// /// A class which represents the edfi.ClassPeriod table of the ClassPeriod aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class ClassPeriod : Entities.Common.EdFi.IClassPeriod, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -22497,6 +23215,7 @@ public ClassPeriod() /// The unique identifier for the ClassPeriod resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -22520,6 +23239,7 @@ private School.EdFi.SchoolReference ImplicitSchoolReference } [DataMember(Name="schoolReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public School.EdFi.SchoolReference SchoolReference { @@ -22551,6 +23271,7 @@ public School.EdFi.SchoolReference SchoolReference [RequiredWithNonDefault] [NonDefaultStringLength(60, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="classPeriodName")] + [Key(2)] public string ClassPeriodName { get; set; } /// @@ -22647,6 +23368,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="officialAttendancePeriod")] + [Key(3)] public bool? OfficialAttendancePeriod { get; set; } // ------------------------------------------------------------- @@ -22669,6 +23391,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "ClassPeriod", "ClassPeriod")] + [Key(4)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -22680,6 +23403,7 @@ public override int GetHashCode() [NoDuplicateMembers] [DataMember(Name="meetingTimes")] + [Key(5)] public ICollection ClassPeriodMeetingTimes { get { return _classPeriodMeetingTimes; } @@ -22712,9 +23436,11 @@ public ICollection ClassPeriodMeetingTimes // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(6)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(7)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -22898,7 +23624,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.ClassPeriodMeetingTime table of the ClassPeriod aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class ClassPeriodMeetingTime : Entities.Common.EdFi.IClassPeriodMeetingTime, IValidatableObject { @@ -22941,6 +23667,7 @@ Entities.Common.EdFi.IClassPeriod IClassPeriodMeetingTime.ClassPeriod set { SetClassPeriod(value); } } + [IgnoreMember] public Entities.Common.EdFi.IClassPeriod ClassPeriod { set { SetClassPeriod(value); } @@ -22957,6 +23684,7 @@ private void SetClassPeriod(Entities.Common.EdFi.IClassPeriod value) // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] [DataMember(Name="endTime")][JsonConverter(typeof(UtcTimeConverter))] + [Key(0)] public TimeSpan EndTime { get; set; } /// @@ -22965,6 +23693,7 @@ private void SetClassPeriod(Entities.Common.EdFi.IClassPeriod value) // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] [DataMember(Name="startTime")][JsonConverter(typeof(UtcTimeConverter))] + [Key(1)] public TimeSpan StartTime { get; set; } // ------------------------------------------------------------- @@ -23059,6 +23788,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "ClassPeriod", "ClassPeriodMeetingTime")] + [Key(2)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -23200,7 +23930,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.ClassroomPositionDescriptor.EdFi /// /// A class which represents the edfi.ClassroomPositionDescriptor table of the ClassroomPositionDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class ClassroomPositionDescriptor : Entities.Common.EdFi.IClassroomPositionDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -23229,6 +23959,7 @@ public class ClassroomPositionDescriptor : Entities.Common.EdFi.IClassroomPositi /// The unique identifier for the ClassroomPositionDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -23313,6 +24044,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -23321,6 +24053,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -23328,6 +24061,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -23335,6 +24069,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -23344,6 +24079,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -23353,6 +24089,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -23396,9 +24133,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -23471,30 +24210,37 @@ namespace EdFi.Ods.Api.Common.Models.Resources.Cohort.EdFi /// /// Represents a reference to the Cohort resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class CohortReference : IResourceReference { [DataMember(Name="cohortIdentifier")] + [Key(0)] public string CohortIdentifier { get; set; } [DataMember(Name="educationOrganizationId")] + [Key(1)] public long EducationOrganizationId { get; set; } /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(2)] 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. /// + [Key(3)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(4)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -23568,7 +24314,7 @@ private Link CreateLink() /// /// A class which represents the edfi.Cohort table of the Cohort aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class Cohort : Entities.Common.EdFi.ICohort, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -23601,6 +24347,7 @@ public Cohort() /// The unique identifier for the Cohort resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -23624,6 +24371,7 @@ private EducationOrganization.EdFi.EducationOrganizationReference ImplicitEducat } [DataMember(Name="educationOrganizationReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public EducationOrganization.EdFi.EducationOrganizationReference EducationOrganizationReference { @@ -23655,6 +24403,7 @@ public EducationOrganization.EdFi.EducationOrganizationReference EducationOrgani [RequiredWithNonDefault] [NonDefaultStringLength(36, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="cohortIdentifier")] + [Key(2)] public string CohortIdentifier { get; set; } /// @@ -23752,14 +24501,23 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="academicSubjectDescriptor")][DescriptorExists("AcademicSubjectDescriptor")] + [IgnoreMember] public string AcademicSubjectDescriptor { get; set; } + [Key(3)][JsonIgnore] + public int AcademicSubjectDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("AcademicSubjectDescriptor", AcademicSubjectDescriptor); } + set { AcademicSubjectDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("AcademicSubjectDescriptor", value); } + } + /// /// The description of the cohort and its purpose. /// // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="cohortDescription")] + [Key(4)] public string CohortDescription { get; set; } /// @@ -23768,8 +24526,16 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="cohortScopeDescriptor")][DescriptorExists("CohortScopeDescriptor")] + [IgnoreMember] public string CohortScopeDescriptor { get; set; } + [Key(5)][JsonIgnore] + public int CohortScopeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("CohortScopeDescriptor", CohortScopeDescriptor); } + set { CohortScopeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("CohortScopeDescriptor", value); } + } + /// /// The type of cohort (e.g., academic intervention, classroom breakout). /// @@ -23777,7 +24543,15 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="cohortTypeDescriptor")][DescriptorExists("CohortTypeDescriptor")] + [IgnoreMember] public string CohortTypeDescriptor { get; set; } + + [Key(6)][JsonIgnore] + public int CohortTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("CohortTypeDescriptor", CohortTypeDescriptor); } + set { CohortTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("CohortTypeDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -23799,6 +24573,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "Cohort", "Cohort")] + [Key(7)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -23810,6 +24585,7 @@ public override int GetHashCode() [NoDuplicateMembers] [DataMember(Name="programs")] + [Key(8)] public ICollection CohortPrograms { get { return _cohortPrograms; } @@ -23842,9 +24618,11 @@ public ICollection CohortPrograms // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(9)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(10)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -24035,7 +24813,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext c /// /// A class which represents the edfi.CohortProgram table of the Cohort aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class CohortProgram : Entities.Common.EdFi.ICohortProgram, IValidatableObject { @@ -24080,6 +24858,7 @@ private Program.EdFi.ProgramReference ImplicitProgramReference } [DataMember(Name="programReference")] + [Key(0)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Program.EdFi.ProgramReference ProgramReference { @@ -24112,6 +24891,7 @@ Entities.Common.EdFi.ICohort ICohortProgram.Cohort set { SetCohort(value); } } + [IgnoreMember] public Entities.Common.EdFi.ICohort Cohort { set { SetCohort(value); } @@ -24292,6 +25072,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "Cohort", "CohortProgram")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -24447,7 +25228,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.CohortScopeDescriptor.EdFi /// /// A class which represents the edfi.CohortScopeDescriptor table of the CohortScopeDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class CohortScopeDescriptor : Entities.Common.EdFi.ICohortScopeDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -24476,6 +25257,7 @@ public class CohortScopeDescriptor : Entities.Common.EdFi.ICohortScopeDescriptor /// The unique identifier for the CohortScopeDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -24560,6 +25342,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -24568,6 +25351,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -24575,6 +25359,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -24582,6 +25367,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -24591,6 +25377,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -24600,6 +25387,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -24643,9 +25431,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -24718,7 +25508,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.CohortTypeDescriptor.EdFi /// /// A class which represents the edfi.CohortTypeDescriptor table of the CohortTypeDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class CohortTypeDescriptor : Entities.Common.EdFi.ICohortTypeDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -24747,6 +25537,7 @@ public class CohortTypeDescriptor : Entities.Common.EdFi.ICohortTypeDescriptor, /// The unique identifier for the CohortTypeDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -24831,6 +25622,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -24839,6 +25631,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -24846,6 +25639,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -24853,6 +25647,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -24862,6 +25657,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -24871,6 +25667,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -24914,9 +25711,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -24989,7 +25788,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.CohortYearTypeDescriptor.EdFi /// /// A class which represents the edfi.CohortYearTypeDescriptor table of the CohortYearTypeDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class CohortYearTypeDescriptor : Entities.Common.EdFi.ICohortYearTypeDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -25018,6 +25817,7 @@ public class CohortYearTypeDescriptor : Entities.Common.EdFi.ICohortYearTypeDesc /// The unique identifier for the CohortYearTypeDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -25102,6 +25902,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -25110,6 +25911,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -25117,6 +25919,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -25124,6 +25927,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -25133,6 +25937,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -25142,6 +25947,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -25185,9 +25991,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -25260,21 +26068,26 @@ namespace EdFi.Ods.Api.Common.Models.Resources.CommunityOrganization.EdFi /// /// Represents a reference to the CommunityOrganization resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class CommunityOrganizationReference : IResourceReference { [DataMember(Name="communityOrganizationId")] + [Key(0)] public long CommunityOrganizationId { get; set; } /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(1)] public Guid ResourceId { get; set; } - private Link _link; + [JsonIgnore] + [Key(2)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -25324,7 +26137,7 @@ private Link CreateLink() /// /// A class which represents the edfi.CommunityOrganization table of the CommunityOrganization aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class CommunityOrganization : Entities.Common.EdFi.ICommunityOrganization, Entities.Common.EdFi.IEducationOrganization, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -25364,6 +26177,7 @@ public CommunityOrganization() /// The unique identifier for the CommunityOrganization resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -25382,7 +26196,7 @@ public CommunityOrganization() /// // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] - [DataMember(Name="communityOrganizationId")] + [DataMember(Name="communityOrganizationId"),Key(1)] public long CommunityOrganizationId { get; set; } long IEducationOrganization.EducationOrganizationId @@ -25449,6 +26263,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="nameOfInstitution")] + [Key(2)] public string NameOfInstitution { get; set; } /// @@ -25457,14 +26272,23 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="operationalStatusDescriptor")][DescriptorExists("OperationalStatusDescriptor")] + [IgnoreMember] public string OperationalStatusDescriptor { get; set; } + [Key(3)][JsonIgnore] + public int OperationalStatusDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("OperationalStatusDescriptor", OperationalStatusDescriptor); } + set { OperationalStatusDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("OperationalStatusDescriptor", value); } + } + /// /// A short name for the institution. /// // NOT in a reference, NOT a lookup column [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortNameOfInstitution")] + [Key(4)] public string ShortNameOfInstitution { get; set; } /// @@ -25473,6 +26297,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(255, MinimumLength=5, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText] [DataMember(Name="webSite")] + [Key(5)] public string WebSite { get; set; } // ------------------------------------------------------------- @@ -25499,6 +26324,7 @@ public override int GetHashCode() [NoDuplicateMembers] [DataMember(Name="addresses")] + [Key(6)] public ICollection EducationOrganizationAddresses { get { return _educationOrganizationAddresses; } @@ -25520,6 +26346,7 @@ public ICollection Educ [NoDuplicateMembers][RequiredCollection] [DataMember(Name="categories")] + [Key(7)] public ICollection EducationOrganizationCategories { get { return _educationOrganizationCategories; } @@ -25541,6 +26368,7 @@ public ICollection Edu [NoDuplicateMembers] [DataMember(Name="identificationCodes")] + [Key(8)] public ICollection EducationOrganizationIdentificationCodes { get { return _educationOrganizationIdentificationCodes; } @@ -25562,6 +26390,7 @@ public ICollection EducationOrganizationIndicators { get { return _educationOrganizationIndicators; } @@ -25583,6 +26412,7 @@ public ICollection Ed [NoDuplicateMembers] [DataMember(Name="institutionTelephones")] + [Key(10)] public ICollection EducationOrganizationInstitutionTelephones { get { return _educationOrganizationInstitutionTelephones; } @@ -25604,6 +26434,7 @@ public ICollection EducationOrganizationInternationalAddresses { get { return _educationOrganizationInternationalAddresses; } @@ -25626,6 +26457,7 @@ public ICollection /// Represents a reference to the CommunityProvider resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class CommunityProviderReference : IResourceReference { [DataMember(Name="communityProviderId")] + [Key(0)] public long CommunityProviderId { get; set; } /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(1)] public Guid ResourceId { get; set; } - private Link _link; + [JsonIgnore] + [Key(2)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -26032,7 +26871,7 @@ private Link CreateLink() /// /// A class which represents the edfi.CommunityProvider table of the CommunityProvider aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class CommunityProvider : Entities.Common.EdFi.ICommunityProvider, Entities.Common.EdFi.IEducationOrganization, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -26072,6 +26911,7 @@ public CommunityProvider() /// The unique identifier for the CommunityProvider resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -26095,6 +26935,7 @@ private CommunityOrganization.EdFi.CommunityOrganizationReference ImplicitCommun } [DataMember(Name="communityOrganizationReference")] + [Key(1)] [FullyDefinedReference] public CommunityOrganization.EdFi.CommunityOrganizationReference CommunityOrganizationReference { @@ -26124,7 +26965,7 @@ public CommunityOrganization.EdFi.CommunityOrganizationReference CommunityOrgani /// // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] - [DataMember(Name="communityProviderId")] + [DataMember(Name="communityProviderId"),Key(2)] public long CommunityProviderId { get; set; } long IEducationOrganization.EducationOrganizationId @@ -26191,6 +27032,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="nameOfInstitution")] + [Key(3)] public string NameOfInstitution { get; set; } /// @@ -26199,14 +27041,23 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="operationalStatusDescriptor")][DescriptorExists("OperationalStatusDescriptor")] + [IgnoreMember] public string OperationalStatusDescriptor { get; set; } + [Key(4)][JsonIgnore] + public int OperationalStatusDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("OperationalStatusDescriptor", OperationalStatusDescriptor); } + set { OperationalStatusDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("OperationalStatusDescriptor", value); } + } + /// /// A short name for the institution. /// // NOT in a reference, NOT a lookup column [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortNameOfInstitution")] + [Key(5)] public string ShortNameOfInstitution { get; set; } /// @@ -26215,6 +27066,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(255, MinimumLength=5, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText] [DataMember(Name="webSite")] + [Key(6)] public string WebSite { get; set; } // ------------------------------------------------------------- @@ -26254,6 +27106,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="licenseExemptIndicator")] + [Key(7)] public bool? LicenseExemptIndicator { get; set; } /// @@ -26263,16 +27116,32 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="providerCategoryDescriptor")][DescriptorExists("ProviderCategoryDescriptor")] + [IgnoreMember] public string ProviderCategoryDescriptor { get; set; } + [Key(8)][JsonIgnore] + public int ProviderCategoryDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ProviderCategoryDescriptor", ProviderCategoryDescriptor); } + set { ProviderCategoryDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ProviderCategoryDescriptor", value); } + } + /// /// Indicates the profitability status of the provider. /// // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="providerProfitabilityDescriptor")][DescriptorExists("ProviderProfitabilityDescriptor")] + [IgnoreMember] public string ProviderProfitabilityDescriptor { get; set; } + [Key(9)][JsonIgnore] + public int ProviderProfitabilityDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ProviderProfitabilityDescriptor", ProviderProfitabilityDescriptor); } + set { ProviderProfitabilityDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ProviderProfitabilityDescriptor", value); } + } + /// /// Indicates the status of the provider. /// @@ -26280,13 +27149,22 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="providerStatusDescriptor")][DescriptorExists("ProviderStatusDescriptor")] + [IgnoreMember] public string ProviderStatusDescriptor { get; set; } + [Key(10)][JsonIgnore] + public int ProviderStatusDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ProviderStatusDescriptor", ProviderStatusDescriptor); } + set { ProviderStatusDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ProviderStatusDescriptor", value); } + } + /// /// An indication of whether the community provider is a school. /// // NOT in a reference, NOT a lookup column [DataMember(Name="schoolIndicator")] + [Key(11)] public bool? SchoolIndicator { get; set; } // ------------------------------------------------------------- @@ -26308,6 +27186,7 @@ public override int GetHashCode() [NoDuplicateMembers] [DataMember(Name="addresses")] + [Key(12)] public ICollection EducationOrganizationAddresses { get { return _educationOrganizationAddresses; } @@ -26329,6 +27208,7 @@ public ICollection Educ [NoDuplicateMembers][RequiredCollection] [DataMember(Name="categories")] + [Key(13)] public ICollection EducationOrganizationCategories { get { return _educationOrganizationCategories; } @@ -26350,6 +27230,7 @@ public ICollection Edu [NoDuplicateMembers] [DataMember(Name="identificationCodes")] + [Key(14)] public ICollection EducationOrganizationIdentificationCodes { get { return _educationOrganizationIdentificationCodes; } @@ -26371,6 +27252,7 @@ public ICollection EducationOrganizationIndicators { get { return _educationOrganizationIndicators; } @@ -26392,6 +27274,7 @@ public ICollection Ed [NoDuplicateMembers] [DataMember(Name="institutionTelephones")] + [Key(16)] public ICollection EducationOrganizationInstitutionTelephones { get { return _educationOrganizationInstitutionTelephones; } @@ -26413,6 +27296,7 @@ public ICollection EducationOrganizationInternationalAddresses { get { return _educationOrganizationInternationalAddresses; } @@ -26435,6 +27319,7 @@ public ICollection /// Represents a reference to the CommunityProviderLicense resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class CommunityProviderLicenseReference : IResourceReference { [DataMember(Name="communityProviderId")] + [Key(0)] public long CommunityProviderId { get; set; } [DataMember(Name="licenseIdentifier")] + [Key(1)] public string LicenseIdentifier { get; set; } [DataMember(Name="licensingOrganization")] + [Key(2)] public string LicensingOrganization { get; set; } /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(3)] 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. /// + [Key(4)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(5)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -26889,7 +27784,7 @@ private Link CreateLink() /// /// A class which represents the edfi.CommunityProviderLicense table of the CommunityProviderLicense aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class CommunityProviderLicense : Entities.Common.EdFi.ICommunityProviderLicense, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -26918,6 +27813,7 @@ public class CommunityProviderLicense : Entities.Common.EdFi.ICommunityProviderL /// The unique identifier for the CommunityProviderLicense resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -26941,6 +27837,7 @@ private CommunityProvider.EdFi.CommunityProviderReference ImplicitCommunityProvi } [DataMember(Name="communityProviderReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public CommunityProvider.EdFi.CommunityProviderReference CommunityProviderReference { @@ -26997,6 +27894,7 @@ long Entities.Common.EdFi.ICommunityProviderLicense.CommunityProviderId [RequiredWithNonDefault] [NonDefaultStringLength(36, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="licenseIdentifier")] + [Key(2)] public string LicenseIdentifier { get; set; } /// @@ -27006,6 +27904,7 @@ long Entities.Common.EdFi.ICommunityProviderLicense.CommunityProviderId [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="licensingOrganization")] + [Key(3)] public string LicensingOrganization { get; set; } // ------------------------------------------------------------- @@ -27086,6 +27985,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="authorizedFacilityCapacity")] + [Key(4)] public int? AuthorizedFacilityCapacity { get; set; } /// @@ -27094,6 +27994,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] [DataMember(Name="licenseEffectiveDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(5)] public DateTime LicenseEffectiveDate { get; set; } /// @@ -27101,6 +28002,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="licenseExpirationDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(6)] public DateTime? LicenseExpirationDate { get; set; } /// @@ -27108,6 +28010,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="licenseIssueDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(7)] public DateTime? LicenseIssueDate { get; set; } /// @@ -27116,8 +28019,16 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="licenseStatusDescriptor")][DescriptorExists("LicenseStatusDescriptor")] + [IgnoreMember] public string LicenseStatusDescriptor { get; set; } + [Key(8)][JsonIgnore] + public int LicenseStatusDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("LicenseStatusDescriptor", LicenseStatusDescriptor); } + set { LicenseStatusDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("LicenseStatusDescriptor", value); } + } + /// /// An indication of the category of the license. /// @@ -27125,13 +28036,22 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="licenseTypeDescriptor")][DescriptorExists("LicenseTypeDescriptor")] + [IgnoreMember] public string LicenseTypeDescriptor { get; set; } + [Key(9)][JsonIgnore] + public int LicenseTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("LicenseTypeDescriptor", LicenseTypeDescriptor); } + set { LicenseTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("LicenseTypeDescriptor", value); } + } + /// /// The oldest age of children a provider is authorized or licensed to serve. /// // NOT in a reference, NOT a lookup column [DataMember(Name="oldestAgeAuthorizedToServe")] + [Key(10)] public int? OldestAgeAuthorizedToServe { get; set; } /// @@ -27139,6 +28059,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="youngestAgeAuthorizedToServe")] + [Key(11)] public int? YoungestAgeAuthorizedToServe { get; set; } // ------------------------------------------------------------- @@ -27161,6 +28082,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "CommunityProviderLicense", "CommunityProviderLicense")] + [Key(12)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -27174,9 +28096,11 @@ public override int GetHashCode() // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(13)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(14)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -27315,7 +28239,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.CompetencyLevelDescriptor.EdFi /// /// A class which represents the edfi.CompetencyLevelDescriptor table of the CompetencyLevelDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class CompetencyLevelDescriptor : Entities.Common.EdFi.ICompetencyLevelDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -27344,6 +28268,7 @@ public class CompetencyLevelDescriptor : Entities.Common.EdFi.ICompetencyLevelDe /// The unique identifier for the CompetencyLevelDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -27428,6 +28353,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -27436,6 +28362,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -27443,6 +28370,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -27450,6 +28378,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -27459,6 +28388,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -27468,6 +28398,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -27511,9 +28442,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -27586,33 +28519,48 @@ namespace EdFi.Ods.Api.Common.Models.Resources.CompetencyObjective.EdFi /// /// Represents a reference to the CompetencyObjective resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class CompetencyObjectiveReference : IResourceReference { [DataMember(Name="educationOrganizationId")] + [Key(0)] public long EducationOrganizationId { get; set; } [DataMember(Name="objective")] + [Key(1)] public string Objective { get; set; } [DataMember(Name="objectiveGradeLevelDescriptor")][DescriptorExists("GradeLevelDescriptor")] + [IgnoreMember] public string ObjectiveGradeLevelDescriptor { get; set; } + [Key(2)][JsonIgnore] + public int ObjectiveGradeLevelDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("GradeLevelDescriptor", ObjectiveGradeLevelDescriptor); } + set { ObjectiveGradeLevelDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("GradeLevelDescriptor", value); } + } + /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(3)] 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. /// + [Key(4)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(5)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -27691,7 +28639,7 @@ private Link CreateLink() /// /// A class which represents the edfi.CompetencyObjective table of the CompetencyObjective aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class CompetencyObjective : Entities.Common.EdFi.ICompetencyObjective, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -27720,6 +28668,7 @@ public class CompetencyObjective : Entities.Common.EdFi.ICompetencyObjective, IH /// The unique identifier for the CompetencyObjective resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -27743,6 +28692,7 @@ private EducationOrganization.EdFi.EducationOrganizationReference ImplicitEducat } [DataMember(Name="educationOrganizationReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public EducationOrganization.EdFi.EducationOrganizationReference EducationOrganizationReference { @@ -27799,6 +28749,7 @@ long Entities.Common.EdFi.ICompetencyObjective.EducationOrganizationId [RequiredWithNonDefault] [NonDefaultStringLength(60, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="objective")] + [Key(2)] public string Objective { get; set; } /// @@ -27808,7 +28759,15 @@ long Entities.Common.EdFi.ICompetencyObjective.EducationOrganizationId [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="objectiveGradeLevelDescriptor")][DescriptorExists("GradeLevelDescriptor")] + [IgnoreMember] public string ObjectiveGradeLevelDescriptor { get; set; } + + [Key(3)][JsonIgnore] + public int ObjectiveGradeLevelDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("GradeLevelDescriptor", ObjectiveGradeLevelDescriptor); } + set { ObjectiveGradeLevelDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("GradeLevelDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -27889,6 +28848,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(60, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="competencyObjectiveId")] + [Key(4)] public string CompetencyObjectiveId { get; set; } /// @@ -27897,6 +28857,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(5)] public string Description { get; set; } /// @@ -27905,6 +28866,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(150, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="successCriteria")] + [Key(6)] public string SuccessCriteria { get; set; } // ------------------------------------------------------------- @@ -27927,6 +28889,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "CompetencyObjective", "CompetencyObjective")] + [Key(7)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -27940,9 +28903,11 @@ public override int GetHashCode() // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(8)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(9)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -28088,7 +29053,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.Contact.EdFi /// /// Represents a reference to the Contact resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class ContactReference : IResourceReference { @@ -28107,17 +29072,22 @@ public string ContactUniqueId /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(0)] 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. /// + [Key(1)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(2)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -28186,7 +29156,7 @@ private Link CreateLink() /// /// A class which represents the edfi.Contact table of the Contact aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class Contact : Entities.Common.EdFi.IContact, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -28225,6 +29195,7 @@ public Contact() /// The unique identifier for the Contact resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -28248,6 +29219,7 @@ private Person.EdFi.PersonReference ImplicitPersonReference } [DataMember(Name="personReference")] + [Key(1)] [FullyDefinedReference] public Person.EdFi.PersonReference PersonReference { @@ -28279,6 +29251,7 @@ public Person.EdFi.PersonReference PersonReference [RequiredWithNonDefault] [NonDefaultStringLength(32, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [UniqueId][DataMember(Name="contactUniqueId")] + [Key(2)] public string ContactUniqueId { get => _contactUniqueId; @@ -28353,6 +29326,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="firstName")] + [Key(3)] public string FirstName { get; set; } /// @@ -28361,6 +29335,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(60, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="genderIdentity")] + [Key(4)] public string GenderIdentity { get; set; } /// @@ -28369,6 +29344,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(10, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="generationCodeSuffix")] + [Key(5)] public string GenerationCodeSuffix { get; set; } /// @@ -28377,8 +29353,16 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="highestCompletedLevelOfEducationDescriptor")][DescriptorExists("LevelOfEducationDescriptor")] + [IgnoreMember] public string HighestCompletedLevelOfEducationDescriptor { get; set; } + [Key(6)][JsonIgnore] + public int HighestCompletedLevelOfEducationDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("LevelOfEducationDescriptor", HighestCompletedLevelOfEducationDescriptor); } + set { HighestCompletedLevelOfEducationDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("LevelOfEducationDescriptor", value); } + } + /// /// The name borne in common by members of a family. /// @@ -28386,6 +29370,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="lastSurname")] + [Key(7)] public string LastSurname { get; set; } /// @@ -28394,6 +29379,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(60, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="loginId")] + [Key(8)] public string LoginId { get; set; } /// @@ -28402,6 +29388,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="maidenName")] + [Key(9)] public string MaidenName { get; set; } /// @@ -28410,6 +29397,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="middleName")] + [Key(10)] public string MiddleName { get; set; } /// @@ -28418,6 +29406,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(30, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="personalTitlePrefix")] + [Key(11)] public string PersonalTitlePrefix { get; set; } /// @@ -28453,6 +29442,7 @@ string Entities.Common.EdFi.IContact.PersonId // NOT in a reference, NOT a lookup column [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="preferredFirstName")] + [Key(12)] public string PreferredFirstName { get; set; } /// @@ -28461,6 +29451,7 @@ string Entities.Common.EdFi.IContact.PersonId // NOT in a reference, NOT a lookup column [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="preferredLastSurname")] + [Key(13)] public string PreferredLastSurname { get; set; } /// @@ -28469,8 +29460,16 @@ string Entities.Common.EdFi.IContact.PersonId // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="sexDescriptor")][DescriptorExists("SexDescriptor")] + [IgnoreMember] public string SexDescriptor { get; set; } + [Key(14)][JsonIgnore] + public int SexDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("SexDescriptor", SexDescriptor); } + set { SexDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("SexDescriptor", value); } + } + /// /// This descriptor defines the originating record source system for the person. /// @@ -28515,6 +29514,7 @@ string Entities.Common.EdFi.IContact.SourceSystemDescriptor // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "Contact", "Contact")] + [Key(15)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -28526,6 +29526,7 @@ string Entities.Common.EdFi.IContact.SourceSystemDescriptor [NoDuplicateMembers] [DataMember(Name="addresses")] + [Key(16)] public ICollection ContactAddresses { get { return _contactAddresses; } @@ -28556,6 +29557,7 @@ public ICollection ContactAddresses [NoDuplicateMembers] [DataMember(Name="electronicMails")] + [Key(17)] public ICollection ContactElectronicMails { get { return _contactElectronicMails; } @@ -28586,6 +29588,7 @@ public ICollection ContactElectronicMails [NoDuplicateMembers] [DataMember(Name="internationalAddresses")] + [Key(18)] public ICollection ContactInternationalAddresses { get { return _contactInternationalAddresses; } @@ -28616,6 +29619,7 @@ public ICollection ContactInternationalAddresses [NoDuplicateMembers] [DataMember(Name="languages")] + [Key(19)] public ICollection ContactLanguages { get { return _contactLanguages; } @@ -28646,6 +29650,7 @@ public ICollection ContactLanguages [NoDuplicateMembers] [DataMember(Name="otherNames")] + [Key(20)] public ICollection ContactOtherNames { get { return _contactOtherNames; } @@ -28676,6 +29681,7 @@ public ICollection ContactOtherNames [NoDuplicateMembers] [DataMember(Name="personalIdentificationDocuments")] + [Key(21)] public ICollection ContactPersonalIdentificationDocuments { get { return _contactPersonalIdentificationDocuments; } @@ -28706,6 +29712,7 @@ public ICollection ContactPersonalIdentif [NoDuplicateMembers] [DataMember(Name="telephones")] + [Key(22)] public ICollection ContactTelephones { get { return _contactTelephones; } @@ -28738,9 +29745,11 @@ public ICollection ContactTelephones // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(23)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(24)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -29105,7 +30114,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// /// A class which represents the edfi.ContactAddress table of the Contact aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class ContactAddress : Entities.Common.EdFi.IContactAddress, IValidatableObject { @@ -29152,6 +30161,7 @@ Entities.Common.EdFi.IContact IContactAddress.Contact set { SetContact(value); } } + [IgnoreMember] public Entities.Common.EdFi.IContact Contact { set { SetContact(value); } @@ -29169,8 +30179,16 @@ private void SetContact(Entities.Common.EdFi.IContact value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="addressTypeDescriptor")][DescriptorExists("AddressTypeDescriptor")] + [IgnoreMember] public string AddressTypeDescriptor { get; set; } + [Key(0)][JsonIgnore] + public int AddressTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("AddressTypeDescriptor", AddressTypeDescriptor); } + set { AddressTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("AddressTypeDescriptor", value); } + } + /// /// The name of the city in which an address is located. /// @@ -29178,6 +30196,7 @@ private void SetContact(Entities.Common.EdFi.IContact value) [RequiredWithNonDefault] [NonDefaultStringLength(30, MinimumLength=2, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="city")] + [Key(1)] public string City { get; set; } /// @@ -29187,6 +30206,7 @@ private void SetContact(Entities.Common.EdFi.IContact value) [RequiredWithNonDefault] [NonDefaultStringLength(17, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="postalCode")] + [Key(2)] public string PostalCode { get; set; } /// @@ -29196,8 +30216,16 @@ private void SetContact(Entities.Common.EdFi.IContact value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="stateAbbreviationDescriptor")][DescriptorExists("StateAbbreviationDescriptor")] + [IgnoreMember] public string StateAbbreviationDescriptor { get; set; } + [Key(3)][JsonIgnore] + public int StateAbbreviationDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("StateAbbreviationDescriptor", StateAbbreviationDescriptor); } + set { StateAbbreviationDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("StateAbbreviationDescriptor", value); } + } + /// /// The street number and street name or post office box number of an address. /// @@ -29205,6 +30233,7 @@ private void SetContact(Entities.Common.EdFi.IContact value) [RequiredWithNonDefault] [NonDefaultStringLength(150, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="streetNumberName")] + [Key(4)] public string StreetNumberName { get; set; } // ------------------------------------------------------------- @@ -29312,6 +30341,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="apartmentRoomSuiteNumber")] + [Key(5)] public string ApartmentRoomSuiteNumber { get; set; } /// @@ -29320,6 +30350,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(20, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="buildingSiteNumber")] + [Key(6)] public string BuildingSiteNumber { get; set; } /// @@ -29328,6 +30359,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(30, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="congressionalDistrict")] + [Key(7)] public string CongressionalDistrict { get; set; } /// @@ -29336,6 +30368,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(5, MinimumLength=3, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText] [DataMember(Name="countyFIPSCode")] + [Key(8)] public string CountyFIPSCode { get; set; } /// @@ -29343,6 +30376,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="doNotPublishIndicator")] + [Key(9)] public bool? DoNotPublishIndicator { get; set; } /// @@ -29351,6 +30385,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(20, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="latitude")] + [Key(10)] public string Latitude { get; set; } /// @@ -29359,14 +30394,23 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="localeDescriptor")][DescriptorExists("LocaleDescriptor")] + [IgnoreMember] public string LocaleDescriptor { get; set; } + [Key(11)][JsonIgnore] + public int LocaleDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("LocaleDescriptor", LocaleDescriptor); } + set { LocaleDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("LocaleDescriptor", value); } + } + /// /// The geographic longitude of the physical address. /// // NOT in a reference, NOT a lookup column [NonDefaultStringLength(20, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="longitude")] + [Key(12)] public string Longitude { get; set; } /// @@ -29375,6 +30419,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(30, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="nameOfCounty")] + [Key(13)] public string NameOfCounty { get; set; } // ------------------------------------------------------------- @@ -29397,6 +30442,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "Contact", "ContactAddress")] + [Key(14)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -29408,6 +30454,7 @@ public override int GetHashCode() [NoDuplicateMembers] [DataMember(Name="periods")] + [Key(15)] public ICollection ContactAddressPeriods { get { return _contactAddressPeriods; } @@ -29613,7 +30660,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.ContactAddressPeriod table of the Contact aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class ContactAddressPeriod : Entities.Common.EdFi.IContactAddressPeriod, IValidatableObject { @@ -29656,6 +30703,7 @@ Entities.Common.EdFi.IContactAddress IContactAddressPeriod.ContactAddress set { SetContactAddress(value); } } + [IgnoreMember] public Entities.Common.EdFi.IContactAddress ContactAddress { set { SetContactAddress(value); } @@ -29672,6 +30720,7 @@ private void SetContactAddress(Entities.Common.EdFi.IContactAddress value) // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] [DataMember(Name="beginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(0)] public DateTime BeginDate { get; set; } // ------------------------------------------------------------- @@ -29742,6 +30791,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="endDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(1)] public DateTime? EndDate { get; set; } // ------------------------------------------------------------- @@ -29764,6 +30814,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "Contact", "ContactAddressPeriod")] + [Key(2)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -29900,7 +30951,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.ContactElectronicMail table of the Contact aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class ContactElectronicMail : Entities.Common.EdFi.IContactElectronicMail, IValidatableObject { @@ -29943,6 +30994,7 @@ Entities.Common.EdFi.IContact IContactElectronicMail.Contact set { SetContact(value); } } + [IgnoreMember] public Entities.Common.EdFi.IContact Contact { set { SetContact(value); } @@ -29960,6 +31012,7 @@ private void SetContact(Entities.Common.EdFi.IContact value) [RequiredWithNonDefault] [NonDefaultStringLength(128, MinimumLength=7, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="electronicMailAddress")] + [Key(0)] public string ElectronicMailAddress { get; set; } /// @@ -29969,7 +31022,15 @@ private void SetContact(Entities.Common.EdFi.IContact value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="electronicMailTypeDescriptor")][DescriptorExists("ElectronicMailTypeDescriptor")] + [IgnoreMember] public string ElectronicMailTypeDescriptor { get; set; } + + [Key(1)][JsonIgnore] + public int ElectronicMailTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ElectronicMailTypeDescriptor", ElectronicMailTypeDescriptor); } + set { ElectronicMailTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ElectronicMailTypeDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -30048,6 +31109,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="doNotPublishIndicator")] + [Key(2)] public bool? DoNotPublishIndicator { get; set; } /// @@ -30055,6 +31117,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="primaryEmailAddressIndicator")] + [Key(3)] public bool? PrimaryEmailAddressIndicator { get; set; } // ------------------------------------------------------------- @@ -30077,6 +31140,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "Contact", "ContactElectronicMail")] + [Key(4)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -30213,7 +31277,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.ContactInternationalAddress table of the Contact aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class ContactInternationalAddress : Entities.Common.EdFi.IContactInternationalAddress, IValidatableObject { @@ -30256,6 +31320,7 @@ Entities.Common.EdFi.IContact IContactInternationalAddress.Contact set { SetContact(value); } } + [IgnoreMember] public Entities.Common.EdFi.IContact Contact { set { SetContact(value); } @@ -30273,7 +31338,15 @@ private void SetContact(Entities.Common.EdFi.IContact value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="addressTypeDescriptor")][DescriptorExists("AddressTypeDescriptor")] + [IgnoreMember] public string AddressTypeDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int AddressTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("AddressTypeDescriptor", AddressTypeDescriptor); } + set { AddressTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("AddressTypeDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -30345,6 +31418,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(150, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="addressLine1")] + [Key(1)] public string AddressLine1 { get; set; } /// @@ -30353,6 +31427,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(150, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="addressLine2")] + [Key(2)] public string AddressLine2 { get; set; } /// @@ -30361,6 +31436,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(150, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="addressLine3")] + [Key(3)] public string AddressLine3 { get; set; } /// @@ -30369,6 +31445,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(150, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="addressLine4")] + [Key(4)] public string AddressLine4 { get; set; } /// @@ -30376,6 +31453,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="beginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(5)] public DateTime? BeginDate { get; set; } /// @@ -30385,13 +31463,22 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="countryDescriptor")][DescriptorExists("CountryDescriptor")] + [IgnoreMember] public string CountryDescriptor { get; set; } + [Key(6)][JsonIgnore] + public int CountryDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("CountryDescriptor", CountryDescriptor); } + set { CountryDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("CountryDescriptor", value); } + } + /// /// The last date the address is valid. For physical addresses, the date the individual moved from that address. Note: Date interpretation may vary. Ed-Fi recommends inclusive dates, but states may define dates as inclusive or exclusive. For calculations, align with local guidelines. /// // NOT in a reference, NOT a lookup column [DataMember(Name="endDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(7)] public DateTime? EndDate { get; set; } /// @@ -30400,6 +31487,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(20, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="latitude")] + [Key(8)] public string Latitude { get; set; } /// @@ -30408,6 +31496,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(20, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="longitude")] + [Key(9)] public string Longitude { get; set; } // ------------------------------------------------------------- @@ -30430,6 +31519,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "Contact", "ContactInternationalAddress")] + [Key(10)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -30566,7 +31656,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.ContactLanguage table of the Contact aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class ContactLanguage : Entities.Common.EdFi.IContactLanguage, IValidatableObject { @@ -30613,6 +31703,7 @@ Entities.Common.EdFi.IContact IContactLanguage.Contact set { SetContact(value); } } + [IgnoreMember] public Entities.Common.EdFi.IContact Contact { set { SetContact(value); } @@ -30630,7 +31721,15 @@ private void SetContact(Entities.Common.EdFi.IContact value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="languageDescriptor")][DescriptorExists("LanguageDescriptor")] + [IgnoreMember] public string LanguageDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int LanguageDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("LanguageDescriptor", LanguageDescriptor); } + set { LanguageDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("LanguageDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -30715,6 +31814,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "Contact", "ContactLanguage")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -30726,6 +31826,7 @@ public override int GetHashCode() [NoDuplicateMembers] [DataMember(Name="uses")] + [Key(2)] public ICollection ContactLanguageUses { get { return _contactLanguageUses; } @@ -30931,7 +32032,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.ContactLanguageUse table of the Contact aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class ContactLanguageUse : Entities.Common.EdFi.IContactLanguageUse, IValidatableObject { @@ -30974,6 +32075,7 @@ Entities.Common.EdFi.IContactLanguage IContactLanguageUse.ContactLanguage set { SetContactLanguage(value); } } + [IgnoreMember] public Entities.Common.EdFi.IContactLanguage ContactLanguage { set { SetContactLanguage(value); } @@ -30991,7 +32093,15 @@ private void SetContactLanguage(Entities.Common.EdFi.IContactLanguage value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="languageUseDescriptor")][DescriptorExists("LanguageUseDescriptor")] + [IgnoreMember] public string LanguageUseDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int LanguageUseDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("LanguageUseDescriptor", LanguageUseDescriptor); } + set { LanguageUseDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("LanguageUseDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -31076,6 +32186,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "Contact", "ContactLanguageUse")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -31212,7 +32323,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.ContactOtherName table of the Contact aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class ContactOtherName : Entities.Common.EdFi.IContactOtherName, IValidatableObject { @@ -31255,6 +32366,7 @@ Entities.Common.EdFi.IContact IContactOtherName.Contact set { SetContact(value); } } + [IgnoreMember] public Entities.Common.EdFi.IContact Contact { set { SetContact(value); } @@ -31272,7 +32384,15 @@ private void SetContact(Entities.Common.EdFi.IContact value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="otherNameTypeDescriptor")][DescriptorExists("OtherNameTypeDescriptor")] + [IgnoreMember] public string OtherNameTypeDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int OtherNameTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("OtherNameTypeDescriptor", OtherNameTypeDescriptor); } + set { OtherNameTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("OtherNameTypeDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -31344,6 +32464,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="firstName")] + [Key(1)] public string FirstName { get; set; } /// @@ -31352,6 +32473,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(10, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="generationCodeSuffix")] + [Key(2)] public string GenerationCodeSuffix { get; set; } /// @@ -31361,6 +32483,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="lastSurname")] + [Key(3)] public string LastSurname { get; set; } /// @@ -31369,6 +32492,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="middleName")] + [Key(4)] public string MiddleName { get; set; } /// @@ -31377,6 +32501,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(30, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="personalTitlePrefix")] + [Key(5)] public string PersonalTitlePrefix { get; set; } // ------------------------------------------------------------- @@ -31399,6 +32524,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "Contact", "ContactOtherName")] + [Key(6)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -31535,7 +32661,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.ContactPersonalIdentificationDocument table of the Contact aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class ContactPersonalIdentificationDocument : Entities.Common.EdFi.IContactPersonalIdentificationDocument, IValidatableObject { @@ -31578,6 +32704,7 @@ Entities.Common.EdFi.IContact IContactPersonalIdentificationDocument.Contact set { SetContact(value); } } + [IgnoreMember] public Entities.Common.EdFi.IContact Contact { set { SetContact(value); } @@ -31595,8 +32722,16 @@ private void SetContact(Entities.Common.EdFi.IContact value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="identificationDocumentUseDescriptor")][DescriptorExists("IdentificationDocumentUseDescriptor")] + [IgnoreMember] public string IdentificationDocumentUseDescriptor { get; set; } + [Key(0)][JsonIgnore] + public int IdentificationDocumentUseDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("IdentificationDocumentUseDescriptor", IdentificationDocumentUseDescriptor); } + set { IdentificationDocumentUseDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("IdentificationDocumentUseDescriptor", value); } + } + /// /// The category of the document relative to its purpose. /// @@ -31604,7 +32739,15 @@ private void SetContact(Entities.Common.EdFi.IContact value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="personalInformationVerificationDescriptor")][DescriptorExists("PersonalInformationVerificationDescriptor")] + [IgnoreMember] public string PersonalInformationVerificationDescriptor { get; set; } + + [Key(1)][JsonIgnore] + public int PersonalInformationVerificationDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("PersonalInformationVerificationDescriptor", PersonalInformationVerificationDescriptor); } + set { PersonalInformationVerificationDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("PersonalInformationVerificationDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -31683,6 +32826,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="documentExpirationDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(2)] public DateTime? DocumentExpirationDate { get; set; } /// @@ -31691,6 +32835,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(60, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="documentTitle")] + [Key(3)] public string DocumentTitle { get; set; } /// @@ -31699,14 +32844,23 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="issuerCountryDescriptor")][DescriptorExists("CountryDescriptor")] + [IgnoreMember] public string IssuerCountryDescriptor { get; set; } + [Key(4)][JsonIgnore] + public int IssuerCountryDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("CountryDescriptor", IssuerCountryDescriptor); } + set { IssuerCountryDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("CountryDescriptor", value); } + } + /// /// The unique identifier on the issuer's identification system. /// // NOT in a reference, NOT a lookup column [NonDefaultStringLength(60, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="issuerDocumentIdentificationCode")] + [Key(5)] public string IssuerDocumentIdentificationCode { get; set; } /// @@ -31715,6 +32869,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(150, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="issuerName")] + [Key(6)] public string IssuerName { get; set; } // ------------------------------------------------------------- @@ -31737,6 +32892,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "Contact", "ContactPersonalIdentificationDocument")] + [Key(7)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -31873,7 +33029,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.ContactTelephone table of the Contact aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class ContactTelephone : Entities.Common.EdFi.IContactTelephone, IValidatableObject { @@ -31916,6 +33072,7 @@ Entities.Common.EdFi.IContact IContactTelephone.Contact set { SetContact(value); } } + [IgnoreMember] public Entities.Common.EdFi.IContact Contact { set { SetContact(value); } @@ -31933,6 +33090,7 @@ private void SetContact(Entities.Common.EdFi.IContact value) [RequiredWithNonDefault] [NonDefaultStringLength(24, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="telephoneNumber")] + [Key(0)] public string TelephoneNumber { get; set; } /// @@ -31942,7 +33100,15 @@ private void SetContact(Entities.Common.EdFi.IContact value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="telephoneNumberTypeDescriptor")][DescriptorExists("TelephoneNumberTypeDescriptor")] + [IgnoreMember] public string TelephoneNumberTypeDescriptor { get; set; } + + [Key(1)][JsonIgnore] + public int TelephoneNumberTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("TelephoneNumberTypeDescriptor", TelephoneNumberTypeDescriptor); } + set { TelephoneNumberTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("TelephoneNumberTypeDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -32021,6 +33187,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="doNotPublishIndicator")] + [Key(2)] public bool? DoNotPublishIndicator { get; set; } /// @@ -32029,6 +33196,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(1, 2147483647, ErrorMessage=ValidationHelpers.RangeMinOnlyMessageFormat)] [DataMember(Name="orderOfPriority")] + [Key(3)] public int? OrderOfPriority { get; set; } /// @@ -32036,6 +33204,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="textMessageCapabilityIndicator")] + [Key(4)] public bool? TextMessageCapabilityIndicator { get; set; } // ------------------------------------------------------------- @@ -32058,6 +33227,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "Contact", "ContactTelephone")] + [Key(5)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -32199,7 +33369,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.ContactTypeDescriptor.EdFi /// /// A class which represents the edfi.ContactTypeDescriptor table of the ContactTypeDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class ContactTypeDescriptor : Entities.Common.EdFi.IContactTypeDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -32228,6 +33398,7 @@ public class ContactTypeDescriptor : Entities.Common.EdFi.IContactTypeDescriptor /// The unique identifier for the ContactTypeDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -32312,6 +33483,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -32320,6 +33492,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -32327,6 +33500,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -32334,6 +33508,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -32343,6 +33518,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -32352,6 +33528,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -32395,9 +33572,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -32470,7 +33649,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.ContentClassDescriptor.EdFi /// /// A class which represents the edfi.ContentClassDescriptor table of the ContentClassDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class ContentClassDescriptor : Entities.Common.EdFi.IContentClassDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -32499,6 +33678,7 @@ public class ContentClassDescriptor : Entities.Common.EdFi.IContentClassDescript /// The unique identifier for the ContentClassDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -32583,6 +33763,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -32591,6 +33772,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -32598,6 +33780,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -32605,6 +33788,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -32614,6 +33798,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -32623,6 +33808,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -32666,9 +33852,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -32741,7 +33929,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.ContinuationOfServicesReasonDescr /// /// A class which represents the edfi.ContinuationOfServicesReasonDescriptor table of the ContinuationOfServicesReasonDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class ContinuationOfServicesReasonDescriptor : Entities.Common.EdFi.IContinuationOfServicesReasonDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -32770,6 +33958,7 @@ public class ContinuationOfServicesReasonDescriptor : Entities.Common.EdFi.ICont /// The unique identifier for the ContinuationOfServicesReasonDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -32854,6 +34043,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -32862,6 +34052,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -32869,6 +34060,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -32876,6 +34068,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -32885,6 +34078,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -32894,6 +34088,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -32937,9 +34132,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -33012,7 +34209,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.CostRateDescriptor.EdFi /// /// A class which represents the edfi.CostRateDescriptor table of the CostRateDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class CostRateDescriptor : Entities.Common.EdFi.ICostRateDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -33041,6 +34238,7 @@ public class CostRateDescriptor : Entities.Common.EdFi.ICostRateDescriptor, Enti /// The unique identifier for the CostRateDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -33125,6 +34323,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -33133,6 +34332,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -33140,6 +34340,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -33147,6 +34348,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -33156,6 +34358,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -33165,6 +34368,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -33208,9 +34412,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -33283,7 +34489,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.CountryDescriptor.EdFi /// /// A class which represents the edfi.CountryDescriptor table of the CountryDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class CountryDescriptor : Entities.Common.EdFi.ICountryDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -33312,6 +34518,7 @@ public class CountryDescriptor : Entities.Common.EdFi.ICountryDescriptor, Entiti /// The unique identifier for the CountryDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -33396,6 +34603,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -33404,6 +34612,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -33411,6 +34620,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -33418,6 +34628,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -33427,6 +34638,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -33436,6 +34648,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -33479,9 +34692,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -33554,30 +34769,37 @@ namespace EdFi.Ods.Api.Common.Models.Resources.Course.EdFi /// /// Represents a reference to the Course resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class CourseReference : IResourceReference { [DataMember(Name="courseCode")] + [Key(0)] public string CourseCode { get; set; } [DataMember(Name="educationOrganizationId")] + [Key(1)] public long EducationOrganizationId { get; set; } /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(2)] 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. /// + [Key(3)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(4)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -33651,7 +34873,7 @@ private Link CreateLink() /// /// A class which represents the edfi.Course table of the Course aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] [NoUnsuppliedRequiredMembersWithMeaningfulDefaults] public class Course : Entities.Common.EdFi.ICourse, IHasETag, IDateVersionedEntity, IHasRequiredMembersWithMeaningfulDefaultValues, IValidatableObject @@ -33690,6 +34912,7 @@ public Course() /// The unique identifier for the Course resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -33713,6 +34936,7 @@ private EducationOrganization.EdFi.EducationOrganizationReference ImplicitEducat } [DataMember(Name="educationOrganizationReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public EducationOrganization.EdFi.EducationOrganizationReference EducationOrganizationReference { @@ -33744,6 +34968,7 @@ public EducationOrganization.EdFi.EducationOrganizationReference EducationOrgani [RequiredWithNonDefault] [NonDefaultStringLength(60, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="courseCode")] + [Key(2)] public string CourseCode { get; set; } /// @@ -33841,22 +35066,39 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="careerPathwayDescriptor")][DescriptorExists("CareerPathwayDescriptor")] + [IgnoreMember] public string CareerPathwayDescriptor { get; set; } + [Key(3)][JsonIgnore] + public int CareerPathwayDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("CareerPathwayDescriptor", CareerPathwayDescriptor); } + set { CareerPathwayDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("CareerPathwayDescriptor", value); } + } + /// /// Specifies whether the course was defined by the SEA, LEA, School, or national organization. /// // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="courseDefinedByDescriptor")][DescriptorExists("CourseDefinedByDescriptor")] + [IgnoreMember] public string CourseDefinedByDescriptor { get; set; } + [Key(4)][JsonIgnore] + public int CourseDefinedByDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("CourseDefinedByDescriptor", CourseDefinedByDescriptor); } + set { CourseDefinedByDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("CourseDefinedByDescriptor", value); } + } + /// /// A description of the content standards and goals covered in the course. Reference may be made to state or national content standards. /// // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="courseDescription")] + [Key(5)] public string CourseDescription { get; set; } /// @@ -33865,8 +35107,16 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="courseGPAApplicabilityDescriptor")][DescriptorExists("CourseGPAApplicabilityDescriptor")] + [IgnoreMember] public string CourseGPAApplicabilityDescriptor { get; set; } + [Key(6)][JsonIgnore] + public int CourseGPAApplicabilityDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("CourseGPAApplicabilityDescriptor", CourseGPAApplicabilityDescriptor); } + set { CourseGPAApplicabilityDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("CourseGPAApplicabilityDescriptor", value); } + } + /// /// The descriptive name given to a course of study offered in a school or other institution or organization. In departmentalized classes at the elementary, secondary, and postsecondary levels (and for staff development activities), this refers to the name by which a course is identified (e.g., American History, English III). For elementary and other non-departmentalized classes, it refers to any portion of the instruction for which a grade or report is assigned (e.g., reading, composition, spelling, and language arts). /// @@ -33874,6 +35124,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(60, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="courseTitle")] + [Key(7)] public string CourseTitle { get; set; } /// @@ -33881,6 +35132,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="dateCourseAdopted")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(8)] public DateTime? DateCourseAdopted { get; set; } /// @@ -33888,6 +35140,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="highSchoolCourseRequirement")] + [Key(9)] public bool? HighSchoolCourseRequirement { get; set; } /// @@ -33896,6 +35149,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(1, 2147483647, ErrorMessage=ValidationHelpers.RangeMinOnlyMessageFormat)] [DataMember(Name="maxCompletionsForCredit")] + [Key(10)] public int? MaxCompletionsForCredit { get; set; } /// @@ -33904,6 +35158,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-9999999.99", "9999999.99", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="maximumAvailableCreditConversion")] + [Key(11)] public decimal? MaximumAvailableCreditConversion { get; set; } /// @@ -33912,6 +35167,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "0", "999999.999", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="maximumAvailableCredits")] + [Key(12)] public decimal? MaximumAvailableCredits { get; set; } /// @@ -33920,14 +35176,23 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="maximumAvailableCreditTypeDescriptor")][DescriptorExists("CreditTypeDescriptor")] + [IgnoreMember] public string MaximumAvailableCreditTypeDescriptor { get; set; } + [Key(13)][JsonIgnore] + public int MaximumAvailableCreditTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("CreditTypeDescriptor", MaximumAvailableCreditTypeDescriptor); } + set { MaximumAvailableCreditTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("CreditTypeDescriptor", value); } + } + /// /// Conversion factor that when multiplied by the number of credits is equivalent to Carnegie units. /// // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-9999999.99", "9999999.99", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="minimumAvailableCreditConversion")] + [Key(14)] public decimal? MinimumAvailableCreditConversion { get; set; } /// @@ -33936,6 +35201,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "0", "999999.999", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="minimumAvailableCredits")] + [Key(15)] public decimal? MinimumAvailableCredits { get; set; } /// @@ -33944,7 +35210,15 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="minimumAvailableCreditTypeDescriptor")][DescriptorExists("CreditTypeDescriptor")] + [IgnoreMember] public string MinimumAvailableCreditTypeDescriptor { get; set; } + + [Key(16)][JsonIgnore] + public int MinimumAvailableCreditTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("CreditTypeDescriptor", MinimumAvailableCreditTypeDescriptor); } + set { MinimumAvailableCreditTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("CreditTypeDescriptor", value); } + } private bool _numberOfPartsExplicitlyAssigned = false; private int _numberOfParts; @@ -33955,6 +35229,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(1, 8, ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="numberOfParts")] + [Key(17)] public int NumberOfParts { get => _numberOfParts; @@ -33972,6 +35247,7 @@ public int NumberOfParts // NOT in a reference, NOT a lookup column [Range(1, 2147483647, ErrorMessage=ValidationHelpers.RangeMinOnlyMessageFormat)] [DataMember(Name="timeRequiredForCompletion")] + [Key(18)] public int? TimeRequiredForCompletion { get; set; } // ------------------------------------------------------------- @@ -34002,6 +35278,7 @@ IEnumerable IHasRequiredMembersWithMeaningfulDefaultValues.GetUnassigned // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "Course", "Course")] + [Key(19)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -34013,6 +35290,7 @@ IEnumerable IHasRequiredMembersWithMeaningfulDefaultValues.GetUnassigned [NoDuplicateMembers] [DataMember(Name="academicSubjects")] + [Key(20)] public ICollection CourseAcademicSubjects { get { return _courseAcademicSubjects; } @@ -34043,6 +35321,7 @@ public ICollection CourseAcademicSubjects [NoDuplicateMembers] [DataMember(Name="competencyLevels")] + [Key(21)] public ICollection CourseCompetencyLevels { get { return _courseCompetencyLevels; } @@ -34073,6 +35352,7 @@ public ICollection CourseCompetencyLevels [NoDuplicateMembers][RequiredCollection] [DataMember(Name="identificationCodes")] + [Key(22)] public ICollection CourseIdentificationCodes { get { return _courseIdentificationCodes; } @@ -34103,6 +35383,7 @@ public ICollection CourseIdentificationCodes [NoDuplicateMembers] [DataMember(Name="learningStandards")] + [Key(23)] public ICollection CourseLearningStandards { get { return _courseLearningStandards; } @@ -34133,6 +35414,7 @@ public ICollection CourseLearningStandards [NoDuplicateMembers] [DataMember(Name="levelCharacteristics")] + [Key(24)] public ICollection CourseLevelCharacteristics { get { return _courseLevelCharacteristics; } @@ -34163,6 +35445,7 @@ public ICollection CourseLevelCharacteristics [NoDuplicateMembers] [DataMember(Name="offeredGradeLevels")] + [Key(25)] public ICollection CourseOfferedGradeLevels { get { return _courseOfferedGradeLevels; } @@ -34195,9 +35478,11 @@ public ICollection CourseOfferedGradeLevels // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(26)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(27)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -34533,7 +35818,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext c /// /// A class which represents the edfi.CourseAcademicSubject table of the Course aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class CourseAcademicSubject : Entities.Common.EdFi.ICourseAcademicSubject, IValidatableObject { @@ -34576,6 +35861,7 @@ Entities.Common.EdFi.ICourse ICourseAcademicSubject.Course set { SetCourse(value); } } + [IgnoreMember] public Entities.Common.EdFi.ICourse Course { set { SetCourse(value); } @@ -34593,7 +35879,15 @@ private void SetCourse(Entities.Common.EdFi.ICourse value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="academicSubjectDescriptor")][DescriptorExists("AcademicSubjectDescriptor")] + [IgnoreMember] public string AcademicSubjectDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int AcademicSubjectDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("AcademicSubjectDescriptor", AcademicSubjectDescriptor); } + set { AcademicSubjectDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("AcademicSubjectDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -34678,6 +35972,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "Course", "CourseAcademicSubject")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -34814,7 +36109,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.CourseCompetencyLevel table of the Course aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class CourseCompetencyLevel : Entities.Common.EdFi.ICourseCompetencyLevel, IValidatableObject { @@ -34857,6 +36152,7 @@ Entities.Common.EdFi.ICourse ICourseCompetencyLevel.Course set { SetCourse(value); } } + [IgnoreMember] public Entities.Common.EdFi.ICourse Course { set { SetCourse(value); } @@ -34874,7 +36170,15 @@ private void SetCourse(Entities.Common.EdFi.ICourse value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="competencyLevelDescriptor")][DescriptorExists("CompetencyLevelDescriptor")] + [IgnoreMember] public string CompetencyLevelDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int CompetencyLevelDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("CompetencyLevelDescriptor", CompetencyLevelDescriptor); } + set { CompetencyLevelDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("CompetencyLevelDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -34959,6 +36263,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "Course", "CourseCompetencyLevel")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -35095,7 +36400,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.CourseIdentificationCode table of the Course aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class CourseIdentificationCode : Entities.Common.EdFi.ICourseIdentificationCode, IValidatableObject { @@ -35138,6 +36443,7 @@ Entities.Common.EdFi.ICourse ICourseIdentificationCode.Course set { SetCourse(value); } } + [IgnoreMember] public Entities.Common.EdFi.ICourse Course { set { SetCourse(value); } @@ -35155,7 +36461,15 @@ private void SetCourse(Entities.Common.EdFi.ICourse value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="courseIdentificationSystemDescriptor")][DescriptorExists("CourseIdentificationSystemDescriptor")] + [IgnoreMember] public string CourseIdentificationSystemDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int CourseIdentificationSystemDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("CourseIdentificationSystemDescriptor", CourseIdentificationSystemDescriptor); } + set { CourseIdentificationSystemDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("CourseIdentificationSystemDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -35226,6 +36540,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(60, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="assigningOrganizationIdentificationCode")] + [Key(1)] public string AssigningOrganizationIdentificationCode { get; set; } /// @@ -35234,6 +36549,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(255, MinimumLength=5, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText] [DataMember(Name="courseCatalogURL")] + [Key(2)] public string CourseCatalogURL { get; set; } /// @@ -35243,6 +36559,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(60, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="identificationCode")] + [Key(3)] public string IdentificationCode { get; set; } // ------------------------------------------------------------- @@ -35265,6 +36582,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "Course", "CourseIdentificationCode")] + [Key(4)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -35401,7 +36719,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.CourseLearningStandard table of the Course aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class CourseLearningStandard : Entities.Common.EdFi.ICourseLearningStandard, IValidatableObject { @@ -35446,6 +36764,7 @@ private LearningStandard.EdFi.LearningStandardReference ImplicitLearningStandard } [DataMember(Name="learningStandardReference")] + [Key(0)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public LearningStandard.EdFi.LearningStandardReference LearningStandardReference { @@ -35478,6 +36797,7 @@ Entities.Common.EdFi.ICourse ICourseLearningStandard.Course set { SetCourse(value); } } + [IgnoreMember] public Entities.Common.EdFi.ICourse Course { set { SetCourse(value); } @@ -35595,6 +36915,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "Course", "CourseLearningStandard")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -35745,7 +37066,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.CourseLevelCharacteristic table of the Course aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class CourseLevelCharacteristic : Entities.Common.EdFi.ICourseLevelCharacteristic, IValidatableObject { @@ -35788,6 +37109,7 @@ Entities.Common.EdFi.ICourse ICourseLevelCharacteristic.Course set { SetCourse(value); } } + [IgnoreMember] public Entities.Common.EdFi.ICourse Course { set { SetCourse(value); } @@ -35805,7 +37127,15 @@ private void SetCourse(Entities.Common.EdFi.ICourse value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="courseLevelCharacteristicDescriptor")][DescriptorExists("CourseLevelCharacteristicDescriptor")] + [IgnoreMember] public string CourseLevelCharacteristicDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int CourseLevelCharacteristicDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("CourseLevelCharacteristicDescriptor", CourseLevelCharacteristicDescriptor); } + set { CourseLevelCharacteristicDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("CourseLevelCharacteristicDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -35890,6 +37220,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "Course", "CourseLevelCharacteristic")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -36026,7 +37357,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.CourseOfferedGradeLevel table of the Course aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class CourseOfferedGradeLevel : Entities.Common.EdFi.ICourseOfferedGradeLevel, IValidatableObject { @@ -36069,6 +37400,7 @@ Entities.Common.EdFi.ICourse ICourseOfferedGradeLevel.Course set { SetCourse(value); } } + [IgnoreMember] public Entities.Common.EdFi.ICourse Course { set { SetCourse(value); } @@ -36086,7 +37418,15 @@ private void SetCourse(Entities.Common.EdFi.ICourse value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="gradeLevelDescriptor")][DescriptorExists("GradeLevelDescriptor")] + [IgnoreMember] public string GradeLevelDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int GradeLevelDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("GradeLevelDescriptor", GradeLevelDescriptor); } + set { GradeLevelDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("GradeLevelDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -36171,6 +37511,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "Course", "CourseOfferedGradeLevel")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -36312,7 +37653,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.CourseAttemptResultDescriptor.EdF /// /// A class which represents the edfi.CourseAttemptResultDescriptor table of the CourseAttemptResultDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class CourseAttemptResultDescriptor : Entities.Common.EdFi.ICourseAttemptResultDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -36341,6 +37682,7 @@ public class CourseAttemptResultDescriptor : Entities.Common.EdFi.ICourseAttempt /// The unique identifier for the CourseAttemptResultDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -36425,6 +37767,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -36433,6 +37776,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -36440,6 +37784,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -36447,6 +37792,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -36456,6 +37802,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -36465,6 +37812,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -36508,9 +37856,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -36583,7 +37933,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.CourseDefinedByDescriptor.EdFi /// /// A class which represents the edfi.CourseDefinedByDescriptor table of the CourseDefinedByDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class CourseDefinedByDescriptor : Entities.Common.EdFi.ICourseDefinedByDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -36612,6 +37962,7 @@ public class CourseDefinedByDescriptor : Entities.Common.EdFi.ICourseDefinedByDe /// The unique identifier for the CourseDefinedByDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -36696,6 +38047,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -36704,6 +38056,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -36711,6 +38064,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -36718,6 +38072,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -36727,6 +38082,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -36736,6 +38092,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -36779,9 +38136,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -36854,7 +38213,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.CourseGPAApplicabilityDescriptor. /// /// A class which represents the edfi.CourseGPAApplicabilityDescriptor table of the CourseGPAApplicabilityDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class CourseGPAApplicabilityDescriptor : Entities.Common.EdFi.ICourseGPAApplicabilityDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -36883,6 +38242,7 @@ public class CourseGPAApplicabilityDescriptor : Entities.Common.EdFi.ICourseGPAA /// The unique identifier for the CourseGPAApplicabilityDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -36967,6 +38327,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -36975,6 +38336,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -36982,6 +38344,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -36989,6 +38352,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -36998,6 +38362,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -37007,6 +38372,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -37050,9 +38416,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -37125,7 +38493,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.CourseIdentificationSystemDescrip /// /// A class which represents the edfi.CourseIdentificationSystemDescriptor table of the CourseIdentificationSystemDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class CourseIdentificationSystemDescriptor : Entities.Common.EdFi.ICourseIdentificationSystemDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -37154,6 +38522,7 @@ public class CourseIdentificationSystemDescriptor : Entities.Common.EdFi.ICourse /// The unique identifier for the CourseIdentificationSystemDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -37238,6 +38607,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -37246,6 +38616,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -37253,6 +38624,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -37260,6 +38632,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -37269,6 +38642,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -37278,6 +38652,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -37321,9 +38696,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -37396,7 +38773,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.CourseLevelCharacteristicDescript /// /// A class which represents the edfi.CourseLevelCharacteristicDescriptor table of the CourseLevelCharacteristicDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class CourseLevelCharacteristicDescriptor : Entities.Common.EdFi.ICourseLevelCharacteristicDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -37425,6 +38802,7 @@ public class CourseLevelCharacteristicDescriptor : Entities.Common.EdFi.ICourseL /// The unique identifier for the CourseLevelCharacteristicDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -37509,6 +38887,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -37517,6 +38896,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -37524,6 +38904,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -37531,6 +38912,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -37540,6 +38922,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -37549,6 +38932,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -37592,9 +38976,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -37667,36 +39053,45 @@ namespace EdFi.Ods.Api.Common.Models.Resources.CourseOffering.EdFi /// /// Represents a reference to the CourseOffering resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class CourseOfferingReference : IResourceReference { [DataMember(Name="localCourseCode")] + [Key(0)] public string LocalCourseCode { get; set; } [DataMember(Name="schoolId")] + [Key(1)] public long SchoolId { get; set; } [DataMember(Name="schoolYear")] + [Key(2)] public short SchoolYear { get; set; } [DataMember(Name="sessionName")] + [Key(3)] public string SessionName { get; set; } /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(4)] 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. /// + [Key(5)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(6)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -37780,7 +39175,7 @@ private Link CreateLink() /// /// A class which represents the edfi.CourseOffering table of the CourseOffering aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class CourseOffering : Entities.Common.EdFi.ICourseOffering, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -37815,6 +39210,7 @@ public CourseOffering() /// The unique identifier for the CourseOffering resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -37838,6 +39234,7 @@ private Course.EdFi.CourseReference ImplicitCourseReference } [DataMember(Name="courseReference")] + [Key(1)] [FullyDefinedReference][RequiredReference("edfi", "CourseOffering")] public Course.EdFi.CourseReference CourseReference { @@ -37871,6 +39268,7 @@ private School.EdFi.SchoolReference ImplicitSchoolReference } [DataMember(Name="schoolReference")] + [Key(2)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public School.EdFi.SchoolReference SchoolReference { @@ -37904,6 +39302,7 @@ private Session.EdFi.SessionReference ImplicitSessionReference } [DataMember(Name="sessionReference")] + [Key(3)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Session.EdFi.SessionReference SessionReference { @@ -37935,6 +39334,7 @@ public Session.EdFi.SessionReference SessionReference [RequiredWithNonDefault] [NonDefaultStringLength(60, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="localCourseCode")] + [Key(4)] public string LocalCourseCode { get; set; } /// @@ -38156,6 +39556,7 @@ long Entities.Common.EdFi.ICourseOffering.EducationOrganizationId // NOT in a reference, NOT a lookup column [Range(1, 2147483647, ErrorMessage=ValidationHelpers.RangeMinOnlyMessageFormat)] [DataMember(Name="instructionalTimePlanned")] + [Key(5)] public int? InstructionalTimePlanned { get; set; } /// @@ -38164,6 +39565,7 @@ long Entities.Common.EdFi.ICourseOffering.EducationOrganizationId // NOT in a reference, NOT a lookup column [NonDefaultStringLength(60, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="localCourseTitle")] + [Key(6)] public string LocalCourseTitle { get; set; } // ------------------------------------------------------------- @@ -38186,6 +39588,7 @@ long Entities.Common.EdFi.ICourseOffering.EducationOrganizationId // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "CourseOffering", "CourseOffering")] + [Key(7)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -38197,6 +39600,7 @@ long Entities.Common.EdFi.ICourseOffering.EducationOrganizationId [NoDuplicateMembers] [DataMember(Name="courseLevelCharacteristics")] + [Key(8)] public ICollection CourseOfferingCourseLevelCharacteristics { get { return _courseOfferingCourseLevelCharacteristics; } @@ -38227,6 +39631,7 @@ public ICollection CourseOfferingCourse [NoDuplicateMembers] [DataMember(Name="curriculumUseds")] + [Key(9)] public ICollection CourseOfferingCurriculumUseds { get { return _courseOfferingCurriculumUseds; } @@ -38257,6 +39662,7 @@ public ICollection CourseOfferingCurriculumUseds [NoDuplicateMembers] [DataMember(Name="offeredGradeLevels")] + [Key(10)] public ICollection CourseOfferingOfferedGradeLevels { get { return _courseOfferingOfferedGradeLevels; } @@ -38289,9 +39695,11 @@ public ICollection CourseOfferingOfferedGradeLe // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(11)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(12)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -38600,7 +40008,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.CourseOfferingCourseLevelCharacteristic table of the CourseOffering aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class CourseOfferingCourseLevelCharacteristic : Entities.Common.EdFi.ICourseOfferingCourseLevelCharacteristic, IValidatableObject { @@ -38643,6 +40051,7 @@ Entities.Common.EdFi.ICourseOffering ICourseOfferingCourseLevelCharacteristic.Co set { SetCourseOffering(value); } } + [IgnoreMember] public Entities.Common.EdFi.ICourseOffering CourseOffering { set { SetCourseOffering(value); } @@ -38660,7 +40069,15 @@ private void SetCourseOffering(Entities.Common.EdFi.ICourseOffering value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="courseLevelCharacteristicDescriptor")][DescriptorExists("CourseLevelCharacteristicDescriptor")] + [IgnoreMember] public string CourseLevelCharacteristicDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int CourseLevelCharacteristicDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("CourseLevelCharacteristicDescriptor", CourseLevelCharacteristicDescriptor); } + set { CourseLevelCharacteristicDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("CourseLevelCharacteristicDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -38745,6 +40162,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "CourseOffering", "CourseOfferingCourseLevelCharacteristic")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -38881,7 +40299,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.CourseOfferingCurriculumUsed table of the CourseOffering aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class CourseOfferingCurriculumUsed : Entities.Common.EdFi.ICourseOfferingCurriculumUsed, IValidatableObject { @@ -38924,6 +40342,7 @@ Entities.Common.EdFi.ICourseOffering ICourseOfferingCurriculumUsed.CourseOfferin set { SetCourseOffering(value); } } + [IgnoreMember] public Entities.Common.EdFi.ICourseOffering CourseOffering { set { SetCourseOffering(value); } @@ -38941,7 +40360,15 @@ private void SetCourseOffering(Entities.Common.EdFi.ICourseOffering value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="curriculumUsedDescriptor")][DescriptorExists("CurriculumUsedDescriptor")] + [IgnoreMember] public string CurriculumUsedDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int CurriculumUsedDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("CurriculumUsedDescriptor", CurriculumUsedDescriptor); } + set { CurriculumUsedDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("CurriculumUsedDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -39026,6 +40453,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "CourseOffering", "CourseOfferingCurriculumUsed")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -39162,7 +40590,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.CourseOfferingOfferedGradeLevel table of the CourseOffering aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class CourseOfferingOfferedGradeLevel : Entities.Common.EdFi.ICourseOfferingOfferedGradeLevel, IValidatableObject { @@ -39205,6 +40633,7 @@ Entities.Common.EdFi.ICourseOffering ICourseOfferingOfferedGradeLevel.CourseOffe set { SetCourseOffering(value); } } + [IgnoreMember] public Entities.Common.EdFi.ICourseOffering CourseOffering { set { SetCourseOffering(value); } @@ -39222,7 +40651,15 @@ private void SetCourseOffering(Entities.Common.EdFi.ICourseOffering value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="gradeLevelDescriptor")][DescriptorExists("GradeLevelDescriptor")] + [IgnoreMember] public string GradeLevelDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int GradeLevelDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("GradeLevelDescriptor", GradeLevelDescriptor); } + set { GradeLevelDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("GradeLevelDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -39307,6 +40744,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "CourseOffering", "CourseOfferingOfferedGradeLevel")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -39448,7 +40886,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.CourseRepeatCodeDescriptor.EdFi /// /// A class which represents the edfi.CourseRepeatCodeDescriptor table of the CourseRepeatCodeDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class CourseRepeatCodeDescriptor : Entities.Common.EdFi.ICourseRepeatCodeDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -39477,6 +40915,7 @@ public class CourseRepeatCodeDescriptor : Entities.Common.EdFi.ICourseRepeatCode /// The unique identifier for the CourseRepeatCodeDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -39561,6 +41000,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -39569,6 +41009,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -39576,6 +41017,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -39583,6 +41025,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -39592,6 +41035,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -39601,6 +41045,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -39644,9 +41089,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -39719,23 +41166,35 @@ namespace EdFi.Ods.Api.Common.Models.Resources.CourseTranscript.EdFi /// /// Represents a reference to the CourseTranscript resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class CourseTranscriptReference : IResourceReference { [DataMember(Name="courseAttemptResultDescriptor")][DescriptorExists("CourseAttemptResultDescriptor")] + [IgnoreMember] public string CourseAttemptResultDescriptor { get; set; } + [Key(0)][JsonIgnore] + public int CourseAttemptResultDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("CourseAttemptResultDescriptor", CourseAttemptResultDescriptor); } + set { CourseAttemptResultDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("CourseAttemptResultDescriptor", value); } + } + [DataMember(Name="courseCode")] + [Key(1)] public string CourseCode { get; set; } [DataMember(Name="courseEducationOrganizationId")] + [Key(2)] public long CourseEducationOrganizationId { get; set; } [DataMember(Name="educationOrganizationId")] + [Key(3)] public long EducationOrganizationId { get; set; } [DataMember(Name="schoolYear")] + [Key(4)] public short SchoolYear { get; set; } [DataMember(Name="studentUniqueId")] @@ -39751,22 +41210,35 @@ public string StudentUniqueId private string _studentUniqueId; [DataMember(Name="termDescriptor")][DescriptorExists("TermDescriptor")] + [IgnoreMember] public string TermDescriptor { get; set; } + [Key(5)][JsonIgnore] + public int TermDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("TermDescriptor", TermDescriptor); } + set { TermDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("TermDescriptor", value); } + } + /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(6)] 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. /// + [Key(7)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(8)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -39865,7 +41337,7 @@ private Link CreateLink() /// /// A class which represents the edfi.CourseTranscript table of the CourseTranscript aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class CourseTranscript : Entities.Common.EdFi.ICourseTranscript, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -39904,6 +41376,7 @@ public CourseTranscript() /// The unique identifier for the CourseTranscript resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -39927,6 +41400,7 @@ private Course.EdFi.CourseReference ImplicitCourseReference } [DataMember(Name="courseReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Course.EdFi.CourseReference CourseReference { @@ -39960,6 +41434,7 @@ private EducationOrganization.EdFi.EducationOrganizationReference ImplicitExtern } [DataMember(Name="externalEducationOrganizationReference")] + [Key(2)] [FullyDefinedReference] public EducationOrganization.EdFi.EducationOrganizationReference ExternalEducationOrganizationReference { @@ -39993,6 +41468,7 @@ private Staff.EdFi.StaffReference ImplicitResponsibleTeacherStaffReference } [DataMember(Name="responsibleTeacherStaffReference")] + [Key(3)] [FullyDefinedReference] public Staff.EdFi.StaffReference ResponsibleTeacherStaffReference { @@ -40026,6 +41502,7 @@ private StudentAcademicRecord.EdFi.StudentAcademicRecordReference ImplicitStuden } [DataMember(Name="studentAcademicRecordReference")] + [Key(4)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public StudentAcademicRecord.EdFi.StudentAcademicRecordReference StudentAcademicRecordReference { @@ -40057,8 +41534,16 @@ public StudentAcademicRecord.EdFi.StudentAcademicRecordReference StudentAcademic [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="courseAttemptResultDescriptor")][DescriptorExists("CourseAttemptResultDescriptor")] + [IgnoreMember] public string CourseAttemptResultDescriptor { get; set; } + [Key(5)][JsonIgnore] + public int CourseAttemptResultDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("CourseAttemptResultDescriptor", CourseAttemptResultDescriptor); } + set { CourseAttemptResultDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("CourseAttemptResultDescriptor", value); } + } + /// /// A unique alphanumeric code assigned to a course. /// @@ -40317,6 +41802,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(60, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="alternativeCourseTitle")] + [Key(6)] public string AlternativeCourseTitle { get; set; } /// @@ -40325,6 +41811,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(60, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="assigningOrganizationIdentificationCode")] + [Key(7)] public string AssigningOrganizationIdentificationCode { get; set; } /// @@ -40333,6 +41820,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-9999999.99", "9999999.99", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="attemptedCreditConversion")] + [Key(8)] public decimal? AttemptedCreditConversion { get; set; } /// @@ -40341,6 +41829,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "0", "999999.999", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="attemptedCredits")] + [Key(9)] public decimal? AttemptedCredits { get; set; } /// @@ -40349,14 +41838,23 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="attemptedCreditTypeDescriptor")][DescriptorExists("CreditTypeDescriptor")] + [IgnoreMember] public string AttemptedCreditTypeDescriptor { get; set; } + [Key(10)][JsonIgnore] + public int AttemptedCreditTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("CreditTypeDescriptor", AttemptedCreditTypeDescriptor); } + set { AttemptedCreditTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("CreditTypeDescriptor", value); } + } + /// /// The URL for the course catalog that defines the course identification code. /// // NOT in a reference, NOT a lookup column [NonDefaultStringLength(255, MinimumLength=5, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText] [DataMember(Name="courseCatalogURL")] + [Key(11)] public string CourseCatalogURL { get; set; } /// @@ -40365,14 +41863,23 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="courseRepeatCodeDescriptor")][DescriptorExists("CourseRepeatCodeDescriptor")] + [IgnoreMember] public string CourseRepeatCodeDescriptor { get; set; } + [Key(12)][JsonIgnore] + public int CourseRepeatCodeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("CourseRepeatCodeDescriptor", CourseRepeatCodeDescriptor); } + set { CourseRepeatCodeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("CourseRepeatCodeDescriptor", value); } + } + /// /// The descriptive name given to a course of study offered in a school or other institution or organization. In departmentalized classes at the elementary, secondary, and postsecondary levels (and for staff development activities), this refers to the name by which a course is identified (e.g., American History, English III). For elementary and other non-departmentalized classes, it refers to any portion of the instruction for which a grade or report is assigned (e.g., reading, composition, spelling, language arts). /// // NOT in a reference, NOT a lookup column [NonDefaultStringLength(60, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="courseTitle")] + [Key(13)] public string CourseTitle { get; set; } /// @@ -40381,6 +41888,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-9999999.99", "9999999.99", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="earnedCreditConversion")] + [Key(14)] public decimal? EarnedCreditConversion { get; set; } /// @@ -40389,6 +41897,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "0", "999999.999", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="earnedCredits")] + [Key(15)] public decimal? EarnedCredits { get; set; } /// @@ -40397,8 +41906,16 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="earnedCreditTypeDescriptor")][DescriptorExists("CreditTypeDescriptor")] + [IgnoreMember] public string EarnedCreditTypeDescriptor { get; set; } + [Key(16)][JsonIgnore] + public int EarnedCreditTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("CreditTypeDescriptor", EarnedCreditTypeDescriptor); } + set { EarnedCreditTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("CreditTypeDescriptor", value); } + } + /// /// The identifier assigned to an education organization. /// @@ -40432,6 +41949,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="externalEducationOrganizationNameOfInstitution")] + [Key(17)] public string ExternalEducationOrganizationNameOfInstitution { get; set; } /// @@ -40440,6 +41958,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(20, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="finalLetterGradeEarned")] + [Key(18)] public string FinalLetterGradeEarned { get; set; } /// @@ -40448,6 +41967,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-9999999.99", "9999999.99", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="finalNumericGradeEarned")] + [Key(19)] public decimal? FinalNumericGradeEarned { get; set; } /// @@ -40456,8 +41976,16 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="methodCreditEarnedDescriptor")][DescriptorExists("MethodCreditEarnedDescriptor")] + [IgnoreMember] public string MethodCreditEarnedDescriptor { get; set; } + [Key(20)][JsonIgnore] + public int MethodCreditEarnedDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("MethodCreditEarnedDescriptor", MethodCreditEarnedDescriptor); } + set { MethodCreditEarnedDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("MethodCreditEarnedDescriptor", value); } + } + /// /// A unique alphanumeric code assigned to a responsibleteacherstaff. /// @@ -40492,7 +42020,15 @@ string Entities.Common.EdFi.ICourseTranscript.ResponsibleTeacherStaffUniqueId // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="whenTakenGradeLevelDescriptor")][DescriptorExists("GradeLevelDescriptor")] + [IgnoreMember] public string WhenTakenGradeLevelDescriptor { get; set; } + + [Key(21)][JsonIgnore] + public int WhenTakenGradeLevelDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("GradeLevelDescriptor", WhenTakenGradeLevelDescriptor); } + set { WhenTakenGradeLevelDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("GradeLevelDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -40514,6 +42050,7 @@ string Entities.Common.EdFi.ICourseTranscript.ResponsibleTeacherStaffUniqueId // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "CourseTranscript", "CourseTranscript")] + [Key(22)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -40525,6 +42062,7 @@ string Entities.Common.EdFi.ICourseTranscript.ResponsibleTeacherStaffUniqueId [NoDuplicateMembers] [DataMember(Name="academicSubjects")] + [Key(23)] public ICollection CourseTranscriptAcademicSubjects { get { return _courseTranscriptAcademicSubjects; } @@ -40555,6 +42093,7 @@ public ICollection CourseTranscriptAcademicSubj [NoDuplicateMembers] [DataMember(Name="alternativeCourseIdentificationCodes")] + [Key(24)] public ICollection CourseTranscriptAlternativeCourseIdentificationCodes { get { return _courseTranscriptAlternativeCourseIdentificationCodes; } @@ -40585,6 +42124,7 @@ public ICollection CourseTr [NoDuplicateMembers] [DataMember(Name="coursePrograms")] + [Key(25)] public ICollection CourseTranscriptCoursePrograms { get { return _courseTranscriptCoursePrograms; } @@ -40615,6 +42155,7 @@ public ICollection CourseTranscriptCoursePrograms [NoDuplicateMembers] [DataMember(Name="creditCategories")] + [Key(26)] public ICollection CourseTranscriptCreditCategories { get { return _courseTranscriptCreditCategories; } @@ -40645,6 +42186,7 @@ public ICollection CourseTranscriptCreditCategor [NoDuplicateMembers] [DataMember(Name="earnedAdditionalCredits")] + [Key(27)] public ICollection CourseTranscriptEarnedAdditionalCredits { get { return _courseTranscriptEarnedAdditionalCredits; } @@ -40675,6 +42217,7 @@ public ICollection CourseTranscriptEarn [NoDuplicateMembers] [DataMember(Name="partialCourseTranscriptAwards")] + [Key(28)] public ICollection CourseTranscriptPartialCourseTranscriptAwards { get { return _courseTranscriptPartialCourseTranscriptAwards; } @@ -40705,6 +42248,7 @@ public ICollection CourseTranscri [NoDuplicateMembers] [DataMember(Name="sections")] + [Key(29)] public ICollection CourseTranscriptSections { get { return _courseTranscriptSections; } @@ -40737,9 +42281,11 @@ public ICollection CourseTranscriptSections // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(30)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(31)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -41146,7 +42692,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.CourseTranscriptAcademicSubject table of the CourseTranscript aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class CourseTranscriptAcademicSubject : Entities.Common.EdFi.ICourseTranscriptAcademicSubject, IValidatableObject { @@ -41189,6 +42735,7 @@ Entities.Common.EdFi.ICourseTranscript ICourseTranscriptAcademicSubject.CourseTr set { SetCourseTranscript(value); } } + [IgnoreMember] public Entities.Common.EdFi.ICourseTranscript CourseTranscript { set { SetCourseTranscript(value); } @@ -41206,7 +42753,15 @@ private void SetCourseTranscript(Entities.Common.EdFi.ICourseTranscript value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="academicSubjectDescriptor")][DescriptorExists("AcademicSubjectDescriptor")] + [IgnoreMember] public string AcademicSubjectDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int AcademicSubjectDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("AcademicSubjectDescriptor", AcademicSubjectDescriptor); } + set { AcademicSubjectDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("AcademicSubjectDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -41291,6 +42846,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "CourseTranscript", "CourseTranscriptAcademicSubject")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -41427,7 +42983,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.CourseTranscriptAlternativeCourseIdentificationCode table of the CourseTranscript aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class CourseTranscriptAlternativeCourseIdentificationCode : Entities.Common.EdFi.ICourseTranscriptAlternativeCourseIdentificationCode, IValidatableObject { @@ -41470,6 +43026,7 @@ Entities.Common.EdFi.ICourseTranscript ICourseTranscriptAlternativeCourseIdentif set { SetCourseTranscript(value); } } + [IgnoreMember] public Entities.Common.EdFi.ICourseTranscript CourseTranscript { set { SetCourseTranscript(value); } @@ -41487,7 +43044,15 @@ private void SetCourseTranscript(Entities.Common.EdFi.ICourseTranscript value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="courseIdentificationSystemDescriptor")][DescriptorExists("CourseIdentificationSystemDescriptor")] + [IgnoreMember] public string CourseIdentificationSystemDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int CourseIdentificationSystemDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("CourseIdentificationSystemDescriptor", CourseIdentificationSystemDescriptor); } + set { CourseIdentificationSystemDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("CourseIdentificationSystemDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -41558,6 +43123,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(60, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="assigningOrganizationIdentificationCode")] + [Key(1)] public string AssigningOrganizationIdentificationCode { get; set; } /// @@ -41566,6 +43132,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(255, MinimumLength=5, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText] [DataMember(Name="courseCatalogURL")] + [Key(2)] public string CourseCatalogURL { get; set; } /// @@ -41575,6 +43142,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(60, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="identificationCode")] + [Key(3)] public string IdentificationCode { get; set; } // ------------------------------------------------------------- @@ -41597,6 +43165,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "CourseTranscript", "CourseTranscriptAlternativeCourseIdentificationCode")] + [Key(4)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -41733,7 +43302,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.CourseTranscriptCourseProgram table of the CourseTranscript aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class CourseTranscriptCourseProgram : Entities.Common.EdFi.ICourseTranscriptCourseProgram, IValidatableObject { @@ -41778,6 +43347,7 @@ private Program.EdFi.ProgramReference ImplicitCourseProgramReference } [DataMember(Name="courseProgramReference")] + [Key(0)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Program.EdFi.ProgramReference CourseProgramReference { @@ -41810,6 +43380,7 @@ Entities.Common.EdFi.ICourseTranscript ICourseTranscriptCourseProgram.CourseTran set { SetCourseTranscript(value); } } + [IgnoreMember] public Entities.Common.EdFi.ICourseTranscript CourseTranscript { set { SetCourseTranscript(value); } @@ -41963,6 +43534,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "CourseTranscript", "CourseTranscriptCourseProgram")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -42153,7 +43725,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.CourseTranscriptCreditCategory table of the CourseTranscript aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class CourseTranscriptCreditCategory : Entities.Common.EdFi.ICourseTranscriptCreditCategory, IValidatableObject { @@ -42196,6 +43768,7 @@ Entities.Common.EdFi.ICourseTranscript ICourseTranscriptCreditCategory.CourseTra set { SetCourseTranscript(value); } } + [IgnoreMember] public Entities.Common.EdFi.ICourseTranscript CourseTranscript { set { SetCourseTranscript(value); } @@ -42213,7 +43786,15 @@ private void SetCourseTranscript(Entities.Common.EdFi.ICourseTranscript value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="creditCategoryDescriptor")][DescriptorExists("CreditCategoryDescriptor")] + [IgnoreMember] public string CreditCategoryDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int CreditCategoryDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("CreditCategoryDescriptor", CreditCategoryDescriptor); } + set { CreditCategoryDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("CreditCategoryDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -42298,6 +43879,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "CourseTranscript", "CourseTranscriptCreditCategory")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -42434,7 +44016,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.CourseTranscriptEarnedAdditionalCredits table of the CourseTranscript aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] [NoUnsuppliedRequiredMembersWithMeaningfulDefaults] public class CourseTranscriptEarnedAdditionalCredits : Entities.Common.EdFi.ICourseTranscriptEarnedAdditionalCredits, IHasRequiredMembersWithMeaningfulDefaultValues, IValidatableObject @@ -42478,6 +44060,7 @@ Entities.Common.EdFi.ICourseTranscript ICourseTranscriptEarnedAdditionalCredits. set { SetCourseTranscript(value); } } + [IgnoreMember] public Entities.Common.EdFi.ICourseTranscript CourseTranscript { set { SetCourseTranscript(value); } @@ -42495,7 +44078,15 @@ private void SetCourseTranscript(Entities.Common.EdFi.ICourseTranscript value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="additionalCreditTypeDescriptor")][DescriptorExists("AdditionalCreditTypeDescriptor")] + [IgnoreMember] public string AdditionalCreditTypeDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int AdditionalCreditTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("AdditionalCreditTypeDescriptor", AdditionalCreditTypeDescriptor); } + set { AdditionalCreditTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("AdditionalCreditTypeDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -42569,6 +44160,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "0", "999999.999", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="credits")] + [Key(1)] public decimal Credits { get => _credits; @@ -42608,6 +44200,7 @@ IEnumerable IHasRequiredMembersWithMeaningfulDefaultValues.GetUnassigned // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "CourseTranscript", "CourseTranscriptEarnedAdditionalCredits")] + [Key(2)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -42744,7 +44337,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.CourseTranscriptPartialCourseTranscriptAwards table of the CourseTranscript aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] [NoUnsuppliedRequiredMembersWithMeaningfulDefaults] public class CourseTranscriptPartialCourseTranscriptAwards : Entities.Common.EdFi.ICourseTranscriptPartialCourseTranscriptAwards, IHasRequiredMembersWithMeaningfulDefaultValues, IValidatableObject @@ -42788,6 +44381,7 @@ Entities.Common.EdFi.ICourseTranscript ICourseTranscriptPartialCourseTranscriptA set { SetCourseTranscript(value); } } + [IgnoreMember] public Entities.Common.EdFi.ICourseTranscript CourseTranscript { set { SetCourseTranscript(value); } @@ -42804,6 +44398,7 @@ private void SetCourseTranscript(Entities.Common.EdFi.ICourseTranscript value) // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] [DataMember(Name="awardDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(0)] public DateTime AwardDate { get; set; } // ------------------------------------------------------------- @@ -42878,6 +44473,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "0", "999999.999", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="earnedCredits")] + [Key(1)] public decimal EarnedCredits { get => _earnedCredits; @@ -42895,6 +44491,7 @@ public decimal EarnedCredits // NOT in a reference, NOT a lookup column [NonDefaultStringLength(20, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="letterGradeEarned")] + [Key(2)] public string LetterGradeEarned { get; set; } /// @@ -42903,14 +44500,23 @@ public decimal EarnedCredits // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="methodCreditEarnedDescriptor")][DescriptorExists("MethodCreditEarnedDescriptor")] + [IgnoreMember] public string MethodCreditEarnedDescriptor { get; set; } + [Key(3)][JsonIgnore] + public int MethodCreditEarnedDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("MethodCreditEarnedDescriptor", MethodCreditEarnedDescriptor); } + set { MethodCreditEarnedDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("MethodCreditEarnedDescriptor", value); } + } + /// /// The indicator of student performance as submitted by the instructor. /// // NOT in a reference, NOT a lookup column [NonDefaultStringLength(20, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="numericGradeEarned")] + [Key(4)] public string NumericGradeEarned { get; set; } // ------------------------------------------------------------- @@ -42941,6 +44547,7 @@ IEnumerable IHasRequiredMembersWithMeaningfulDefaultValues.GetUnassigned // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "CourseTranscript", "CourseTranscriptPartialCourseTranscriptAwards")] + [Key(5)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -43077,7 +44684,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.CourseTranscriptSection table of the CourseTranscript aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class CourseTranscriptSection : Entities.Common.EdFi.ICourseTranscriptSection, IValidatableObject { @@ -43122,6 +44729,7 @@ private Section.EdFi.SectionReference ImplicitSectionReference } [DataMember(Name="sectionReference")] + [Key(0)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Section.EdFi.SectionReference SectionReference { @@ -43154,6 +44762,7 @@ Entities.Common.EdFi.ICourseTranscript ICourseTranscriptSection.CourseTranscript set { SetCourseTranscript(value); } } + [IgnoreMember] public Entities.Common.EdFi.ICourseTranscript CourseTranscript { set { SetCourseTranscript(value); } @@ -43376,6 +44985,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "CourseTranscript", "CourseTranscriptSection")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -43571,30 +45181,44 @@ namespace EdFi.Ods.Api.Common.Models.Resources.Credential.EdFi /// /// Represents a reference to the Credential resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class CredentialReference : IResourceReference { [DataMember(Name="credentialIdentifier")] + [Key(0)] public string CredentialIdentifier { get; set; } [DataMember(Name="stateOfIssueStateAbbreviationDescriptor")][DescriptorExists("StateAbbreviationDescriptor")] + [IgnoreMember] public string StateOfIssueStateAbbreviationDescriptor { get; set; } + [Key(1)][JsonIgnore] + public int StateOfIssueStateAbbreviationDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("StateAbbreviationDescriptor", StateOfIssueStateAbbreviationDescriptor); } + set { StateOfIssueStateAbbreviationDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("StateAbbreviationDescriptor", value); } + } + /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(2)] 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. /// + [Key(3)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(4)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -43668,7 +45292,7 @@ private Link CreateLink() /// /// A class which represents the edfi.Credential table of the Credential aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class Credential : Entities.Common.EdFi.ICredential, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -43703,6 +45327,7 @@ public Credential() /// The unique identifier for the Credential resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -43723,6 +45348,7 @@ public Credential() [RequiredWithNonDefault] [NonDefaultStringLength(60, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="credentialIdentifier")] + [Key(1)] public string CredentialIdentifier { get; set; } /// @@ -43732,7 +45358,15 @@ public Credential() [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="stateOfIssueStateAbbreviationDescriptor")][DescriptorExists("StateAbbreviationDescriptor")] + [IgnoreMember] public string StateOfIssueStateAbbreviationDescriptor { get; set; } + + [Key(2)][JsonIgnore] + public int StateOfIssueStateAbbreviationDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("StateAbbreviationDescriptor", StateOfIssueStateAbbreviationDescriptor); } + set { StateOfIssueStateAbbreviationDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("StateAbbreviationDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -43805,8 +45439,16 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="credentialFieldDescriptor")][DescriptorExists("CredentialFieldDescriptor")] + [IgnoreMember] public string CredentialFieldDescriptor { get; set; } + [Key(3)][JsonIgnore] + public int CredentialFieldDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("CredentialFieldDescriptor", CredentialFieldDescriptor); } + set { CredentialFieldDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("CredentialFieldDescriptor", value); } + } + /// /// An indication of the category of credential an individual holds. /// @@ -43814,13 +45456,22 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="credentialTypeDescriptor")][DescriptorExists("CredentialTypeDescriptor")] + [IgnoreMember] public string CredentialTypeDescriptor { get; set; } + [Key(4)][JsonIgnore] + public int CredentialTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("CredentialTypeDescriptor", CredentialTypeDescriptor); } + set { CredentialTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("CredentialTypeDescriptor", value); } + } + /// /// The year, month and day on which an active credential held by an individual was issued. Note: Date interpretation may vary. Ed-Fi recommends inclusive dates, but states may define dates as inclusive or exclusive. For calculations, align with local guidelines. /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(5)] public DateTime? EffectiveDate { get; set; } /// @@ -43828,6 +45479,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="expirationDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(6)] public DateTime? ExpirationDate { get; set; } /// @@ -43836,6 +45488,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] [DataMember(Name="issuanceDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(7)] public DateTime IssuanceDate { get; set; } /// @@ -43845,6 +45498,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, MinimumLength=5, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(8)] public string Namespace { get; set; } /// @@ -43853,15 +45507,31 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="teachingCredentialBasisDescriptor")][DescriptorExists("TeachingCredentialBasisDescriptor")] + [IgnoreMember] public string TeachingCredentialBasisDescriptor { get; set; } + [Key(9)][JsonIgnore] + public int TeachingCredentialBasisDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("TeachingCredentialBasisDescriptor", TeachingCredentialBasisDescriptor); } + set { TeachingCredentialBasisDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("TeachingCredentialBasisDescriptor", value); } + } + /// /// An indication of the category of a legal document giving authorization to perform teaching assignment services. /// // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="teachingCredentialDescriptor")][DescriptorExists("TeachingCredentialDescriptor")] + [IgnoreMember] public string TeachingCredentialDescriptor { get; set; } + + [Key(10)][JsonIgnore] + public int TeachingCredentialDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("TeachingCredentialDescriptor", TeachingCredentialDescriptor); } + set { TeachingCredentialDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("TeachingCredentialDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -43883,6 +45553,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "Credential", "Credential")] + [Key(11)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -43894,6 +45565,7 @@ public override int GetHashCode() [NoDuplicateMembers] [DataMember(Name="academicSubjects")] + [Key(12)] public ICollection CredentialAcademicSubjects { get { return _credentialAcademicSubjects; } @@ -43924,6 +45596,7 @@ public ICollection CredentialAcademicSubjects [NoDuplicateMembers] [DataMember(Name="endorsements")] + [Key(13)] public ICollection CredentialEndorsements { get { return _credentialEndorsements; } @@ -43954,6 +45627,7 @@ public ICollection CredentialEndorsements [NoDuplicateMembers] [DataMember(Name="gradeLevels")] + [Key(14)] public ICollection CredentialGradeLevels { get { return _credentialGradeLevels; } @@ -43986,9 +45660,11 @@ public ICollection CredentialGradeLevels // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(15)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(16)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -44223,7 +45899,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.CredentialAcademicSubject table of the Credential aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class CredentialAcademicSubject : Entities.Common.EdFi.ICredentialAcademicSubject, IValidatableObject { @@ -44266,6 +45942,7 @@ Entities.Common.EdFi.ICredential ICredentialAcademicSubject.Credential set { SetCredential(value); } } + [IgnoreMember] public Entities.Common.EdFi.ICredential Credential { set { SetCredential(value); } @@ -44283,7 +45960,15 @@ private void SetCredential(Entities.Common.EdFi.ICredential value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="academicSubjectDescriptor")][DescriptorExists("AcademicSubjectDescriptor")] + [IgnoreMember] public string AcademicSubjectDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int AcademicSubjectDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("AcademicSubjectDescriptor", AcademicSubjectDescriptor); } + set { AcademicSubjectDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("AcademicSubjectDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -44368,6 +46053,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "Credential", "CredentialAcademicSubject")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -44504,7 +46190,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.CredentialEndorsement table of the Credential aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class CredentialEndorsement : Entities.Common.EdFi.ICredentialEndorsement, IValidatableObject { @@ -44547,6 +46233,7 @@ Entities.Common.EdFi.ICredential ICredentialEndorsement.Credential set { SetCredential(value); } } + [IgnoreMember] public Entities.Common.EdFi.ICredential Credential { set { SetCredential(value); } @@ -44564,6 +46251,7 @@ private void SetCredential(Entities.Common.EdFi.ICredential value) [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="credentialEndorsement")][Display(Name="CredentialEndorsement")] + [Key(0)] public string CredentialEndorsementX { get; set; } // ------------------------------------------------------------- @@ -44649,6 +46337,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "Credential", "CredentialEndorsement")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -44785,7 +46474,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.CredentialGradeLevel table of the Credential aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class CredentialGradeLevel : Entities.Common.EdFi.ICredentialGradeLevel, IValidatableObject { @@ -44828,6 +46517,7 @@ Entities.Common.EdFi.ICredential ICredentialGradeLevel.Credential set { SetCredential(value); } } + [IgnoreMember] public Entities.Common.EdFi.ICredential Credential { set { SetCredential(value); } @@ -44845,7 +46535,15 @@ private void SetCredential(Entities.Common.EdFi.ICredential value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="gradeLevelDescriptor")][DescriptorExists("GradeLevelDescriptor")] + [IgnoreMember] public string GradeLevelDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int GradeLevelDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("GradeLevelDescriptor", GradeLevelDescriptor); } + set { GradeLevelDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("GradeLevelDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -44930,6 +46628,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "Credential", "CredentialGradeLevel")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -45071,7 +46770,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.CredentialFieldDescriptor.EdFi /// /// A class which represents the edfi.CredentialFieldDescriptor table of the CredentialFieldDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class CredentialFieldDescriptor : Entities.Common.EdFi.ICredentialFieldDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -45100,6 +46799,7 @@ public class CredentialFieldDescriptor : Entities.Common.EdFi.ICredentialFieldDe /// The unique identifier for the CredentialFieldDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -45184,6 +46884,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -45192,6 +46893,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -45199,6 +46901,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -45206,6 +46909,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -45215,6 +46919,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -45224,6 +46929,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -45267,9 +46973,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -45342,7 +47050,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.CredentialTypeDescriptor.EdFi /// /// A class which represents the edfi.CredentialTypeDescriptor table of the CredentialTypeDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class CredentialTypeDescriptor : Entities.Common.EdFi.ICredentialTypeDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -45371,6 +47079,7 @@ public class CredentialTypeDescriptor : Entities.Common.EdFi.ICredentialTypeDesc /// The unique identifier for the CredentialTypeDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -45455,6 +47164,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -45463,6 +47173,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -45470,6 +47181,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -45477,6 +47189,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -45486,6 +47199,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -45495,6 +47209,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -45538,9 +47253,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -45613,7 +47330,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.CreditCategoryDescriptor.EdFi /// /// A class which represents the edfi.CreditCategoryDescriptor table of the CreditCategoryDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class CreditCategoryDescriptor : Entities.Common.EdFi.ICreditCategoryDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -45642,6 +47359,7 @@ public class CreditCategoryDescriptor : Entities.Common.EdFi.ICreditCategoryDesc /// The unique identifier for the CreditCategoryDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -45726,6 +47444,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -45734,6 +47453,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -45741,6 +47461,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -45748,6 +47469,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -45757,6 +47479,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -45766,6 +47489,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -45809,9 +47533,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -45884,7 +47610,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.CreditTypeDescriptor.EdFi /// /// A class which represents the edfi.CreditTypeDescriptor table of the CreditTypeDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class CreditTypeDescriptor : Entities.Common.EdFi.ICreditTypeDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -45913,6 +47639,7 @@ public class CreditTypeDescriptor : Entities.Common.EdFi.ICreditTypeDescriptor, /// The unique identifier for the CreditTypeDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -45997,6 +47724,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -46005,6 +47733,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -46012,6 +47741,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -46019,6 +47749,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -46028,6 +47759,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -46037,6 +47769,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -46080,9 +47813,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -46155,27 +47890,33 @@ namespace EdFi.Ods.Api.Common.Models.Resources.CrisisEvent.EdFi /// /// Represents a reference to the CrisisEvent resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class CrisisEventReference : IResourceReference { [DataMember(Name="crisisEventName")] + [Key(0)] public string CrisisEventName { get; set; } /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(1)] 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. /// + [Key(2)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(3)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -46244,7 +47985,7 @@ private Link CreateLink() /// /// A class which represents the edfi.CrisisEvent table of the CrisisEvent aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class CrisisEvent : Entities.Common.EdFi.ICrisisEvent, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -46273,6 +48014,7 @@ public class CrisisEvent : Entities.Common.EdFi.ICrisisEvent, IHasETag, IDateVer /// The unique identifier for the CrisisEvent resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -46293,6 +48035,7 @@ public class CrisisEvent : Entities.Common.EdFi.ICrisisEvent, IHasETag, IDateVer [RequiredWithNonDefault] [NonDefaultStringLength(100, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="crisisEventName")] + [Key(1)] public string CrisisEventName { get; set; } // ------------------------------------------------------------- @@ -46357,6 +48100,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="crisisDescription")] + [Key(2)] public string CrisisDescription { get; set; } /// @@ -46364,6 +48108,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="crisisEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? CrisisEndDate { get; set; } /// @@ -46371,6 +48116,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="crisisStartDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? CrisisStartDate { get; set; } /// @@ -46380,7 +48126,15 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="crisisTypeDescriptor")][DescriptorExists("CrisisTypeDescriptor")] + [IgnoreMember] public string CrisisTypeDescriptor { get; set; } + + [Key(5)][JsonIgnore] + public int CrisisTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("CrisisTypeDescriptor", CrisisTypeDescriptor); } + set { CrisisTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("CrisisTypeDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -46402,6 +48156,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "CrisisEvent", "CrisisEvent")] + [Key(6)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -46415,9 +48170,11 @@ public override int GetHashCode() // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -46549,7 +48306,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.CrisisTypeDescriptor.EdFi /// /// A class which represents the edfi.CrisisTypeDescriptor table of the CrisisTypeDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class CrisisTypeDescriptor : Entities.Common.EdFi.ICrisisTypeDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -46578,6 +48335,7 @@ public class CrisisTypeDescriptor : Entities.Common.EdFi.ICrisisTypeDescriptor, /// The unique identifier for the CrisisTypeDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -46662,6 +48420,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -46670,6 +48429,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -46677,6 +48437,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -46684,6 +48445,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -46693,6 +48455,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -46702,6 +48465,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -46745,9 +48509,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -46820,7 +48586,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.CTEProgramServiceDescriptor.EdFi /// /// A class which represents the edfi.CTEProgramServiceDescriptor table of the CTEProgramServiceDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class CTEProgramServiceDescriptor : Entities.Common.EdFi.ICTEProgramServiceDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -46849,6 +48615,7 @@ public class CTEProgramServiceDescriptor : Entities.Common.EdFi.ICTEProgramServi /// The unique identifier for the CTEProgramServiceDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -46933,6 +48700,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -46941,6 +48709,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -46948,6 +48717,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -46955,6 +48725,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -46964,6 +48735,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -46973,6 +48745,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -47016,9 +48789,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -47091,7 +48866,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.CurriculumUsedDescriptor.EdFi /// /// A class which represents the edfi.CurriculumUsedDescriptor table of the CurriculumUsedDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class CurriculumUsedDescriptor : Entities.Common.EdFi.ICurriculumUsedDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -47120,6 +48895,7 @@ public class CurriculumUsedDescriptor : Entities.Common.EdFi.ICurriculumUsedDesc /// The unique identifier for the CurriculumUsedDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -47204,6 +48980,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -47212,6 +48989,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -47219,6 +48997,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -47226,6 +49005,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -47235,6 +49015,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -47244,6 +49025,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -47287,9 +49069,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -47362,7 +49146,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.DeliveryMethodDescriptor.EdFi /// /// A class which represents the edfi.DeliveryMethodDescriptor table of the DeliveryMethodDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class DeliveryMethodDescriptor : Entities.Common.EdFi.IDeliveryMethodDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -47391,6 +49175,7 @@ public class DeliveryMethodDescriptor : Entities.Common.EdFi.IDeliveryMethodDesc /// The unique identifier for the DeliveryMethodDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -47475,6 +49260,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -47483,6 +49269,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -47490,6 +49277,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -47497,6 +49285,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -47506,6 +49295,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -47515,6 +49305,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -47558,9 +49349,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -47633,27 +49426,33 @@ namespace EdFi.Ods.Api.Common.Models.Resources.Descriptor.EdFi /// /// Represents a reference to the Descriptor resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class DescriptorReference : IResourceReference { [DataMember(Name="descriptorId")] + [Key(0)] public int DescriptorId { get; set; } /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(1)] 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. /// + [Key(2)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(3)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -47733,36 +49532,45 @@ namespace EdFi.Ods.Api.Common.Models.Resources.DescriptorMapping.EdFi /// /// Represents a reference to the DescriptorMapping resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class DescriptorMappingReference : IResourceReference { [DataMember(Name="mappedNamespace")] + [Key(0)] public string MappedNamespace { get; set; } [DataMember(Name="mappedValue")] + [Key(1)] public string MappedValue { get; set; } [DataMember(Name="namespace")] + [Key(2)] public string Namespace { get; set; } [DataMember(Name="value")] + [Key(3)] public string Value { get; set; } /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(4)] 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. /// + [Key(5)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(6)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -47846,7 +49654,7 @@ private Link CreateLink() /// /// A class which represents the edfi.DescriptorMapping table of the DescriptorMapping aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class DescriptorMapping : Entities.Common.EdFi.IDescriptorMapping, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -47879,6 +49687,7 @@ public DescriptorMapping() /// The unique identifier for the DescriptorMapping resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -47899,6 +49708,7 @@ public DescriptorMapping() [RequiredWithNonDefault] [NonDefaultStringLength(255, MinimumLength=5, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="mappedNamespace")] + [Key(1)] public string MappedNamespace { get; set; } /// @@ -47908,6 +49718,7 @@ public DescriptorMapping() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="mappedValue")] + [Key(2)] public string MappedValue { get; set; } /// @@ -47917,6 +49728,7 @@ public DescriptorMapping() [RequiredWithNonDefault] [NonDefaultStringLength(255, MinimumLength=5, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="namespace")] + [Key(3)] public string Namespace { get; set; } /// @@ -47926,6 +49738,7 @@ public DescriptorMapping() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="value")] + [Key(4)] public string Value { get; set; } // ------------------------------------------------------------- @@ -48031,6 +49844,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "DescriptorMapping", "DescriptorMapping")] + [Key(5)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -48042,6 +49856,7 @@ public override int GetHashCode() [NoDuplicateMembers] [DataMember(Name="modelEntities")] + [Key(6)] public ICollection DescriptorMappingModelEntities { get { return _descriptorMappingModelEntities; } @@ -48074,9 +49889,11 @@ public ICollection DescriptorMappingModelEntities // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -48253,7 +50070,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.DescriptorMappingModelEntity table of the DescriptorMapping aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class DescriptorMappingModelEntity : Entities.Common.EdFi.IDescriptorMappingModelEntity, IValidatableObject { @@ -48296,6 +50113,7 @@ Entities.Common.EdFi.IDescriptorMapping IDescriptorMappingModelEntity.Descriptor set { SetDescriptorMapping(value); } } + [IgnoreMember] public Entities.Common.EdFi.IDescriptorMapping DescriptorMapping { set { SetDescriptorMapping(value); } @@ -48313,7 +50131,15 @@ private void SetDescriptorMapping(Entities.Common.EdFi.IDescriptorMapping value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="modelEntityDescriptor")][DescriptorExists("ModelEntityDescriptor")] + [IgnoreMember] public string ModelEntityDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int ModelEntityDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ModelEntityDescriptor", ModelEntityDescriptor); } + set { ModelEntityDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ModelEntityDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -48398,6 +50224,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "DescriptorMapping", "DescriptorMappingModelEntity")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -48539,7 +50366,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.DiagnosisDescriptor.EdFi /// /// A class which represents the edfi.DiagnosisDescriptor table of the DiagnosisDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class DiagnosisDescriptor : Entities.Common.EdFi.IDiagnosisDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -48568,6 +50395,7 @@ public class DiagnosisDescriptor : Entities.Common.EdFi.IDiagnosisDescriptor, En /// The unique identifier for the DiagnosisDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -48652,6 +50480,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -48660,6 +50489,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -48667,6 +50497,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -48674,6 +50505,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -48683,6 +50515,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -48692,6 +50525,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -48735,9 +50569,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -48810,7 +50646,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.DiplomaLevelDescriptor.EdFi /// /// A class which represents the edfi.DiplomaLevelDescriptor table of the DiplomaLevelDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class DiplomaLevelDescriptor : Entities.Common.EdFi.IDiplomaLevelDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -48839,6 +50675,7 @@ public class DiplomaLevelDescriptor : Entities.Common.EdFi.IDiplomaLevelDescript /// The unique identifier for the DiplomaLevelDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -48923,6 +50760,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -48931,6 +50769,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -48938,6 +50777,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -48945,6 +50785,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -48954,6 +50795,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -48963,6 +50805,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -49006,9 +50849,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -49081,7 +50926,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.DiplomaTypeDescriptor.EdFi /// /// A class which represents the edfi.DiplomaTypeDescriptor table of the DiplomaTypeDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class DiplomaTypeDescriptor : Entities.Common.EdFi.IDiplomaTypeDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -49110,6 +50955,7 @@ public class DiplomaTypeDescriptor : Entities.Common.EdFi.IDiplomaTypeDescriptor /// The unique identifier for the DiplomaTypeDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -49194,6 +51040,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -49202,6 +51049,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -49209,6 +51057,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -49216,6 +51065,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -49225,6 +51075,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -49234,6 +51085,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -49277,9 +51129,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -49352,7 +51206,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.DisabilityDescriptor.EdFi /// /// A class which represents the edfi.DisabilityDescriptor table of the DisabilityDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class DisabilityDescriptor : Entities.Common.EdFi.IDisabilityDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -49381,6 +51235,7 @@ public class DisabilityDescriptor : Entities.Common.EdFi.IDisabilityDescriptor, /// The unique identifier for the DisabilityDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -49465,6 +51320,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -49473,6 +51329,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -49480,6 +51337,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -49487,6 +51345,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -49496,6 +51355,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -49505,6 +51365,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -49548,9 +51409,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -49623,7 +51486,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.DisabilityDesignationDescriptor.E /// /// A class which represents the edfi.DisabilityDesignationDescriptor table of the DisabilityDesignationDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class DisabilityDesignationDescriptor : Entities.Common.EdFi.IDisabilityDesignationDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -49652,6 +51515,7 @@ public class DisabilityDesignationDescriptor : Entities.Common.EdFi.IDisabilityD /// The unique identifier for the DisabilityDesignationDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -49736,6 +51600,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -49744,6 +51609,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -49751,6 +51617,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -49758,6 +51625,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -49767,6 +51635,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -49776,6 +51645,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -49819,9 +51689,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -49894,7 +51766,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.DisabilityDeterminationSourceType /// /// A class which represents the edfi.DisabilityDeterminationSourceTypeDescriptor table of the DisabilityDeterminationSourceTypeDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class DisabilityDeterminationSourceTypeDescriptor : Entities.Common.EdFi.IDisabilityDeterminationSourceTypeDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -49923,6 +51795,7 @@ public class DisabilityDeterminationSourceTypeDescriptor : Entities.Common.EdFi. /// The unique identifier for the DisabilityDeterminationSourceTypeDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -50007,6 +51880,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -50015,6 +51889,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -50022,6 +51897,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -50029,6 +51905,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -50038,6 +51915,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -50047,6 +51925,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -50090,9 +51969,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -50165,14 +52046,16 @@ namespace EdFi.Ods.Api.Common.Models.Resources.DisciplineAction.EdFi /// /// Represents a reference to the DisciplineAction resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class DisciplineActionReference : IResourceReference { [DataMember(Name="disciplineActionIdentifier")] + [Key(0)] public string DisciplineActionIdentifier { get; set; } [DataMember(Name="disciplineDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(1)] public DateTime DisciplineDate { get; set; } [DataMember(Name="studentUniqueId")] @@ -50190,17 +52073,22 @@ public string StudentUniqueId /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(2)] 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. /// + [Key(3)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(4)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -50279,7 +52167,7 @@ private Link CreateLink() /// /// A class which represents the edfi.DisciplineAction table of the DisciplineAction aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class DisciplineAction : Entities.Common.EdFi.IDisciplineAction, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -50314,6 +52202,7 @@ public DisciplineAction() /// The unique identifier for the DisciplineAction resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -50337,6 +52226,7 @@ private School.EdFi.SchoolReference ImplicitAssignmentSchoolReference } [DataMember(Name="assignmentSchoolReference")] + [Key(1)] [FullyDefinedReference] public School.EdFi.SchoolReference AssignmentSchoolReference { @@ -50370,6 +52260,7 @@ private School.EdFi.SchoolReference ImplicitResponsibilitySchoolReference } [DataMember(Name="responsibilitySchoolReference")] + [Key(2)] [FullyDefinedReference][RequiredReference("edfi", "DisciplineAction")] public School.EdFi.SchoolReference ResponsibilitySchoolReference { @@ -50403,6 +52294,7 @@ private Student.EdFi.StudentReference ImplicitStudentReference } [DataMember(Name="studentReference")] + [Key(3)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Student.EdFi.StudentReference StudentReference { @@ -50434,6 +52326,7 @@ public Student.EdFi.StudentReference StudentReference [RequiredWithNonDefault] [NonDefaultStringLength(36, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="disciplineActionIdentifier")] + [Key(4)] public string DisciplineActionIdentifier { get; set; } /// @@ -50442,6 +52335,7 @@ public Student.EdFi.StudentReference StudentReference // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] [DataMember(Name="disciplineDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(5)] public DateTime DisciplineDate { get; set; } /// @@ -50549,6 +52443,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "0", "999.99", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="actualDisciplineActionLength")] + [Key(6)] public decimal? ActualDisciplineActionLength { get; set; } /// @@ -50584,6 +52479,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "0", "999.99", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="disciplineActionLength")] + [Key(7)] public decimal? DisciplineActionLength { get; set; } /// @@ -50592,13 +52488,22 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="disciplineActionLengthDifferenceReasonDescriptor")][DescriptorExists("DisciplineActionLengthDifferenceReasonDescriptor")] + [IgnoreMember] public string DisciplineActionLengthDifferenceReasonDescriptor { get; set; } + [Key(8)][JsonIgnore] + public int DisciplineActionLengthDifferenceReasonDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("DisciplineActionLengthDifferenceReasonDescriptor", DisciplineActionLengthDifferenceReasonDescriptor); } + set { DisciplineActionLengthDifferenceReasonDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("DisciplineActionLengthDifferenceReasonDescriptor", value); } + } + /// /// An indication as to whether an offense and/or disciplinary action resulted in a meeting of a student's Individualized Education Program (IEP) team to determine appropriate placement. /// // NOT in a reference, NOT a lookup column [DataMember(Name="iepPlacementMeetingIndicator")] + [Key(9)] public bool? IEPPlacementMeetingIndicator { get; set; } /// @@ -50606,6 +52511,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="relatedToZeroTolerancePolicy")] + [Key(10)] public bool? RelatedToZeroTolerancePolicy { get; set; } /// @@ -50655,6 +52561,7 @@ long Entities.Common.EdFi.IDisciplineAction.ResponsibilitySchoolId // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "DisciplineAction", "DisciplineAction")] + [Key(11)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -50666,6 +52573,7 @@ long Entities.Common.EdFi.IDisciplineAction.ResponsibilitySchoolId [NoDuplicateMembers][RequiredCollection] [DataMember(Name="disciplines")] + [Key(12)] public ICollection DisciplineActionDisciplines { get { return _disciplineActionDisciplines; } @@ -50696,6 +52604,7 @@ public ICollection DisciplineActionDisciplines [NoDuplicateMembers] [DataMember(Name="staffs")] + [Key(13)] public ICollection DisciplineActionStaffs { get { return _disciplineActionStaffs; } @@ -50726,6 +52635,7 @@ public ICollection DisciplineActionStaffs [NoDuplicateMembers] [DataMember(Name="studentDisciplineIncidentBehaviorAssociations")] + [Key(14)] public ICollection DisciplineActionStudentDisciplineIncidentBehaviorAssociations { get { return _disciplineActionStudentDisciplineIncidentBehaviorAssociations; } @@ -50758,9 +52668,11 @@ public ICollection // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(15)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(16)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -51023,7 +52935,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.DisciplineActionDiscipline table of the DisciplineAction aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class DisciplineActionDiscipline : Entities.Common.EdFi.IDisciplineActionDiscipline, IValidatableObject { @@ -51066,6 +52978,7 @@ Entities.Common.EdFi.IDisciplineAction IDisciplineActionDiscipline.DisciplineAct set { SetDisciplineAction(value); } } + [IgnoreMember] public Entities.Common.EdFi.IDisciplineAction DisciplineAction { set { SetDisciplineAction(value); } @@ -51083,7 +52996,15 @@ private void SetDisciplineAction(Entities.Common.EdFi.IDisciplineAction value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="disciplineDescriptor")][DescriptorExists("DisciplineDescriptor")] + [IgnoreMember] public string DisciplineDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int DisciplineDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("DisciplineDescriptor", DisciplineDescriptor); } + set { DisciplineDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("DisciplineDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -51168,6 +53089,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "DisciplineAction", "DisciplineActionDiscipline")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -51304,7 +53226,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.DisciplineActionStaff table of the DisciplineAction aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class DisciplineActionStaff : Entities.Common.EdFi.IDisciplineActionStaff, IValidatableObject { @@ -51349,6 +53271,7 @@ private Staff.EdFi.StaffReference ImplicitStaffReference } [DataMember(Name="staffReference")] + [Key(0)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Staff.EdFi.StaffReference StaffReference { @@ -51381,6 +53304,7 @@ Entities.Common.EdFi.IDisciplineAction IDisciplineActionStaff.DisciplineAction set { SetDisciplineAction(value); } } + [IgnoreMember] public Entities.Common.EdFi.IDisciplineAction DisciplineAction { set { SetDisciplineAction(value); } @@ -51499,6 +53423,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "DisciplineAction", "DisciplineActionStaff")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -51649,7 +53574,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.DisciplineActionStudentDisciplineIncidentBehaviorAssociation table of the DisciplineAction aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class DisciplineActionStudentDisciplineIncidentBehaviorAssociation : Entities.Common.EdFi.IDisciplineActionStudentDisciplineIncidentBehaviorAssociation, IValidatableObject { @@ -51694,6 +53619,7 @@ private StudentDisciplineIncidentBehaviorAssociation.EdFi.StudentDisciplineIncid } [DataMember(Name="studentDisciplineIncidentBehaviorAssociationReference")] + [Key(0)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public StudentDisciplineIncidentBehaviorAssociation.EdFi.StudentDisciplineIncidentBehaviorAssociationReference StudentDisciplineIncidentBehaviorAssociationReference { @@ -51726,6 +53652,7 @@ Entities.Common.EdFi.IDisciplineAction IDisciplineActionStudentDisciplineInciden set { SetDisciplineAction(value); } } + [IgnoreMember] public Entities.Common.EdFi.IDisciplineAction DisciplineAction { set { SetDisciplineAction(value); } @@ -51912,6 +53839,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "DisciplineAction", "DisciplineActionStudentDisciplineIncidentBehaviorAssociation")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -52107,7 +54035,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.DisciplineActionLengthDifferenceR /// /// A class which represents the edfi.DisciplineActionLengthDifferenceReasonDescriptor table of the DisciplineActionLengthDifferenceReasonDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class DisciplineActionLengthDifferenceReasonDescriptor : Entities.Common.EdFi.IDisciplineActionLengthDifferenceReasonDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -52136,6 +54064,7 @@ public class DisciplineActionLengthDifferenceReasonDescriptor : Entities.Common. /// The unique identifier for the DisciplineActionLengthDifferenceReasonDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -52220,6 +54149,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -52228,6 +54158,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -52235,6 +54166,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -52242,6 +54174,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -52251,6 +54184,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -52260,6 +54194,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -52303,9 +54238,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -52378,7 +54315,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.DisciplineDescriptor.EdFi /// /// A class which represents the edfi.DisciplineDescriptor table of the DisciplineDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class DisciplineDescriptor : Entities.Common.EdFi.IDisciplineDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -52407,6 +54344,7 @@ public class DisciplineDescriptor : Entities.Common.EdFi.IDisciplineDescriptor, /// The unique identifier for the DisciplineDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -52491,6 +54429,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -52499,6 +54438,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -52506,6 +54446,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -52513,6 +54454,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -52522,6 +54464,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -52531,6 +54474,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -52574,9 +54518,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -52649,30 +54595,37 @@ namespace EdFi.Ods.Api.Common.Models.Resources.DisciplineIncident.EdFi /// /// Represents a reference to the DisciplineIncident resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class DisciplineIncidentReference : IResourceReference { [DataMember(Name="incidentIdentifier")] + [Key(0)] public string IncidentIdentifier { get; set; } [DataMember(Name="schoolId")] + [Key(1)] public long SchoolId { get; set; } /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(2)] 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. /// + [Key(3)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(4)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -52746,7 +54699,7 @@ private Link CreateLink() /// /// A class which represents the edfi.DisciplineIncident table of the DisciplineIncident aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class DisciplineIncident : Entities.Common.EdFi.IDisciplineIncident, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -52781,6 +54734,7 @@ public DisciplineIncident() /// The unique identifier for the DisciplineIncident resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -52804,6 +54758,7 @@ private School.EdFi.SchoolReference ImplicitSchoolReference } [DataMember(Name="schoolReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public School.EdFi.SchoolReference SchoolReference { @@ -52835,6 +54790,7 @@ public School.EdFi.SchoolReference SchoolReference [RequiredWithNonDefault] [NonDefaultStringLength(36, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="incidentIdentifier")] + [Key(2)] public string IncidentIdentifier { get; set; } /// @@ -52932,6 +54888,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(20, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="caseNumber")] + [Key(3)] public string CaseNumber { get; set; } /// @@ -52940,6 +54897,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-922337203685477.5808", "922337203685477.5807", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="incidentCost")] + [Key(4)] public decimal? IncidentCost { get; set; } /// @@ -52948,6 +54906,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] [DataMember(Name="incidentDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(5)] public DateTime IncidentDate { get; set; } /// @@ -52956,6 +54915,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="incidentDescription")] + [Key(6)] public string IncidentDescription { get; set; } /// @@ -52964,13 +54924,22 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="incidentLocationDescriptor")][DescriptorExists("IncidentLocationDescriptor")] + [IgnoreMember] public string IncidentLocationDescriptor { get; set; } + [Key(7)][JsonIgnore] + public int IncidentLocationDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("IncidentLocationDescriptor", IncidentLocationDescriptor); } + set { IncidentLocationDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("IncidentLocationDescriptor", value); } + } + /// /// An indication of the time of day the incident took place. /// // NOT in a reference, NOT a lookup column [DataMember(Name="incidentTime")][JsonConverter(typeof(UtcTimeConverter))] + [Key(8)] public TimeSpan? IncidentTime { get; set; } /// @@ -52978,6 +54947,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="reportedToLawEnforcement")] + [Key(9)] public bool? ReportedToLawEnforcement { get; set; } /// @@ -52986,14 +54956,23 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="reporterDescriptionDescriptor")][DescriptorExists("ReporterDescriptionDescriptor")] + [IgnoreMember] public string ReporterDescriptionDescriptor { get; set; } + [Key(10)][JsonIgnore] + public int ReporterDescriptionDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ReporterDescriptionDescriptor", ReporterDescriptionDescriptor); } + set { ReporterDescriptionDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ReporterDescriptionDescriptor", value); } + } + /// /// Identifies the reporter of the discipline incident by name. /// // NOT in a reference, NOT a lookup column [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="reporterName")] + [Key(11)] public string ReporterName { get; set; } // ------------------------------------------------------------- @@ -53016,6 +54995,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "DisciplineIncident", "DisciplineIncident")] + [Key(12)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -53027,6 +55007,7 @@ public override int GetHashCode() [NoDuplicateMembers] [DataMember(Name="behaviors")] + [Key(13)] public ICollection DisciplineIncidentBehaviors { get { return _disciplineIncidentBehaviors; } @@ -53057,6 +55038,7 @@ public ICollection DisciplineIncidentBehaviors [NoDuplicateMembers] [DataMember(Name="externalParticipants")] + [Key(14)] public ICollection DisciplineIncidentExternalParticipants { get { return _disciplineIncidentExternalParticipants; } @@ -53087,6 +55069,7 @@ public ICollection DisciplineIncidentExte [NoDuplicateMembers] [DataMember(Name="weapons")] + [Key(15)] public ICollection DisciplineIncidentWeapons { get { return _disciplineIncidentWeapons; } @@ -53119,9 +55102,11 @@ public ICollection DisciplineIncidentWeapons // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(16)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(17)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -53363,7 +55348,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.DisciplineIncidentBehavior table of the DisciplineIncident aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class DisciplineIncidentBehavior : Entities.Common.EdFi.IDisciplineIncidentBehavior, IValidatableObject { @@ -53406,6 +55391,7 @@ Entities.Common.EdFi.IDisciplineIncident IDisciplineIncidentBehavior.DisciplineI set { SetDisciplineIncident(value); } } + [IgnoreMember] public Entities.Common.EdFi.IDisciplineIncident DisciplineIncident { set { SetDisciplineIncident(value); } @@ -53423,7 +55409,15 @@ private void SetDisciplineIncident(Entities.Common.EdFi.IDisciplineIncident valu [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="behaviorDescriptor")][DescriptorExists("BehaviorDescriptor")] + [IgnoreMember] public string BehaviorDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int BehaviorDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("BehaviorDescriptor", BehaviorDescriptor); } + set { BehaviorDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("BehaviorDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -53494,6 +55488,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="behaviorDetailedDescription")] + [Key(1)] public string BehaviorDetailedDescription { get; set; } // ------------------------------------------------------------- @@ -53516,6 +55511,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "DisciplineIncident", "DisciplineIncidentBehavior")] + [Key(2)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -53652,7 +55648,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.DisciplineIncidentExternalParticipant table of the DisciplineIncident aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class DisciplineIncidentExternalParticipant : Entities.Common.EdFi.IDisciplineIncidentExternalParticipant, IValidatableObject { @@ -53695,6 +55691,7 @@ Entities.Common.EdFi.IDisciplineIncident IDisciplineIncidentExternalParticipant. set { SetDisciplineIncident(value); } } + [IgnoreMember] public Entities.Common.EdFi.IDisciplineIncident DisciplineIncident { set { SetDisciplineIncident(value); } @@ -53712,8 +55709,16 @@ private void SetDisciplineIncident(Entities.Common.EdFi.IDisciplineIncident valu [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="disciplineIncidentParticipationCodeDescriptor")][DescriptorExists("DisciplineIncidentParticipationCodeDescriptor")] + [IgnoreMember] public string DisciplineIncidentParticipationCodeDescriptor { get; set; } + [Key(0)][JsonIgnore] + public int DisciplineIncidentParticipationCodeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("DisciplineIncidentParticipationCodeDescriptor", DisciplineIncidentParticipationCodeDescriptor); } + set { DisciplineIncidentParticipationCodeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("DisciplineIncidentParticipationCodeDescriptor", value); } + } + /// /// A name given to an individual at birth, baptism, or during another naming ceremony, or through legal change. /// @@ -53721,6 +55726,7 @@ private void SetDisciplineIncident(Entities.Common.EdFi.IDisciplineIncident valu [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="firstName")] + [Key(1)] public string FirstName { get; set; } /// @@ -53730,6 +55736,7 @@ private void SetDisciplineIncident(Entities.Common.EdFi.IDisciplineIncident valu [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="lastSurname")] + [Key(2)] public string LastSurname { get; set; } // ------------------------------------------------------------- @@ -53833,6 +55840,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "DisciplineIncident", "DisciplineIncidentExternalParticipant")] + [Key(3)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -53969,7 +55977,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.DisciplineIncidentWeapon table of the DisciplineIncident aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class DisciplineIncidentWeapon : Entities.Common.EdFi.IDisciplineIncidentWeapon, IValidatableObject { @@ -54012,6 +56020,7 @@ Entities.Common.EdFi.IDisciplineIncident IDisciplineIncidentWeapon.DisciplineInc set { SetDisciplineIncident(value); } } + [IgnoreMember] public Entities.Common.EdFi.IDisciplineIncident DisciplineIncident { set { SetDisciplineIncident(value); } @@ -54029,7 +56038,15 @@ private void SetDisciplineIncident(Entities.Common.EdFi.IDisciplineIncident valu [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="weaponDescriptor")][DescriptorExists("WeaponDescriptor")] + [IgnoreMember] public string WeaponDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int WeaponDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("WeaponDescriptor", WeaponDescriptor); } + set { WeaponDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("WeaponDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -54114,6 +56131,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "DisciplineIncident", "DisciplineIncidentWeapon")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -54255,7 +56273,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.DisciplineIncidentParticipationCo /// /// A class which represents the edfi.DisciplineIncidentParticipationCodeDescriptor table of the DisciplineIncidentParticipationCodeDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class DisciplineIncidentParticipationCodeDescriptor : Entities.Common.EdFi.IDisciplineIncidentParticipationCodeDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -54284,6 +56302,7 @@ public class DisciplineIncidentParticipationCodeDescriptor : Entities.Common.EdF /// The unique identifier for the DisciplineIncidentParticipationCodeDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -54368,6 +56387,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -54376,6 +56396,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -54383,6 +56404,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -54390,6 +56412,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -54399,6 +56422,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -54408,6 +56432,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -54451,9 +56476,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -54526,7 +56553,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.DisplacedStudentStatusDescriptor. /// /// A class which represents the edfi.DisplacedStudentStatusDescriptor table of the DisplacedStudentStatusDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class DisplacedStudentStatusDescriptor : Entities.Common.EdFi.IDisplacedStudentStatusDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -54555,6 +56582,7 @@ public class DisplacedStudentStatusDescriptor : Entities.Common.EdFi.IDisplacedS /// The unique identifier for the DisplacedStudentStatusDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -54639,6 +56667,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -54647,6 +56676,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -54654,6 +56684,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -54661,6 +56692,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -54670,6 +56702,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -54679,6 +56712,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -54722,9 +56756,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -54797,7 +56833,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.EducationalEnvironmentDescriptor. /// /// A class which represents the edfi.EducationalEnvironmentDescriptor table of the EducationalEnvironmentDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class EducationalEnvironmentDescriptor : Entities.Common.EdFi.IEducationalEnvironmentDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -54826,6 +56862,7 @@ public class EducationalEnvironmentDescriptor : Entities.Common.EdFi.IEducationa /// The unique identifier for the EducationalEnvironmentDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -54910,6 +56947,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -54918,6 +56956,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -54925,6 +56964,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -54932,6 +56972,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -54941,6 +56982,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -54950,6 +56992,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -54993,9 +57036,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -55068,27 +57113,33 @@ namespace EdFi.Ods.Api.Common.Models.Resources.EducationContent.EdFi /// /// Represents a reference to the EducationContent resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class EducationContentReference : IResourceReference { [DataMember(Name="contentIdentifier")] + [Key(0)] public string ContentIdentifier { get; set; } /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(1)] 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. /// + [Key(2)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(3)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -55157,7 +57208,7 @@ private Link CreateLink() /// /// A class which represents the edfi.EducationContent table of the EducationContent aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class EducationContent : Entities.Common.EdFi.IEducationContent, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -55196,6 +57247,7 @@ public EducationContent() /// The unique identifier for the EducationContent resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -55219,6 +57271,7 @@ private LearningStandard.EdFi.LearningStandardReference ImplicitLearningStandard } [DataMember(Name="learningStandardReference")] + [Key(1)] [FullyDefinedReference] public LearningStandard.EdFi.LearningStandardReference LearningStandardReference { @@ -55250,6 +57303,7 @@ public LearningStandard.EdFi.LearningStandardReference LearningStandardReference [RequiredWithNonDefault] [NonDefaultStringLength(225, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="contentIdentifier")] + [Key(2)] public string ContentIdentifier { get; set; } // ------------------------------------------------------------- @@ -55313,6 +57367,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="additionalAuthorsIndicator")] + [Key(3)] public bool? AdditionalAuthorsIndicator { get; set; } /// @@ -55321,14 +57376,23 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="contentClassDescriptor")][DescriptorExists("ContentClassDescriptor")] + [IgnoreMember] public string ContentClassDescriptor { get; set; } + [Key(4)][JsonIgnore] + public int ContentClassDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ContentClassDescriptor", ContentClassDescriptor); } + set { ContentClassDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ContentClassDescriptor", value); } + } + /// /// An amount that has to be paid or spent to buy or obtain the education content. /// // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-922337203685477.5808", "922337203685477.5807", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="cost")] + [Key(5)] public decimal? Cost { get; set; } /// @@ -55337,14 +57401,23 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="costRateDescriptor")][DescriptorExists("CostRateDescriptor")] + [IgnoreMember] public string CostRateDescriptor { get; set; } + [Key(6)][JsonIgnore] + public int CostRateDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("CostRateDescriptor", CostRateDescriptor); } + set { CostRateDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("CostRateDescriptor", value); } + } + /// /// An extended written representation of the education content. /// // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(7)] public string Description { get; set; } /// @@ -55353,14 +57426,23 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="interactivityStyleDescriptor")][DescriptorExists("InteractivityStyleDescriptor")] + [IgnoreMember] public string InteractivityStyleDescriptor { get; set; } + [Key(8)][JsonIgnore] + public int InteractivityStyleDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("InteractivityStyleDescriptor", InteractivityStyleDescriptor); } + set { InteractivityStyleDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("InteractivityStyleDescriptor", value); } + } + /// /// The URI (typical a URL) pointing to the metadata entry in a LRMI metadata repository, which describes this content item. /// // NOT in a reference, NOT a lookup column [NonDefaultStringLength(255, MinimumLength=5, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText] [DataMember(Name="learningResourceMetadataURI")] + [Key(9)] public string LearningResourceMetadataURI { get; set; } /// @@ -55397,6 +57479,7 @@ string Entities.Common.EdFi.IEducationContent.LearningStandardId [RequiredWithNonDefault] [NonDefaultStringLength(255, MinimumLength=5, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(10)] public string Namespace { get; set; } /// @@ -55404,6 +57487,7 @@ string Entities.Common.EdFi.IEducationContent.LearningStandardId /// // NOT in a reference, NOT a lookup column [DataMember(Name="publicationDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(11)] public DateTime? PublicationDate { get; set; } /// @@ -55411,6 +57495,7 @@ string Entities.Common.EdFi.IEducationContent.LearningStandardId /// // NOT in a reference, NOT a lookup column [DataMember(Name="publicationYear")] + [Key(12)] public short? PublicationYear { get; set; } /// @@ -55419,6 +57504,7 @@ string Entities.Common.EdFi.IEducationContent.LearningStandardId // NOT in a reference, NOT a lookup column [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="publisher")] + [Key(13)] public string Publisher { get; set; } /// @@ -55427,6 +57513,7 @@ string Entities.Common.EdFi.IEducationContent.LearningStandardId // NOT in a reference, NOT a lookup column [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(14)] public string ShortDescription { get; set; } /// @@ -55435,6 +57522,7 @@ string Entities.Common.EdFi.IEducationContent.LearningStandardId // NOT in a reference, NOT a lookup column [NonDefaultStringLength(30, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="timeRequired")] + [Key(15)] public string TimeRequired { get; set; } /// @@ -55443,6 +57531,7 @@ string Entities.Common.EdFi.IEducationContent.LearningStandardId // NOT in a reference, NOT a lookup column [NonDefaultStringLength(255, MinimumLength=5, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText] [DataMember(Name="useRightsURL")] + [Key(16)] public string UseRightsURL { get; set; } /// @@ -55451,6 +57540,7 @@ string Entities.Common.EdFi.IEducationContent.LearningStandardId // NOT in a reference, NOT a lookup column [NonDefaultStringLength(10, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="version")] + [Key(17)] public string Version { get; set; } // ------------------------------------------------------------- @@ -55473,6 +57563,7 @@ string Entities.Common.EdFi.IEducationContent.LearningStandardId // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "EducationContent", "EducationContent")] + [Key(18)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -55484,6 +57575,7 @@ string Entities.Common.EdFi.IEducationContent.LearningStandardId [NoDuplicateMembers] [DataMember(Name="appropriateGradeLevels")] + [Key(19)] public ICollection EducationContentAppropriateGradeLevels { get { return _educationContentAppropriateGradeLevels; } @@ -55514,6 +57606,7 @@ public ICollection EducationContentApprop [NoDuplicateMembers] [DataMember(Name="appropriateSexes")] + [Key(20)] public ICollection EducationContentAppropriateSexes { get { return _educationContentAppropriateSexes; } @@ -55544,6 +57637,7 @@ public ICollection EducationContentAppropriateSe [NoDuplicateMembers] [DataMember(Name="authors")] + [Key(21)] public ICollection EducationContentAuthors { get { return _educationContentAuthors; } @@ -55574,6 +57668,7 @@ public ICollection EducationContentAuthors [NoDuplicateMembers] [DataMember(Name="derivativeSourceEducationContents")] + [Key(22)] public ICollection EducationContentDerivativeSourceEducationContents { get { return _educationContentDerivativeSourceEducationContents; } @@ -55604,6 +57699,7 @@ public ICollection EducationCo [NoDuplicateMembers] [DataMember(Name="derivativeSourceLearningResourceMetadataURIs")] + [Key(23)] public ICollection EducationContentDerivativeSourceLearningResourceMetadataURIs { get { return _educationContentDerivativeSourceLearningResourceMetadataURIs; } @@ -55634,6 +57730,7 @@ public ICollection [NoDuplicateMembers] [DataMember(Name="derivativeSourceURIs")] + [Key(24)] public ICollection EducationContentDerivativeSourceURIs { get { return _educationContentDerivativeSourceURIs; } @@ -55664,6 +57761,7 @@ public ICollection EducationContentDerivati [NoDuplicateMembers] [DataMember(Name="languages")] + [Key(25)] public ICollection EducationContentLanguages { get { return _educationContentLanguages; } @@ -55696,9 +57794,11 @@ public ICollection EducationContentLanguages // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(26)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(27)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -56063,7 +58163,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.EducationContentAppropriateGradeLevel table of the EducationContent aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class EducationContentAppropriateGradeLevel : Entities.Common.EdFi.IEducationContentAppropriateGradeLevel, IValidatableObject { @@ -56106,6 +58206,7 @@ Entities.Common.EdFi.IEducationContent IEducationContentAppropriateGradeLevel.Ed set { SetEducationContent(value); } } + [IgnoreMember] public Entities.Common.EdFi.IEducationContent EducationContent { set { SetEducationContent(value); } @@ -56123,7 +58224,15 @@ private void SetEducationContent(Entities.Common.EdFi.IEducationContent value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="gradeLevelDescriptor")][DescriptorExists("GradeLevelDescriptor")] + [IgnoreMember] public string GradeLevelDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int GradeLevelDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("GradeLevelDescriptor", GradeLevelDescriptor); } + set { GradeLevelDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("GradeLevelDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -56208,6 +58317,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "EducationContent", "EducationContentAppropriateGradeLevel")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -56344,7 +58454,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.EducationContentAppropriateSex table of the EducationContent aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class EducationContentAppropriateSex : Entities.Common.EdFi.IEducationContentAppropriateSex, IValidatableObject { @@ -56387,6 +58497,7 @@ Entities.Common.EdFi.IEducationContent IEducationContentAppropriateSex.Education set { SetEducationContent(value); } } + [IgnoreMember] public Entities.Common.EdFi.IEducationContent EducationContent { set { SetEducationContent(value); } @@ -56404,7 +58515,15 @@ private void SetEducationContent(Entities.Common.EdFi.IEducationContent value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="sexDescriptor")][DescriptorExists("SexDescriptor")] + [IgnoreMember] public string SexDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int SexDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("SexDescriptor", SexDescriptor); } + set { SexDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("SexDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -56489,6 +58608,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "EducationContent", "EducationContentAppropriateSex")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -56625,7 +58745,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.EducationContentAuthor table of the EducationContent aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class EducationContentAuthor : Entities.Common.EdFi.IEducationContentAuthor, IValidatableObject { @@ -56668,6 +58788,7 @@ Entities.Common.EdFi.IEducationContent IEducationContentAuthor.EducationContent set { SetEducationContent(value); } } + [IgnoreMember] public Entities.Common.EdFi.IEducationContent EducationContent { set { SetEducationContent(value); } @@ -56685,6 +58806,7 @@ private void SetEducationContent(Entities.Common.EdFi.IEducationContent value) [RequiredWithNonDefault] [NonDefaultStringLength(100, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="author")] + [Key(0)] public string Author { get; set; } // ------------------------------------------------------------- @@ -56770,6 +58892,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "EducationContent", "EducationContentAuthor")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -56906,7 +59029,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.EducationContentDerivativeSourceEducationContent table of the EducationContent aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class EducationContentDerivativeSourceEducationContent : Entities.Common.EdFi.IEducationContentDerivativeSourceEducationContent, IValidatableObject { @@ -56951,6 +59074,7 @@ private EducationContentReference ImplicitDerivativeSourceEducationContentRefere } [DataMember(Name="derivativeSourceEducationContentReference")] + [Key(0)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public EducationContentReference DerivativeSourceEducationContentReference { @@ -56983,6 +59107,7 @@ Entities.Common.EdFi.IEducationContent IEducationContentDerivativeSourceEducatio set { SetEducationContent(value); } } + [IgnoreMember] public Entities.Common.EdFi.IEducationContent EducationContent { set { SetEducationContent(value); } @@ -57100,6 +59225,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "EducationContent", "EducationContentDerivativeSourceEducationContent")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -57250,7 +59376,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.EducationContentDerivativeSourceLearningResourceMetadataURI table of the EducationContent aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class EducationContentDerivativeSourceLearningResourceMetadataURI : Entities.Common.EdFi.IEducationContentDerivativeSourceLearningResourceMetadataURI, IValidatableObject { @@ -57293,6 +59419,7 @@ Entities.Common.EdFi.IEducationContent IEducationContentDerivativeSourceLearning set { SetEducationContent(value); } } + [IgnoreMember] public Entities.Common.EdFi.IEducationContent EducationContent { set { SetEducationContent(value); } @@ -57310,6 +59437,7 @@ private void SetEducationContent(Entities.Common.EdFi.IEducationContent value) [RequiredWithNonDefault] [NonDefaultStringLength(255, MinimumLength=5, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="derivativeSourceLearningResourceMetadataURI")] + [Key(0)] public string DerivativeSourceLearningResourceMetadataURI { get; set; } // ------------------------------------------------------------- @@ -57395,6 +59523,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "EducationContent", "EducationContentDerivativeSourceLearningResourceMetadataURI")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -57531,7 +59660,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.EducationContentDerivativeSourceURI table of the EducationContent aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class EducationContentDerivativeSourceURI : Entities.Common.EdFi.IEducationContentDerivativeSourceURI, IValidatableObject { @@ -57574,6 +59703,7 @@ Entities.Common.EdFi.IEducationContent IEducationContentDerivativeSourceURI.Educ set { SetEducationContent(value); } } + [IgnoreMember] public Entities.Common.EdFi.IEducationContent EducationContent { set { SetEducationContent(value); } @@ -57591,6 +59721,7 @@ private void SetEducationContent(Entities.Common.EdFi.IEducationContent value) [RequiredWithNonDefault] [NonDefaultStringLength(255, MinimumLength=5, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="derivativeSourceURI")] + [Key(0)] public string DerivativeSourceURI { get; set; } // ------------------------------------------------------------- @@ -57676,6 +59807,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "EducationContent", "EducationContentDerivativeSourceURI")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -57812,7 +59944,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.EducationContentLanguage table of the EducationContent aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class EducationContentLanguage : Entities.Common.EdFi.IEducationContentLanguage, IValidatableObject { @@ -57855,6 +59987,7 @@ Entities.Common.EdFi.IEducationContent IEducationContentLanguage.EducationConten set { SetEducationContent(value); } } + [IgnoreMember] public Entities.Common.EdFi.IEducationContent EducationContent { set { SetEducationContent(value); } @@ -57872,7 +60005,15 @@ private void SetEducationContent(Entities.Common.EdFi.IEducationContent value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="languageDescriptor")][DescriptorExists("LanguageDescriptor")] + [IgnoreMember] public string LanguageDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int LanguageDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("LanguageDescriptor", LanguageDescriptor); } + set { LanguageDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("LanguageDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -57957,6 +60098,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "EducationContent", "EducationContentLanguage")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -58098,27 +60240,33 @@ namespace EdFi.Ods.Api.Common.Models.Resources.EducationOrganization.EdFi /// /// Represents a reference to the EducationOrganization resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class EducationOrganizationReference : IResourceReference { [DataMember(Name="educationOrganizationId")] + [Key(0)] public long EducationOrganizationId { get; set; } /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(1)] 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. /// + [Key(2)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(3)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -58193,7 +60341,7 @@ private Link CreateLink() /// /// A class which represents the edfi.EducationOrganizationAddress table of the EducationOrganization aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class EducationOrganizationAddress : Entities.Common.EdFi.IEducationOrganizationAddress, IValidatableObject { @@ -58240,6 +60388,7 @@ Entities.Common.EdFi.IEducationOrganization IEducationOrganizationAddress.Educat set { SetEducationOrganization(value); } } + [IgnoreMember] public Entities.Common.EdFi.IEducationOrganization EducationOrganization { set { SetEducationOrganization(value); } @@ -58257,8 +60406,16 @@ private void SetEducationOrganization(Entities.Common.EdFi.IEducationOrganizatio [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="addressTypeDescriptor")][DescriptorExists("AddressTypeDescriptor")] + [IgnoreMember] public string AddressTypeDescriptor { get; set; } + [Key(0)][JsonIgnore] + public int AddressTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("AddressTypeDescriptor", AddressTypeDescriptor); } + set { AddressTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("AddressTypeDescriptor", value); } + } + /// /// The name of the city in which an address is located. /// @@ -58266,6 +60423,7 @@ private void SetEducationOrganization(Entities.Common.EdFi.IEducationOrganizatio [RequiredWithNonDefault] [NonDefaultStringLength(30, MinimumLength=2, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="city")] + [Key(1)] public string City { get; set; } /// @@ -58275,6 +60433,7 @@ private void SetEducationOrganization(Entities.Common.EdFi.IEducationOrganizatio [RequiredWithNonDefault] [NonDefaultStringLength(17, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="postalCode")] + [Key(2)] public string PostalCode { get; set; } /// @@ -58284,8 +60443,16 @@ private void SetEducationOrganization(Entities.Common.EdFi.IEducationOrganizatio [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="stateAbbreviationDescriptor")][DescriptorExists("StateAbbreviationDescriptor")] + [IgnoreMember] public string StateAbbreviationDescriptor { get; set; } + [Key(3)][JsonIgnore] + public int StateAbbreviationDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("StateAbbreviationDescriptor", StateAbbreviationDescriptor); } + set { StateAbbreviationDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("StateAbbreviationDescriptor", value); } + } + /// /// The street number and street name or post office box number of an address. /// @@ -58293,6 +60460,7 @@ private void SetEducationOrganization(Entities.Common.EdFi.IEducationOrganizatio [RequiredWithNonDefault] [NonDefaultStringLength(150, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="streetNumberName")] + [Key(4)] public string StreetNumberName { get; set; } // ------------------------------------------------------------- @@ -58400,6 +60568,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="apartmentRoomSuiteNumber")] + [Key(5)] public string ApartmentRoomSuiteNumber { get; set; } /// @@ -58408,6 +60577,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(20, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="buildingSiteNumber")] + [Key(6)] public string BuildingSiteNumber { get; set; } /// @@ -58416,6 +60586,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(30, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="congressionalDistrict")] + [Key(7)] public string CongressionalDistrict { get; set; } /// @@ -58424,6 +60595,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(5, MinimumLength=3, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText] [DataMember(Name="countyFIPSCode")] + [Key(8)] public string CountyFIPSCode { get; set; } /// @@ -58431,6 +60603,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="doNotPublishIndicator")] + [Key(9)] public bool? DoNotPublishIndicator { get; set; } /// @@ -58439,6 +60612,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(20, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="latitude")] + [Key(10)] public string Latitude { get; set; } /// @@ -58447,14 +60621,23 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="localeDescriptor")][DescriptorExists("LocaleDescriptor")] + [IgnoreMember] public string LocaleDescriptor { get; set; } + [Key(11)][JsonIgnore] + public int LocaleDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("LocaleDescriptor", LocaleDescriptor); } + set { LocaleDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("LocaleDescriptor", value); } + } + /// /// The geographic longitude of the physical address. /// // NOT in a reference, NOT a lookup column [NonDefaultStringLength(20, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="longitude")] + [Key(12)] public string Longitude { get; set; } /// @@ -58463,6 +60646,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(30, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="nameOfCounty")] + [Key(13)] public string NameOfCounty { get; set; } // ------------------------------------------------------------- @@ -58485,6 +60669,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "EducationOrganization", "EducationOrganizationAddress")] + [Key(14)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -58496,6 +60681,7 @@ public override int GetHashCode() [NoDuplicateMembers] [DataMember(Name="periods")] + [Key(15)] public ICollection EducationOrganizationAddressPeriods { get { return _educationOrganizationAddressPeriods; } @@ -58701,7 +60887,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.EducationOrganizationAddressPeriod table of the EducationOrganization aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class EducationOrganizationAddressPeriod : Entities.Common.EdFi.IEducationOrganizationAddressPeriod, IValidatableObject { @@ -58744,6 +60930,7 @@ Entities.Common.EdFi.IEducationOrganizationAddress IEducationOrganizationAddress set { SetEducationOrganizationAddress(value); } } + [IgnoreMember] public Entities.Common.EdFi.IEducationOrganizationAddress EducationOrganizationAddress { set { SetEducationOrganizationAddress(value); } @@ -58760,6 +60947,7 @@ private void SetEducationOrganizationAddress(Entities.Common.EdFi.IEducationOrga // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] [DataMember(Name="beginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(0)] public DateTime BeginDate { get; set; } // ------------------------------------------------------------- @@ -58830,6 +61018,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="endDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(1)] public DateTime? EndDate { get; set; } // ------------------------------------------------------------- @@ -58852,6 +61041,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "EducationOrganization", "EducationOrganizationAddressPeriod")] + [Key(2)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -58988,7 +61178,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.EducationOrganizationCategory table of the EducationOrganization aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class EducationOrganizationCategory : Entities.Common.EdFi.IEducationOrganizationCategory, IValidatableObject { @@ -59031,6 +61221,7 @@ Entities.Common.EdFi.IEducationOrganization IEducationOrganizationCategory.Educa set { SetEducationOrganization(value); } } + [IgnoreMember] public Entities.Common.EdFi.IEducationOrganization EducationOrganization { set { SetEducationOrganization(value); } @@ -59048,7 +61239,15 @@ private void SetEducationOrganization(Entities.Common.EdFi.IEducationOrganizatio [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="educationOrganizationCategoryDescriptor")][DescriptorExists("EducationOrganizationCategoryDescriptor")] + [IgnoreMember] public string EducationOrganizationCategoryDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int EducationOrganizationCategoryDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("EducationOrganizationCategoryDescriptor", EducationOrganizationCategoryDescriptor); } + set { EducationOrganizationCategoryDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("EducationOrganizationCategoryDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -59133,6 +61332,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "EducationOrganization", "EducationOrganizationCategory")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -59269,7 +61469,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.EducationOrganizationIdentificationCode table of the EducationOrganization aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class EducationOrganizationIdentificationCode : Entities.Common.EdFi.IEducationOrganizationIdentificationCode, IValidatableObject { @@ -59312,6 +61512,7 @@ Entities.Common.EdFi.IEducationOrganization IEducationOrganizationIdentification set { SetEducationOrganization(value); } } + [IgnoreMember] public Entities.Common.EdFi.IEducationOrganization EducationOrganization { set { SetEducationOrganization(value); } @@ -59329,7 +61530,15 @@ private void SetEducationOrganization(Entities.Common.EdFi.IEducationOrganizatio [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="educationOrganizationIdentificationSystemDescriptor")][DescriptorExists("EducationOrganizationIdentificationSystemDescriptor")] + [IgnoreMember] public string EducationOrganizationIdentificationSystemDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int EducationOrganizationIdentificationSystemDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("EducationOrganizationIdentificationSystemDescriptor", EducationOrganizationIdentificationSystemDescriptor); } + set { EducationOrganizationIdentificationSystemDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("EducationOrganizationIdentificationSystemDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -59401,6 +61610,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(60, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="identificationCode")] + [Key(1)] public string IdentificationCode { get; set; } // ------------------------------------------------------------- @@ -59423,6 +61633,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "EducationOrganization", "EducationOrganizationIdentificationCode")] + [Key(2)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -59559,7 +61770,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.EducationOrganizationIndicator table of the EducationOrganization aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class EducationOrganizationIndicator : Entities.Common.EdFi.IEducationOrganizationIndicator, IValidatableObject { @@ -59606,6 +61817,7 @@ Entities.Common.EdFi.IEducationOrganization IEducationOrganizationIndicator.Educ set { SetEducationOrganization(value); } } + [IgnoreMember] public Entities.Common.EdFi.IEducationOrganization EducationOrganization { set { SetEducationOrganization(value); } @@ -59623,7 +61835,15 @@ private void SetEducationOrganization(Entities.Common.EdFi.IEducationOrganizatio [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="indicatorDescriptor")][DescriptorExists("IndicatorDescriptor")] + [IgnoreMember] public string IndicatorDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int IndicatorDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("IndicatorDescriptor", IndicatorDescriptor); } + set { IndicatorDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("IndicatorDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -59694,6 +61914,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(60, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="designatedBy")] + [Key(1)] public string DesignatedBy { get; set; } /// @@ -59702,22 +61923,39 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="indicatorGroupDescriptor")][DescriptorExists("IndicatorGroupDescriptor")] + [IgnoreMember] public string IndicatorGroupDescriptor { get; set; } + [Key(2)][JsonIgnore] + public int IndicatorGroupDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("IndicatorGroupDescriptor", IndicatorGroupDescriptor); } + set { IndicatorGroupDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("IndicatorGroupDescriptor", value); } + } + /// /// The value of the indicator or metric, as a value from a controlled vocabulary. The semantics of an empty value is \"not submitted.\" /// // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="indicatorLevelDescriptor")][DescriptorExists("IndicatorLevelDescriptor")] + [IgnoreMember] public string IndicatorLevelDescriptor { get; set; } + [Key(3)][JsonIgnore] + public int IndicatorLevelDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("IndicatorLevelDescriptor", IndicatorLevelDescriptor); } + set { IndicatorLevelDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("IndicatorLevelDescriptor", value); } + } + /// /// The value of the indicator or metric. The semantics of an empty value is \"not submitted.\" /// // NOT in a reference, NOT a lookup column [NonDefaultStringLength(60, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="indicatorValue")] + [Key(4)] public string IndicatorValue { get; set; } // ------------------------------------------------------------- @@ -59740,6 +61978,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "EducationOrganization", "EducationOrganizationIndicator")] + [Key(5)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -59751,6 +61990,7 @@ public override int GetHashCode() [NoDuplicateMembers] [DataMember(Name="periods")] + [Key(6)] public ICollection EducationOrganizationIndicatorPeriods { get { return _educationOrganizationIndicatorPeriods; } @@ -59956,7 +62196,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.EducationOrganizationIndicatorPeriod table of the EducationOrganization aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class EducationOrganizationIndicatorPeriod : Entities.Common.EdFi.IEducationOrganizationIndicatorPeriod, IValidatableObject { @@ -59999,6 +62239,7 @@ Entities.Common.EdFi.IEducationOrganizationIndicator IEducationOrganizationIndic set { SetEducationOrganizationIndicator(value); } } + [IgnoreMember] public Entities.Common.EdFi.IEducationOrganizationIndicator EducationOrganizationIndicator { set { SetEducationOrganizationIndicator(value); } @@ -60015,6 +62256,7 @@ private void SetEducationOrganizationIndicator(Entities.Common.EdFi.IEducationOr // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] [DataMember(Name="beginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(0)] public DateTime BeginDate { get; set; } // ------------------------------------------------------------- @@ -60085,6 +62327,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="endDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(1)] public DateTime? EndDate { get; set; } // ------------------------------------------------------------- @@ -60107,6 +62350,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "EducationOrganization", "EducationOrganizationIndicatorPeriod")] + [Key(2)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -60243,7 +62487,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.EducationOrganizationInstitutionTelephone table of the EducationOrganization aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class EducationOrganizationInstitutionTelephone : Entities.Common.EdFi.IEducationOrganizationInstitutionTelephone, IValidatableObject { @@ -60286,6 +62530,7 @@ Entities.Common.EdFi.IEducationOrganization IEducationOrganizationInstitutionTel set { SetEducationOrganization(value); } } + [IgnoreMember] public Entities.Common.EdFi.IEducationOrganization EducationOrganization { set { SetEducationOrganization(value); } @@ -60303,7 +62548,15 @@ private void SetEducationOrganization(Entities.Common.EdFi.IEducationOrganizatio [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="institutionTelephoneNumberTypeDescriptor")][DescriptorExists("InstitutionTelephoneNumberTypeDescriptor")] + [IgnoreMember] public string InstitutionTelephoneNumberTypeDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int InstitutionTelephoneNumberTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("InstitutionTelephoneNumberTypeDescriptor", InstitutionTelephoneNumberTypeDescriptor); } + set { InstitutionTelephoneNumberTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("InstitutionTelephoneNumberTypeDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -60375,6 +62628,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(24, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="telephoneNumber")] + [Key(1)] public string TelephoneNumber { get; set; } // ------------------------------------------------------------- @@ -60397,6 +62651,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "EducationOrganization", "EducationOrganizationInstitutionTelephone")] + [Key(2)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -60533,7 +62788,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.EducationOrganizationInternationalAddress table of the EducationOrganization aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class EducationOrganizationInternationalAddress : Entities.Common.EdFi.IEducationOrganizationInternationalAddress, IValidatableObject { @@ -60576,6 +62831,7 @@ Entities.Common.EdFi.IEducationOrganization IEducationOrganizationInternationalA set { SetEducationOrganization(value); } } + [IgnoreMember] public Entities.Common.EdFi.IEducationOrganization EducationOrganization { set { SetEducationOrganization(value); } @@ -60593,7 +62849,15 @@ private void SetEducationOrganization(Entities.Common.EdFi.IEducationOrganizatio [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="addressTypeDescriptor")][DescriptorExists("AddressTypeDescriptor")] + [IgnoreMember] public string AddressTypeDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int AddressTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("AddressTypeDescriptor", AddressTypeDescriptor); } + set { AddressTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("AddressTypeDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -60665,6 +62929,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(150, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="addressLine1")] + [Key(1)] public string AddressLine1 { get; set; } /// @@ -60673,6 +62938,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(150, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="addressLine2")] + [Key(2)] public string AddressLine2 { get; set; } /// @@ -60681,6 +62947,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(150, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="addressLine3")] + [Key(3)] public string AddressLine3 { get; set; } /// @@ -60689,6 +62956,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(150, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="addressLine4")] + [Key(4)] public string AddressLine4 { get; set; } /// @@ -60696,6 +62964,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="beginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(5)] public DateTime? BeginDate { get; set; } /// @@ -60705,13 +62974,22 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="countryDescriptor")][DescriptorExists("CountryDescriptor")] + [IgnoreMember] public string CountryDescriptor { get; set; } + [Key(6)][JsonIgnore] + public int CountryDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("CountryDescriptor", CountryDescriptor); } + set { CountryDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("CountryDescriptor", value); } + } + /// /// The last date the address is valid. For physical addresses, the date the individual moved from that address. Note: Date interpretation may vary. Ed-Fi recommends inclusive dates, but states may define dates as inclusive or exclusive. For calculations, align with local guidelines. /// // NOT in a reference, NOT a lookup column [DataMember(Name="endDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(7)] public DateTime? EndDate { get; set; } /// @@ -60720,6 +62998,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(20, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="latitude")] + [Key(8)] public string Latitude { get; set; } /// @@ -60728,6 +63007,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(20, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="longitude")] + [Key(9)] public string Longitude { get; set; } // ------------------------------------------------------------- @@ -60750,6 +63030,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "EducationOrganization", "EducationOrganizationInternationalAddress")] + [Key(10)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -60891,7 +63172,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.EducationOrganizationAssociationT /// /// A class which represents the edfi.EducationOrganizationAssociationTypeDescriptor table of the EducationOrganizationAssociationTypeDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class EducationOrganizationAssociationTypeDescriptor : Entities.Common.EdFi.IEducationOrganizationAssociationTypeDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -60920,6 +63201,7 @@ public class EducationOrganizationAssociationTypeDescriptor : Entities.Common.Ed /// The unique identifier for the EducationOrganizationAssociationTypeDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -61004,6 +63286,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -61012,6 +63295,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -61019,6 +63303,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -61026,6 +63311,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -61035,6 +63321,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -61044,6 +63331,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -61087,9 +63375,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -61162,7 +63452,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.EducationOrganizationCategoryDesc /// /// A class which represents the edfi.EducationOrganizationCategoryDescriptor table of the EducationOrganizationCategoryDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class EducationOrganizationCategoryDescriptor : Entities.Common.EdFi.IEducationOrganizationCategoryDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -61191,6 +63481,7 @@ public class EducationOrganizationCategoryDescriptor : Entities.Common.EdFi.IEdu /// The unique identifier for the EducationOrganizationCategoryDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -61275,6 +63566,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -61283,6 +63575,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -61290,6 +63583,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -61297,6 +63591,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -61306,6 +63601,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -61315,6 +63611,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -61358,9 +63655,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -61433,7 +63732,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.EducationOrganizationIdentificati /// /// A class which represents the edfi.EducationOrganizationIdentificationSystemDescriptor table of the EducationOrganizationIdentificationSystemDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class EducationOrganizationIdentificationSystemDescriptor : Entities.Common.EdFi.IEducationOrganizationIdentificationSystemDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -61462,6 +63761,7 @@ public class EducationOrganizationIdentificationSystemDescriptor : Entities.Comm /// The unique identifier for the EducationOrganizationIdentificationSystemDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -61546,6 +63846,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -61554,6 +63855,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -61561,6 +63863,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -61568,6 +63871,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -61577,6 +63881,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -61586,6 +63891,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -61629,9 +63935,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -61704,33 +64012,41 @@ namespace EdFi.Ods.Api.Common.Models.Resources.EducationOrganizationIntervention /// /// Represents a reference to the EducationOrganizationInterventionPrescriptionAssociation resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class EducationOrganizationInterventionPrescriptionAssociationReference : IResourceReference { [DataMember(Name="educationOrganizationId")] + [Key(0)] public long EducationOrganizationId { get; set; } [DataMember(Name="interventionPrescriptionEducationOrganizationId")] + [Key(1)] public long InterventionPrescriptionEducationOrganizationId { get; set; } [DataMember(Name="interventionPrescriptionIdentificationCode")] + [Key(2)] public string InterventionPrescriptionIdentificationCode { get; set; } /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(3)] 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. /// + [Key(4)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(5)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -61809,7 +64125,7 @@ private Link CreateLink() /// /// A class which represents the edfi.EducationOrganizationInterventionPrescriptionAssociation table of the EducationOrganizationInterventionPrescriptionAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class EducationOrganizationInterventionPrescriptionAssociation : Entities.Common.EdFi.IEducationOrganizationInterventionPrescriptionAssociation, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -61838,6 +64154,7 @@ public class EducationOrganizationInterventionPrescriptionAssociation : Entities /// The unique identifier for the EducationOrganizationInterventionPrescriptionAssociation resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -61861,6 +64178,7 @@ private EducationOrganization.EdFi.EducationOrganizationReference ImplicitEducat } [DataMember(Name="educationOrganizationReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public EducationOrganization.EdFi.EducationOrganizationReference EducationOrganizationReference { @@ -61894,6 +64212,7 @@ private InterventionPrescription.EdFi.InterventionPrescriptionReference Implicit } [DataMember(Name="interventionPrescriptionReference")] + [Key(2)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public InterventionPrescription.EdFi.InterventionPrescriptionReference InterventionPrescriptionReference { @@ -62069,6 +64388,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="beginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? BeginDate { get; set; } /// @@ -62076,6 +64396,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="endDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EndDate { get; set; } // ------------------------------------------------------------- @@ -62098,6 +64419,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "EducationOrganizationInterventionPrescriptionAssociation", "EducationOrganizationInterventionPrescriptionAssociation")] + [Key(5)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -62111,9 +64433,11 @@ public override int GetHashCode() // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(6)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(7)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -62273,21 +64597,26 @@ namespace EdFi.Ods.Api.Common.Models.Resources.EducationOrganizationNetwork.EdFi /// /// Represents a reference to the EducationOrganizationNetwork resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class EducationOrganizationNetworkReference : IResourceReference { [DataMember(Name="educationOrganizationNetworkId")] + [Key(0)] public long EducationOrganizationNetworkId { get; set; } /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(1)] public Guid ResourceId { get; set; } - private Link _link; + [JsonIgnore] + [Key(2)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -62337,7 +64666,7 @@ private Link CreateLink() /// /// A class which represents the edfi.EducationOrganizationNetwork table of the EducationOrganizationNetwork aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class EducationOrganizationNetwork : Entities.Common.EdFi.IEducationOrganizationNetwork, Entities.Common.EdFi.IEducationOrganization, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -62377,6 +64706,7 @@ public EducationOrganizationNetwork() /// The unique identifier for the EducationOrganizationNetwork resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -62395,7 +64725,7 @@ public EducationOrganizationNetwork() /// // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] - [DataMember(Name="educationOrganizationNetworkId")] + [DataMember(Name="educationOrganizationNetworkId"),Key(1)] public long EducationOrganizationNetworkId { get; set; } long IEducationOrganization.EducationOrganizationId @@ -62462,6 +64792,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="nameOfInstitution")] + [Key(2)] public string NameOfInstitution { get; set; } /// @@ -62470,14 +64801,23 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="operationalStatusDescriptor")][DescriptorExists("OperationalStatusDescriptor")] + [IgnoreMember] public string OperationalStatusDescriptor { get; set; } + [Key(3)][JsonIgnore] + public int OperationalStatusDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("OperationalStatusDescriptor", OperationalStatusDescriptor); } + set { OperationalStatusDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("OperationalStatusDescriptor", value); } + } + /// /// A short name for the institution. /// // NOT in a reference, NOT a lookup column [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortNameOfInstitution")] + [Key(4)] public string ShortNameOfInstitution { get; set; } /// @@ -62486,6 +64826,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(255, MinimumLength=5, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText] [DataMember(Name="webSite")] + [Key(5)] public string WebSite { get; set; } // ------------------------------------------------------------- @@ -62500,7 +64841,15 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="networkPurposeDescriptor")][DescriptorExists("NetworkPurposeDescriptor")] + [IgnoreMember] public string NetworkPurposeDescriptor { get; set; } + + [Key(6)][JsonIgnore] + public int NetworkPurposeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("NetworkPurposeDescriptor", NetworkPurposeDescriptor); } + set { NetworkPurposeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("NetworkPurposeDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -62521,6 +64870,7 @@ public override int GetHashCode() [NoDuplicateMembers] [DataMember(Name="addresses")] + [Key(7)] public ICollection EducationOrganizationAddresses { get { return _educationOrganizationAddresses; } @@ -62542,6 +64892,7 @@ public ICollection Educ [NoDuplicateMembers][RequiredCollection] [DataMember(Name="categories")] + [Key(8)] public ICollection EducationOrganizationCategories { get { return _educationOrganizationCategories; } @@ -62563,6 +64914,7 @@ public ICollection Edu [NoDuplicateMembers] [DataMember(Name="identificationCodes")] + [Key(9)] public ICollection EducationOrganizationIdentificationCodes { get { return _educationOrganizationIdentificationCodes; } @@ -62584,6 +64936,7 @@ public ICollection EducationOrganizationIndicators { get { return _educationOrganizationIndicators; } @@ -62605,6 +64958,7 @@ public ICollection Ed [NoDuplicateMembers] [DataMember(Name="institutionTelephones")] + [Key(11)] public ICollection EducationOrganizationInstitutionTelephones { get { return _educationOrganizationInstitutionTelephones; } @@ -62626,6 +64980,7 @@ public ICollection EducationOrganizationInternationalAddresses { get { return _educationOrganizationInternationalAddresses; } @@ -62648,6 +65003,7 @@ public ICollection /// Represents a reference to the EducationOrganizationNetworkAssociation resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class EducationOrganizationNetworkAssociationReference : IResourceReference { [DataMember(Name="educationOrganizationNetworkId")] + [Key(0)] public long EducationOrganizationNetworkId { get; set; } [DataMember(Name="memberEducationOrganizationId")] + [Key(1)] public long MemberEducationOrganizationId { get; set; } /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(2)] 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. /// + [Key(3)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(4)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -63087,7 +65452,7 @@ private Link CreateLink() /// /// A class which represents the edfi.EducationOrganizationNetworkAssociation table of the EducationOrganizationNetworkAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class EducationOrganizationNetworkAssociation : Entities.Common.EdFi.IEducationOrganizationNetworkAssociation, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -63116,6 +65481,7 @@ public class EducationOrganizationNetworkAssociation : Entities.Common.EdFi.IEdu /// The unique identifier for the EducationOrganizationNetworkAssociation resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -63139,6 +65505,7 @@ private EducationOrganizationNetwork.EdFi.EducationOrganizationNetworkReference } [DataMember(Name="educationOrganizationNetworkReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public EducationOrganizationNetwork.EdFi.EducationOrganizationNetworkReference EducationOrganizationNetworkReference { @@ -63172,6 +65539,7 @@ private EducationOrganization.EdFi.EducationOrganizationReference ImplicitMember } [DataMember(Name="memberEducationOrganizationReference")] + [Key(2)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public EducationOrganization.EdFi.EducationOrganizationReference MemberEducationOrganizationReference { @@ -63314,6 +65682,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="beginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? BeginDate { get; set; } /// @@ -63321,6 +65690,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="endDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EndDate { get; set; } // ------------------------------------------------------------- @@ -63343,6 +65713,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "EducationOrganizationNetworkAssociation", "EducationOrganizationNetworkAssociation")] + [Key(5)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -63356,9 +65727,11 @@ public override int GetHashCode() // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(6)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(7)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -63511,30 +65884,37 @@ namespace EdFi.Ods.Api.Common.Models.Resources.EducationOrganizationPeerAssociat /// /// Represents a reference to the EducationOrganizationPeerAssociation resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class EducationOrganizationPeerAssociationReference : IResourceReference { [DataMember(Name="educationOrganizationId")] + [Key(0)] public long EducationOrganizationId { get; set; } [DataMember(Name="peerEducationOrganizationId")] + [Key(1)] public long PeerEducationOrganizationId { get; set; } /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(2)] 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. /// + [Key(3)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(4)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -63608,7 +65988,7 @@ private Link CreateLink() /// /// A class which represents the edfi.EducationOrganizationPeerAssociation table of the EducationOrganizationPeerAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class EducationOrganizationPeerAssociation : Entities.Common.EdFi.IEducationOrganizationPeerAssociation, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -63637,6 +66017,7 @@ public class EducationOrganizationPeerAssociation : Entities.Common.EdFi.IEducat /// The unique identifier for the EducationOrganizationPeerAssociation resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -63660,6 +66041,7 @@ private EducationOrganization.EdFi.EducationOrganizationReference ImplicitEducat } [DataMember(Name="educationOrganizationReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public EducationOrganization.EdFi.EducationOrganizationReference EducationOrganizationReference { @@ -63693,6 +66075,7 @@ private EducationOrganization.EdFi.EducationOrganizationReference ImplicitPeerEd } [DataMember(Name="peerEducationOrganizationReference")] + [Key(2)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public EducationOrganization.EdFi.EducationOrganizationReference PeerEducationOrganizationReference { @@ -63850,6 +66233,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "EducationOrganizationPeerAssociation", "EducationOrganizationPeerAssociation")] + [Key(3)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -63863,9 +66247,11 @@ public override int GetHashCode() // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(4)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(5)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -64025,7 +66411,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.EducationPlanDescriptor.EdFi /// /// A class which represents the edfi.EducationPlanDescriptor table of the EducationPlanDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class EducationPlanDescriptor : Entities.Common.EdFi.IEducationPlanDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -64054,6 +66440,7 @@ public class EducationPlanDescriptor : Entities.Common.EdFi.IEducationPlanDescri /// The unique identifier for the EducationPlanDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -64138,6 +66525,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -64146,6 +66534,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -64153,6 +66542,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -64160,6 +66550,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -64169,6 +66560,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -64178,6 +66570,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -64221,9 +66614,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -64296,21 +66691,26 @@ namespace EdFi.Ods.Api.Common.Models.Resources.EducationServiceCenter.EdFi /// /// Represents a reference to the EducationServiceCenter resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class EducationServiceCenterReference : IResourceReference { [DataMember(Name="educationServiceCenterId")] + [Key(0)] public long EducationServiceCenterId { get; set; } /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(1)] public Guid ResourceId { get; set; } - private Link _link; + [JsonIgnore] + [Key(2)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -64360,7 +66760,7 @@ private Link CreateLink() /// /// A class which represents the edfi.EducationServiceCenter table of the EducationServiceCenter aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class EducationServiceCenter : Entities.Common.EdFi.IEducationServiceCenter, Entities.Common.EdFi.IEducationOrganization, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -64400,6 +66800,7 @@ public EducationServiceCenter() /// The unique identifier for the EducationServiceCenter resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -64423,6 +66824,7 @@ private StateEducationAgency.EdFi.StateEducationAgencyReference ImplicitStateEdu } [DataMember(Name="stateEducationAgencyReference")] + [Key(1)] [FullyDefinedReference] public StateEducationAgency.EdFi.StateEducationAgencyReference StateEducationAgencyReference { @@ -64452,7 +66854,7 @@ public StateEducationAgency.EdFi.StateEducationAgencyReference StateEducationAge /// // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] - [DataMember(Name="educationServiceCenterId")] + [DataMember(Name="educationServiceCenterId"),Key(2)] public long EducationServiceCenterId { get; set; } long IEducationOrganization.EducationOrganizationId @@ -64519,6 +66921,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="nameOfInstitution")] + [Key(3)] public string NameOfInstitution { get; set; } /// @@ -64527,14 +66930,23 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="operationalStatusDescriptor")][DescriptorExists("OperationalStatusDescriptor")] + [IgnoreMember] public string OperationalStatusDescriptor { get; set; } + [Key(4)][JsonIgnore] + public int OperationalStatusDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("OperationalStatusDescriptor", OperationalStatusDescriptor); } + set { OperationalStatusDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("OperationalStatusDescriptor", value); } + } + /// /// A short name for the institution. /// // NOT in a reference, NOT a lookup column [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortNameOfInstitution")] + [Key(5)] public string ShortNameOfInstitution { get; set; } /// @@ -64543,6 +66955,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(255, MinimumLength=5, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText] [DataMember(Name="webSite")] + [Key(6)] public string WebSite { get; set; } // ------------------------------------------------------------- @@ -64596,6 +67009,7 @@ public override int GetHashCode() [NoDuplicateMembers] [DataMember(Name="addresses")] + [Key(7)] public ICollection EducationOrganizationAddresses { get { return _educationOrganizationAddresses; } @@ -64617,6 +67031,7 @@ public ICollection Educ [NoDuplicateMembers][RequiredCollection] [DataMember(Name="categories")] + [Key(8)] public ICollection EducationOrganizationCategories { get { return _educationOrganizationCategories; } @@ -64638,6 +67053,7 @@ public ICollection Edu [NoDuplicateMembers] [DataMember(Name="identificationCodes")] + [Key(9)] public ICollection EducationOrganizationIdentificationCodes { get { return _educationOrganizationIdentificationCodes; } @@ -64659,6 +67075,7 @@ public ICollection EducationOrganizationIndicators { get { return _educationOrganizationIndicators; } @@ -64680,6 +67097,7 @@ public ICollection Ed [NoDuplicateMembers] [DataMember(Name="institutionTelephones")] + [Key(11)] public ICollection EducationOrganizationInstitutionTelephones { get { return _educationOrganizationInstitutionTelephones; } @@ -64701,6 +67119,7 @@ public ICollection EducationOrganizationInternationalAddresses { get { return _educationOrganizationInternationalAddresses; } @@ -64723,6 +67142,7 @@ public ICollection /// A class which represents the edfi.ElectronicMailTypeDescriptor table of the ElectronicMailTypeDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class ElectronicMailTypeDescriptor : Entities.Common.EdFi.IElectronicMailTypeDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -65101,6 +67523,7 @@ public class ElectronicMailTypeDescriptor : Entities.Common.EdFi.IElectronicMail /// The unique identifier for the ElectronicMailTypeDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -65185,6 +67608,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -65193,6 +67617,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -65200,6 +67625,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -65207,6 +67633,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -65216,6 +67643,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -65225,6 +67653,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -65268,9 +67697,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -65343,7 +67774,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.EligibilityDelayReasonDescriptor. /// /// A class which represents the edfi.EligibilityDelayReasonDescriptor table of the EligibilityDelayReasonDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class EligibilityDelayReasonDescriptor : Entities.Common.EdFi.IEligibilityDelayReasonDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -65372,6 +67803,7 @@ public class EligibilityDelayReasonDescriptor : Entities.Common.EdFi.IEligibilit /// The unique identifier for the EligibilityDelayReasonDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -65456,6 +67888,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -65464,6 +67897,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -65471,6 +67905,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -65478,6 +67913,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -65487,6 +67923,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -65496,6 +67933,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -65539,9 +67977,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -65614,7 +68054,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.EligibilityEvaluationTypeDescript /// /// A class which represents the edfi.EligibilityEvaluationTypeDescriptor table of the EligibilityEvaluationTypeDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class EligibilityEvaluationTypeDescriptor : Entities.Common.EdFi.IEligibilityEvaluationTypeDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -65643,6 +68083,7 @@ public class EligibilityEvaluationTypeDescriptor : Entities.Common.EdFi.IEligibi /// The unique identifier for the EligibilityEvaluationTypeDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -65727,6 +68168,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -65735,6 +68177,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -65742,6 +68185,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -65749,6 +68193,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -65758,6 +68203,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -65767,6 +68213,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -65810,9 +68257,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -65885,7 +68334,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.EmploymentStatusDescriptor.EdFi /// /// A class which represents the edfi.EmploymentStatusDescriptor table of the EmploymentStatusDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class EmploymentStatusDescriptor : Entities.Common.EdFi.IEmploymentStatusDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -65914,6 +68363,7 @@ public class EmploymentStatusDescriptor : Entities.Common.EdFi.IEmploymentStatus /// The unique identifier for the EmploymentStatusDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -65998,6 +68448,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -66006,6 +68457,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -66013,6 +68465,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -66020,6 +68473,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -66029,6 +68483,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -66038,6 +68493,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -66081,9 +68537,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -66156,7 +68614,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.EnrollmentTypeDescriptor.EdFi /// /// A class which represents the edfi.EnrollmentTypeDescriptor table of the EnrollmentTypeDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class EnrollmentTypeDescriptor : Entities.Common.EdFi.IEnrollmentTypeDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -66185,6 +68643,7 @@ public class EnrollmentTypeDescriptor : Entities.Common.EdFi.IEnrollmentTypeDesc /// The unique identifier for the EnrollmentTypeDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -66269,6 +68728,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -66277,6 +68737,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -66284,6 +68745,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -66291,6 +68753,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -66300,6 +68763,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -66309,6 +68773,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -66352,9 +68817,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -66427,7 +68894,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.EntryGradeLevelReasonDescriptor.E /// /// A class which represents the edfi.EntryGradeLevelReasonDescriptor table of the EntryGradeLevelReasonDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class EntryGradeLevelReasonDescriptor : Entities.Common.EdFi.IEntryGradeLevelReasonDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -66456,6 +68923,7 @@ public class EntryGradeLevelReasonDescriptor : Entities.Common.EdFi.IEntryGradeL /// The unique identifier for the EntryGradeLevelReasonDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -66540,6 +69008,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -66548,6 +69017,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -66555,6 +69025,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -66562,6 +69033,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -66571,6 +69043,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -66580,6 +69053,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -66623,9 +69097,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -66698,7 +69174,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.EntryTypeDescriptor.EdFi /// /// A class which represents the edfi.EntryTypeDescriptor table of the EntryTypeDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class EntryTypeDescriptor : Entities.Common.EdFi.IEntryTypeDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -66727,6 +69203,7 @@ public class EntryTypeDescriptor : Entities.Common.EdFi.IEntryTypeDescriptor, En /// The unique identifier for the EntryTypeDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -66811,6 +69288,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -66819,6 +69297,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -66826,6 +69305,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -66833,6 +69313,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -66842,6 +69323,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -66851,6 +69333,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -66894,9 +69377,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -66969,7 +69454,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.EvaluationDelayReasonDescriptor.E /// /// A class which represents the edfi.EvaluationDelayReasonDescriptor table of the EvaluationDelayReasonDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class EvaluationDelayReasonDescriptor : Entities.Common.EdFi.IEvaluationDelayReasonDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -66998,6 +69483,7 @@ public class EvaluationDelayReasonDescriptor : Entities.Common.EdFi.IEvaluationD /// The unique identifier for the EvaluationDelayReasonDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -67082,6 +69568,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -67090,6 +69577,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -67097,6 +69585,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -67104,6 +69593,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -67113,6 +69603,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -67122,6 +69613,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -67165,9 +69657,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -67240,48 +69734,82 @@ namespace EdFi.Ods.Api.Common.Models.Resources.EvaluationRubricDimension.EdFi /// /// Represents a reference to the EvaluationRubricDimension resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class EvaluationRubricDimensionReference : IResourceReference { [DataMember(Name="evaluationRubricRating")] + [Key(0)] public int EvaluationRubricRating { get; set; } [DataMember(Name="programEducationOrganizationId")] + [Key(1)] public long ProgramEducationOrganizationId { get; set; } [DataMember(Name="programEvaluationElementTitle")] + [Key(2)] public string ProgramEvaluationElementTitle { get; set; } [DataMember(Name="programEvaluationPeriodDescriptor")][DescriptorExists("ProgramEvaluationPeriodDescriptor")] + [IgnoreMember] public string ProgramEvaluationPeriodDescriptor { get; set; } + [Key(3)][JsonIgnore] + public int ProgramEvaluationPeriodDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ProgramEvaluationPeriodDescriptor", ProgramEvaluationPeriodDescriptor); } + set { ProgramEvaluationPeriodDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ProgramEvaluationPeriodDescriptor", value); } + } + [DataMember(Name="programEvaluationTitle")] + [Key(4)] public string ProgramEvaluationTitle { get; set; } [DataMember(Name="programEvaluationTypeDescriptor")][DescriptorExists("ProgramEvaluationTypeDescriptor")] + [IgnoreMember] public string ProgramEvaluationTypeDescriptor { get; set; } + [Key(5)][JsonIgnore] + public int ProgramEvaluationTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ProgramEvaluationTypeDescriptor", ProgramEvaluationTypeDescriptor); } + set { ProgramEvaluationTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ProgramEvaluationTypeDescriptor", value); } + } + [DataMember(Name="programName")] + [Key(6)] public string ProgramName { get; set; } [DataMember(Name="programTypeDescriptor")][DescriptorExists("ProgramTypeDescriptor")] + [IgnoreMember] public string ProgramTypeDescriptor { get; set; } + [Key(7)][JsonIgnore] + public int ProgramTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ProgramTypeDescriptor", ProgramTypeDescriptor); } + set { ProgramTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ProgramTypeDescriptor", value); } + } + /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(8)] 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. /// + [Key(9)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(10)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -67385,7 +69913,7 @@ private Link CreateLink() /// /// A class which represents the edfi.EvaluationRubricDimension table of the EvaluationRubricDimension aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] [NoUnsuppliedRequiredMembersWithMeaningfulDefaults] public class EvaluationRubricDimension : Entities.Common.EdFi.IEvaluationRubricDimension, IHasETag, IDateVersionedEntity, IHasRequiredMembersWithMeaningfulDefaultValues, IValidatableObject @@ -67415,6 +69943,7 @@ public class EvaluationRubricDimension : Entities.Common.EdFi.IEvaluationRubricD /// The unique identifier for the EvaluationRubricDimension resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -67438,6 +69967,7 @@ private ProgramEvaluationElement.EdFi.ProgramEvaluationElementReference Implicit } [DataMember(Name="programEvaluationElementReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public ProgramEvaluationElement.EdFi.ProgramEvaluationElementReference ProgramEvaluationElementReference { @@ -67470,6 +70000,7 @@ public ProgramEvaluationElement.EdFi.ProgramEvaluationElementReference ProgramEv /// // NOT in a reference, NOT a lookup column [DataMember(Name="evaluationRubricRating")] + [Key(2)] public int EvaluationRubricRating { get => _evaluationRubricRating; @@ -67766,6 +70297,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="evaluationCriterionDescription")] + [Key(3)] public string EvaluationCriterionDescription { get; set; } /// @@ -67774,13 +70306,22 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="evaluationRubricRatingLevelDescriptor")][DescriptorExists("RatingLevelDescriptor")] + [IgnoreMember] public string EvaluationRubricRatingLevelDescriptor { get; set; } + [Key(4)][JsonIgnore] + public int EvaluationRubricRatingLevelDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("RatingLevelDescriptor", EvaluationRubricRatingLevelDescriptor); } + set { EvaluationRubricRatingLevelDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("RatingLevelDescriptor", value); } + } + /// /// The sort order of the rubric dimension. /// // NOT in a reference, NOT a lookup column [DataMember(Name="rubricDimensionSortOrder")] + [Key(5)] public int? RubricDimensionSortOrder { get; set; } // ------------------------------------------------------------- @@ -67811,6 +70352,7 @@ IEnumerable IHasRequiredMembersWithMeaningfulDefaultValues.GetUnassigned // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "EvaluationRubricDimension", "EvaluationRubricDimension")] + [Key(6)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -67824,9 +70366,11 @@ IEnumerable IHasRequiredMembersWithMeaningfulDefaultValues.GetUnassigned // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -67972,7 +70516,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.EventCircumstanceDescriptor.EdFi /// /// A class which represents the edfi.EventCircumstanceDescriptor table of the EventCircumstanceDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class EventCircumstanceDescriptor : Entities.Common.EdFi.IEventCircumstanceDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -68001,6 +70545,7 @@ public class EventCircumstanceDescriptor : Entities.Common.EdFi.IEventCircumstan /// The unique identifier for the EventCircumstanceDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -68085,6 +70630,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -68093,6 +70639,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -68100,6 +70647,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -68107,6 +70655,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -68116,6 +70665,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -68125,6 +70675,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -68168,9 +70719,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -68243,7 +70796,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.ExitWithdrawTypeDescriptor.EdFi /// /// A class which represents the edfi.ExitWithdrawTypeDescriptor table of the ExitWithdrawTypeDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class ExitWithdrawTypeDescriptor : Entities.Common.EdFi.IExitWithdrawTypeDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -68272,6 +70825,7 @@ public class ExitWithdrawTypeDescriptor : Entities.Common.EdFi.IExitWithdrawType /// The unique identifier for the ExitWithdrawTypeDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -68356,6 +70910,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -68364,6 +70919,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -68371,6 +70927,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -68378,6 +70935,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -68387,6 +70945,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -68396,6 +70955,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -68439,9 +70999,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -68514,33 +71076,41 @@ namespace EdFi.Ods.Api.Common.Models.Resources.FeederSchoolAssociation.EdFi /// /// Represents a reference to the FeederSchoolAssociation resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class FeederSchoolAssociationReference : IResourceReference { [DataMember(Name="beginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(0)] public DateTime BeginDate { get; set; } [DataMember(Name="feederSchoolId")] + [Key(1)] public long FeederSchoolId { get; set; } [DataMember(Name="schoolId")] + [Key(2)] public long SchoolId { get; set; } /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(3)] 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. /// + [Key(4)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(5)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -68619,7 +71189,7 @@ private Link CreateLink() /// /// A class which represents the edfi.FeederSchoolAssociation table of the FeederSchoolAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class FeederSchoolAssociation : Entities.Common.EdFi.IFeederSchoolAssociation, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -68648,6 +71218,7 @@ public class FeederSchoolAssociation : Entities.Common.EdFi.IFeederSchoolAssocia /// The unique identifier for the FeederSchoolAssociation resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -68671,6 +71242,7 @@ private School.EdFi.SchoolReference ImplicitFeederSchoolReference } [DataMember(Name="feederSchoolReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public School.EdFi.SchoolReference FeederSchoolReference { @@ -68704,6 +71276,7 @@ private School.EdFi.SchoolReference ImplicitSchoolReference } [DataMember(Name="schoolReference")] + [Key(2)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public School.EdFi.SchoolReference SchoolReference { @@ -68734,6 +71307,7 @@ public School.EdFi.SchoolReference SchoolReference // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] [DataMember(Name="beginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime BeginDate { get; set; } /// @@ -68863,6 +71437,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="endDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EndDate { get; set; } /// @@ -68871,6 +71446,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="feederRelationshipDescription")] + [Key(5)] public string FeederRelationshipDescription { get; set; } // ------------------------------------------------------------- @@ -68893,6 +71469,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "FeederSchoolAssociation", "FeederSchoolAssociation")] + [Key(6)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -68906,9 +71483,11 @@ public override int GetHashCode() // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -69054,7 +71633,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.FinancialCollectionDescriptor.EdF /// /// A class which represents the edfi.FinancialCollectionDescriptor table of the FinancialCollectionDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class FinancialCollectionDescriptor : Entities.Common.EdFi.IFinancialCollectionDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -69083,6 +71662,7 @@ public class FinancialCollectionDescriptor : Entities.Common.EdFi.IFinancialColl /// The unique identifier for the FinancialCollectionDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -69167,6 +71747,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -69175,6 +71756,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -69182,6 +71764,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -69189,6 +71772,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -69198,6 +71782,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -69207,6 +71792,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -69250,9 +71836,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -69325,30 +71913,37 @@ namespace EdFi.Ods.Api.Common.Models.Resources.FunctionDimension.EdFi /// /// Represents a reference to the FunctionDimension resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class FunctionDimensionReference : IResourceReference { [DataMember(Name="code")] + [Key(0)] public string Code { get; set; } [DataMember(Name="fiscalYear")] + [Key(1)] public int FiscalYear { get; set; } /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(2)] 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. /// + [Key(3)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(4)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -69422,7 +72017,7 @@ private Link CreateLink() /// /// A class which represents the edfi.FunctionDimension table of the FunctionDimension aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] [NoUnsuppliedRequiredMembersWithMeaningfulDefaults] public class FunctionDimension : Entities.Common.EdFi.IFunctionDimension, IHasETag, IDateVersionedEntity, IHasRequiredMembersWithMeaningfulDefaultValues, IValidatableObject @@ -69456,6 +72051,7 @@ public FunctionDimension() /// The unique identifier for the FunctionDimension resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -69476,6 +72072,7 @@ public FunctionDimension() [RequiredWithNonDefault] [NonDefaultStringLength(16, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="code")] + [Key(1)] public string Code { get; set; } private bool _fiscalYearExplicitlyAssigned = false; @@ -69487,6 +72084,7 @@ public FunctionDimension() // NOT in a reference, NOT a lookup column [Range(2020, 2040, ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="fiscalYear")] + [Key(2)] public int FiscalYear { get => _fiscalYear; @@ -69569,6 +72167,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(100, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeName")] + [Key(3)] public string CodeName { get; set; } // ------------------------------------------------------------- @@ -69599,6 +72198,7 @@ IEnumerable IHasRequiredMembersWithMeaningfulDefaultValues.GetUnassigned // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "FunctionDimension", "FunctionDimension")] + [Key(4)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -69610,6 +72210,7 @@ IEnumerable IHasRequiredMembersWithMeaningfulDefaultValues.GetUnassigned [NoDuplicateMembers] [DataMember(Name="reportingTags")] + [Key(5)] public ICollection FunctionDimensionReportingTags { get { return _functionDimensionReportingTags; } @@ -69642,9 +72243,11 @@ public ICollection FunctionDimensionReportingTags // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(6)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(7)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -69821,7 +72424,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.FunctionDimensionReportingTag table of the FunctionDimension aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class FunctionDimensionReportingTag : Entities.Common.EdFi.IFunctionDimensionReportingTag, IValidatableObject { @@ -69864,6 +72467,7 @@ Entities.Common.EdFi.IFunctionDimension IFunctionDimensionReportingTag.FunctionD set { SetFunctionDimension(value); } } + [IgnoreMember] public Entities.Common.EdFi.IFunctionDimension FunctionDimension { set { SetFunctionDimension(value); } @@ -69881,7 +72485,15 @@ private void SetFunctionDimension(Entities.Common.EdFi.IFunctionDimension value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="reportingTagDescriptor")][DescriptorExists("ReportingTagDescriptor")] + [IgnoreMember] public string ReportingTagDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int ReportingTagDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ReportingTagDescriptor", ReportingTagDescriptor); } + set { ReportingTagDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ReportingTagDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -69966,6 +72578,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "FunctionDimension", "FunctionDimensionReportingTag")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -70107,30 +72720,37 @@ namespace EdFi.Ods.Api.Common.Models.Resources.FundDimension.EdFi /// /// Represents a reference to the FundDimension resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class FundDimensionReference : IResourceReference { [DataMember(Name="code")] + [Key(0)] public string Code { get; set; } [DataMember(Name="fiscalYear")] + [Key(1)] public int FiscalYear { get; set; } /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(2)] 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. /// + [Key(3)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(4)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -70204,7 +72824,7 @@ private Link CreateLink() /// /// A class which represents the edfi.FundDimension table of the FundDimension aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] [NoUnsuppliedRequiredMembersWithMeaningfulDefaults] public class FundDimension : Entities.Common.EdFi.IFundDimension, IHasETag, IDateVersionedEntity, IHasRequiredMembersWithMeaningfulDefaultValues, IValidatableObject @@ -70238,6 +72858,7 @@ public FundDimension() /// The unique identifier for the FundDimension resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -70258,6 +72879,7 @@ public FundDimension() [RequiredWithNonDefault] [NonDefaultStringLength(16, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="code")] + [Key(1)] public string Code { get; set; } private bool _fiscalYearExplicitlyAssigned = false; @@ -70269,6 +72891,7 @@ public FundDimension() // NOT in a reference, NOT a lookup column [Range(2020, 2040, ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="fiscalYear")] + [Key(2)] public int FiscalYear { get => _fiscalYear; @@ -70351,6 +72974,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(100, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeName")] + [Key(3)] public string CodeName { get; set; } // ------------------------------------------------------------- @@ -70381,6 +73005,7 @@ IEnumerable IHasRequiredMembersWithMeaningfulDefaultValues.GetUnassigned // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "FundDimension", "FundDimension")] + [Key(4)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -70392,6 +73017,7 @@ IEnumerable IHasRequiredMembersWithMeaningfulDefaultValues.GetUnassigned [NoDuplicateMembers] [DataMember(Name="reportingTags")] + [Key(5)] public ICollection FundDimensionReportingTags { get { return _fundDimensionReportingTags; } @@ -70424,9 +73050,11 @@ public ICollection FundDimensionReportingTags // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(6)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(7)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -70603,7 +73231,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.FundDimensionReportingTag table of the FundDimension aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class FundDimensionReportingTag : Entities.Common.EdFi.IFundDimensionReportingTag, IValidatableObject { @@ -70646,6 +73274,7 @@ Entities.Common.EdFi.IFundDimension IFundDimensionReportingTag.FundDimension set { SetFundDimension(value); } } + [IgnoreMember] public Entities.Common.EdFi.IFundDimension FundDimension { set { SetFundDimension(value); } @@ -70663,7 +73292,15 @@ private void SetFundDimension(Entities.Common.EdFi.IFundDimension value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="reportingTagDescriptor")][DescriptorExists("ReportingTagDescriptor")] + [IgnoreMember] public string ReportingTagDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int ReportingTagDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ReportingTagDescriptor", ReportingTagDescriptor); } + set { ReportingTagDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ReportingTagDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -70748,6 +73385,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "FundDimension", "FundDimensionReportingTag")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -70889,25 +73527,37 @@ namespace EdFi.Ods.Api.Common.Models.Resources.GeneralStudentProgramAssociation. /// /// Represents a reference to the GeneralStudentProgramAssociation resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class GeneralStudentProgramAssociationReference : IResourceReference { [DataMember(Name="beginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(0)] public DateTime BeginDate { get; set; } [DataMember(Name="educationOrganizationId")] + [Key(1)] public long EducationOrganizationId { get; set; } [DataMember(Name="programEducationOrganizationId")] + [Key(2)] public long ProgramEducationOrganizationId { get; set; } [DataMember(Name="programName")] + [Key(3)] public string ProgramName { get; set; } [DataMember(Name="programTypeDescriptor")][DescriptorExists("ProgramTypeDescriptor")] + [IgnoreMember] public string ProgramTypeDescriptor { get; set; } + [Key(4)][JsonIgnore] + public int ProgramTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ProgramTypeDescriptor", ProgramTypeDescriptor); } + set { ProgramTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ProgramTypeDescriptor", value); } + } + [DataMember(Name="studentUniqueId")] public string StudentUniqueId { @@ -70923,17 +73573,22 @@ public string StudentUniqueId /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(5)] 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. /// + [Key(6)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(7)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -71033,7 +73688,7 @@ private Link CreateLink() /// /// A class which represents the edfi.GeneralStudentProgramAssociationProgramParticipationStatus table of the GeneralStudentProgramAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class GeneralStudentProgramAssociationProgramParticipationStatus : Entities.Common.EdFi.IGeneralStudentProgramAssociationProgramParticipationStatus, IValidatableObject { @@ -71076,6 +73731,7 @@ Entities.Common.EdFi.IGeneralStudentProgramAssociation IGeneralStudentProgramAss set { SetGeneralStudentProgramAssociation(value); } } + [IgnoreMember] public Entities.Common.EdFi.IGeneralStudentProgramAssociation GeneralStudentProgramAssociation { set { SetGeneralStudentProgramAssociation(value); } @@ -71093,14 +73749,23 @@ private void SetGeneralStudentProgramAssociation(Entities.Common.EdFi.IGeneralSt [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="participationStatusDescriptor")][DescriptorExists("ParticipationStatusDescriptor")] + [IgnoreMember] public string ParticipationStatusDescriptor { get; set; } + [Key(0)][JsonIgnore] + public int ParticipationStatusDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ParticipationStatusDescriptor", ParticipationStatusDescriptor); } + set { ParticipationStatusDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ParticipationStatusDescriptor", value); } + } + /// /// The date the student's program participation status began. Note: Date interpretation may vary. Ed-Fi recommends inclusive dates, but states may define dates as inclusive or exclusive. For calculations, align with local guidelines. /// // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] [DataMember(Name="statusBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(1)] public DateTime StatusBeginDate { get; set; } // ------------------------------------------------------------- @@ -71181,6 +73846,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(60, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="designatedBy")] + [Key(2)] public string DesignatedBy { get; set; } /// @@ -71188,6 +73854,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="statusEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? StatusEndDate { get; set; } // ------------------------------------------------------------- @@ -71210,6 +73877,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "GeneralStudentProgramAssociation", "GeneralStudentProgramAssociationProgramParticipationStatus")] + [Key(4)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -71351,38 +74019,62 @@ namespace EdFi.Ods.Api.Common.Models.Resources.Grade.EdFi /// /// Represents a reference to the Grade resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class GradeReference : IResourceReference { [DataMember(Name="beginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(0)] public DateTime BeginDate { get; set; } [DataMember(Name="gradeTypeDescriptor")][DescriptorExists("GradeTypeDescriptor")] + [IgnoreMember] public string GradeTypeDescriptor { get; set; } + [Key(1)][JsonIgnore] + public int GradeTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("GradeTypeDescriptor", GradeTypeDescriptor); } + set { GradeTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("GradeTypeDescriptor", value); } + } + [DataMember(Name="gradingPeriodDescriptor")][DescriptorExists("GradingPeriodDescriptor")] + [IgnoreMember] public string GradingPeriodDescriptor { get; set; } + [Key(2)][JsonIgnore] + public int GradingPeriodDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("GradingPeriodDescriptor", GradingPeriodDescriptor); } + set { GradingPeriodDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("GradingPeriodDescriptor", value); } + } + [DataMember(Name="gradingPeriodName")] + [Key(3)] public string GradingPeriodName { get; set; } [DataMember(Name="gradingPeriodSchoolYear")] + [Key(4)] public short GradingPeriodSchoolYear { get; set; } [DataMember(Name="localCourseCode")] + [Key(5)] public string LocalCourseCode { get; set; } [DataMember(Name="schoolId")] + [Key(6)] public long SchoolId { get; set; } [DataMember(Name="schoolYear")] + [Key(7)] public short SchoolYear { get; set; } [DataMember(Name="sectionIdentifier")] + [Key(8)] public string SectionIdentifier { get; set; } [DataMember(Name="sessionName")] + [Key(9)] public string SessionName { get; set; } [DataMember(Name="studentUniqueId")] @@ -71400,17 +74092,22 @@ public string StudentUniqueId /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(10)] 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. /// + [Key(11)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(12)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -71529,7 +74226,7 @@ private Link CreateLink() /// /// A class which represents the edfi.Grade table of the Grade aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class Grade : Entities.Common.EdFi.IGrade, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -71562,6 +74259,7 @@ public Grade() /// The unique identifier for the Grade resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -71585,6 +74283,7 @@ private GradingPeriod.EdFi.GradingPeriodReference ImplicitGradingPeriodReference } [DataMember(Name="gradingPeriodReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public GradingPeriod.EdFi.GradingPeriodReference GradingPeriodReference { @@ -71618,6 +74317,7 @@ private StudentSectionAssociation.EdFi.StudentSectionAssociationReference Implic } [DataMember(Name="studentSectionAssociationReference")] + [Key(2)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public StudentSectionAssociation.EdFi.StudentSectionAssociationReference StudentSectionAssociationReference { @@ -71674,8 +74374,16 @@ DateTime Entities.Common.EdFi.IGrade.BeginDate [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="gradeTypeDescriptor")][DescriptorExists("GradeTypeDescriptor")] + [IgnoreMember] public string GradeTypeDescriptor { get; set; } + [Key(3)][JsonIgnore] + public int GradeTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("GradeTypeDescriptor", GradeTypeDescriptor); } + set { GradeTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("GradeTypeDescriptor", value); } + } + /// /// The state's name of the period for which grades are reported. /// @@ -72044,6 +74752,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="currentGradeAsOfDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? CurrentGradeAsOfDate { get; set; } /// @@ -72051,6 +74760,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="currentGradeIndicator")] + [Key(5)] public bool? CurrentGradeIndicator { get; set; } /// @@ -72059,6 +74769,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="diagnosticStatement")] + [Key(6)] public string DiagnosticStatement { get; set; } /// @@ -72067,6 +74778,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(64, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="gradeEarnedDescription")] + [Key(7)] public string GradeEarnedDescription { get; set; } /// @@ -72075,6 +74787,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(20, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="letterGradeEarned")] + [Key(8)] public string LetterGradeEarned { get; set; } /// @@ -72083,6 +74796,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-9999999.99", "9999999.99", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="numericGradeEarned")] + [Key(9)] public decimal? NumericGradeEarned { get; set; } /// @@ -72091,7 +74805,15 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="performanceBaseConversionDescriptor")][DescriptorExists("PerformanceBaseConversionDescriptor")] + [IgnoreMember] public string PerformanceBaseConversionDescriptor { get; set; } + + [Key(10)][JsonIgnore] + public int PerformanceBaseConversionDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("PerformanceBaseConversionDescriptor", PerformanceBaseConversionDescriptor); } + set { PerformanceBaseConversionDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("PerformanceBaseConversionDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -72113,6 +74835,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "Grade", "Grade")] + [Key(11)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -72124,6 +74847,7 @@ public override int GetHashCode() [NoDuplicateMembers] [DataMember(Name="learningStandardGrades")] + [Key(12)] public ICollection GradeLearningStandardGrades { get { return _gradeLearningStandardGrades; } @@ -72156,9 +74880,11 @@ public ICollection GradeLearningStandardGrades // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(13)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(14)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -72402,7 +75128,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext co /// /// A class which represents the edfi.GradeLearningStandardGrade table of the Grade aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class GradeLearningStandardGrade : Entities.Common.EdFi.IGradeLearningStandardGrade, IValidatableObject { @@ -72447,6 +75173,7 @@ private LearningStandard.EdFi.LearningStandardReference ImplicitLearningStandard } [DataMember(Name="learningStandardReference")] + [Key(0)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public LearningStandard.EdFi.LearningStandardReference LearningStandardReference { @@ -72479,6 +75206,7 @@ Entities.Common.EdFi.IGrade IGradeLearningStandardGrade.Grade set { SetGrade(value); } } + [IgnoreMember] public Entities.Common.EdFi.IGrade Grade { set { SetGrade(value); } @@ -72582,6 +75310,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="diagnosticStatement")] + [Key(1)] public string DiagnosticStatement { get; set; } /// @@ -72590,6 +75319,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(20, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="letterGradeEarned")] + [Key(2)] public string LetterGradeEarned { get; set; } /// @@ -72598,6 +75328,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-9999999.99", "9999999.99", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="numericGradeEarned")] + [Key(3)] public decimal? NumericGradeEarned { get; set; } /// @@ -72606,7 +75337,15 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="performanceBaseConversionDescriptor")][DescriptorExists("PerformanceBaseConversionDescriptor")] + [IgnoreMember] public string PerformanceBaseConversionDescriptor { get; set; } + + [Key(4)][JsonIgnore] + public int PerformanceBaseConversionDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("PerformanceBaseConversionDescriptor", PerformanceBaseConversionDescriptor); } + set { PerformanceBaseConversionDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("PerformanceBaseConversionDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -72628,6 +75367,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "Grade", "GradeLearningStandardGrade")] + [Key(5)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -72783,30 +75523,37 @@ namespace EdFi.Ods.Api.Common.Models.Resources.GradebookEntry.EdFi /// /// Represents a reference to the GradebookEntry resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class GradebookEntryReference : IResourceReference { [DataMember(Name="gradebookEntryIdentifier")] + [Key(0)] public string GradebookEntryIdentifier { get; set; } [DataMember(Name="namespace")] + [Key(1)] public string Namespace { get; set; } /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(2)] 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. /// + [Key(3)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(4)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -72880,7 +75627,7 @@ private Link CreateLink() /// /// A class which represents the edfi.GradebookEntry table of the GradebookEntry aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class GradebookEntry : Entities.Common.EdFi.IGradebookEntry, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -72913,6 +75660,7 @@ public GradebookEntry() /// The unique identifier for the GradebookEntry resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -72936,6 +75684,7 @@ private GradingPeriod.EdFi.GradingPeriodReference ImplicitGradingPeriodReference } [DataMember(Name="gradingPeriodReference")] + [Key(1)] [FullyDefinedReference] public GradingPeriod.EdFi.GradingPeriodReference GradingPeriodReference { @@ -72969,6 +75718,7 @@ private Section.EdFi.SectionReference ImplicitSectionReference } [DataMember(Name="sectionReference")] + [Key(2)] [FullyDefinedReference] public Section.EdFi.SectionReference SectionReference { @@ -73000,6 +75750,7 @@ public Section.EdFi.SectionReference SectionReference [RequiredWithNonDefault] [NonDefaultStringLength(60, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="gradebookEntryIdentifier")] + [Key(3)] public string GradebookEntryIdentifier { get; set; } /// @@ -73009,6 +75760,7 @@ public Section.EdFi.SectionReference SectionReference [RequiredWithNonDefault] [NonDefaultStringLength(255, MinimumLength=5, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="namespace")] + [Key(4)] public string Namespace { get; set; } // ------------------------------------------------------------- @@ -73082,6 +75834,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] [DataMember(Name="dateAssigned")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(5)] public DateTime DateAssigned { get; set; } /// @@ -73090,6 +75843,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(6)] public string Description { get; set; } /// @@ -73097,6 +75851,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="dueDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(7)] public DateTime? DueDate { get; set; } /// @@ -73104,6 +75859,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="dueTime")][JsonConverter(typeof(UtcTimeConverter))] + [Key(8)] public TimeSpan? DueTime { get; set; } /// @@ -73112,8 +75868,16 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="gradebookEntryTypeDescriptor")][DescriptorExists("GradebookEntryTypeDescriptor")] + [IgnoreMember] public string GradebookEntryTypeDescriptor { get; set; } + [Key(9)][JsonIgnore] + public int GradebookEntryTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("GradebookEntryTypeDescriptor", GradebookEntryTypeDescriptor); } + set { GradebookEntryTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("GradebookEntryTypeDescriptor", value); } + } + /// /// The state's name of the period for which grades are reported. /// @@ -73198,6 +75962,7 @@ string Entities.Common.EdFi.IGradebookEntry.LocalCourseCode // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-9999999.99", "9999999.99", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="maxPoints")] + [Key(10)] public decimal? MaxPoints { get; set; } /// @@ -73335,6 +76100,7 @@ string Entities.Common.EdFi.IGradebookEntry.SessionName [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="sourceSectionIdentifier")] + [Key(11)] public string SourceSectionIdentifier { get; set; } /// @@ -73344,6 +76110,7 @@ string Entities.Common.EdFi.IGradebookEntry.SessionName [RequiredWithNonDefault] [NonDefaultStringLength(100, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="title")] + [Key(12)] public string Title { get; set; } // ------------------------------------------------------------- @@ -73366,6 +76133,7 @@ string Entities.Common.EdFi.IGradebookEntry.SessionName // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "GradebookEntry", "GradebookEntry")] + [Key(13)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -73377,6 +76145,7 @@ string Entities.Common.EdFi.IGradebookEntry.SessionName [NoDuplicateMembers] [DataMember(Name="learningStandards")] + [Key(14)] public ICollection GradebookEntryLearningStandards { get { return _gradebookEntryLearningStandards; } @@ -73409,9 +76178,11 @@ public ICollection GradebookEntryLearningStandar // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(15)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(16)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -73687,7 +76458,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.GradebookEntryLearningStandard table of the GradebookEntry aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class GradebookEntryLearningStandard : Entities.Common.EdFi.IGradebookEntryLearningStandard, IValidatableObject { @@ -73732,6 +76503,7 @@ private LearningStandard.EdFi.LearningStandardReference ImplicitLearningStandard } [DataMember(Name="learningStandardReference")] + [Key(0)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public LearningStandard.EdFi.LearningStandardReference LearningStandardReference { @@ -73764,6 +76536,7 @@ Entities.Common.EdFi.IGradebookEntry IGradebookEntryLearningStandard.GradebookEn set { SetGradebookEntry(value); } } + [IgnoreMember] public Entities.Common.EdFi.IGradebookEntry GradebookEntry { set { SetGradebookEntry(value); } @@ -73881,6 +76654,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "GradebookEntry", "GradebookEntryLearningStandard")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -74036,7 +76810,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.GradebookEntryTypeDescriptor.EdFi /// /// A class which represents the edfi.GradebookEntryTypeDescriptor table of the GradebookEntryTypeDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class GradebookEntryTypeDescriptor : Entities.Common.EdFi.IGradebookEntryTypeDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -74065,6 +76839,7 @@ public class GradebookEntryTypeDescriptor : Entities.Common.EdFi.IGradebookEntry /// The unique identifier for the GradebookEntryTypeDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -74149,6 +76924,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -74157,6 +76933,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -74164,6 +76941,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -74171,6 +76949,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -74180,6 +76959,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -74189,6 +76969,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -74232,9 +77013,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -74307,7 +77090,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.GradeLevelDescriptor.EdFi /// /// A class which represents the edfi.GradeLevelDescriptor table of the GradeLevelDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class GradeLevelDescriptor : Entities.Common.EdFi.IGradeLevelDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -74336,6 +77119,7 @@ public class GradeLevelDescriptor : Entities.Common.EdFi.IGradeLevelDescriptor, /// The unique identifier for the GradeLevelDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -74420,6 +77204,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -74428,6 +77213,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -74435,6 +77221,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -74442,6 +77229,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -74451,6 +77239,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -74460,6 +77249,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -74503,9 +77293,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -74578,7 +77370,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.GradePointAverageTypeDescriptor.E /// /// A class which represents the edfi.GradePointAverageTypeDescriptor table of the GradePointAverageTypeDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class GradePointAverageTypeDescriptor : Entities.Common.EdFi.IGradePointAverageTypeDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -74607,6 +77399,7 @@ public class GradePointAverageTypeDescriptor : Entities.Common.EdFi.IGradePointA /// The unique identifier for the GradePointAverageTypeDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -74691,6 +77484,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -74699,6 +77493,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -74706,6 +77501,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -74713,6 +77509,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -74722,6 +77519,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -74731,6 +77529,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -74774,9 +77573,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -74849,7 +77650,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.GradeTypeDescriptor.EdFi /// /// A class which represents the edfi.GradeTypeDescriptor table of the GradeTypeDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class GradeTypeDescriptor : Entities.Common.EdFi.IGradeTypeDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -74878,6 +77679,7 @@ public class GradeTypeDescriptor : Entities.Common.EdFi.IGradeTypeDescriptor, En /// The unique identifier for the GradeTypeDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -74962,6 +77764,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -74970,6 +77773,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -74977,6 +77781,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -74984,6 +77789,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -74993,6 +77799,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -75002,6 +77809,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -75045,9 +77853,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -75120,36 +77930,52 @@ namespace EdFi.Ods.Api.Common.Models.Resources.GradingPeriod.EdFi /// /// Represents a reference to the GradingPeriod resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class GradingPeriodReference : IResourceReference { [DataMember(Name="gradingPeriodDescriptor")][DescriptorExists("GradingPeriodDescriptor")] + [IgnoreMember] public string GradingPeriodDescriptor { get; set; } + [Key(0)][JsonIgnore] + public int GradingPeriodDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("GradingPeriodDescriptor", GradingPeriodDescriptor); } + set { GradingPeriodDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("GradingPeriodDescriptor", value); } + } + [DataMember(Name="gradingPeriodName")] + [Key(1)] public string GradingPeriodName { get; set; } [DataMember(Name="schoolId")] + [Key(2)] public long SchoolId { get; set; } [DataMember(Name="schoolYear")] + [Key(3)] public short SchoolYear { get; set; } /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(4)] 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. /// + [Key(5)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(6)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -75233,7 +78059,7 @@ private Link CreateLink() /// /// A class which represents the edfi.GradingPeriod table of the GradingPeriod aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] [NoUnsuppliedRequiredMembersWithMeaningfulDefaults] public class GradingPeriod : Entities.Common.EdFi.IGradingPeriod, IHasETag, IDateVersionedEntity, IHasRequiredMembersWithMeaningfulDefaultValues, IValidatableObject @@ -75263,6 +78089,7 @@ public class GradingPeriod : Entities.Common.EdFi.IGradingPeriod, IHasETag, IDat /// The unique identifier for the GradingPeriod resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -75286,6 +78113,7 @@ private School.EdFi.SchoolReference ImplicitSchoolReference } [DataMember(Name="schoolReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public School.EdFi.SchoolReference SchoolReference { @@ -75319,6 +78147,7 @@ private SchoolYearType.EdFi.SchoolYearTypeReference ImplicitSchoolYearTypeRefere } [DataMember(Name="schoolYearTypeReference")] + [Key(2)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public SchoolYearType.EdFi.SchoolYearTypeReference SchoolYearTypeReference { @@ -75350,8 +78179,16 @@ public SchoolYearType.EdFi.SchoolYearTypeReference SchoolYearTypeReference [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="gradingPeriodDescriptor")][DescriptorExists("GradingPeriodDescriptor")] + [IgnoreMember] public string GradingPeriodDescriptor { get; set; } + [Key(3)][JsonIgnore] + public int GradingPeriodDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("GradingPeriodDescriptor", GradingPeriodDescriptor); } + set { GradingPeriodDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("GradingPeriodDescriptor", value); } + } + /// /// The school's descriptive name of the grading period. /// @@ -75359,6 +78196,7 @@ public SchoolYearType.EdFi.SchoolYearTypeReference SchoolYearTypeReference [RequiredWithNonDefault] [NonDefaultStringLength(60, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="gradingPeriodName")] + [Key(4)] public string GradingPeriodName { get; set; } /// @@ -75498,6 +78336,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] [DataMember(Name="beginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(5)] public DateTime BeginDate { get; set; } /// @@ -75506,6 +78345,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] [DataMember(Name="endDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(6)] public DateTime EndDate { get; set; } /// @@ -75513,6 +78353,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="periodSequence")] + [Key(7)] public int? PeriodSequence { get; set; } private bool _totalInstructionalDaysExplicitlyAssigned = false; @@ -75524,6 +78365,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(0, 2147483647, ErrorMessage=ValidationHelpers.RangeMinOnlyMessageFormat)] [DataMember(Name="totalInstructionalDays")] + [Key(8)] public int TotalInstructionalDays { get => _totalInstructionalDays; @@ -75563,6 +78405,7 @@ IEnumerable IHasRequiredMembersWithMeaningfulDefaultValues.GetUnassigned // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "GradingPeriod", "GradingPeriod")] + [Key(9)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -75576,9 +78419,11 @@ IEnumerable IHasRequiredMembersWithMeaningfulDefaultValues.GetUnassigned // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(10)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(11)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -75724,7 +78569,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.GradingPeriodDescriptor.EdFi /// /// A class which represents the edfi.GradingPeriodDescriptor table of the GradingPeriodDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class GradingPeriodDescriptor : Entities.Common.EdFi.IGradingPeriodDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -75753,6 +78598,7 @@ public class GradingPeriodDescriptor : Entities.Common.EdFi.IGradingPeriodDescri /// The unique identifier for the GradingPeriodDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -75837,6 +78683,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -75845,6 +78692,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -75852,6 +78700,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -75859,6 +78708,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -75868,6 +78718,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -75877,6 +78728,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -75920,9 +78772,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -75995,33 +78849,48 @@ namespace EdFi.Ods.Api.Common.Models.Resources.GraduationPlan.EdFi /// /// Represents a reference to the GraduationPlan resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class GraduationPlanReference : IResourceReference { [DataMember(Name="educationOrganizationId")] + [Key(0)] public long EducationOrganizationId { get; set; } [DataMember(Name="graduationPlanTypeDescriptor")][DescriptorExists("GraduationPlanTypeDescriptor")] + [IgnoreMember] public string GraduationPlanTypeDescriptor { get; set; } + [Key(1)][JsonIgnore] + public int GraduationPlanTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("GraduationPlanTypeDescriptor", GraduationPlanTypeDescriptor); } + set { GraduationPlanTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("GraduationPlanTypeDescriptor", value); } + } + [DataMember(Name="graduationSchoolYear")] + [Key(2)] public short GraduationSchoolYear { get; set; } /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(3)] 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. /// + [Key(4)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(5)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -76100,7 +78969,7 @@ private Link CreateLink() /// /// A class which represents the edfi.GraduationPlan table of the GraduationPlan aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] [NoUnsuppliedRequiredMembersWithMeaningfulDefaults] public class GraduationPlan : Entities.Common.EdFi.IGraduationPlan, IHasETag, IDateVersionedEntity, IHasRequiredMembersWithMeaningfulDefaultValues, IValidatableObject @@ -76137,6 +79006,7 @@ public GraduationPlan() /// The unique identifier for the GraduationPlan resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -76160,6 +79030,7 @@ private EducationOrganization.EdFi.EducationOrganizationReference ImplicitEducat } [DataMember(Name="educationOrganizationReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public EducationOrganization.EdFi.EducationOrganizationReference EducationOrganizationReference { @@ -76193,6 +79064,7 @@ private SchoolYearType.EdFi.SchoolYearTypeReference ImplicitGraduationSchoolYear } [DataMember(Name="graduationSchoolYearTypeReference")] + [Key(2)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public SchoolYearType.EdFi.SchoolYearTypeReference GraduationSchoolYearTypeReference { @@ -76249,8 +79121,16 @@ long Entities.Common.EdFi.IGraduationPlan.EducationOrganizationId [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="graduationPlanTypeDescriptor")][DescriptorExists("GraduationPlanTypeDescriptor")] + [IgnoreMember] public string GraduationPlanTypeDescriptor { get; set; } + [Key(3)][JsonIgnore] + public int GraduationPlanTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("GraduationPlanTypeDescriptor", GraduationPlanTypeDescriptor); } + set { GraduationPlanTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("GraduationPlanTypeDescriptor", value); } + } + /// /// The school year the student is expected to graduate. /// @@ -76353,6 +79233,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="individualPlan")] + [Key(4)] public bool? IndividualPlan { get; set; } /// @@ -76361,6 +79242,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-9999999.99", "9999999.99", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="totalRequiredCreditConversion")] + [Key(5)] public decimal? TotalRequiredCreditConversion { get; set; } private bool _totalRequiredCreditsExplicitlyAssigned = false; @@ -76372,6 +79254,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "0", "999999.999", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="totalRequiredCredits")] + [Key(6)] public decimal TotalRequiredCredits { get => _totalRequiredCredits; @@ -76389,7 +79272,15 @@ public decimal TotalRequiredCredits // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="totalRequiredCreditTypeDescriptor")][DescriptorExists("CreditTypeDescriptor")] + [IgnoreMember] public string TotalRequiredCreditTypeDescriptor { get; set; } + + [Key(7)][JsonIgnore] + public int TotalRequiredCreditTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("CreditTypeDescriptor", TotalRequiredCreditTypeDescriptor); } + set { TotalRequiredCreditTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("CreditTypeDescriptor", value); } + } // ------------------------------------------------------------- IEnumerable IHasRequiredMembersWithMeaningfulDefaultValues.GetUnassignedMemberNames() @@ -76419,6 +79310,7 @@ IEnumerable IHasRequiredMembersWithMeaningfulDefaultValues.GetUnassigned // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "GraduationPlan", "GraduationPlan")] + [Key(8)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -76430,6 +79322,7 @@ IEnumerable IHasRequiredMembersWithMeaningfulDefaultValues.GetUnassigned [NoDuplicateMembers] [DataMember(Name="creditsByCourses")] + [Key(9)] public ICollection GraduationPlanCreditsByCourses { get { return _graduationPlanCreditsByCourses; } @@ -76460,6 +79353,7 @@ public ICollection GraduationPlanCreditsByCourses [NoDuplicateMembers] [DataMember(Name="creditsByCreditCategories")] + [Key(10)] public ICollection GraduationPlanCreditsByCreditCategories { get { return _graduationPlanCreditsByCreditCategories; } @@ -76490,6 +79384,7 @@ public ICollection GraduationPlanCreditsB [NoDuplicateMembers] [DataMember(Name="creditsBySubjects")] + [Key(11)] public ICollection GraduationPlanCreditsBySubjects { get { return _graduationPlanCreditsBySubjects; } @@ -76520,6 +79415,7 @@ public ICollection GraduationPlanCreditsBySubjec [NoDuplicateMembers] [DataMember(Name="requiredAssessments")] + [Key(12)] public ICollection GraduationPlanRequiredAssessments { get { return _graduationPlanRequiredAssessments; } @@ -76552,9 +79448,11 @@ public ICollection GraduationPlanRequiredAsses // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(13)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(14)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -76839,7 +79737,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.GraduationPlanCreditsByCourse table of the GraduationPlan aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] [NoUnsuppliedRequiredMembersWithMeaningfulDefaults] public class GraduationPlanCreditsByCourse : Entities.Common.EdFi.IGraduationPlanCreditsByCourse, IHasRequiredMembersWithMeaningfulDefaultValues, IValidatableObject @@ -76887,6 +79785,7 @@ Entities.Common.EdFi.IGraduationPlan IGraduationPlanCreditsByCourse.GraduationPl set { SetGraduationPlan(value); } } + [IgnoreMember] public Entities.Common.EdFi.IGraduationPlan GraduationPlan { set { SetGraduationPlan(value); } @@ -76904,6 +79803,7 @@ private void SetGraduationPlan(Entities.Common.EdFi.IGraduationPlan value) [RequiredWithNonDefault] [NonDefaultStringLength(120, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="courseSetName")] + [Key(0)] public string CourseSetName { get; set; } // ------------------------------------------------------------- @@ -76975,6 +79875,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-9999999.99", "9999999.99", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="creditConversion")] + [Key(1)] public decimal? CreditConversion { get; set; } private bool _creditsExplicitlyAssigned = false; @@ -76986,6 +79887,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "0", "999999.999", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="credits")] + [Key(2)] public decimal Credits { get => _credits; @@ -77003,15 +79905,31 @@ public decimal Credits // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="creditTypeDescriptor")][DescriptorExists("CreditTypeDescriptor")] + [IgnoreMember] public string CreditTypeDescriptor { get; set; } + [Key(3)][JsonIgnore] + public int CreditTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("CreditTypeDescriptor", CreditTypeDescriptor); } + set { CreditTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("CreditTypeDescriptor", value); } + } + /// /// The grade level when the student is planned to take the course. /// // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="whenTakenGradeLevelDescriptor")][DescriptorExists("GradeLevelDescriptor")] + [IgnoreMember] public string WhenTakenGradeLevelDescriptor { get; set; } + + [Key(4)][JsonIgnore] + public int WhenTakenGradeLevelDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("GradeLevelDescriptor", WhenTakenGradeLevelDescriptor); } + set { WhenTakenGradeLevelDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("GradeLevelDescriptor", value); } + } // ------------------------------------------------------------- IEnumerable IHasRequiredMembersWithMeaningfulDefaultValues.GetUnassignedMemberNames() @@ -77041,6 +79959,7 @@ IEnumerable IHasRequiredMembersWithMeaningfulDefaultValues.GetUnassigned // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "GraduationPlan", "GraduationPlanCreditsByCourse")] + [Key(5)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -77052,6 +79971,7 @@ IEnumerable IHasRequiredMembersWithMeaningfulDefaultValues.GetUnassigned [NoDuplicateMembers][RequiredCollection] [DataMember(Name="courses")] + [Key(6)] public ICollection GraduationPlanCreditsByCourseCourses { get { return _graduationPlanCreditsByCourseCourses; } @@ -77257,7 +80177,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.GraduationPlanCreditsByCourseCourse table of the GraduationPlan aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class GraduationPlanCreditsByCourseCourse : Entities.Common.EdFi.IGraduationPlanCreditsByCourseCourse, IValidatableObject { @@ -77302,6 +80222,7 @@ private Course.EdFi.CourseReference ImplicitCourseReference } [DataMember(Name="courseReference")] + [Key(0)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Course.EdFi.CourseReference CourseReference { @@ -77334,6 +80255,7 @@ Entities.Common.EdFi.IGraduationPlanCreditsByCourse IGraduationPlanCreditsByCour set { SetGraduationPlanCreditsByCourse(value); } } + [IgnoreMember] public Entities.Common.EdFi.IGraduationPlanCreditsByCourse GraduationPlanCreditsByCourse { set { SetGraduationPlanCreditsByCourse(value); } @@ -77484,6 +80406,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "GraduationPlan", "GraduationPlanCreditsByCourseCourse")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -77634,7 +80557,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.GraduationPlanCreditsByCreditCategory table of the GraduationPlan aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] [NoUnsuppliedRequiredMembersWithMeaningfulDefaults] public class GraduationPlanCreditsByCreditCategory : Entities.Common.EdFi.IGraduationPlanCreditsByCreditCategory, IHasRequiredMembersWithMeaningfulDefaultValues, IValidatableObject @@ -77678,6 +80601,7 @@ Entities.Common.EdFi.IGraduationPlan IGraduationPlanCreditsByCreditCategory.Grad set { SetGraduationPlan(value); } } + [IgnoreMember] public Entities.Common.EdFi.IGraduationPlan GraduationPlan { set { SetGraduationPlan(value); } @@ -77695,7 +80619,15 @@ private void SetGraduationPlan(Entities.Common.EdFi.IGraduationPlan value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="creditCategoryDescriptor")][DescriptorExists("CreditCategoryDescriptor")] + [IgnoreMember] public string CreditCategoryDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int CreditCategoryDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("CreditCategoryDescriptor", CreditCategoryDescriptor); } + set { CreditCategoryDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("CreditCategoryDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -77766,6 +80698,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-9999999.99", "9999999.99", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="creditConversion")] + [Key(1)] public decimal? CreditConversion { get; set; } private bool _creditsExplicitlyAssigned = false; @@ -77777,6 +80710,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "0", "999999.999", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="credits")] + [Key(2)] public decimal Credits { get => _credits; @@ -77794,7 +80728,15 @@ public decimal Credits // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="creditTypeDescriptor")][DescriptorExists("CreditTypeDescriptor")] + [IgnoreMember] public string CreditTypeDescriptor { get; set; } + + [Key(3)][JsonIgnore] + public int CreditTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("CreditTypeDescriptor", CreditTypeDescriptor); } + set { CreditTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("CreditTypeDescriptor", value); } + } // ------------------------------------------------------------- IEnumerable IHasRequiredMembersWithMeaningfulDefaultValues.GetUnassignedMemberNames() @@ -77824,6 +80766,7 @@ IEnumerable IHasRequiredMembersWithMeaningfulDefaultValues.GetUnassigned // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "GraduationPlan", "GraduationPlanCreditsByCreditCategory")] + [Key(4)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -77960,7 +80903,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.GraduationPlanCreditsBySubject table of the GraduationPlan aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] [NoUnsuppliedRequiredMembersWithMeaningfulDefaults] public class GraduationPlanCreditsBySubject : Entities.Common.EdFi.IGraduationPlanCreditsBySubject, IHasRequiredMembersWithMeaningfulDefaultValues, IValidatableObject @@ -78004,6 +80947,7 @@ Entities.Common.EdFi.IGraduationPlan IGraduationPlanCreditsBySubject.GraduationP set { SetGraduationPlan(value); } } + [IgnoreMember] public Entities.Common.EdFi.IGraduationPlan GraduationPlan { set { SetGraduationPlan(value); } @@ -78021,7 +80965,15 @@ private void SetGraduationPlan(Entities.Common.EdFi.IGraduationPlan value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="academicSubjectDescriptor")][DescriptorExists("AcademicSubjectDescriptor")] + [IgnoreMember] public string AcademicSubjectDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int AcademicSubjectDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("AcademicSubjectDescriptor", AcademicSubjectDescriptor); } + set { AcademicSubjectDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("AcademicSubjectDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -78092,6 +81044,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-9999999.99", "9999999.99", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="creditConversion")] + [Key(1)] public decimal? CreditConversion { get; set; } private bool _creditsExplicitlyAssigned = false; @@ -78103,6 +81056,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "0", "999999.999", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="credits")] + [Key(2)] public decimal Credits { get => _credits; @@ -78120,7 +81074,15 @@ public decimal Credits // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="creditTypeDescriptor")][DescriptorExists("CreditTypeDescriptor")] + [IgnoreMember] public string CreditTypeDescriptor { get; set; } + + [Key(3)][JsonIgnore] + public int CreditTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("CreditTypeDescriptor", CreditTypeDescriptor); } + set { CreditTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("CreditTypeDescriptor", value); } + } // ------------------------------------------------------------- IEnumerable IHasRequiredMembersWithMeaningfulDefaultValues.GetUnassignedMemberNames() @@ -78150,6 +81112,7 @@ IEnumerable IHasRequiredMembersWithMeaningfulDefaultValues.GetUnassigned // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "GraduationPlan", "GraduationPlanCreditsBySubject")] + [Key(4)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -78286,7 +81249,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.GraduationPlanRequiredAssessment table of the GraduationPlan aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class GraduationPlanRequiredAssessment : Entities.Common.EdFi.IGraduationPlanRequiredAssessment, IValidatableObject { @@ -78335,6 +81298,7 @@ private Assessment.EdFi.AssessmentReference ImplicitAssessmentReference } [DataMember(Name="assessmentReference")] + [Key(0)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Assessment.EdFi.AssessmentReference AssessmentReference { @@ -78367,6 +81331,7 @@ Entities.Common.EdFi.IGraduationPlan IGraduationPlanRequiredAssessment.Graduatio set { SetGraduationPlan(value); } } + [IgnoreMember] public Entities.Common.EdFi.IGraduationPlan GraduationPlan { set { SetGraduationPlan(value); } @@ -78506,6 +81471,7 @@ public override int GetHashCode() /// [DataMember(Name = "performanceLevel")] + [Key(1)] public GraduationPlanRequiredAssessmentPerformanceLevel GraduationPlanRequiredAssessmentPerformanceLevel { get; set; } Entities.Common.EdFi.IGraduationPlanRequiredAssessmentPerformanceLevel Entities.Common.EdFi.IGraduationPlanRequiredAssessment.GraduationPlanRequiredAssessmentPerformanceLevel @@ -78530,6 +81496,7 @@ Entities.Common.EdFi.IGraduationPlanRequiredAssessmentPerformanceLevel Entities. // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "GraduationPlan", "GraduationPlanRequiredAssessment")] + [Key(2)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -78541,6 +81508,7 @@ Entities.Common.EdFi.IGraduationPlanRequiredAssessmentPerformanceLevel Entities. [NoDuplicateMembers] [DataMember(Name="scores")] + [Key(3)] public ICollection GraduationPlanRequiredAssessmentScores { get { return _graduationPlanRequiredAssessmentScores; } @@ -78772,7 +81740,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.GraduationPlanRequiredAssessmentPerformanceLevel table of the GraduationPlan aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class GraduationPlanRequiredAssessmentPerformanceLevel : Entities.Common.EdFi.IGraduationPlanRequiredAssessmentPerformanceLevel, IValidatableObject { @@ -78815,6 +81783,7 @@ Entities.Common.EdFi.IGraduationPlanRequiredAssessment IGraduationPlanRequiredAs set { SetGraduationPlanRequiredAssessment(value); } } + [IgnoreMember] public Entities.Common.EdFi.IGraduationPlanRequiredAssessment GraduationPlanRequiredAssessment { set { SetGraduationPlanRequiredAssessment(value); } @@ -78886,14 +81855,23 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="assessmentReportingMethodDescriptor")][DescriptorExists("AssessmentReportingMethodDescriptor")] + [IgnoreMember] public string AssessmentReportingMethodDescriptor { get; set; } + [Key(0)][JsonIgnore] + public int AssessmentReportingMethodDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("AssessmentReportingMethodDescriptor", AssessmentReportingMethodDescriptor); } + set { AssessmentReportingMethodDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("AssessmentReportingMethodDescriptor", value); } + } + /// /// The maximum score to make the indicated level of performance. /// // NOT in a reference, NOT a lookup column [NonDefaultStringLength(35, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="maximumScore")] + [Key(1)] public string MaximumScore { get; set; } /// @@ -78902,6 +81880,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(35, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="minimumScore")] + [Key(2)] public string MinimumScore { get; set; } /// @@ -78911,14 +81890,23 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="performanceLevelDescriptor")][DescriptorExists("PerformanceLevelDescriptor")] + [IgnoreMember] public string PerformanceLevelDescriptor { get; set; } + [Key(3)][JsonIgnore] + public int PerformanceLevelDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("PerformanceLevelDescriptor", PerformanceLevelDescriptor); } + set { PerformanceLevelDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("PerformanceLevelDescriptor", value); } + } + /// /// The name of the indicator being measured for a collection of performance level values. /// // NOT in a reference, NOT a lookup column [NonDefaultStringLength(60, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="performanceLevelIndicatorName")] + [Key(4)] public string PerformanceLevelIndicatorName { get; set; } /// @@ -78927,7 +81915,15 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="resultDatatypeTypeDescriptor")][DescriptorExists("ResultDatatypeTypeDescriptor")] + [IgnoreMember] public string ResultDatatypeTypeDescriptor { get; set; } + + [Key(5)][JsonIgnore] + public int ResultDatatypeTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ResultDatatypeTypeDescriptor", ResultDatatypeTypeDescriptor); } + set { ResultDatatypeTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ResultDatatypeTypeDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -78949,6 +81945,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "GraduationPlan", "GraduationPlanRequiredAssessmentPerformanceLevel")] + [Key(6)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -79085,7 +82082,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.GraduationPlanRequiredAssessmentScore table of the GraduationPlan aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class GraduationPlanRequiredAssessmentScore : Entities.Common.EdFi.IGraduationPlanRequiredAssessmentScore, IValidatableObject { @@ -79128,6 +82125,7 @@ Entities.Common.EdFi.IGraduationPlanRequiredAssessment IGraduationPlanRequiredAs set { SetGraduationPlanRequiredAssessment(value); } } + [IgnoreMember] public Entities.Common.EdFi.IGraduationPlanRequiredAssessment GraduationPlanRequiredAssessment { set { SetGraduationPlanRequiredAssessment(value); } @@ -79145,7 +82143,15 @@ private void SetGraduationPlanRequiredAssessment(Entities.Common.EdFi.IGraduatio [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="assessmentReportingMethodDescriptor")][DescriptorExists("AssessmentReportingMethodDescriptor")] + [IgnoreMember] public string AssessmentReportingMethodDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int AssessmentReportingMethodDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("AssessmentReportingMethodDescriptor", AssessmentReportingMethodDescriptor); } + set { AssessmentReportingMethodDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("AssessmentReportingMethodDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -79216,6 +82222,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(35, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="maximumScore")] + [Key(1)] public string MaximumScore { get; set; } /// @@ -79224,6 +82231,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(35, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="minimumScore")] + [Key(2)] public string MinimumScore { get; set; } /// @@ -79232,7 +82240,15 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="resultDatatypeTypeDescriptor")][DescriptorExists("ResultDatatypeTypeDescriptor")] + [IgnoreMember] public string ResultDatatypeTypeDescriptor { get; set; } + + [Key(3)][JsonIgnore] + public int ResultDatatypeTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ResultDatatypeTypeDescriptor", ResultDatatypeTypeDescriptor); } + set { ResultDatatypeTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ResultDatatypeTypeDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -79254,6 +82270,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "GraduationPlan", "GraduationPlanRequiredAssessmentScore")] + [Key(4)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -79395,7 +82412,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.GraduationPlanTypeDescriptor.EdFi /// /// A class which represents the edfi.GraduationPlanTypeDescriptor table of the GraduationPlanTypeDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class GraduationPlanTypeDescriptor : Entities.Common.EdFi.IGraduationPlanTypeDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -79424,6 +82441,7 @@ public class GraduationPlanTypeDescriptor : Entities.Common.EdFi.IGraduationPlan /// The unique identifier for the GraduationPlanTypeDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -79508,6 +82526,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -79516,6 +82535,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -79523,6 +82543,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -79530,6 +82551,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -79539,6 +82561,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -79548,6 +82571,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -79591,9 +82615,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -79666,7 +82692,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.GunFreeSchoolsActReportingStatusD /// /// A class which represents the edfi.GunFreeSchoolsActReportingStatusDescriptor table of the GunFreeSchoolsActReportingStatusDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class GunFreeSchoolsActReportingStatusDescriptor : Entities.Common.EdFi.IGunFreeSchoolsActReportingStatusDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -79695,6 +82721,7 @@ public class GunFreeSchoolsActReportingStatusDescriptor : Entities.Common.EdFi.I /// The unique identifier for the GunFreeSchoolsActReportingStatusDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -79779,6 +82806,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -79787,6 +82815,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -79794,6 +82823,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -79801,6 +82831,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -79810,6 +82841,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -79819,6 +82851,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -79862,9 +82895,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -79937,7 +82972,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.HomelessPrimaryNighttimeResidence /// /// A class which represents the edfi.HomelessPrimaryNighttimeResidenceDescriptor table of the HomelessPrimaryNighttimeResidenceDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class HomelessPrimaryNighttimeResidenceDescriptor : Entities.Common.EdFi.IHomelessPrimaryNighttimeResidenceDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -79966,6 +83001,7 @@ public class HomelessPrimaryNighttimeResidenceDescriptor : Entities.Common.EdFi. /// The unique identifier for the HomelessPrimaryNighttimeResidenceDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -80050,6 +83086,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -80058,6 +83095,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -80065,6 +83103,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -80072,6 +83111,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -80081,6 +83121,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -80090,6 +83131,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -80133,9 +83175,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -80208,7 +83252,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.HomelessProgramServiceDescriptor. /// /// A class which represents the edfi.HomelessProgramServiceDescriptor table of the HomelessProgramServiceDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class HomelessProgramServiceDescriptor : Entities.Common.EdFi.IHomelessProgramServiceDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -80237,6 +83281,7 @@ public class HomelessProgramServiceDescriptor : Entities.Common.EdFi.IHomelessPr /// The unique identifier for the HomelessProgramServiceDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -80321,6 +83366,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -80329,6 +83375,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -80336,6 +83383,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -80343,6 +83391,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -80352,6 +83401,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -80361,6 +83411,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -80404,9 +83455,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -80479,7 +83532,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.IDEAPartDescriptor.EdFi /// /// A class which represents the edfi.IDEAPartDescriptor table of the IDEAPartDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class IDEAPartDescriptor : Entities.Common.EdFi.IIDEAPartDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -80508,6 +83561,7 @@ public class IDEAPartDescriptor : Entities.Common.EdFi.IIDEAPartDescriptor, Enti /// The unique identifier for the IDEAPartDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -80592,6 +83646,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -80600,6 +83655,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -80607,6 +83663,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -80614,6 +83671,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -80623,6 +83681,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -80632,6 +83691,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -80675,9 +83735,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -80750,7 +83812,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.IdentificationDocumentUseDescript /// /// A class which represents the edfi.IdentificationDocumentUseDescriptor table of the IdentificationDocumentUseDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class IdentificationDocumentUseDescriptor : Entities.Common.EdFi.IIdentificationDocumentUseDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -80779,6 +83841,7 @@ public class IdentificationDocumentUseDescriptor : Entities.Common.EdFi.IIdentif /// The unique identifier for the IdentificationDocumentUseDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -80863,6 +83926,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -80871,6 +83935,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -80878,6 +83943,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -80885,6 +83951,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -80894,6 +83961,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -80903,6 +83971,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -80946,9 +84015,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -81021,7 +84092,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.ImmunizationTypeDescriptor.EdFi /// /// A class which represents the edfi.ImmunizationTypeDescriptor table of the ImmunizationTypeDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class ImmunizationTypeDescriptor : Entities.Common.EdFi.IImmunizationTypeDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -81050,6 +84121,7 @@ public class ImmunizationTypeDescriptor : Entities.Common.EdFi.IImmunizationType /// The unique identifier for the ImmunizationTypeDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -81134,6 +84206,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -81142,6 +84215,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -81149,6 +84223,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -81156,6 +84231,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -81165,6 +84241,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -81174,6 +84251,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -81217,9 +84295,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -81292,7 +84372,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.IncidentLocationDescriptor.EdFi /// /// A class which represents the edfi.IncidentLocationDescriptor table of the IncidentLocationDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class IncidentLocationDescriptor : Entities.Common.EdFi.IIncidentLocationDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -81321,6 +84401,7 @@ public class IncidentLocationDescriptor : Entities.Common.EdFi.IIncidentLocation /// The unique identifier for the IncidentLocationDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -81405,6 +84486,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -81413,6 +84495,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -81420,6 +84503,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -81427,6 +84511,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -81436,6 +84521,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -81445,6 +84531,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -81488,9 +84575,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -81563,7 +84652,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.IndicatorDescriptor.EdFi /// /// A class which represents the edfi.IndicatorDescriptor table of the IndicatorDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class IndicatorDescriptor : Entities.Common.EdFi.IIndicatorDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -81592,6 +84681,7 @@ public class IndicatorDescriptor : Entities.Common.EdFi.IIndicatorDescriptor, En /// The unique identifier for the IndicatorDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -81676,6 +84766,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -81684,6 +84775,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -81691,6 +84783,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -81698,6 +84791,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -81707,6 +84801,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -81716,6 +84811,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -81759,9 +84855,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -81834,7 +84932,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.IndicatorGroupDescriptor.EdFi /// /// A class which represents the edfi.IndicatorGroupDescriptor table of the IndicatorGroupDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class IndicatorGroupDescriptor : Entities.Common.EdFi.IIndicatorGroupDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -81863,6 +84961,7 @@ public class IndicatorGroupDescriptor : Entities.Common.EdFi.IIndicatorGroupDesc /// The unique identifier for the IndicatorGroupDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -81947,6 +85046,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -81955,6 +85055,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -81962,6 +85063,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -81969,6 +85071,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -81978,6 +85081,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -81987,6 +85091,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -82030,9 +85135,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -82105,7 +85212,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.IndicatorLevelDescriptor.EdFi /// /// A class which represents the edfi.IndicatorLevelDescriptor table of the IndicatorLevelDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class IndicatorLevelDescriptor : Entities.Common.EdFi.IIndicatorLevelDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -82134,6 +85241,7 @@ public class IndicatorLevelDescriptor : Entities.Common.EdFi.IIndicatorLevelDesc /// The unique identifier for the IndicatorLevelDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -82218,6 +85326,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -82226,6 +85335,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -82233,6 +85343,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -82240,6 +85351,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -82249,6 +85361,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -82258,6 +85371,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -82301,9 +85415,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -82376,7 +85492,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.InstitutionTelephoneNumberTypeDes /// /// A class which represents the edfi.InstitutionTelephoneNumberTypeDescriptor table of the InstitutionTelephoneNumberTypeDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class InstitutionTelephoneNumberTypeDescriptor : Entities.Common.EdFi.IInstitutionTelephoneNumberTypeDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -82405,6 +85521,7 @@ public class InstitutionTelephoneNumberTypeDescriptor : Entities.Common.EdFi.IIn /// The unique identifier for the InstitutionTelephoneNumberTypeDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -82489,6 +85606,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -82497,6 +85615,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -82504,6 +85623,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -82511,6 +85631,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -82520,6 +85641,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -82529,6 +85651,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -82572,9 +85695,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -82647,7 +85772,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.InteractivityStyleDescriptor.EdFi /// /// A class which represents the edfi.InteractivityStyleDescriptor table of the InteractivityStyleDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class InteractivityStyleDescriptor : Entities.Common.EdFi.IInteractivityStyleDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -82676,6 +85801,7 @@ public class InteractivityStyleDescriptor : Entities.Common.EdFi.IInteractivityS /// The unique identifier for the InteractivityStyleDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -82760,6 +85886,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -82768,6 +85895,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -82775,6 +85903,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -82782,6 +85911,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -82791,6 +85921,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -82800,6 +85931,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -82843,9 +85975,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -82918,7 +86052,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.InternetAccessDescriptor.EdFi /// /// A class which represents the edfi.InternetAccessDescriptor table of the InternetAccessDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class InternetAccessDescriptor : Entities.Common.EdFi.IInternetAccessDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -82947,6 +86081,7 @@ public class InternetAccessDescriptor : Entities.Common.EdFi.IInternetAccessDesc /// The unique identifier for the InternetAccessDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -83031,6 +86166,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -83039,6 +86175,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -83046,6 +86183,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -83053,6 +86191,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -83062,6 +86201,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -83071,6 +86211,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -83114,9 +86255,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -83189,7 +86332,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.InternetAccessTypeInResidenceDesc /// /// A class which represents the edfi.InternetAccessTypeInResidenceDescriptor table of the InternetAccessTypeInResidenceDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class InternetAccessTypeInResidenceDescriptor : Entities.Common.EdFi.IInternetAccessTypeInResidenceDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -83218,6 +86361,7 @@ public class InternetAccessTypeInResidenceDescriptor : Entities.Common.EdFi.IInt /// The unique identifier for the InternetAccessTypeInResidenceDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -83302,6 +86446,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -83310,6 +86455,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -83317,6 +86463,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -83324,6 +86471,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -83333,6 +86481,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -83342,6 +86491,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -83385,9 +86535,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -83460,7 +86612,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.InternetPerformanceInResidenceDes /// /// A class which represents the edfi.InternetPerformanceInResidenceDescriptor table of the InternetPerformanceInResidenceDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class InternetPerformanceInResidenceDescriptor : Entities.Common.EdFi.IInternetPerformanceInResidenceDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -83489,6 +86641,7 @@ public class InternetPerformanceInResidenceDescriptor : Entities.Common.EdFi.IIn /// The unique identifier for the InternetPerformanceInResidenceDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -83573,6 +86726,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -83581,6 +86735,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -83588,6 +86743,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -83595,6 +86751,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -83604,6 +86761,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -83613,6 +86771,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -83656,9 +86815,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -83731,30 +86892,37 @@ namespace EdFi.Ods.Api.Common.Models.Resources.Intervention.EdFi /// /// Represents a reference to the Intervention resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class InterventionReference : IResourceReference { [DataMember(Name="educationOrganizationId")] + [Key(0)] public long EducationOrganizationId { get; set; } [DataMember(Name="interventionIdentificationCode")] + [Key(1)] public string InterventionIdentificationCode { get; set; } /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(2)] 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. /// + [Key(3)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(4)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -83828,7 +86996,7 @@ private Link CreateLink() /// /// A class which represents the edfi.Intervention table of the Intervention aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class Intervention : Entities.Common.EdFi.IIntervention, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -83870,6 +87038,7 @@ public Intervention() /// The unique identifier for the Intervention resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -83893,6 +87062,7 @@ private EducationOrganization.EdFi.EducationOrganizationReference ImplicitEducat } [DataMember(Name="educationOrganizationReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public EducationOrganization.EdFi.EducationOrganizationReference EducationOrganizationReference { @@ -83949,6 +87119,7 @@ long Entities.Common.EdFi.IIntervention.EducationOrganizationId [RequiredWithNonDefault] [NonDefaultStringLength(60, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="interventionIdentificationCode")] + [Key(2)] public string InterventionIdentificationCode { get; set; } // ------------------------------------------------------------- @@ -84021,6 +87192,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] [DataMember(Name="beginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime BeginDate { get; set; } /// @@ -84030,13 +87202,22 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="deliveryMethodDescriptor")][DescriptorExists("DeliveryMethodDescriptor")] + [IgnoreMember] public string DeliveryMethodDescriptor { get; set; } + [Key(4)][JsonIgnore] + public int DeliveryMethodDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("DeliveryMethodDescriptor", DeliveryMethodDescriptor); } + set { DeliveryMethodDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("DeliveryMethodDescriptor", value); } + } + /// /// The end date for the intervention implementation. Note: Date interpretation may vary. Ed-Fi recommends inclusive dates, but states may define dates as inclusive or exclusive. For calculations, align with local guidelines. /// // NOT in a reference, NOT a lookup column [DataMember(Name="endDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(5)] public DateTime? EndDate { get; set; } /// @@ -84046,13 +87227,22 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="interventionClassDescriptor")][DescriptorExists("InterventionClassDescriptor")] + [IgnoreMember] public string InterventionClassDescriptor { get; set; } + [Key(6)][JsonIgnore] + public int InterventionClassDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("InterventionClassDescriptor", InterventionClassDescriptor); } + set { InterventionClassDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("InterventionClassDescriptor", value); } + } + /// /// The maximum duration of time in minutes that may be assigned for the intervention. /// // NOT in a reference, NOT a lookup column [DataMember(Name="maxDosage")] + [Key(7)] public int? MaxDosage { get; set; } /// @@ -84060,6 +87250,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="minDosage")] + [Key(8)] public int? MinDosage { get; set; } /// @@ -84068,6 +87259,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(255, MinimumLength=5, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(9)] public string Namespace { get; set; } // ------------------------------------------------------------- @@ -84090,6 +87282,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "Intervention", "Intervention")] + [Key(10)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -84101,6 +87294,7 @@ public override int GetHashCode() [NoDuplicateMembers] [DataMember(Name="appropriateGradeLevels")] + [Key(11)] public ICollection InterventionAppropriateGradeLevels { get { return _interventionAppropriateGradeLevels; } @@ -84131,6 +87325,7 @@ public ICollection InterventionAppropriateGra [NoDuplicateMembers] [DataMember(Name="appropriateSexes")] + [Key(12)] public ICollection InterventionAppropriateSexes { get { return _interventionAppropriateSexes; } @@ -84161,6 +87356,7 @@ public ICollection InterventionAppropriateSexes [NoDuplicateMembers] [DataMember(Name="diagnoses")] + [Key(13)] public ICollection InterventionDiagnoses { get { return _interventionDiagnoses; } @@ -84191,6 +87387,7 @@ public ICollection InterventionDiagnoses [NoDuplicateMembers] [DataMember(Name="educationContents")] + [Key(14)] public ICollection InterventionEducationContents { get { return _interventionEducationContents; } @@ -84221,6 +87418,7 @@ public ICollection InterventionEducationContents [NoDuplicateMembers] [DataMember(Name="interventionPrescriptions")] + [Key(15)] public ICollection InterventionInterventionPrescriptions { get { return _interventionInterventionPrescriptions; } @@ -84251,6 +87449,7 @@ public ICollection InterventionInterventio [NoDuplicateMembers] [DataMember(Name="learningResourceMetadataURIs")] + [Key(16)] public ICollection InterventionLearningResourceMetadataURIs { get { return _interventionLearningResourceMetadataURIs; } @@ -84281,6 +87480,7 @@ public ICollection InterventionLearning [NoDuplicateMembers] [DataMember(Name="meetingTimes")] + [Key(17)] public ICollection InterventionMeetingTimes { get { return _interventionMeetingTimes; } @@ -84311,6 +87511,7 @@ public ICollection InterventionMeetingTimes [NoDuplicateMembers] [DataMember(Name="populationServeds")] + [Key(18)] public ICollection InterventionPopulationServeds { get { return _interventionPopulationServeds; } @@ -84341,6 +87542,7 @@ public ICollection InterventionPopulationServeds [NoDuplicateMembers] [DataMember(Name="staffs")] + [Key(19)] public ICollection InterventionStaffs { get { return _interventionStaffs; } @@ -84371,6 +87573,7 @@ public ICollection InterventionStaffs [NoDuplicateMembers] [DataMember(Name="uris")] + [Key(20)] public ICollection InterventionURIs { get { return _interventionURIs; } @@ -84403,9 +87606,11 @@ public ICollection InterventionURIs // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(21)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(22)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -84857,7 +88062,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.InterventionAppropriateGradeLevel table of the Intervention aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class InterventionAppropriateGradeLevel : Entities.Common.EdFi.IInterventionAppropriateGradeLevel, IValidatableObject { @@ -84900,6 +88105,7 @@ Entities.Common.EdFi.IIntervention IInterventionAppropriateGradeLevel.Interventi set { SetIntervention(value); } } + [IgnoreMember] public Entities.Common.EdFi.IIntervention Intervention { set { SetIntervention(value); } @@ -84917,7 +88123,15 @@ private void SetIntervention(Entities.Common.EdFi.IIntervention value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="gradeLevelDescriptor")][DescriptorExists("GradeLevelDescriptor")] + [IgnoreMember] public string GradeLevelDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int GradeLevelDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("GradeLevelDescriptor", GradeLevelDescriptor); } + set { GradeLevelDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("GradeLevelDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -85002,6 +88216,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "Intervention", "InterventionAppropriateGradeLevel")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -85138,7 +88353,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.InterventionAppropriateSex table of the Intervention aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class InterventionAppropriateSex : Entities.Common.EdFi.IInterventionAppropriateSex, IValidatableObject { @@ -85181,6 +88396,7 @@ Entities.Common.EdFi.IIntervention IInterventionAppropriateSex.Intervention set { SetIntervention(value); } } + [IgnoreMember] public Entities.Common.EdFi.IIntervention Intervention { set { SetIntervention(value); } @@ -85198,7 +88414,15 @@ private void SetIntervention(Entities.Common.EdFi.IIntervention value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="sexDescriptor")][DescriptorExists("SexDescriptor")] + [IgnoreMember] public string SexDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int SexDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("SexDescriptor", SexDescriptor); } + set { SexDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("SexDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -85283,6 +88507,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "Intervention", "InterventionAppropriateSex")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -85419,7 +88644,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.InterventionDiagnosis table of the Intervention aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class InterventionDiagnosis : Entities.Common.EdFi.IInterventionDiagnosis, IValidatableObject { @@ -85462,6 +88687,7 @@ Entities.Common.EdFi.IIntervention IInterventionDiagnosis.Intervention set { SetIntervention(value); } } + [IgnoreMember] public Entities.Common.EdFi.IIntervention Intervention { set { SetIntervention(value); } @@ -85479,7 +88705,15 @@ private void SetIntervention(Entities.Common.EdFi.IIntervention value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="diagnosisDescriptor")][DescriptorExists("DiagnosisDescriptor")] + [IgnoreMember] public string DiagnosisDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int DiagnosisDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("DiagnosisDescriptor", DiagnosisDescriptor); } + set { DiagnosisDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("DiagnosisDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -85564,6 +88798,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "Intervention", "InterventionDiagnosis")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -85700,7 +88935,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.InterventionEducationContent table of the Intervention aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class InterventionEducationContent : Entities.Common.EdFi.IInterventionEducationContent, IValidatableObject { @@ -85745,6 +88980,7 @@ private EducationContent.EdFi.EducationContentReference ImplicitEducationContent } [DataMember(Name="educationContentReference")] + [Key(0)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public EducationContent.EdFi.EducationContentReference EducationContentReference { @@ -85777,6 +89013,7 @@ Entities.Common.EdFi.IIntervention IInterventionEducationContent.Intervention set { SetIntervention(value); } } + [IgnoreMember] public Entities.Common.EdFi.IIntervention Intervention { set { SetIntervention(value); } @@ -85894,6 +89131,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "Intervention", "InterventionEducationContent")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -86044,7 +89282,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.InterventionInterventionPrescription table of the Intervention aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class InterventionInterventionPrescription : Entities.Common.EdFi.IInterventionInterventionPrescription, IValidatableObject { @@ -86089,6 +89327,7 @@ private InterventionPrescription.EdFi.InterventionPrescriptionReference Implicit } [DataMember(Name="interventionPrescriptionReference")] + [Key(0)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public InterventionPrescription.EdFi.InterventionPrescriptionReference InterventionPrescriptionReference { @@ -86121,6 +89360,7 @@ Entities.Common.EdFi.IIntervention IInterventionInterventionPrescription.Interve set { SetIntervention(value); } } + [IgnoreMember] public Entities.Common.EdFi.IIntervention Intervention { set { SetIntervention(value); } @@ -86271,6 +89511,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "Intervention", "InterventionInterventionPrescription")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -86421,7 +89662,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.InterventionLearningResourceMetadataURI table of the Intervention aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class InterventionLearningResourceMetadataURI : Entities.Common.EdFi.IInterventionLearningResourceMetadataURI, IValidatableObject { @@ -86464,6 +89705,7 @@ Entities.Common.EdFi.IIntervention IInterventionLearningResourceMetadataURI.Inte set { SetIntervention(value); } } + [IgnoreMember] public Entities.Common.EdFi.IIntervention Intervention { set { SetIntervention(value); } @@ -86481,6 +89723,7 @@ private void SetIntervention(Entities.Common.EdFi.IIntervention value) [RequiredWithNonDefault] [NonDefaultStringLength(255, MinimumLength=5, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="learningResourceMetadataURI")] + [Key(0)] public string LearningResourceMetadataURI { get; set; } // ------------------------------------------------------------- @@ -86566,6 +89809,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "Intervention", "InterventionLearningResourceMetadataURI")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -86702,7 +89946,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.InterventionMeetingTime table of the Intervention aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class InterventionMeetingTime : Entities.Common.EdFi.IInterventionMeetingTime, IValidatableObject { @@ -86745,6 +89989,7 @@ Entities.Common.EdFi.IIntervention IInterventionMeetingTime.Intervention set { SetIntervention(value); } } + [IgnoreMember] public Entities.Common.EdFi.IIntervention Intervention { set { SetIntervention(value); } @@ -86761,6 +90006,7 @@ private void SetIntervention(Entities.Common.EdFi.IIntervention value) // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] [DataMember(Name="endTime")][JsonConverter(typeof(UtcTimeConverter))] + [Key(0)] public TimeSpan EndTime { get; set; } /// @@ -86769,6 +90015,7 @@ private void SetIntervention(Entities.Common.EdFi.IIntervention value) // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] [DataMember(Name="startTime")][JsonConverter(typeof(UtcTimeConverter))] + [Key(1)] public TimeSpan StartTime { get; set; } // ------------------------------------------------------------- @@ -86863,6 +90110,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "Intervention", "InterventionMeetingTime")] + [Key(2)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -86999,7 +90247,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.InterventionPopulationServed table of the Intervention aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class InterventionPopulationServed : Entities.Common.EdFi.IInterventionPopulationServed, IValidatableObject { @@ -87042,6 +90290,7 @@ Entities.Common.EdFi.IIntervention IInterventionPopulationServed.Intervention set { SetIntervention(value); } } + [IgnoreMember] public Entities.Common.EdFi.IIntervention Intervention { set { SetIntervention(value); } @@ -87059,7 +90308,15 @@ private void SetIntervention(Entities.Common.EdFi.IIntervention value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="populationServedDescriptor")][DescriptorExists("PopulationServedDescriptor")] + [IgnoreMember] public string PopulationServedDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int PopulationServedDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("PopulationServedDescriptor", PopulationServedDescriptor); } + set { PopulationServedDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("PopulationServedDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -87144,6 +90401,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "Intervention", "InterventionPopulationServed")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -87280,7 +90538,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.InterventionStaff table of the Intervention aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class InterventionStaff : Entities.Common.EdFi.IInterventionStaff, IValidatableObject { @@ -87325,6 +90583,7 @@ private Staff.EdFi.StaffReference ImplicitStaffReference } [DataMember(Name="staffReference")] + [Key(0)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Staff.EdFi.StaffReference StaffReference { @@ -87357,6 +90616,7 @@ Entities.Common.EdFi.IIntervention IInterventionStaff.Intervention set { SetIntervention(value); } } + [IgnoreMember] public Entities.Common.EdFi.IIntervention Intervention { set { SetIntervention(value); } @@ -87475,6 +90735,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "Intervention", "InterventionStaff")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -87625,7 +90886,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.InterventionURI table of the Intervention aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class InterventionURI : Entities.Common.EdFi.IInterventionURI, IValidatableObject { @@ -87668,6 +90929,7 @@ Entities.Common.EdFi.IIntervention IInterventionURI.Intervention set { SetIntervention(value); } } + [IgnoreMember] public Entities.Common.EdFi.IIntervention Intervention { set { SetIntervention(value); } @@ -87685,6 +90947,7 @@ private void SetIntervention(Entities.Common.EdFi.IIntervention value) [RequiredWithNonDefault] [NonDefaultStringLength(255, MinimumLength=5, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="uri")] + [Key(0)] public string URI { get; set; } // ------------------------------------------------------------- @@ -87770,6 +91033,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "Intervention", "InterventionURI")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -87911,7 +91175,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.InterventionClassDescriptor.EdFi /// /// A class which represents the edfi.InterventionClassDescriptor table of the InterventionClassDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class InterventionClassDescriptor : Entities.Common.EdFi.IInterventionClassDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -87940,6 +91204,7 @@ public class InterventionClassDescriptor : Entities.Common.EdFi.IInterventionCla /// The unique identifier for the InterventionClassDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -88024,6 +91289,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -88032,6 +91298,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -88039,6 +91306,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -88046,6 +91314,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -88055,6 +91324,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -88064,6 +91334,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -88107,9 +91378,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -88182,7 +91455,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.InterventionEffectivenessRatingDe /// /// A class which represents the edfi.InterventionEffectivenessRatingDescriptor table of the InterventionEffectivenessRatingDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class InterventionEffectivenessRatingDescriptor : Entities.Common.EdFi.IInterventionEffectivenessRatingDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -88211,6 +91484,7 @@ public class InterventionEffectivenessRatingDescriptor : Entities.Common.EdFi.II /// The unique identifier for the InterventionEffectivenessRatingDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -88295,6 +91569,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -88303,6 +91578,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -88310,6 +91586,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -88317,6 +91594,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -88326,6 +91604,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -88335,6 +91614,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -88378,9 +91658,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -88453,30 +91735,37 @@ namespace EdFi.Ods.Api.Common.Models.Resources.InterventionPrescription.EdFi /// /// Represents a reference to the InterventionPrescription resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class InterventionPrescriptionReference : IResourceReference { [DataMember(Name="educationOrganizationId")] + [Key(0)] public long EducationOrganizationId { get; set; } [DataMember(Name="interventionPrescriptionIdentificationCode")] + [Key(1)] public string InterventionPrescriptionIdentificationCode { get; set; } /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(2)] 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. /// + [Key(3)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(4)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -88550,7 +91839,7 @@ private Link CreateLink() /// /// A class which represents the edfi.InterventionPrescription table of the InterventionPrescription aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class InterventionPrescription : Entities.Common.EdFi.IInterventionPrescription, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -88589,6 +91878,7 @@ public InterventionPrescription() /// The unique identifier for the InterventionPrescription resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -88612,6 +91902,7 @@ private EducationOrganization.EdFi.EducationOrganizationReference ImplicitEducat } [DataMember(Name="educationOrganizationReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public EducationOrganization.EdFi.EducationOrganizationReference EducationOrganizationReference { @@ -88668,6 +91959,7 @@ long Entities.Common.EdFi.IInterventionPrescription.EducationOrganizationId [RequiredWithNonDefault] [NonDefaultStringLength(60, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="interventionPrescriptionIdentificationCode")] + [Key(2)] public string InterventionPrescriptionIdentificationCode { get; set; } // ------------------------------------------------------------- @@ -88741,8 +92033,16 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="deliveryMethodDescriptor")][DescriptorExists("DeliveryMethodDescriptor")] + [IgnoreMember] public string DeliveryMethodDescriptor { get; set; } + [Key(3)][JsonIgnore] + public int DeliveryMethodDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("DeliveryMethodDescriptor", DeliveryMethodDescriptor); } + set { DeliveryMethodDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("DeliveryMethodDescriptor", value); } + } + /// /// The way in which an intervention is used: curriculum, supplement, or practice. /// @@ -88750,13 +92050,22 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="interventionClassDescriptor")][DescriptorExists("InterventionClassDescriptor")] + [IgnoreMember] public string InterventionClassDescriptor { get; set; } + [Key(4)][JsonIgnore] + public int InterventionClassDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("InterventionClassDescriptor", InterventionClassDescriptor); } + set { InterventionClassDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("InterventionClassDescriptor", value); } + } + /// /// The maximum duration of time in minutes that is recommended for the intervention. /// // NOT in a reference, NOT a lookup column [DataMember(Name="maxDosage")] + [Key(5)] public int? MaxDosage { get; set; } /// @@ -88764,6 +92073,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="minDosage")] + [Key(6)] public int? MinDosage { get; set; } /// @@ -88772,6 +92082,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(255, MinimumLength=5, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(7)] public string Namespace { get; set; } // ------------------------------------------------------------- @@ -88794,6 +92105,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "InterventionPrescription", "InterventionPrescription")] + [Key(8)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -88805,6 +92117,7 @@ public override int GetHashCode() [NoDuplicateMembers] [DataMember(Name="appropriateGradeLevels")] + [Key(9)] public ICollection InterventionPrescriptionAppropriateGradeLevels { get { return _interventionPrescriptionAppropriateGradeLevels; } @@ -88835,6 +92148,7 @@ public ICollection InterventionPr [NoDuplicateMembers] [DataMember(Name="appropriateSexes")] + [Key(10)] public ICollection InterventionPrescriptionAppropriateSexes { get { return _interventionPrescriptionAppropriateSexes; } @@ -88865,6 +92179,7 @@ public ICollection InterventionPrescript [NoDuplicateMembers] [DataMember(Name="diagnoses")] + [Key(11)] public ICollection InterventionPrescriptionDiagnoses { get { return _interventionPrescriptionDiagnoses; } @@ -88895,6 +92210,7 @@ public ICollection InterventionPrescriptionDi [NoDuplicateMembers] [DataMember(Name="educationContents")] + [Key(12)] public ICollection InterventionPrescriptionEducationContents { get { return _interventionPrescriptionEducationContents; } @@ -88925,6 +92241,7 @@ public ICollection InterventionPrescri [NoDuplicateMembers] [DataMember(Name="learningResourceMetadataURIs")] + [Key(13)] public ICollection InterventionPrescriptionLearningResourceMetadataURIs { get { return _interventionPrescriptionLearningResourceMetadataURIs; } @@ -88955,6 +92272,7 @@ public ICollection Interven [NoDuplicateMembers] [DataMember(Name="populationServeds")] + [Key(14)] public ICollection InterventionPrescriptionPopulationServeds { get { return _interventionPrescriptionPopulationServeds; } @@ -88985,6 +92303,7 @@ public ICollection InterventionPrescri [NoDuplicateMembers] [DataMember(Name="uris")] + [Key(15)] public ICollection InterventionPrescriptionURIs { get { return _interventionPrescriptionURIs; } @@ -89017,9 +92336,11 @@ public ICollection InterventionPrescriptionURIs // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(16)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(17)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -89384,7 +92705,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.InterventionPrescriptionAppropriateGradeLevel table of the InterventionPrescription aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class InterventionPrescriptionAppropriateGradeLevel : Entities.Common.EdFi.IInterventionPrescriptionAppropriateGradeLevel, IValidatableObject { @@ -89427,6 +92748,7 @@ Entities.Common.EdFi.IInterventionPrescription IInterventionPrescriptionAppropri set { SetInterventionPrescription(value); } } + [IgnoreMember] public Entities.Common.EdFi.IInterventionPrescription InterventionPrescription { set { SetInterventionPrescription(value); } @@ -89444,7 +92766,15 @@ private void SetInterventionPrescription(Entities.Common.EdFi.IInterventionPresc [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="gradeLevelDescriptor")][DescriptorExists("GradeLevelDescriptor")] + [IgnoreMember] public string GradeLevelDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int GradeLevelDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("GradeLevelDescriptor", GradeLevelDescriptor); } + set { GradeLevelDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("GradeLevelDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -89529,6 +92859,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "InterventionPrescription", "InterventionPrescriptionAppropriateGradeLevel")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -89665,7 +92996,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.InterventionPrescriptionAppropriateSex table of the InterventionPrescription aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class InterventionPrescriptionAppropriateSex : Entities.Common.EdFi.IInterventionPrescriptionAppropriateSex, IValidatableObject { @@ -89708,6 +93039,7 @@ Entities.Common.EdFi.IInterventionPrescription IInterventionPrescriptionAppropri set { SetInterventionPrescription(value); } } + [IgnoreMember] public Entities.Common.EdFi.IInterventionPrescription InterventionPrescription { set { SetInterventionPrescription(value); } @@ -89725,7 +93057,15 @@ private void SetInterventionPrescription(Entities.Common.EdFi.IInterventionPresc [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="sexDescriptor")][DescriptorExists("SexDescriptor")] + [IgnoreMember] public string SexDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int SexDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("SexDescriptor", SexDescriptor); } + set { SexDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("SexDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -89810,6 +93150,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "InterventionPrescription", "InterventionPrescriptionAppropriateSex")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -89946,7 +93287,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.InterventionPrescriptionDiagnosis table of the InterventionPrescription aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class InterventionPrescriptionDiagnosis : Entities.Common.EdFi.IInterventionPrescriptionDiagnosis, IValidatableObject { @@ -89989,6 +93330,7 @@ Entities.Common.EdFi.IInterventionPrescription IInterventionPrescriptionDiagnosi set { SetInterventionPrescription(value); } } + [IgnoreMember] public Entities.Common.EdFi.IInterventionPrescription InterventionPrescription { set { SetInterventionPrescription(value); } @@ -90006,7 +93348,15 @@ private void SetInterventionPrescription(Entities.Common.EdFi.IInterventionPresc [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="diagnosisDescriptor")][DescriptorExists("DiagnosisDescriptor")] + [IgnoreMember] public string DiagnosisDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int DiagnosisDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("DiagnosisDescriptor", DiagnosisDescriptor); } + set { DiagnosisDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("DiagnosisDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -90091,6 +93441,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "InterventionPrescription", "InterventionPrescriptionDiagnosis")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -90227,7 +93578,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.InterventionPrescriptionEducationContent table of the InterventionPrescription aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class InterventionPrescriptionEducationContent : Entities.Common.EdFi.IInterventionPrescriptionEducationContent, IValidatableObject { @@ -90272,6 +93623,7 @@ private EducationContent.EdFi.EducationContentReference ImplicitEducationContent } [DataMember(Name="educationContentReference")] + [Key(0)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public EducationContent.EdFi.EducationContentReference EducationContentReference { @@ -90304,6 +93656,7 @@ Entities.Common.EdFi.IInterventionPrescription IInterventionPrescriptionEducatio set { SetInterventionPrescription(value); } } + [IgnoreMember] public Entities.Common.EdFi.IInterventionPrescription InterventionPrescription { set { SetInterventionPrescription(value); } @@ -90421,6 +93774,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "InterventionPrescription", "InterventionPrescriptionEducationContent")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -90571,7 +93925,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.InterventionPrescriptionLearningResourceMetadataURI table of the InterventionPrescription aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class InterventionPrescriptionLearningResourceMetadataURI : Entities.Common.EdFi.IInterventionPrescriptionLearningResourceMetadataURI, IValidatableObject { @@ -90614,6 +93968,7 @@ Entities.Common.EdFi.IInterventionPrescription IInterventionPrescriptionLearning set { SetInterventionPrescription(value); } } + [IgnoreMember] public Entities.Common.EdFi.IInterventionPrescription InterventionPrescription { set { SetInterventionPrescription(value); } @@ -90631,6 +93986,7 @@ private void SetInterventionPrescription(Entities.Common.EdFi.IInterventionPresc [RequiredWithNonDefault] [NonDefaultStringLength(255, MinimumLength=5, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="learningResourceMetadataURI")] + [Key(0)] public string LearningResourceMetadataURI { get; set; } // ------------------------------------------------------------- @@ -90716,6 +94072,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "InterventionPrescription", "InterventionPrescriptionLearningResourceMetadataURI")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -90852,7 +94209,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.InterventionPrescriptionPopulationServed table of the InterventionPrescription aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class InterventionPrescriptionPopulationServed : Entities.Common.EdFi.IInterventionPrescriptionPopulationServed, IValidatableObject { @@ -90895,6 +94252,7 @@ Entities.Common.EdFi.IInterventionPrescription IInterventionPrescriptionPopulati set { SetInterventionPrescription(value); } } + [IgnoreMember] public Entities.Common.EdFi.IInterventionPrescription InterventionPrescription { set { SetInterventionPrescription(value); } @@ -90912,7 +94270,15 @@ private void SetInterventionPrescription(Entities.Common.EdFi.IInterventionPresc [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="populationServedDescriptor")][DescriptorExists("PopulationServedDescriptor")] + [IgnoreMember] public string PopulationServedDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int PopulationServedDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("PopulationServedDescriptor", PopulationServedDescriptor); } + set { PopulationServedDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("PopulationServedDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -90997,6 +94363,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "InterventionPrescription", "InterventionPrescriptionPopulationServed")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -91133,7 +94500,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.InterventionPrescriptionURI table of the InterventionPrescription aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class InterventionPrescriptionURI : Entities.Common.EdFi.IInterventionPrescriptionURI, IValidatableObject { @@ -91176,6 +94543,7 @@ Entities.Common.EdFi.IInterventionPrescription IInterventionPrescriptionURI.Inte set { SetInterventionPrescription(value); } } + [IgnoreMember] public Entities.Common.EdFi.IInterventionPrescription InterventionPrescription { set { SetInterventionPrescription(value); } @@ -91193,6 +94561,7 @@ private void SetInterventionPrescription(Entities.Common.EdFi.IInterventionPresc [RequiredWithNonDefault] [NonDefaultStringLength(255, MinimumLength=5, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="uri")] + [Key(0)] public string URI { get; set; } // ------------------------------------------------------------- @@ -91278,6 +94647,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "InterventionPrescription", "InterventionPrescriptionURI")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -91419,30 +94789,37 @@ namespace EdFi.Ods.Api.Common.Models.Resources.InterventionStudy.EdFi /// /// Represents a reference to the InterventionStudy resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class InterventionStudyReference : IResourceReference { [DataMember(Name="educationOrganizationId")] + [Key(0)] public long EducationOrganizationId { get; set; } [DataMember(Name="interventionStudyIdentificationCode")] + [Key(1)] public string InterventionStudyIdentificationCode { get; set; } /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(2)] 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. /// + [Key(3)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(4)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -91516,7 +94893,7 @@ private Link CreateLink() /// /// A class which represents the edfi.InterventionStudy table of the InterventionStudy aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] [NoUnsuppliedRequiredMembersWithMeaningfulDefaults] public class InterventionStudy : Entities.Common.EdFi.IInterventionStudy, IHasETag, IDateVersionedEntity, IHasRequiredMembersWithMeaningfulDefaultValues, IValidatableObject @@ -91557,6 +94934,7 @@ public InterventionStudy() /// The unique identifier for the InterventionStudy resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -91580,6 +94958,7 @@ private EducationOrganization.EdFi.EducationOrganizationReference ImplicitEducat } [DataMember(Name="educationOrganizationReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public EducationOrganization.EdFi.EducationOrganizationReference EducationOrganizationReference { @@ -91613,6 +94992,7 @@ private InterventionPrescription.EdFi.InterventionPrescriptionReference Implicit } [DataMember(Name="interventionPrescriptionReference")] + [Key(2)] [FullyDefinedReference][RequiredReference("edfi", "InterventionStudy")] public InterventionPrescription.EdFi.InterventionPrescriptionReference InterventionPrescriptionReference { @@ -91669,6 +95049,7 @@ long Entities.Common.EdFi.IInterventionStudy.EducationOrganizationId [RequiredWithNonDefault] [NonDefaultStringLength(60, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="interventionStudyIdentificationCode")] + [Key(3)] public string InterventionStudyIdentificationCode { get; set; } // ------------------------------------------------------------- @@ -91742,8 +95123,16 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="deliveryMethodDescriptor")][DescriptorExists("DeliveryMethodDescriptor")] + [IgnoreMember] public string DeliveryMethodDescriptor { get; set; } + [Key(4)][JsonIgnore] + public int DeliveryMethodDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("DeliveryMethodDescriptor", DeliveryMethodDescriptor); } + set { DeliveryMethodDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("DeliveryMethodDescriptor", value); } + } + /// /// The way in which an intervention is used: curriculum, supplement, or practice. /// @@ -91751,8 +95140,16 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="interventionClassDescriptor")][DescriptorExists("InterventionClassDescriptor")] + [IgnoreMember] public string InterventionClassDescriptor { get; set; } + [Key(5)][JsonIgnore] + public int InterventionClassDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("InterventionClassDescriptor", InterventionClassDescriptor); } + set { InterventionClassDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("InterventionClassDescriptor", value); } + } + /// /// The identifier assigned to an education organization. /// @@ -91815,6 +95212,7 @@ string Entities.Common.EdFi.IInterventionStudy.InterventionPrescriptionIdentific /// // NOT in a reference, NOT a lookup column [DataMember(Name="participants")] + [Key(6)] public int Participants { get => _participants; @@ -91854,6 +95252,7 @@ IEnumerable IHasRequiredMembersWithMeaningfulDefaultValues.GetUnassigned // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "InterventionStudy", "InterventionStudy")] + [Key(7)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -91865,6 +95264,7 @@ IEnumerable IHasRequiredMembersWithMeaningfulDefaultValues.GetUnassigned [NoDuplicateMembers] [DataMember(Name="appropriateGradeLevels")] + [Key(8)] public ICollection InterventionStudyAppropriateGradeLevels { get { return _interventionStudyAppropriateGradeLevels; } @@ -91895,6 +95295,7 @@ public ICollection InterventionStudyAppr [NoDuplicateMembers] [DataMember(Name="appropriateSexes")] + [Key(9)] public ICollection InterventionStudyAppropriateSexes { get { return _interventionStudyAppropriateSexes; } @@ -91925,6 +95326,7 @@ public ICollection InterventionStudyAppropriate [NoDuplicateMembers] [DataMember(Name="educationContents")] + [Key(10)] public ICollection InterventionStudyEducationContents { get { return _interventionStudyEducationContents; } @@ -91955,6 +95357,7 @@ public ICollection InterventionStudyEducation [NoDuplicateMembers] [DataMember(Name="interventionEffectivenesses")] + [Key(11)] public ICollection InterventionStudyInterventionEffectivenesses { get { return _interventionStudyInterventionEffectivenesses; } @@ -91985,6 +95388,7 @@ public ICollection InterventionStudy [NoDuplicateMembers] [DataMember(Name="learningResourceMetadataURIs")] + [Key(12)] public ICollection InterventionStudyLearningResourceMetadataURIs { get { return _interventionStudyLearningResourceMetadataURIs; } @@ -92015,6 +95419,7 @@ public ICollection InterventionStu [NoDuplicateMembers] [DataMember(Name="populationServeds")] + [Key(13)] public ICollection InterventionStudyPopulationServeds { get { return _interventionStudyPopulationServeds; } @@ -92045,6 +95450,7 @@ public ICollection InterventionStudyPopulatio [NoDuplicateMembers] [DataMember(Name="stateAbbreviations")] + [Key(14)] public ICollection InterventionStudyStateAbbreviations { get { return _interventionStudyStateAbbreviations; } @@ -92075,6 +95481,7 @@ public ICollection InterventionStudyStateAbb [NoDuplicateMembers] [DataMember(Name="uris")] + [Key(15)] public ICollection InterventionStudyURIs { get { return _interventionStudyURIs; } @@ -92107,9 +95514,11 @@ public ICollection InterventionStudyURIs // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(16)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(17)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -92517,7 +95926,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.InterventionStudyAppropriateGradeLevel table of the InterventionStudy aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class InterventionStudyAppropriateGradeLevel : Entities.Common.EdFi.IInterventionStudyAppropriateGradeLevel, IValidatableObject { @@ -92560,6 +95969,7 @@ Entities.Common.EdFi.IInterventionStudy IInterventionStudyAppropriateGradeLevel. set { SetInterventionStudy(value); } } + [IgnoreMember] public Entities.Common.EdFi.IInterventionStudy InterventionStudy { set { SetInterventionStudy(value); } @@ -92577,7 +95987,15 @@ private void SetInterventionStudy(Entities.Common.EdFi.IInterventionStudy value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="gradeLevelDescriptor")][DescriptorExists("GradeLevelDescriptor")] + [IgnoreMember] public string GradeLevelDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int GradeLevelDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("GradeLevelDescriptor", GradeLevelDescriptor); } + set { GradeLevelDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("GradeLevelDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -92662,6 +96080,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "InterventionStudy", "InterventionStudyAppropriateGradeLevel")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -92798,7 +96217,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.InterventionStudyAppropriateSex table of the InterventionStudy aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class InterventionStudyAppropriateSex : Entities.Common.EdFi.IInterventionStudyAppropriateSex, IValidatableObject { @@ -92841,6 +96260,7 @@ Entities.Common.EdFi.IInterventionStudy IInterventionStudyAppropriateSex.Interve set { SetInterventionStudy(value); } } + [IgnoreMember] public Entities.Common.EdFi.IInterventionStudy InterventionStudy { set { SetInterventionStudy(value); } @@ -92858,7 +96278,15 @@ private void SetInterventionStudy(Entities.Common.EdFi.IInterventionStudy value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="sexDescriptor")][DescriptorExists("SexDescriptor")] + [IgnoreMember] public string SexDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int SexDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("SexDescriptor", SexDescriptor); } + set { SexDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("SexDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -92943,6 +96371,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "InterventionStudy", "InterventionStudyAppropriateSex")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -93079,7 +96508,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.InterventionStudyEducationContent table of the InterventionStudy aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class InterventionStudyEducationContent : Entities.Common.EdFi.IInterventionStudyEducationContent, IValidatableObject { @@ -93124,6 +96553,7 @@ private EducationContent.EdFi.EducationContentReference ImplicitEducationContent } [DataMember(Name="educationContentReference")] + [Key(0)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public EducationContent.EdFi.EducationContentReference EducationContentReference { @@ -93156,6 +96586,7 @@ Entities.Common.EdFi.IInterventionStudy IInterventionStudyEducationContent.Inter set { SetInterventionStudy(value); } } + [IgnoreMember] public Entities.Common.EdFi.IInterventionStudy InterventionStudy { set { SetInterventionStudy(value); } @@ -93273,6 +96704,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "InterventionStudy", "InterventionStudyEducationContent")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -93423,7 +96855,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.InterventionStudyInterventionEffectiveness table of the InterventionStudy aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class InterventionStudyInterventionEffectiveness : Entities.Common.EdFi.IInterventionStudyInterventionEffectiveness, IValidatableObject { @@ -93466,6 +96898,7 @@ Entities.Common.EdFi.IInterventionStudy IInterventionStudyInterventionEffectiven set { SetInterventionStudy(value); } } + [IgnoreMember] public Entities.Common.EdFi.IInterventionStudy InterventionStudy { set { SetInterventionStudy(value); } @@ -93483,8 +96916,16 @@ private void SetInterventionStudy(Entities.Common.EdFi.IInterventionStudy value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="diagnosisDescriptor")][DescriptorExists("DiagnosisDescriptor")] + [IgnoreMember] public string DiagnosisDescriptor { get; set; } + [Key(0)][JsonIgnore] + public int DiagnosisDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("DiagnosisDescriptor", DiagnosisDescriptor); } + set { DiagnosisDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("DiagnosisDescriptor", value); } + } + /// /// Grade level for which effectiveness is measured. /// @@ -93492,8 +96933,16 @@ private void SetInterventionStudy(Entities.Common.EdFi.IInterventionStudy value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="gradeLevelDescriptor")][DescriptorExists("GradeLevelDescriptor")] + [IgnoreMember] public string GradeLevelDescriptor { get; set; } + [Key(1)][JsonIgnore] + public int GradeLevelDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("GradeLevelDescriptor", GradeLevelDescriptor); } + set { GradeLevelDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("GradeLevelDescriptor", value); } + } + /// /// Population for which effectiveness is measured. /// @@ -93501,7 +96950,15 @@ private void SetInterventionStudy(Entities.Common.EdFi.IInterventionStudy value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="populationServedDescriptor")][DescriptorExists("PopulationServedDescriptor")] + [IgnoreMember] public string PopulationServedDescriptor { get; set; } + + [Key(2)][JsonIgnore] + public int PopulationServedDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("PopulationServedDescriptor", PopulationServedDescriptor); } + set { PopulationServedDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("PopulationServedDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -93589,6 +97046,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="improvementIndex")] + [Key(3)] public int? ImprovementIndex { get; set; } /// @@ -93598,7 +97056,15 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="interventionEffectivenessRatingDescriptor")][DescriptorExists("InterventionEffectivenessRatingDescriptor")] + [IgnoreMember] public string InterventionEffectivenessRatingDescriptor { get; set; } + + [Key(4)][JsonIgnore] + public int InterventionEffectivenessRatingDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("InterventionEffectivenessRatingDescriptor", InterventionEffectivenessRatingDescriptor); } + set { InterventionEffectivenessRatingDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("InterventionEffectivenessRatingDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -93620,6 +97086,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "InterventionStudy", "InterventionStudyInterventionEffectiveness")] + [Key(5)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -93756,7 +97223,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.InterventionStudyLearningResourceMetadataURI table of the InterventionStudy aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class InterventionStudyLearningResourceMetadataURI : Entities.Common.EdFi.IInterventionStudyLearningResourceMetadataURI, IValidatableObject { @@ -93799,6 +97266,7 @@ Entities.Common.EdFi.IInterventionStudy IInterventionStudyLearningResourceMetada set { SetInterventionStudy(value); } } + [IgnoreMember] public Entities.Common.EdFi.IInterventionStudy InterventionStudy { set { SetInterventionStudy(value); } @@ -93816,6 +97284,7 @@ private void SetInterventionStudy(Entities.Common.EdFi.IInterventionStudy value) [RequiredWithNonDefault] [NonDefaultStringLength(255, MinimumLength=5, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="learningResourceMetadataURI")] + [Key(0)] public string LearningResourceMetadataURI { get; set; } // ------------------------------------------------------------- @@ -93901,6 +97370,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "InterventionStudy", "InterventionStudyLearningResourceMetadataURI")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -94037,7 +97507,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.InterventionStudyPopulationServed table of the InterventionStudy aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class InterventionStudyPopulationServed : Entities.Common.EdFi.IInterventionStudyPopulationServed, IValidatableObject { @@ -94080,6 +97550,7 @@ Entities.Common.EdFi.IInterventionStudy IInterventionStudyPopulationServed.Inter set { SetInterventionStudy(value); } } + [IgnoreMember] public Entities.Common.EdFi.IInterventionStudy InterventionStudy { set { SetInterventionStudy(value); } @@ -94097,7 +97568,15 @@ private void SetInterventionStudy(Entities.Common.EdFi.IInterventionStudy value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="populationServedDescriptor")][DescriptorExists("PopulationServedDescriptor")] + [IgnoreMember] public string PopulationServedDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int PopulationServedDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("PopulationServedDescriptor", PopulationServedDescriptor); } + set { PopulationServedDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("PopulationServedDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -94182,6 +97661,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "InterventionStudy", "InterventionStudyPopulationServed")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -94318,7 +97798,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.InterventionStudyStateAbbreviation table of the InterventionStudy aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class InterventionStudyStateAbbreviation : Entities.Common.EdFi.IInterventionStudyStateAbbreviation, IValidatableObject { @@ -94361,6 +97841,7 @@ Entities.Common.EdFi.IInterventionStudy IInterventionStudyStateAbbreviation.Inte set { SetInterventionStudy(value); } } + [IgnoreMember] public Entities.Common.EdFi.IInterventionStudy InterventionStudy { set { SetInterventionStudy(value); } @@ -94378,7 +97859,15 @@ private void SetInterventionStudy(Entities.Common.EdFi.IInterventionStudy value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="stateAbbreviationDescriptor")][DescriptorExists("StateAbbreviationDescriptor")] + [IgnoreMember] public string StateAbbreviationDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int StateAbbreviationDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("StateAbbreviationDescriptor", StateAbbreviationDescriptor); } + set { StateAbbreviationDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("StateAbbreviationDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -94463,6 +97952,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "InterventionStudy", "InterventionStudyStateAbbreviation")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -94599,7 +98089,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.InterventionStudyURI table of the InterventionStudy aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class InterventionStudyURI : Entities.Common.EdFi.IInterventionStudyURI, IValidatableObject { @@ -94642,6 +98132,7 @@ Entities.Common.EdFi.IInterventionStudy IInterventionStudyURI.InterventionStudy set { SetInterventionStudy(value); } } + [IgnoreMember] public Entities.Common.EdFi.IInterventionStudy InterventionStudy { set { SetInterventionStudy(value); } @@ -94659,6 +98150,7 @@ private void SetInterventionStudy(Entities.Common.EdFi.IInterventionStudy value) [RequiredWithNonDefault] [NonDefaultStringLength(255, MinimumLength=5, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="uri")] + [Key(0)] public string URI { get; set; } // ------------------------------------------------------------- @@ -94744,6 +98236,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "InterventionStudy", "InterventionStudyURI")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -94885,7 +98378,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.LanguageDescriptor.EdFi /// /// A class which represents the edfi.LanguageDescriptor table of the LanguageDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class LanguageDescriptor : Entities.Common.EdFi.ILanguageDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -94914,6 +98407,7 @@ public class LanguageDescriptor : Entities.Common.EdFi.ILanguageDescriptor, Enti /// The unique identifier for the LanguageDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -94998,6 +98492,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -95006,6 +98501,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -95013,6 +98509,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -95020,6 +98517,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -95029,6 +98527,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -95038,6 +98537,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -95081,9 +98581,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -95156,7 +98658,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.LanguageInstructionProgramService /// /// A class which represents the edfi.LanguageInstructionProgramServiceDescriptor table of the LanguageInstructionProgramServiceDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class LanguageInstructionProgramServiceDescriptor : Entities.Common.EdFi.ILanguageInstructionProgramServiceDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -95185,6 +98687,7 @@ public class LanguageInstructionProgramServiceDescriptor : Entities.Common.EdFi. /// The unique identifier for the LanguageInstructionProgramServiceDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -95269,6 +98772,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -95277,6 +98781,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -95284,6 +98789,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -95291,6 +98797,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -95300,6 +98807,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -95309,6 +98817,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -95352,9 +98861,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -95427,7 +98938,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.LanguageUseDescriptor.EdFi /// /// A class which represents the edfi.LanguageUseDescriptor table of the LanguageUseDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class LanguageUseDescriptor : Entities.Common.EdFi.ILanguageUseDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -95456,6 +98967,7 @@ public class LanguageUseDescriptor : Entities.Common.EdFi.ILanguageUseDescriptor /// The unique identifier for the LanguageUseDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -95540,6 +99052,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -95548,6 +99061,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -95555,6 +99069,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -95562,6 +99077,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -95571,6 +99087,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -95580,6 +99097,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -95623,9 +99141,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -95698,27 +99218,33 @@ namespace EdFi.Ods.Api.Common.Models.Resources.LearningStandard.EdFi /// /// Represents a reference to the LearningStandard resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class LearningStandardReference : IResourceReference { [DataMember(Name="learningStandardId")] + [Key(0)] public string LearningStandardId { get; set; } /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(1)] 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. /// + [Key(2)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(3)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -95787,7 +99313,7 @@ private Link CreateLink() /// /// A class which represents the edfi.LearningStandard table of the LearningStandard aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class LearningStandard : Entities.Common.EdFi.ILearningStandard, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -95822,6 +99348,7 @@ public LearningStandard() /// The unique identifier for the LearningStandard resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -95845,6 +99372,7 @@ private LearningStandardReference ImplicitParentLearningStandardReference } [DataMember(Name="parentLearningStandardReference")] + [Key(1)] [FullyDefinedReference] public LearningStandardReference ParentLearningStandardReference { @@ -95876,6 +99404,7 @@ public LearningStandardReference ParentLearningStandardReference [RequiredWithNonDefault] [NonDefaultStringLength(60, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="learningStandardId")] + [Key(2)] public string LearningStandardId { get; set; } // ------------------------------------------------------------- @@ -95940,6 +99469,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(60, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="courseTitle")] + [Key(3)] public string CourseTitle { get; set; } /// @@ -95949,6 +99479,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(4)] public string Description { get; set; } /// @@ -95957,14 +99488,23 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="learningStandardCategoryDescriptor")][DescriptorExists("LearningStandardCategoryDescriptor")] + [IgnoreMember] public string LearningStandardCategoryDescriptor { get; set; } + [Key(5)][JsonIgnore] + public int LearningStandardCategoryDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("LearningStandardCategoryDescriptor", LearningStandardCategoryDescriptor); } + set { LearningStandardCategoryDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("LearningStandardCategoryDescriptor", value); } + } + /// /// A code designated by the promulgating body to identify the statement, e.g. 1.N.3 (usually not globally unique). /// // NOT in a reference, NOT a lookup column [NonDefaultStringLength(60, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="learningStandardItemCode")] + [Key(6)] public string LearningStandardItemCode { get; set; } /// @@ -95973,8 +99513,16 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="learningStandardScopeDescriptor")][DescriptorExists("LearningStandardScopeDescriptor")] + [IgnoreMember] public string LearningStandardScopeDescriptor { get; set; } + [Key(7)][JsonIgnore] + public int LearningStandardScopeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("LearningStandardScopeDescriptor", LearningStandardScopeDescriptor); } + set { LearningStandardScopeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("LearningStandardScopeDescriptor", value); } + } + /// /// The namespace of the organization or entity who governs the standard. It is recommended the namespaces observe a URI format and begin with a domain name under the governing organization or entity control. /// @@ -95982,6 +99530,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, MinimumLength=5, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(8)] public string Namespace { get; set; } /// @@ -96017,6 +99566,7 @@ string Entities.Common.EdFi.ILearningStandard.ParentLearningStandardId // NOT in a reference, NOT a lookup column [NonDefaultStringLength(150, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="successCriteria")] + [Key(9)] public string SuccessCriteria { get; set; } /// @@ -96025,6 +99575,7 @@ string Entities.Common.EdFi.ILearningStandard.ParentLearningStandardId // NOT in a reference, NOT a lookup column [NonDefaultStringLength(255, MinimumLength=5, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText] [DataMember(Name="uri")] + [Key(10)] public string URI { get; set; } // ------------------------------------------------------------- @@ -96036,6 +99587,7 @@ string Entities.Common.EdFi.ILearningStandard.ParentLearningStandardId /// [Required(ErrorMessage=ValidationHelpers.RequiredObjectMessageFormat)] [DataMember(Name = "contentStandard")] + [Key(11)] public LearningStandardContentStandard LearningStandardContentStandard { get; set; } Entities.Common.EdFi.ILearningStandardContentStandard Entities.Common.EdFi.ILearningStandard.LearningStandardContentStandard @@ -96060,6 +99612,7 @@ Entities.Common.EdFi.ILearningStandardContentStandard Entities.Common.EdFi.ILear // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "LearningStandard", "LearningStandard")] + [Key(12)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -96071,6 +99624,7 @@ Entities.Common.EdFi.ILearningStandardContentStandard Entities.Common.EdFi.ILear [NoDuplicateMembers][RequiredCollection] [DataMember(Name="academicSubjects")] + [Key(13)] public ICollection LearningStandardAcademicSubjects { get { return _learningStandardAcademicSubjects; } @@ -96101,6 +99655,7 @@ public ICollection LearningStandardAcademicSubj [NoDuplicateMembers][RequiredCollection] [DataMember(Name="gradeLevels")] + [Key(14)] public ICollection LearningStandardGradeLevels { get { return _learningStandardGradeLevels; } @@ -96131,6 +99686,7 @@ public ICollection LearningStandardGradeLevels [NoDuplicateMembers] [DataMember(Name="identificationCodes")] + [Key(15)] public ICollection LearningStandardIdentificationCodes { get { return _learningStandardIdentificationCodes; } @@ -96163,9 +99719,11 @@ public ICollection LearningStandardIdentific // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(16)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(17)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -96426,7 +99984,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.LearningStandardAcademicSubject table of the LearningStandard aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class LearningStandardAcademicSubject : Entities.Common.EdFi.ILearningStandardAcademicSubject, IValidatableObject { @@ -96469,6 +100027,7 @@ Entities.Common.EdFi.ILearningStandard ILearningStandardAcademicSubject.Learning set { SetLearningStandard(value); } } + [IgnoreMember] public Entities.Common.EdFi.ILearningStandard LearningStandard { set { SetLearningStandard(value); } @@ -96486,7 +100045,15 @@ private void SetLearningStandard(Entities.Common.EdFi.ILearningStandard value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="academicSubjectDescriptor")][DescriptorExists("AcademicSubjectDescriptor")] + [IgnoreMember] public string AcademicSubjectDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int AcademicSubjectDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("AcademicSubjectDescriptor", AcademicSubjectDescriptor); } + set { AcademicSubjectDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("AcademicSubjectDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -96571,6 +100138,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "LearningStandard", "LearningStandardAcademicSubject")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -96707,7 +100275,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.LearningStandardContentStandard table of the LearningStandard aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class LearningStandardContentStandard : Entities.Common.EdFi.ILearningStandardContentStandard, IValidatableObject { @@ -96756,6 +100324,7 @@ private EducationOrganization.EdFi.EducationOrganizationReference ImplicitMandat } [DataMember(Name="mandatingEducationOrganizationReference")] + [Key(0)] [FullyDefinedReference] public EducationOrganization.EdFi.EducationOrganizationReference MandatingEducationOrganizationReference { @@ -96788,6 +100357,7 @@ Entities.Common.EdFi.ILearningStandard ILearningStandardContentStandard.Learning set { SetLearningStandard(value); } } + [IgnoreMember] public Entities.Common.EdFi.ILearningStandard LearningStandard { set { SetLearningStandard(value); } @@ -96857,6 +100427,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="beginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(1)] public DateTime? BeginDate { get; set; } /// @@ -96864,6 +100435,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="endDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(2)] public DateTime? EndDate { get; set; } /// @@ -96898,6 +100470,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="publicationDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? PublicationDate { get; set; } /// @@ -96906,13 +100479,22 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="publicationStatusDescriptor")][DescriptorExists("PublicationStatusDescriptor")] + [IgnoreMember] public string PublicationStatusDescriptor { get; set; } + [Key(4)][JsonIgnore] + public int PublicationStatusDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("PublicationStatusDescriptor", PublicationStatusDescriptor); } + set { PublicationStatusDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("PublicationStatusDescriptor", value); } + } + /// /// The year at which this content was first published. /// // NOT in a reference, NOT a lookup column [DataMember(Name="publicationYear")] + [Key(5)] public short? PublicationYear { get; set; } /// @@ -96922,6 +100504,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="title")] + [Key(6)] public string Title { get; set; } /// @@ -96930,6 +100513,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(255, MinimumLength=5, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText] [DataMember(Name="uri")] + [Key(7)] public string URI { get; set; } /// @@ -96938,6 +100522,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="version")] + [Key(8)] public string Version { get; set; } // ------------------------------------------------------------- @@ -96960,6 +100545,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "LearningStandard", "LearningStandardContentStandard")] + [Key(9)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -96971,6 +100557,7 @@ public override int GetHashCode() [NoDuplicateMembers] [DataMember(Name="authors")] + [Key(10)] public ICollection LearningStandardContentStandardAuthors { get { return _learningStandardContentStandardAuthors; } @@ -97190,7 +100777,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.LearningStandardContentStandardAuthor table of the LearningStandard aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class LearningStandardContentStandardAuthor : Entities.Common.EdFi.ILearningStandardContentStandardAuthor, IValidatableObject { @@ -97233,6 +100820,7 @@ Entities.Common.EdFi.ILearningStandardContentStandard ILearningStandardContentSt set { SetLearningStandardContentStandard(value); } } + [IgnoreMember] public Entities.Common.EdFi.ILearningStandardContentStandard LearningStandardContentStandard { set { SetLearningStandardContentStandard(value); } @@ -97250,6 +100838,7 @@ private void SetLearningStandardContentStandard(Entities.Common.EdFi.ILearningSt [RequiredWithNonDefault] [NonDefaultStringLength(100, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="author")] + [Key(0)] public string Author { get; set; } // ------------------------------------------------------------- @@ -97335,6 +100924,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "LearningStandard", "LearningStandardContentStandardAuthor")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -97471,7 +101061,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.LearningStandardGradeLevel table of the LearningStandard aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class LearningStandardGradeLevel : Entities.Common.EdFi.ILearningStandardGradeLevel, IValidatableObject { @@ -97514,6 +101104,7 @@ Entities.Common.EdFi.ILearningStandard ILearningStandardGradeLevel.LearningStand set { SetLearningStandard(value); } } + [IgnoreMember] public Entities.Common.EdFi.ILearningStandard LearningStandard { set { SetLearningStandard(value); } @@ -97531,7 +101122,15 @@ private void SetLearningStandard(Entities.Common.EdFi.ILearningStandard value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="gradeLevelDescriptor")][DescriptorExists("GradeLevelDescriptor")] + [IgnoreMember] public string GradeLevelDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int GradeLevelDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("GradeLevelDescriptor", GradeLevelDescriptor); } + set { GradeLevelDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("GradeLevelDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -97616,6 +101215,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "LearningStandard", "LearningStandardGradeLevel")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -97752,7 +101352,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.LearningStandardIdentificationCode table of the LearningStandard aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class LearningStandardIdentificationCode : Entities.Common.EdFi.ILearningStandardIdentificationCode, IValidatableObject { @@ -97795,6 +101395,7 @@ Entities.Common.EdFi.ILearningStandard ILearningStandardIdentificationCode.Learn set { SetLearningStandard(value); } } + [IgnoreMember] public Entities.Common.EdFi.ILearningStandard LearningStandard { set { SetLearningStandard(value); } @@ -97812,6 +101413,7 @@ private void SetLearningStandard(Entities.Common.EdFi.ILearningStandard value) [RequiredWithNonDefault] [NonDefaultStringLength(65, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="contentStandardName")] + [Key(0)] public string ContentStandardName { get; set; } /// @@ -97821,6 +101423,7 @@ private void SetLearningStandard(Entities.Common.EdFi.ILearningStandard value) [RequiredWithNonDefault] [NonDefaultStringLength(60, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="identificationCode")] + [Key(1)] public string IdentificationCode { get; set; } // ------------------------------------------------------------- @@ -97915,6 +101518,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "LearningStandard", "LearningStandardIdentificationCode")] + [Key(2)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -98056,7 +101660,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.LearningStandardCategoryDescripto /// /// A class which represents the edfi.LearningStandardCategoryDescriptor table of the LearningStandardCategoryDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class LearningStandardCategoryDescriptor : Entities.Common.EdFi.ILearningStandardCategoryDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -98085,6 +101689,7 @@ public class LearningStandardCategoryDescriptor : Entities.Common.EdFi.ILearning /// The unique identifier for the LearningStandardCategoryDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -98169,6 +101774,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -98177,6 +101783,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -98184,6 +101791,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -98191,6 +101799,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -98200,6 +101809,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -98209,6 +101819,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -98252,9 +101863,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -98327,33 +101940,41 @@ namespace EdFi.Ods.Api.Common.Models.Resources.LearningStandardEquivalenceAssoci /// /// Represents a reference to the LearningStandardEquivalenceAssociation resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class LearningStandardEquivalenceAssociationReference : IResourceReference { [DataMember(Name="namespace")] + [Key(0)] public string Namespace { get; set; } [DataMember(Name="sourceLearningStandardId")] + [Key(1)] public string SourceLearningStandardId { get; set; } [DataMember(Name="targetLearningStandardId")] + [Key(2)] public string TargetLearningStandardId { get; set; } /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(3)] 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. /// + [Key(4)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(5)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -98432,7 +102053,7 @@ private Link CreateLink() /// /// A class which represents the edfi.LearningStandardEquivalenceAssociation table of the LearningStandardEquivalenceAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class LearningStandardEquivalenceAssociation : Entities.Common.EdFi.ILearningStandardEquivalenceAssociation, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -98461,6 +102082,7 @@ public class LearningStandardEquivalenceAssociation : Entities.Common.EdFi.ILear /// The unique identifier for the LearningStandardEquivalenceAssociation resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -98484,6 +102106,7 @@ private LearningStandard.EdFi.LearningStandardReference ImplicitSourceLearningSt } [DataMember(Name="sourceLearningStandardReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public LearningStandard.EdFi.LearningStandardReference SourceLearningStandardReference { @@ -98517,6 +102140,7 @@ private LearningStandard.EdFi.LearningStandardReference ImplicitTargetLearningSt } [DataMember(Name="targetLearningStandardReference")] + [Key(2)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public LearningStandard.EdFi.LearningStandardReference TargetLearningStandardReference { @@ -98548,6 +102172,7 @@ public LearningStandard.EdFi.LearningStandardReference TargetLearningStandardRef [RequiredWithNonDefault] [NonDefaultStringLength(255, MinimumLength=5, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="namespace")] + [Key(3)] public string Namespace { get; set; } /// @@ -98677,6 +102302,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveDate { get; set; } /// @@ -98685,6 +102311,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="learningStandardEquivalenceStrengthDescription")] + [Key(5)] public string LearningStandardEquivalenceStrengthDescription { get; set; } /// @@ -98693,7 +102320,15 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="learningStandardEquivalenceStrengthDescriptor")][DescriptorExists("LearningStandardEquivalenceStrengthDescriptor")] + [IgnoreMember] public string LearningStandardEquivalenceStrengthDescriptor { get; set; } + + [Key(6)][JsonIgnore] + public int LearningStandardEquivalenceStrengthDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("LearningStandardEquivalenceStrengthDescriptor", LearningStandardEquivalenceStrengthDescriptor); } + set { LearningStandardEquivalenceStrengthDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("LearningStandardEquivalenceStrengthDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -98715,6 +102350,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "LearningStandardEquivalenceAssociation", "LearningStandardEquivalenceAssociation")] + [Key(7)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -98728,9 +102364,11 @@ public override int GetHashCode() // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(8)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(9)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -98890,7 +102528,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.LearningStandardEquivalenceStreng /// /// A class which represents the edfi.LearningStandardEquivalenceStrengthDescriptor table of the LearningStandardEquivalenceStrengthDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class LearningStandardEquivalenceStrengthDescriptor : Entities.Common.EdFi.ILearningStandardEquivalenceStrengthDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -98919,6 +102557,7 @@ public class LearningStandardEquivalenceStrengthDescriptor : Entities.Common.EdF /// The unique identifier for the LearningStandardEquivalenceStrengthDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -99003,6 +102642,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -99011,6 +102651,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -99018,6 +102659,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -99025,6 +102667,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -99034,6 +102677,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -99043,6 +102687,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -99086,9 +102731,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -99161,7 +102808,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.LearningStandardScopeDescriptor.E /// /// A class which represents the edfi.LearningStandardScopeDescriptor table of the LearningStandardScopeDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class LearningStandardScopeDescriptor : Entities.Common.EdFi.ILearningStandardScopeDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -99190,6 +102837,7 @@ public class LearningStandardScopeDescriptor : Entities.Common.EdFi.ILearningSta /// The unique identifier for the LearningStandardScopeDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -99274,6 +102922,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -99282,6 +102931,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -99289,6 +102939,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -99296,6 +102947,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -99305,6 +102957,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -99314,6 +102967,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -99357,9 +103011,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -99432,7 +103088,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.LevelOfEducationDescriptor.EdFi /// /// A class which represents the edfi.LevelOfEducationDescriptor table of the LevelOfEducationDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class LevelOfEducationDescriptor : Entities.Common.EdFi.ILevelOfEducationDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -99461,6 +103117,7 @@ public class LevelOfEducationDescriptor : Entities.Common.EdFi.ILevelOfEducation /// The unique identifier for the LevelOfEducationDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -99545,6 +103202,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -99553,6 +103211,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -99560,6 +103219,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -99567,6 +103227,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -99576,6 +103237,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -99585,6 +103247,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -99628,9 +103291,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -99703,7 +103368,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.LicenseStatusDescriptor.EdFi /// /// A class which represents the edfi.LicenseStatusDescriptor table of the LicenseStatusDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class LicenseStatusDescriptor : Entities.Common.EdFi.ILicenseStatusDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -99732,6 +103397,7 @@ public class LicenseStatusDescriptor : Entities.Common.EdFi.ILicenseStatusDescri /// The unique identifier for the LicenseStatusDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -99816,6 +103482,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -99824,6 +103491,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -99831,6 +103499,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -99838,6 +103507,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -99847,6 +103517,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -99856,6 +103527,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -99899,9 +103571,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -99974,7 +103648,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.LicenseTypeDescriptor.EdFi /// /// A class which represents the edfi.LicenseTypeDescriptor table of the LicenseTypeDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class LicenseTypeDescriptor : Entities.Common.EdFi.ILicenseTypeDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -100003,6 +103677,7 @@ public class LicenseTypeDescriptor : Entities.Common.EdFi.ILicenseTypeDescriptor /// The unique identifier for the LicenseTypeDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -100087,6 +103762,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -100095,6 +103771,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -100102,6 +103779,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -100109,6 +103787,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -100118,6 +103797,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -100127,6 +103807,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -100170,9 +103851,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -100245,7 +103928,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.LimitedEnglishProficiencyDescript /// /// A class which represents the edfi.LimitedEnglishProficiencyDescriptor table of the LimitedEnglishProficiencyDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class LimitedEnglishProficiencyDescriptor : Entities.Common.EdFi.ILimitedEnglishProficiencyDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -100274,6 +103957,7 @@ public class LimitedEnglishProficiencyDescriptor : Entities.Common.EdFi.ILimited /// The unique identifier for the LimitedEnglishProficiencyDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -100358,6 +104042,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -100366,6 +104051,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -100373,6 +104059,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -100380,6 +104067,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -100389,6 +104077,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -100398,6 +104087,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -100441,9 +104131,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -100516,33 +104208,41 @@ namespace EdFi.Ods.Api.Common.Models.Resources.LocalAccount.EdFi /// /// Represents a reference to the LocalAccount resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class LocalAccountReference : IResourceReference { [DataMember(Name="accountIdentifier")] + [Key(0)] public string AccountIdentifier { get; set; } [DataMember(Name="educationOrganizationId")] + [Key(1)] public long EducationOrganizationId { get; set; } [DataMember(Name="fiscalYear")] + [Key(2)] public int FiscalYear { get; set; } /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(3)] 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. /// + [Key(4)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(5)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -100621,7 +104321,7 @@ private Link CreateLink() /// /// A class which represents the edfi.LocalAccount table of the LocalAccount aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] [NoUnsuppliedRequiredMembersWithMeaningfulDefaults] public class LocalAccount : Entities.Common.EdFi.ILocalAccount, IHasETag, IDateVersionedEntity, IHasRequiredMembersWithMeaningfulDefaultValues, IValidatableObject @@ -100655,6 +104355,7 @@ public LocalAccount() /// The unique identifier for the LocalAccount resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -100678,6 +104379,7 @@ private ChartOfAccount.EdFi.ChartOfAccountReference ImplicitChartOfAccountRefere } [DataMember(Name="chartOfAccountReference")] + [Key(1)] [FullyDefinedReference][RequiredReference("edfi", "LocalAccount")] public ChartOfAccount.EdFi.ChartOfAccountReference ChartOfAccountReference { @@ -100711,6 +104413,7 @@ private EducationOrganization.EdFi.EducationOrganizationReference ImplicitEducat } [DataMember(Name="educationOrganizationReference")] + [Key(2)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public EducationOrganization.EdFi.EducationOrganizationReference EducationOrganizationReference { @@ -100742,6 +104445,7 @@ public EducationOrganization.EdFi.EducationOrganizationReference EducationOrgani [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="accountIdentifier")] + [Key(3)] public string AccountIdentifier { get; set; } /// @@ -100778,6 +104482,7 @@ long Entities.Common.EdFi.ILocalAccount.EducationOrganizationId // IS in a reference, NOT a lookup column [Range(2020, 2040, ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="fiscalYear")] + [Key(4)] public int FiscalYear { get @@ -100876,6 +104581,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(100, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="accountName")] + [Key(5)] public string AccountName { get; set; } /// @@ -100960,6 +104666,7 @@ IEnumerable IHasRequiredMembersWithMeaningfulDefaultValues.GetUnassigned // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "LocalAccount", "LocalAccount")] + [Key(6)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -100971,6 +104678,7 @@ IEnumerable IHasRequiredMembersWithMeaningfulDefaultValues.GetUnassigned [NoDuplicateMembers] [DataMember(Name="reportingTags")] + [Key(7)] public ICollection LocalAccountReportingTags { get { return _localAccountReportingTags; } @@ -101003,9 +104711,11 @@ public ICollection LocalAccountReportingTags // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(8)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(9)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -101244,7 +104954,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.LocalAccountReportingTag table of the LocalAccount aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class LocalAccountReportingTag : Entities.Common.EdFi.ILocalAccountReportingTag, IValidatableObject { @@ -101287,6 +104997,7 @@ Entities.Common.EdFi.ILocalAccount ILocalAccountReportingTag.LocalAccount set { SetLocalAccount(value); } } + [IgnoreMember] public Entities.Common.EdFi.ILocalAccount LocalAccount { set { SetLocalAccount(value); } @@ -101304,7 +105015,15 @@ private void SetLocalAccount(Entities.Common.EdFi.ILocalAccount value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="reportingTagDescriptor")][DescriptorExists("ReportingTagDescriptor")] + [IgnoreMember] public string ReportingTagDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int ReportingTagDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ReportingTagDescriptor", ReportingTagDescriptor); } + set { ReportingTagDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ReportingTagDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -101375,6 +105094,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(100, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="tagValue")] + [Key(1)] public string TagValue { get; set; } // ------------------------------------------------------------- @@ -101397,6 +105117,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "LocalAccount", "LocalAccountReportingTag")] + [Key(2)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -101538,36 +105259,45 @@ namespace EdFi.Ods.Api.Common.Models.Resources.LocalActual.EdFi /// /// Represents a reference to the LocalActual resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class LocalActualReference : IResourceReference { [DataMember(Name="accountIdentifier")] + [Key(0)] public string AccountIdentifier { get; set; } [DataMember(Name="asOfDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(1)] public DateTime AsOfDate { get; set; } [DataMember(Name="educationOrganizationId")] + [Key(2)] public long EducationOrganizationId { get; set; } [DataMember(Name="fiscalYear")] + [Key(3)] public int FiscalYear { get; set; } /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(4)] 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. /// + [Key(5)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(6)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -101651,7 +105381,7 @@ private Link CreateLink() /// /// A class which represents the edfi.LocalActual table of the LocalActual aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] [NoUnsuppliedRequiredMembersWithMeaningfulDefaults] public class LocalActual : Entities.Common.EdFi.ILocalActual, IHasETag, IDateVersionedEntity, IHasRequiredMembersWithMeaningfulDefaultValues, IValidatableObject @@ -101681,6 +105411,7 @@ public class LocalActual : Entities.Common.EdFi.ILocalActual, IHasETag, IDateVer /// The unique identifier for the LocalActual resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -101704,6 +105435,7 @@ private LocalAccount.EdFi.LocalAccountReference ImplicitLocalAccountReference } [DataMember(Name="localAccountReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public LocalAccount.EdFi.LocalAccountReference LocalAccountReference { @@ -101759,6 +105491,7 @@ string Entities.Common.EdFi.ILocalActual.AccountIdentifier // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] [DataMember(Name="asOfDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(2)] public DateTime AsOfDate { get; set; } /// @@ -101900,6 +105633,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-922337203685477.5808", "922337203685477.5807", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="amount")] + [Key(3)] public decimal Amount { get => _amount; @@ -101917,7 +105651,15 @@ public decimal Amount // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="financialCollectionDescriptor")][DescriptorExists("FinancialCollectionDescriptor")] + [IgnoreMember] public string FinancialCollectionDescriptor { get; set; } + + [Key(4)][JsonIgnore] + public int FinancialCollectionDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("FinancialCollectionDescriptor", FinancialCollectionDescriptor); } + set { FinancialCollectionDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("FinancialCollectionDescriptor", value); } + } // ------------------------------------------------------------- IEnumerable IHasRequiredMembersWithMeaningfulDefaultValues.GetUnassignedMemberNames() @@ -101947,6 +105689,7 @@ IEnumerable IHasRequiredMembersWithMeaningfulDefaultValues.GetUnassigned // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "LocalActual", "LocalActual")] + [Key(5)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -101960,9 +105703,11 @@ IEnumerable IHasRequiredMembersWithMeaningfulDefaultValues.GetUnassigned // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(6)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(7)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -102108,36 +105853,45 @@ namespace EdFi.Ods.Api.Common.Models.Resources.LocalBudget.EdFi /// /// Represents a reference to the LocalBudget resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class LocalBudgetReference : IResourceReference { [DataMember(Name="accountIdentifier")] + [Key(0)] public string AccountIdentifier { get; set; } [DataMember(Name="asOfDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(1)] public DateTime AsOfDate { get; set; } [DataMember(Name="educationOrganizationId")] + [Key(2)] public long EducationOrganizationId { get; set; } [DataMember(Name="fiscalYear")] + [Key(3)] public int FiscalYear { get; set; } /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(4)] 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. /// + [Key(5)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(6)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -102221,7 +105975,7 @@ private Link CreateLink() /// /// A class which represents the edfi.LocalBudget table of the LocalBudget aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] [NoUnsuppliedRequiredMembersWithMeaningfulDefaults] public class LocalBudget : Entities.Common.EdFi.ILocalBudget, IHasETag, IDateVersionedEntity, IHasRequiredMembersWithMeaningfulDefaultValues, IValidatableObject @@ -102251,6 +106005,7 @@ public class LocalBudget : Entities.Common.EdFi.ILocalBudget, IHasETag, IDateVer /// The unique identifier for the LocalBudget resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -102274,6 +106029,7 @@ private LocalAccount.EdFi.LocalAccountReference ImplicitLocalAccountReference } [DataMember(Name="localAccountReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public LocalAccount.EdFi.LocalAccountReference LocalAccountReference { @@ -102329,6 +106085,7 @@ string Entities.Common.EdFi.ILocalBudget.AccountIdentifier // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] [DataMember(Name="asOfDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(2)] public DateTime AsOfDate { get; set; } /// @@ -102470,6 +106227,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-922337203685477.5808", "922337203685477.5807", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="amount")] + [Key(3)] public decimal Amount { get => _amount; @@ -102487,7 +106245,15 @@ public decimal Amount // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="financialCollectionDescriptor")][DescriptorExists("FinancialCollectionDescriptor")] + [IgnoreMember] public string FinancialCollectionDescriptor { get; set; } + + [Key(4)][JsonIgnore] + public int FinancialCollectionDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("FinancialCollectionDescriptor", FinancialCollectionDescriptor); } + set { FinancialCollectionDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("FinancialCollectionDescriptor", value); } + } // ------------------------------------------------------------- IEnumerable IHasRequiredMembersWithMeaningfulDefaultValues.GetUnassignedMemberNames() @@ -102517,6 +106283,7 @@ IEnumerable IHasRequiredMembersWithMeaningfulDefaultValues.GetUnassigned // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "LocalBudget", "LocalBudget")] + [Key(5)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -102530,9 +106297,11 @@ IEnumerable IHasRequiredMembersWithMeaningfulDefaultValues.GetUnassigned // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(6)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(7)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -102678,20 +106447,24 @@ namespace EdFi.Ods.Api.Common.Models.Resources.LocalContractedStaff.EdFi /// /// Represents a reference to the LocalContractedStaff resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class LocalContractedStaffReference : IResourceReference { [DataMember(Name="accountIdentifier")] + [Key(0)] public string AccountIdentifier { get; set; } [DataMember(Name="asOfDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(1)] public DateTime AsOfDate { get; set; } [DataMember(Name="educationOrganizationId")] + [Key(2)] public long EducationOrganizationId { get; set; } [DataMember(Name="fiscalYear")] + [Key(3)] public int FiscalYear { get; set; } [DataMember(Name="staffUniqueId")] @@ -102709,17 +106482,22 @@ public string StaffUniqueId /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(4)] 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. /// + [Key(5)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(6)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -102808,7 +106586,7 @@ private Link CreateLink() /// /// A class which represents the edfi.LocalContractedStaff table of the LocalContractedStaff aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] [NoUnsuppliedRequiredMembersWithMeaningfulDefaults] public class LocalContractedStaff : Entities.Common.EdFi.ILocalContractedStaff, IHasETag, IDateVersionedEntity, IHasRequiredMembersWithMeaningfulDefaultValues, IValidatableObject @@ -102838,6 +106616,7 @@ public class LocalContractedStaff : Entities.Common.EdFi.ILocalContractedStaff, /// The unique identifier for the LocalContractedStaff resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -102861,6 +106640,7 @@ private LocalAccount.EdFi.LocalAccountReference ImplicitLocalAccountReference } [DataMember(Name="localAccountReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public LocalAccount.EdFi.LocalAccountReference LocalAccountReference { @@ -102894,6 +106674,7 @@ private Staff.EdFi.StaffReference ImplicitStaffReference } [DataMember(Name="staffReference")] + [Key(2)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Staff.EdFi.StaffReference StaffReference { @@ -102949,6 +106730,7 @@ string Entities.Common.EdFi.ILocalContractedStaff.AccountIdentifier // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] [DataMember(Name="asOfDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime AsOfDate { get; set; } /// @@ -103124,6 +106906,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-922337203685477.5808", "922337203685477.5807", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="amount")] + [Key(4)] public decimal Amount { get => _amount; @@ -103141,7 +106924,15 @@ public decimal Amount // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="financialCollectionDescriptor")][DescriptorExists("FinancialCollectionDescriptor")] + [IgnoreMember] public string FinancialCollectionDescriptor { get; set; } + + [Key(5)][JsonIgnore] + public int FinancialCollectionDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("FinancialCollectionDescriptor", FinancialCollectionDescriptor); } + set { FinancialCollectionDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("FinancialCollectionDescriptor", value); } + } // ------------------------------------------------------------- IEnumerable IHasRequiredMembersWithMeaningfulDefaultValues.GetUnassignedMemberNames() @@ -103171,6 +106962,7 @@ IEnumerable IHasRequiredMembersWithMeaningfulDefaultValues.GetUnassigned // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "LocalContractedStaff", "LocalContractedStaff")] + [Key(6)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -103184,9 +106976,11 @@ IEnumerable IHasRequiredMembersWithMeaningfulDefaultValues.GetUnassigned // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -103346,7 +107140,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.LocaleDescriptor.EdFi /// /// A class which represents the edfi.LocaleDescriptor table of the LocaleDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class LocaleDescriptor : Entities.Common.EdFi.ILocaleDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -103375,6 +107169,7 @@ public class LocaleDescriptor : Entities.Common.EdFi.ILocaleDescriptor, Entities /// The unique identifier for the LocaleDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -103459,6 +107254,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -103467,6 +107263,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -103474,6 +107271,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -103481,6 +107279,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -103490,6 +107289,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -103499,6 +107299,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -103542,9 +107343,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -103617,21 +107420,26 @@ namespace EdFi.Ods.Api.Common.Models.Resources.LocalEducationAgency.EdFi /// /// Represents a reference to the LocalEducationAgency resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class LocalEducationAgencyReference : IResourceReference { [DataMember(Name="localEducationAgencyId")] + [Key(0)] public long LocalEducationAgencyId { get; set; } /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(1)] public Guid ResourceId { get; set; } - private Link _link; + [JsonIgnore] + [Key(2)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -103681,7 +107489,7 @@ private Link CreateLink() /// /// A class which represents the edfi.LocalEducationAgency table of the LocalEducationAgency aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class LocalEducationAgency : Entities.Common.EdFi.ILocalEducationAgency, Entities.Common.EdFi.IEducationOrganization, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -103723,6 +107531,7 @@ public LocalEducationAgency() /// The unique identifier for the LocalEducationAgency resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -103746,6 +107555,7 @@ private EducationServiceCenter.EdFi.EducationServiceCenterReference ImplicitEduc } [DataMember(Name="educationServiceCenterReference")] + [Key(1)] [FullyDefinedReference] public EducationServiceCenter.EdFi.EducationServiceCenterReference EducationServiceCenterReference { @@ -103779,6 +107589,7 @@ private LocalEducationAgencyReference ImplicitParentLocalEducationAgencyReferenc } [DataMember(Name="parentLocalEducationAgencyReference")] + [Key(2)] [FullyDefinedReference] public LocalEducationAgencyReference ParentLocalEducationAgencyReference { @@ -103812,6 +107623,7 @@ private StateEducationAgency.EdFi.StateEducationAgencyReference ImplicitStateEdu } [DataMember(Name="stateEducationAgencyReference")] + [Key(3)] [FullyDefinedReference] public StateEducationAgency.EdFi.StateEducationAgencyReference StateEducationAgencyReference { @@ -103841,7 +107653,7 @@ public StateEducationAgency.EdFi.StateEducationAgencyReference StateEducationAge /// // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] - [DataMember(Name="localEducationAgencyId")] + [DataMember(Name="localEducationAgencyId"),Key(4)] public long LocalEducationAgencyId { get; set; } long IEducationOrganization.EducationOrganizationId @@ -103908,6 +107720,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="nameOfInstitution")] + [Key(5)] public string NameOfInstitution { get; set; } /// @@ -103916,14 +107729,23 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="operationalStatusDescriptor")][DescriptorExists("OperationalStatusDescriptor")] + [IgnoreMember] public string OperationalStatusDescriptor { get; set; } + [Key(6)][JsonIgnore] + public int OperationalStatusDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("OperationalStatusDescriptor", OperationalStatusDescriptor); } + set { OperationalStatusDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("OperationalStatusDescriptor", value); } + } + /// /// A short name for the institution. /// // NOT in a reference, NOT a lookup column [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortNameOfInstitution")] + [Key(7)] public string ShortNameOfInstitution { get; set; } /// @@ -103932,6 +107754,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(255, MinimumLength=5, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText] [DataMember(Name="webSite")] + [Key(8)] public string WebSite { get; set; } // ------------------------------------------------------------- @@ -103945,8 +107768,16 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="charterStatusDescriptor")][DescriptorExists("CharterStatusDescriptor")] + [IgnoreMember] public string CharterStatusDescriptor { get; set; } + [Key(9)][JsonIgnore] + public int CharterStatusDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("CharterStatusDescriptor", CharterStatusDescriptor); } + set { CharterStatusDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("CharterStatusDescriptor", value); } + } + /// /// The identifier assigned to an education service center. It must be distinct from any other identifier assigned to educational organizations, such as a LocalEducationAgencyId, to prevent duplication. /// @@ -103981,8 +107812,16 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="localEducationAgencyCategoryDescriptor")][DescriptorExists("LocalEducationAgencyCategoryDescriptor")] + [IgnoreMember] public string LocalEducationAgencyCategoryDescriptor { get; set; } + [Key(10)][JsonIgnore] + public int LocalEducationAgencyCategoryDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("LocalEducationAgencyCategoryDescriptor", LocalEducationAgencyCategoryDescriptor); } + set { LocalEducationAgencyCategoryDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("LocalEducationAgencyCategoryDescriptor", value); } + } + /// /// The identifier assigned to a local education agency. It must be distinct from any other identifier assigned to educational organizations, such as a SchoolId, to prevent duplication. /// @@ -104056,6 +107895,7 @@ public override int GetHashCode() [NoDuplicateMembers] [DataMember(Name="addresses")] + [Key(11)] public ICollection EducationOrganizationAddresses { get { return _educationOrganizationAddresses; } @@ -104077,6 +107917,7 @@ public ICollection Educ [NoDuplicateMembers][RequiredCollection] [DataMember(Name="categories")] + [Key(12)] public ICollection EducationOrganizationCategories { get { return _educationOrganizationCategories; } @@ -104098,6 +107939,7 @@ public ICollection Edu [NoDuplicateMembers] [DataMember(Name="identificationCodes")] + [Key(13)] public ICollection EducationOrganizationIdentificationCodes { get { return _educationOrganizationIdentificationCodes; } @@ -104119,6 +107961,7 @@ public ICollection EducationOrganizationIndicators { get { return _educationOrganizationIndicators; } @@ -104140,6 +107983,7 @@ public ICollection Ed [NoDuplicateMembers] [DataMember(Name="institutionTelephones")] + [Key(15)] public ICollection EducationOrganizationInstitutionTelephones { get { return _educationOrganizationInstitutionTelephones; } @@ -104161,6 +108005,7 @@ public ICollection EducationOrganizationInternationalAddresses { get { return _educationOrganizationInternationalAddresses; } @@ -104183,6 +108028,7 @@ public ICollection LocalEducationAgencyAccountabilities { get { return _localEducationAgencyAccountabilities; } @@ -104224,6 +108071,7 @@ public ICollection LocalEducationAgencyAccou [NoDuplicateMembers] [DataMember(Name="federalFunds")] + [Key(19)] public ICollection LocalEducationAgencyFederalFunds { get { return _localEducationAgencyFederalFunds; } @@ -104256,9 +108104,11 @@ public ICollection LocalEducationAgencyFederal // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(20)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(21)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -104659,7 +108509,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.LocalEducationAgencyAccountability table of the LocalEducationAgency aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class LocalEducationAgencyAccountability : Entities.Common.EdFi.ILocalEducationAgencyAccountability, IValidatableObject { @@ -104704,6 +108554,7 @@ private SchoolYearType.EdFi.SchoolYearTypeReference ImplicitSchoolYearTypeRefere } [DataMember(Name="schoolYearTypeReference")] + [Key(0)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public SchoolYearType.EdFi.SchoolYearTypeReference SchoolYearTypeReference { @@ -104736,6 +108587,7 @@ Entities.Common.EdFi.ILocalEducationAgency ILocalEducationAgencyAccountability.L set { SetLocalEducationAgency(value); } } + [IgnoreMember] public Entities.Common.EdFi.ILocalEducationAgency LocalEducationAgency { set { SetLocalEducationAgency(value); } @@ -104839,15 +108691,31 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="gunFreeSchoolsActReportingStatusDescriptor")][DescriptorExists("GunFreeSchoolsActReportingStatusDescriptor")] + [IgnoreMember] public string GunFreeSchoolsActReportingStatusDescriptor { get; set; } + [Key(1)][JsonIgnore] + public int GunFreeSchoolsActReportingStatusDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("GunFreeSchoolsActReportingStatusDescriptor", GunFreeSchoolsActReportingStatusDescriptor); } + set { GunFreeSchoolsActReportingStatusDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("GunFreeSchoolsActReportingStatusDescriptor", value); } + } + /// /// An indication of whether the LEA was able to implement the provisions for public school choice under Title I, Part A, Section 1116 of ESEA as amended. /// // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="schoolChoiceImplementStatusDescriptor")][DescriptorExists("SchoolChoiceImplementStatusDescriptor")] + [IgnoreMember] public string SchoolChoiceImplementStatusDescriptor { get; set; } + + [Key(2)][JsonIgnore] + public int SchoolChoiceImplementStatusDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("SchoolChoiceImplementStatusDescriptor", SchoolChoiceImplementStatusDescriptor); } + set { SchoolChoiceImplementStatusDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("SchoolChoiceImplementStatusDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -104869,6 +108737,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "LocalEducationAgency", "LocalEducationAgencyAccountability")] + [Key(3)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -105012,7 +108881,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.LocalEducationAgencyFederalFunds table of the LocalEducationAgency aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class LocalEducationAgencyFederalFunds : Entities.Common.EdFi.ILocalEducationAgencyFederalFunds, IValidatableObject { @@ -105055,6 +108924,7 @@ Entities.Common.EdFi.ILocalEducationAgency ILocalEducationAgencyFederalFunds.Loc set { SetLocalEducationAgency(value); } } + [IgnoreMember] public Entities.Common.EdFi.ILocalEducationAgency LocalEducationAgency { set { SetLocalEducationAgency(value); } @@ -105071,6 +108941,7 @@ private void SetLocalEducationAgency(Entities.Common.EdFi.ILocalEducationAgency // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] [DataMember(Name="fiscalYear")] + [Key(0)] public int FiscalYear { get; set; } // ------------------------------------------------------------- @@ -105142,6 +109013,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-922337203685477.5808", "922337203685477.5807", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="innovativeDollarsSpent")] + [Key(1)] public decimal? InnovativeDollarsSpent { get; set; } /// @@ -105150,6 +109022,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-922337203685477.5808", "922337203685477.5807", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="innovativeDollarsSpentStrategicPriorities")] + [Key(2)] public decimal? InnovativeDollarsSpentStrategicPriorities { get; set; } /// @@ -105158,6 +109031,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-922337203685477.5808", "922337203685477.5807", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="innovativeProgramsFundsReceived")] + [Key(3)] public decimal? InnovativeProgramsFundsReceived { get; set; } /// @@ -105166,6 +109040,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-922337203685477.5808", "922337203685477.5807", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="schoolImprovementAllocation")] + [Key(4)] public decimal? SchoolImprovementAllocation { get; set; } /// @@ -105174,6 +109049,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-9.9999", "9.9999", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="schoolImprovementReservedFundsPercentage")] + [Key(5)] public decimal? SchoolImprovementReservedFundsPercentage { get; set; } /// @@ -105182,6 +109058,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-9.9999", "9.9999", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="stateAssessmentAdministrationFunding")] + [Key(6)] public decimal? StateAssessmentAdministrationFunding { get; set; } /// @@ -105190,6 +109067,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-922337203685477.5808", "922337203685477.5807", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="supplementalEducationalServicesFundsSpent")] + [Key(7)] public decimal? SupplementalEducationalServicesFundsSpent { get; set; } /// @@ -105198,6 +109076,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-922337203685477.5808", "922337203685477.5807", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="supplementalEducationalServicesPerPupilExpenditure")] + [Key(8)] public decimal? SupplementalEducationalServicesPerPupilExpenditure { get; set; } // ------------------------------------------------------------- @@ -105220,6 +109099,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "LocalEducationAgency", "LocalEducationAgencyFederalFunds")] + [Key(9)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -105361,7 +109241,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.LocalEducationAgencyCategoryDescr /// /// A class which represents the edfi.LocalEducationAgencyCategoryDescriptor table of the LocalEducationAgencyCategoryDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class LocalEducationAgencyCategoryDescriptor : Entities.Common.EdFi.ILocalEducationAgencyCategoryDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -105390,6 +109270,7 @@ public class LocalEducationAgencyCategoryDescriptor : Entities.Common.EdFi.ILoca /// The unique identifier for the LocalEducationAgencyCategoryDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -105474,6 +109355,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -105482,6 +109364,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -105489,6 +109372,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -105496,6 +109380,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -105505,6 +109390,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -105514,6 +109400,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -105557,9 +109444,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -105632,36 +109521,45 @@ namespace EdFi.Ods.Api.Common.Models.Resources.LocalEncumbrance.EdFi /// /// Represents a reference to the LocalEncumbrance resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class LocalEncumbranceReference : IResourceReference { [DataMember(Name="accountIdentifier")] + [Key(0)] public string AccountIdentifier { get; set; } [DataMember(Name="asOfDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(1)] public DateTime AsOfDate { get; set; } [DataMember(Name="educationOrganizationId")] + [Key(2)] public long EducationOrganizationId { get; set; } [DataMember(Name="fiscalYear")] + [Key(3)] public int FiscalYear { get; set; } /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(4)] 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. /// + [Key(5)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(6)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -105745,7 +109643,7 @@ private Link CreateLink() /// /// A class which represents the edfi.LocalEncumbrance table of the LocalEncumbrance aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] [NoUnsuppliedRequiredMembersWithMeaningfulDefaults] public class LocalEncumbrance : Entities.Common.EdFi.ILocalEncumbrance, IHasETag, IDateVersionedEntity, IHasRequiredMembersWithMeaningfulDefaultValues, IValidatableObject @@ -105775,6 +109673,7 @@ public class LocalEncumbrance : Entities.Common.EdFi.ILocalEncumbrance, IHasETag /// The unique identifier for the LocalEncumbrance resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -105798,6 +109697,7 @@ private LocalAccount.EdFi.LocalAccountReference ImplicitLocalAccountReference } [DataMember(Name="localAccountReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public LocalAccount.EdFi.LocalAccountReference LocalAccountReference { @@ -105853,6 +109753,7 @@ string Entities.Common.EdFi.ILocalEncumbrance.AccountIdentifier // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] [DataMember(Name="asOfDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(2)] public DateTime AsOfDate { get; set; } /// @@ -105994,6 +109895,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-922337203685477.5808", "922337203685477.5807", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="amount")] + [Key(3)] public decimal Amount { get => _amount; @@ -106011,7 +109913,15 @@ public decimal Amount // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="financialCollectionDescriptor")][DescriptorExists("FinancialCollectionDescriptor")] + [IgnoreMember] public string FinancialCollectionDescriptor { get; set; } + + [Key(4)][JsonIgnore] + public int FinancialCollectionDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("FinancialCollectionDescriptor", FinancialCollectionDescriptor); } + set { FinancialCollectionDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("FinancialCollectionDescriptor", value); } + } // ------------------------------------------------------------- IEnumerable IHasRequiredMembersWithMeaningfulDefaultValues.GetUnassignedMemberNames() @@ -106041,6 +109951,7 @@ IEnumerable IHasRequiredMembersWithMeaningfulDefaultValues.GetUnassigned // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "LocalEncumbrance", "LocalEncumbrance")] + [Key(5)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -106054,9 +109965,11 @@ IEnumerable IHasRequiredMembersWithMeaningfulDefaultValues.GetUnassigned // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(6)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(7)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -106202,20 +110115,24 @@ namespace EdFi.Ods.Api.Common.Models.Resources.LocalPayroll.EdFi /// /// Represents a reference to the LocalPayroll resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class LocalPayrollReference : IResourceReference { [DataMember(Name="accountIdentifier")] + [Key(0)] public string AccountIdentifier { get; set; } [DataMember(Name="asOfDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(1)] public DateTime AsOfDate { get; set; } [DataMember(Name="educationOrganizationId")] + [Key(2)] public long EducationOrganizationId { get; set; } [DataMember(Name="fiscalYear")] + [Key(3)] public int FiscalYear { get; set; } [DataMember(Name="staffUniqueId")] @@ -106233,17 +110150,22 @@ public string StaffUniqueId /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(4)] 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. /// + [Key(5)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(6)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -106332,7 +110254,7 @@ private Link CreateLink() /// /// A class which represents the edfi.LocalPayroll table of the LocalPayroll aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] [NoUnsuppliedRequiredMembersWithMeaningfulDefaults] public class LocalPayroll : Entities.Common.EdFi.ILocalPayroll, IHasETag, IDateVersionedEntity, IHasRequiredMembersWithMeaningfulDefaultValues, IValidatableObject @@ -106362,6 +110284,7 @@ public class LocalPayroll : Entities.Common.EdFi.ILocalPayroll, IHasETag, IDateV /// The unique identifier for the LocalPayroll resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -106385,6 +110308,7 @@ private LocalAccount.EdFi.LocalAccountReference ImplicitLocalAccountReference } [DataMember(Name="localAccountReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public LocalAccount.EdFi.LocalAccountReference LocalAccountReference { @@ -106418,6 +110342,7 @@ private Staff.EdFi.StaffReference ImplicitStaffReference } [DataMember(Name="staffReference")] + [Key(2)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Staff.EdFi.StaffReference StaffReference { @@ -106473,6 +110398,7 @@ string Entities.Common.EdFi.ILocalPayroll.AccountIdentifier // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] [DataMember(Name="asOfDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime AsOfDate { get; set; } /// @@ -106648,6 +110574,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-922337203685477.5808", "922337203685477.5807", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="amount")] + [Key(4)] public decimal Amount { get => _amount; @@ -106665,7 +110592,15 @@ public decimal Amount // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="financialCollectionDescriptor")][DescriptorExists("FinancialCollectionDescriptor")] + [IgnoreMember] public string FinancialCollectionDescriptor { get; set; } + + [Key(5)][JsonIgnore] + public int FinancialCollectionDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("FinancialCollectionDescriptor", FinancialCollectionDescriptor); } + set { FinancialCollectionDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("FinancialCollectionDescriptor", value); } + } // ------------------------------------------------------------- IEnumerable IHasRequiredMembersWithMeaningfulDefaultValues.GetUnassignedMemberNames() @@ -106695,6 +110630,7 @@ IEnumerable IHasRequiredMembersWithMeaningfulDefaultValues.GetUnassigned // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "LocalPayroll", "LocalPayroll")] + [Key(6)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -106708,9 +110644,11 @@ IEnumerable IHasRequiredMembersWithMeaningfulDefaultValues.GetUnassigned // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -106870,30 +110808,37 @@ namespace EdFi.Ods.Api.Common.Models.Resources.Location.EdFi /// /// Represents a reference to the Location resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class LocationReference : IResourceReference { [DataMember(Name="classroomIdentificationCode")] + [Key(0)] public string ClassroomIdentificationCode { get; set; } [DataMember(Name="schoolId")] + [Key(1)] public long SchoolId { get; set; } /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(2)] 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. /// + [Key(3)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(4)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -106967,7 +110912,7 @@ private Link CreateLink() /// /// A class which represents the edfi.Location table of the Location aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class Location : Entities.Common.EdFi.ILocation, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -106996,6 +110941,7 @@ public class Location : Entities.Common.EdFi.ILocation, IHasETag, IDateVersioned /// The unique identifier for the Location resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -107019,6 +110965,7 @@ private School.EdFi.SchoolReference ImplicitSchoolReference } [DataMember(Name="schoolReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public School.EdFi.SchoolReference SchoolReference { @@ -107050,6 +110997,7 @@ public School.EdFi.SchoolReference SchoolReference [RequiredWithNonDefault] [NonDefaultStringLength(60, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="classroomIdentificationCode")] + [Key(2)] public string ClassroomIdentificationCode { get; set; } /// @@ -107146,6 +111094,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="maximumNumberOfSeats")] + [Key(3)] public int? MaximumNumberOfSeats { get; set; } /// @@ -107153,6 +111102,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="optimalNumberOfSeats")] + [Key(4)] public int? OptimalNumberOfSeats { get; set; } // ------------------------------------------------------------- @@ -107175,6 +111125,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "Location", "Location")] + [Key(5)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -107188,9 +111139,11 @@ public override int GetHashCode() // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(6)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(7)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -107329,7 +111282,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.MagnetSpecialProgramEmphasisSchoo /// /// A class which represents the edfi.MagnetSpecialProgramEmphasisSchoolDescriptor table of the MagnetSpecialProgramEmphasisSchoolDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class MagnetSpecialProgramEmphasisSchoolDescriptor : Entities.Common.EdFi.IMagnetSpecialProgramEmphasisSchoolDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -107358,6 +111311,7 @@ public class MagnetSpecialProgramEmphasisSchoolDescriptor : Entities.Common.EdFi /// The unique identifier for the MagnetSpecialProgramEmphasisSchoolDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -107442,6 +111396,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -107450,6 +111405,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -107457,6 +111413,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -107464,6 +111421,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -107473,6 +111431,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -107482,6 +111441,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -107525,9 +111485,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -107600,7 +111562,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.MediumOfInstructionDescriptor.EdF /// /// A class which represents the edfi.MediumOfInstructionDescriptor table of the MediumOfInstructionDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class MediumOfInstructionDescriptor : Entities.Common.EdFi.IMediumOfInstructionDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -107629,6 +111591,7 @@ public class MediumOfInstructionDescriptor : Entities.Common.EdFi.IMediumOfInstr /// The unique identifier for the MediumOfInstructionDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -107713,6 +111676,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -107721,6 +111685,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -107728,6 +111693,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -107735,6 +111701,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -107744,6 +111711,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -107753,6 +111721,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -107796,9 +111765,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -107871,7 +111842,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.MethodCreditEarnedDescriptor.EdFi /// /// A class which represents the edfi.MethodCreditEarnedDescriptor table of the MethodCreditEarnedDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class MethodCreditEarnedDescriptor : Entities.Common.EdFi.IMethodCreditEarnedDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -107900,6 +111871,7 @@ public class MethodCreditEarnedDescriptor : Entities.Common.EdFi.IMethodCreditEa /// The unique identifier for the MethodCreditEarnedDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -107984,6 +111956,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -107992,6 +111965,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -107999,6 +111973,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -108006,6 +111981,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -108015,6 +111991,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -108024,6 +112001,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -108067,9 +112045,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -108142,7 +112122,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.MigrantEducationProgramServiceDes /// /// A class which represents the edfi.MigrantEducationProgramServiceDescriptor table of the MigrantEducationProgramServiceDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class MigrantEducationProgramServiceDescriptor : Entities.Common.EdFi.IMigrantEducationProgramServiceDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -108171,6 +112151,7 @@ public class MigrantEducationProgramServiceDescriptor : Entities.Common.EdFi.IMi /// The unique identifier for the MigrantEducationProgramServiceDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -108255,6 +112236,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -108263,6 +112245,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -108270,6 +112253,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -108277,6 +112261,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -108286,6 +112271,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -108295,6 +112281,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -108338,9 +112325,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -108413,7 +112402,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.ModelEntityDescriptor.EdFi /// /// A class which represents the edfi.ModelEntityDescriptor table of the ModelEntityDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class ModelEntityDescriptor : Entities.Common.EdFi.IModelEntityDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -108442,6 +112431,7 @@ public class ModelEntityDescriptor : Entities.Common.EdFi.IModelEntityDescriptor /// The unique identifier for the ModelEntityDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -108526,6 +112516,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -108534,6 +112525,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -108541,6 +112533,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -108548,6 +112541,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -108557,6 +112551,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -108566,6 +112561,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -108609,9 +112605,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -108684,7 +112682,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.MonitoredDescriptor.EdFi /// /// A class which represents the edfi.MonitoredDescriptor table of the MonitoredDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class MonitoredDescriptor : Entities.Common.EdFi.IMonitoredDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -108713,6 +112711,7 @@ public class MonitoredDescriptor : Entities.Common.EdFi.IMonitoredDescriptor, En /// The unique identifier for the MonitoredDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -108797,6 +112796,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -108805,6 +112805,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -108812,6 +112813,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -108819,6 +112821,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -108828,6 +112831,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -108837,6 +112841,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -108880,9 +112885,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -108955,7 +112962,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.NeglectedOrDelinquentProgramDescr /// /// A class which represents the edfi.NeglectedOrDelinquentProgramDescriptor table of the NeglectedOrDelinquentProgramDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class NeglectedOrDelinquentProgramDescriptor : Entities.Common.EdFi.INeglectedOrDelinquentProgramDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -108984,6 +112991,7 @@ public class NeglectedOrDelinquentProgramDescriptor : Entities.Common.EdFi.INegl /// The unique identifier for the NeglectedOrDelinquentProgramDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -109068,6 +113076,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -109076,6 +113085,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -109083,6 +113093,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -109090,6 +113101,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -109099,6 +113111,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -109108,6 +113121,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -109151,9 +113165,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -109226,7 +113242,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.NeglectedOrDelinquentProgramServi /// /// A class which represents the edfi.NeglectedOrDelinquentProgramServiceDescriptor table of the NeglectedOrDelinquentProgramServiceDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class NeglectedOrDelinquentProgramServiceDescriptor : Entities.Common.EdFi.INeglectedOrDelinquentProgramServiceDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -109255,6 +113271,7 @@ public class NeglectedOrDelinquentProgramServiceDescriptor : Entities.Common.EdF /// The unique identifier for the NeglectedOrDelinquentProgramServiceDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -109339,6 +113356,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -109347,6 +113365,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -109354,6 +113373,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -109361,6 +113381,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -109370,6 +113391,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -109379,6 +113401,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -109422,9 +113445,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -109497,7 +113522,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.NetworkPurposeDescriptor.EdFi /// /// A class which represents the edfi.NetworkPurposeDescriptor table of the NetworkPurposeDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class NetworkPurposeDescriptor : Entities.Common.EdFi.INetworkPurposeDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -109526,6 +113551,7 @@ public class NetworkPurposeDescriptor : Entities.Common.EdFi.INetworkPurposeDesc /// The unique identifier for the NetworkPurposeDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -109610,6 +113636,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -109618,6 +113645,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -109625,6 +113653,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -109632,6 +113661,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -109641,6 +113671,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -109650,6 +113681,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -109693,9 +113725,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -109768,7 +113802,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.NonMedicalImmunizationExemptionDe /// /// A class which represents the edfi.NonMedicalImmunizationExemptionDescriptor table of the NonMedicalImmunizationExemptionDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class NonMedicalImmunizationExemptionDescriptor : Entities.Common.EdFi.INonMedicalImmunizationExemptionDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -109797,6 +113831,7 @@ public class NonMedicalImmunizationExemptionDescriptor : Entities.Common.EdFi.IN /// The unique identifier for the NonMedicalImmunizationExemptionDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -109881,6 +113916,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -109889,6 +113925,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -109896,6 +113933,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -109903,6 +113941,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -109912,6 +113951,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -109921,6 +113961,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -109964,9 +114005,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -110039,30 +114082,37 @@ namespace EdFi.Ods.Api.Common.Models.Resources.ObjectDimension.EdFi /// /// Represents a reference to the ObjectDimension resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class ObjectDimensionReference : IResourceReference { [DataMember(Name="code")] + [Key(0)] public string Code { get; set; } [DataMember(Name="fiscalYear")] + [Key(1)] public int FiscalYear { get; set; } /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(2)] 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. /// + [Key(3)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(4)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -110136,7 +114186,7 @@ private Link CreateLink() /// /// A class which represents the edfi.ObjectDimension table of the ObjectDimension aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] [NoUnsuppliedRequiredMembersWithMeaningfulDefaults] public class ObjectDimension : Entities.Common.EdFi.IObjectDimension, IHasETag, IDateVersionedEntity, IHasRequiredMembersWithMeaningfulDefaultValues, IValidatableObject @@ -110170,6 +114220,7 @@ public ObjectDimension() /// The unique identifier for the ObjectDimension resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -110190,6 +114241,7 @@ public ObjectDimension() [RequiredWithNonDefault] [NonDefaultStringLength(16, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="code")] + [Key(1)] public string Code { get; set; } private bool _fiscalYearExplicitlyAssigned = false; @@ -110201,6 +114253,7 @@ public ObjectDimension() // NOT in a reference, NOT a lookup column [Range(2020, 2040, ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="fiscalYear")] + [Key(2)] public int FiscalYear { get => _fiscalYear; @@ -110283,6 +114336,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(100, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeName")] + [Key(3)] public string CodeName { get; set; } // ------------------------------------------------------------- @@ -110313,6 +114367,7 @@ IEnumerable IHasRequiredMembersWithMeaningfulDefaultValues.GetUnassigned // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "ObjectDimension", "ObjectDimension")] + [Key(4)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -110324,6 +114379,7 @@ IEnumerable IHasRequiredMembersWithMeaningfulDefaultValues.GetUnassigned [NoDuplicateMembers] [DataMember(Name="reportingTags")] + [Key(5)] public ICollection ObjectDimensionReportingTags { get { return _objectDimensionReportingTags; } @@ -110356,9 +114412,11 @@ public ICollection ObjectDimensionReportingTags // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(6)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(7)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -110535,7 +114593,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.ObjectDimensionReportingTag table of the ObjectDimension aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class ObjectDimensionReportingTag : Entities.Common.EdFi.IObjectDimensionReportingTag, IValidatableObject { @@ -110578,6 +114636,7 @@ Entities.Common.EdFi.IObjectDimension IObjectDimensionReportingTag.ObjectDimensi set { SetObjectDimension(value); } } + [IgnoreMember] public Entities.Common.EdFi.IObjectDimension ObjectDimension { set { SetObjectDimension(value); } @@ -110595,7 +114654,15 @@ private void SetObjectDimension(Entities.Common.EdFi.IObjectDimension value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="reportingTagDescriptor")][DescriptorExists("ReportingTagDescriptor")] + [IgnoreMember] public string ReportingTagDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int ReportingTagDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ReportingTagDescriptor", ReportingTagDescriptor); } + set { ReportingTagDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ReportingTagDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -110680,6 +114747,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "ObjectDimension", "ObjectDimensionReportingTag")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -110821,33 +114889,41 @@ namespace EdFi.Ods.Api.Common.Models.Resources.ObjectiveAssessment.EdFi /// /// Represents a reference to the ObjectiveAssessment resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class ObjectiveAssessmentReference : IResourceReference { [DataMember(Name="assessmentIdentifier")] + [Key(0)] public string AssessmentIdentifier { get; set; } [DataMember(Name="identificationCode")] + [Key(1)] public string IdentificationCode { get; set; } [DataMember(Name="namespace")] + [Key(2)] public string Namespace { get; set; } /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(3)] 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. /// + [Key(4)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(5)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -110926,7 +115002,7 @@ private Link CreateLink() /// /// A class which represents the edfi.ObjectiveAssessment table of the ObjectiveAssessment aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class ObjectiveAssessment : Entities.Common.EdFi.IObjectiveAssessment, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -110962,6 +115038,7 @@ public ObjectiveAssessment() /// The unique identifier for the ObjectiveAssessment resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -110985,6 +115062,7 @@ private Assessment.EdFi.AssessmentReference ImplicitAssessmentReference } [DataMember(Name="assessmentReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Assessment.EdFi.AssessmentReference AssessmentReference { @@ -111018,6 +115096,7 @@ private ObjectiveAssessmentReference ImplicitParentObjectiveAssessmentReference } [DataMember(Name="parentObjectiveAssessmentReference")] + [Key(2)] [FullyDefinedReference] public ObjectiveAssessmentReference ParentObjectiveAssessmentReference { @@ -111078,6 +115157,7 @@ string Entities.Common.EdFi.IObjectiveAssessment.AssessmentIdentifier [RequiredWithNonDefault] [NonDefaultStringLength(60, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="identificationCode")] + [Key(3)] public string IdentificationCode { get; set; } /// @@ -111187,14 +115267,23 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="academicSubjectDescriptor")][DescriptorExists("AcademicSubjectDescriptor")] + [IgnoreMember] public string AcademicSubjectDescriptor { get; set; } + [Key(4)][JsonIgnore] + public int AcademicSubjectDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("AcademicSubjectDescriptor", AcademicSubjectDescriptor); } + set { AcademicSubjectDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("AcademicSubjectDescriptor", value); } + } + /// /// The description of the objective assessment (e.g., vocabulary, measurement, or geometry). /// // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(5)] public string Description { get; set; } /// @@ -111203,6 +115292,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-9999999999.99999", "9999999999.99999", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="maxRawScore")] + [Key(6)] public decimal? MaxRawScore { get; set; } /// @@ -111211,6 +115301,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(100, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="nomenclature")] + [Key(7)] public string Nomenclature { get; set; } /// @@ -111246,6 +115337,7 @@ string Entities.Common.EdFi.IObjectiveAssessment.ParentIdentificationCode // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-9.9999", "9.9999", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="percentOfAssessment")] + [Key(8)] public decimal? PercentOfAssessment { get; set; } // ------------------------------------------------------------- @@ -111268,6 +115360,7 @@ string Entities.Common.EdFi.IObjectiveAssessment.ParentIdentificationCode // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "ObjectiveAssessment", "ObjectiveAssessment")] + [Key(9)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -111279,6 +115372,7 @@ string Entities.Common.EdFi.IObjectiveAssessment.ParentIdentificationCode [NoDuplicateMembers] [DataMember(Name="assessmentItems")] + [Key(10)] public ICollection ObjectiveAssessmentAssessmentItems { get { return _objectiveAssessmentAssessmentItems; } @@ -111309,6 +115403,7 @@ public ICollection ObjectiveAssessmentAssessm [NoDuplicateMembers] [DataMember(Name="learningStandards")] + [Key(11)] public ICollection ObjectiveAssessmentLearningStandards { get { return _objectiveAssessmentLearningStandards; } @@ -111339,6 +115434,7 @@ public ICollection ObjectiveAssessmentLearn [NoDuplicateMembers] [DataMember(Name="performanceLevels")] + [Key(12)] public ICollection ObjectiveAssessmentPerformanceLevels { get { return _objectiveAssessmentPerformanceLevels; } @@ -111369,6 +115465,7 @@ public ICollection ObjectiveAssessmentPerfo [NoDuplicateMembers] [DataMember(Name="scores")] + [Key(13)] public ICollection ObjectiveAssessmentScores { get { return _objectiveAssessmentScores; } @@ -111401,9 +115498,11 @@ public ICollection ObjectiveAssessmentScores // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(14)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(15)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -111766,7 +115865,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.ObjectiveAssessmentAssessmentItem table of the ObjectiveAssessment aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class ObjectiveAssessmentAssessmentItem : Entities.Common.EdFi.IObjectiveAssessmentAssessmentItem, IValidatableObject { @@ -111811,6 +115910,7 @@ private AssessmentItem.EdFi.AssessmentItemReference ImplicitAssessmentItemRefere } [DataMember(Name="assessmentItemReference")] + [Key(0)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public AssessmentItem.EdFi.AssessmentItemReference AssessmentItemReference { @@ -111843,6 +115943,7 @@ Entities.Common.EdFi.IObjectiveAssessment IObjectiveAssessmentAssessmentItem.Obj set { SetObjectiveAssessment(value); } } + [IgnoreMember] public Entities.Common.EdFi.IObjectiveAssessment ObjectiveAssessment { set { SetObjectiveAssessment(value); } @@ -111967,6 +116068,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "ObjectiveAssessment", "ObjectiveAssessmentAssessmentItem")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -112184,7 +116286,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.ObjectiveAssessmentLearningStandard table of the ObjectiveAssessment aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class ObjectiveAssessmentLearningStandard : Entities.Common.EdFi.IObjectiveAssessmentLearningStandard, IValidatableObject { @@ -112229,6 +116331,7 @@ private LearningStandard.EdFi.LearningStandardReference ImplicitLearningStandard } [DataMember(Name="learningStandardReference")] + [Key(0)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public LearningStandard.EdFi.LearningStandardReference LearningStandardReference { @@ -112261,6 +116364,7 @@ Entities.Common.EdFi.IObjectiveAssessment IObjectiveAssessmentLearningStandard.O set { SetObjectiveAssessment(value); } } + [IgnoreMember] public Entities.Common.EdFi.IObjectiveAssessment ObjectiveAssessment { set { SetObjectiveAssessment(value); } @@ -112378,6 +116482,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "ObjectiveAssessment", "ObjectiveAssessmentLearningStandard")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -112528,7 +116633,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.ObjectiveAssessmentPerformanceLevel table of the ObjectiveAssessment aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class ObjectiveAssessmentPerformanceLevel : Entities.Common.EdFi.IObjectiveAssessmentPerformanceLevel, IValidatableObject { @@ -112571,6 +116676,7 @@ Entities.Common.EdFi.IObjectiveAssessment IObjectiveAssessmentPerformanceLevel.O set { SetObjectiveAssessment(value); } } + [IgnoreMember] public Entities.Common.EdFi.IObjectiveAssessment ObjectiveAssessment { set { SetObjectiveAssessment(value); } @@ -112588,8 +116694,16 @@ private void SetObjectiveAssessment(Entities.Common.EdFi.IObjectiveAssessment va [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="assessmentReportingMethodDescriptor")][DescriptorExists("AssessmentReportingMethodDescriptor")] + [IgnoreMember] public string AssessmentReportingMethodDescriptor { get; set; } + [Key(0)][JsonIgnore] + public int AssessmentReportingMethodDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("AssessmentReportingMethodDescriptor", AssessmentReportingMethodDescriptor); } + set { AssessmentReportingMethodDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("AssessmentReportingMethodDescriptor", value); } + } + /// /// The performance level(s) defined for the assessment. /// @@ -112597,7 +116711,15 @@ private void SetObjectiveAssessment(Entities.Common.EdFi.IObjectiveAssessment va [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="performanceLevelDescriptor")][DescriptorExists("PerformanceLevelDescriptor")] + [IgnoreMember] public string PerformanceLevelDescriptor { get; set; } + + [Key(1)][JsonIgnore] + public int PerformanceLevelDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("PerformanceLevelDescriptor", PerformanceLevelDescriptor); } + set { PerformanceLevelDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("PerformanceLevelDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -112677,6 +116799,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(35, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="maximumScore")] + [Key(2)] public string MaximumScore { get; set; } /// @@ -112685,6 +116808,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(35, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="minimumScore")] + [Key(3)] public string MinimumScore { get; set; } /// @@ -112693,6 +116817,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(60, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="performanceLevelIndicatorName")] + [Key(4)] public string PerformanceLevelIndicatorName { get; set; } /// @@ -112701,7 +116826,15 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="resultDatatypeTypeDescriptor")][DescriptorExists("ResultDatatypeTypeDescriptor")] + [IgnoreMember] public string ResultDatatypeTypeDescriptor { get; set; } + + [Key(5)][JsonIgnore] + public int ResultDatatypeTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ResultDatatypeTypeDescriptor", ResultDatatypeTypeDescriptor); } + set { ResultDatatypeTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ResultDatatypeTypeDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -112723,6 +116856,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "ObjectiveAssessment", "ObjectiveAssessmentPerformanceLevel")] + [Key(6)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -112859,7 +116993,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.ObjectiveAssessmentScore table of the ObjectiveAssessment aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class ObjectiveAssessmentScore : Entities.Common.EdFi.IObjectiveAssessmentScore, IValidatableObject { @@ -112902,6 +117036,7 @@ Entities.Common.EdFi.IObjectiveAssessment IObjectiveAssessmentScore.ObjectiveAss set { SetObjectiveAssessment(value); } } + [IgnoreMember] public Entities.Common.EdFi.IObjectiveAssessment ObjectiveAssessment { set { SetObjectiveAssessment(value); } @@ -112919,7 +117054,15 @@ private void SetObjectiveAssessment(Entities.Common.EdFi.IObjectiveAssessment va [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="assessmentReportingMethodDescriptor")][DescriptorExists("AssessmentReportingMethodDescriptor")] + [IgnoreMember] public string AssessmentReportingMethodDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int AssessmentReportingMethodDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("AssessmentReportingMethodDescriptor", AssessmentReportingMethodDescriptor); } + set { AssessmentReportingMethodDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("AssessmentReportingMethodDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -112990,6 +117133,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(35, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="maximumScore")] + [Key(1)] public string MaximumScore { get; set; } /// @@ -112998,6 +117142,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(35, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="minimumScore")] + [Key(2)] public string MinimumScore { get; set; } /// @@ -113006,7 +117151,15 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="resultDatatypeTypeDescriptor")][DescriptorExists("ResultDatatypeTypeDescriptor")] + [IgnoreMember] public string ResultDatatypeTypeDescriptor { get; set; } + + [Key(3)][JsonIgnore] + public int ResultDatatypeTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ResultDatatypeTypeDescriptor", ResultDatatypeTypeDescriptor); } + set { ResultDatatypeTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ResultDatatypeTypeDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -113028,6 +117181,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "ObjectiveAssessment", "ObjectiveAssessmentScore")] + [Key(4)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -113169,30 +117323,37 @@ namespace EdFi.Ods.Api.Common.Models.Resources.OpenStaffPosition.EdFi /// /// Represents a reference to the OpenStaffPosition resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class OpenStaffPositionReference : IResourceReference { [DataMember(Name="educationOrganizationId")] + [Key(0)] public long EducationOrganizationId { get; set; } [DataMember(Name="requisitionNumber")] + [Key(1)] public string RequisitionNumber { get; set; } /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(2)] 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. /// + [Key(3)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(4)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -113266,7 +117427,7 @@ private Link CreateLink() /// /// A class which represents the edfi.OpenStaffPosition table of the OpenStaffPosition aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class OpenStaffPosition : Entities.Common.EdFi.IOpenStaffPosition, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -113300,6 +117461,7 @@ public OpenStaffPosition() /// The unique identifier for the OpenStaffPosition resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -113323,6 +117485,7 @@ private EducationOrganization.EdFi.EducationOrganizationReference ImplicitEducat } [DataMember(Name="educationOrganizationReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public EducationOrganization.EdFi.EducationOrganizationReference EducationOrganizationReference { @@ -113379,6 +117542,7 @@ long Entities.Common.EdFi.IOpenStaffPosition.EducationOrganizationId [RequiredWithNonDefault] [NonDefaultStringLength(20, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="requisitionNumber")] + [Key(2)] public string RequisitionNumber { get; set; } // ------------------------------------------------------------- @@ -113451,6 +117615,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] [DataMember(Name="datePosted")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime DatePosted { get; set; } /// @@ -113458,6 +117623,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="datePostingRemoved")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? DatePostingRemoved { get; set; } /// @@ -113467,14 +117633,23 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="employmentStatusDescriptor")][DescriptorExists("EmploymentStatusDescriptor")] + [IgnoreMember] public string EmploymentStatusDescriptor { get; set; } + [Key(5)][JsonIgnore] + public int EmploymentStatusDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("EmploymentStatusDescriptor", EmploymentStatusDescriptor); } + set { EmploymentStatusDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("EmploymentStatusDescriptor", value); } + } + /// /// The descriptive name of an individual's position. /// // NOT in a reference, NOT a lookup column [NonDefaultStringLength(100, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="positionTitle")] + [Key(6)] public string PositionTitle { get; set; } /// @@ -113483,16 +117658,32 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="postingResultDescriptor")][DescriptorExists("PostingResultDescriptor")] + [IgnoreMember] public string PostingResultDescriptor { get; set; } + [Key(7)][JsonIgnore] + public int PostingResultDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("PostingResultDescriptor", PostingResultDescriptor); } + set { PostingResultDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("PostingResultDescriptor", value); } + } + /// /// The name of the program for which the open staff position will be assigned. /// // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="programAssignmentDescriptor")][DescriptorExists("ProgramAssignmentDescriptor")] + [IgnoreMember] public string ProgramAssignmentDescriptor { get; set; } + [Key(8)][JsonIgnore] + public int ProgramAssignmentDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ProgramAssignmentDescriptor", ProgramAssignmentDescriptor); } + set { ProgramAssignmentDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ProgramAssignmentDescriptor", value); } + } + /// /// The titles of employment, official status, or rank of education staff. /// @@ -113500,7 +117691,15 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="staffClassificationDescriptor")][DescriptorExists("StaffClassificationDescriptor")] + [IgnoreMember] public string StaffClassificationDescriptor { get; set; } + + [Key(9)][JsonIgnore] + public int StaffClassificationDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("StaffClassificationDescriptor", StaffClassificationDescriptor); } + set { StaffClassificationDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("StaffClassificationDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -113522,6 +117721,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "OpenStaffPosition", "OpenStaffPosition")] + [Key(10)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -113533,6 +117733,7 @@ public override int GetHashCode() [NoDuplicateMembers] [DataMember(Name="academicSubjects")] + [Key(11)] public ICollection OpenStaffPositionAcademicSubjects { get { return _openStaffPositionAcademicSubjects; } @@ -113563,6 +117764,7 @@ public ICollection OpenStaffPositionAcademicSu [NoDuplicateMembers] [DataMember(Name="instructionalGradeLevels")] + [Key(12)] public ICollection OpenStaffPositionInstructionalGradeLevels { get { return _openStaffPositionInstructionalGradeLevels; } @@ -113595,9 +117797,11 @@ public ICollection OpenStaffPositionIn // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(13)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(14)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -113817,7 +118021,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.OpenStaffPositionAcademicSubject table of the OpenStaffPosition aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class OpenStaffPositionAcademicSubject : Entities.Common.EdFi.IOpenStaffPositionAcademicSubject, IValidatableObject { @@ -113860,6 +118064,7 @@ Entities.Common.EdFi.IOpenStaffPosition IOpenStaffPositionAcademicSubject.OpenSt set { SetOpenStaffPosition(value); } } + [IgnoreMember] public Entities.Common.EdFi.IOpenStaffPosition OpenStaffPosition { set { SetOpenStaffPosition(value); } @@ -113877,7 +118082,15 @@ private void SetOpenStaffPosition(Entities.Common.EdFi.IOpenStaffPosition value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="academicSubjectDescriptor")][DescriptorExists("AcademicSubjectDescriptor")] + [IgnoreMember] public string AcademicSubjectDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int AcademicSubjectDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("AcademicSubjectDescriptor", AcademicSubjectDescriptor); } + set { AcademicSubjectDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("AcademicSubjectDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -113962,6 +118175,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "OpenStaffPosition", "OpenStaffPositionAcademicSubject")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -114098,7 +118312,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.OpenStaffPositionInstructionalGradeLevel table of the OpenStaffPosition aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class OpenStaffPositionInstructionalGradeLevel : Entities.Common.EdFi.IOpenStaffPositionInstructionalGradeLevel, IValidatableObject { @@ -114141,6 +118355,7 @@ Entities.Common.EdFi.IOpenStaffPosition IOpenStaffPositionInstructionalGradeLeve set { SetOpenStaffPosition(value); } } + [IgnoreMember] public Entities.Common.EdFi.IOpenStaffPosition OpenStaffPosition { set { SetOpenStaffPosition(value); } @@ -114158,7 +118373,15 @@ private void SetOpenStaffPosition(Entities.Common.EdFi.IOpenStaffPosition value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="gradeLevelDescriptor")][DescriptorExists("GradeLevelDescriptor")] + [IgnoreMember] public string GradeLevelDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int GradeLevelDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("GradeLevelDescriptor", GradeLevelDescriptor); } + set { GradeLevelDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("GradeLevelDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -114243,6 +118466,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "OpenStaffPosition", "OpenStaffPositionInstructionalGradeLevel")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -114384,7 +118608,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.OperationalStatusDescriptor.EdFi /// /// A class which represents the edfi.OperationalStatusDescriptor table of the OperationalStatusDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class OperationalStatusDescriptor : Entities.Common.EdFi.IOperationalStatusDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -114413,6 +118637,7 @@ public class OperationalStatusDescriptor : Entities.Common.EdFi.IOperationalStat /// The unique identifier for the OperationalStatusDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -114497,6 +118722,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -114505,6 +118731,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -114512,6 +118739,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -114519,6 +118747,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -114528,6 +118757,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -114537,6 +118767,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -114580,9 +118811,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -114655,30 +118888,37 @@ namespace EdFi.Ods.Api.Common.Models.Resources.OperationalUnitDimension.EdFi /// /// Represents a reference to the OperationalUnitDimension resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class OperationalUnitDimensionReference : IResourceReference { [DataMember(Name="code")] + [Key(0)] public string Code { get; set; } [DataMember(Name="fiscalYear")] + [Key(1)] public int FiscalYear { get; set; } /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(2)] 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. /// + [Key(3)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(4)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -114752,7 +118992,7 @@ private Link CreateLink() /// /// A class which represents the edfi.OperationalUnitDimension table of the OperationalUnitDimension aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] [NoUnsuppliedRequiredMembersWithMeaningfulDefaults] public class OperationalUnitDimension : Entities.Common.EdFi.IOperationalUnitDimension, IHasETag, IDateVersionedEntity, IHasRequiredMembersWithMeaningfulDefaultValues, IValidatableObject @@ -114786,6 +119026,7 @@ public OperationalUnitDimension() /// The unique identifier for the OperationalUnitDimension resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -114806,6 +119047,7 @@ public OperationalUnitDimension() [RequiredWithNonDefault] [NonDefaultStringLength(16, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="code")] + [Key(1)] public string Code { get; set; } private bool _fiscalYearExplicitlyAssigned = false; @@ -114817,6 +119059,7 @@ public OperationalUnitDimension() // NOT in a reference, NOT a lookup column [Range(2020, 2040, ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="fiscalYear")] + [Key(2)] public int FiscalYear { get => _fiscalYear; @@ -114899,6 +119142,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(100, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeName")] + [Key(3)] public string CodeName { get; set; } // ------------------------------------------------------------- @@ -114929,6 +119173,7 @@ IEnumerable IHasRequiredMembersWithMeaningfulDefaultValues.GetUnassigned // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "OperationalUnitDimension", "OperationalUnitDimension")] + [Key(4)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -114940,6 +119185,7 @@ IEnumerable IHasRequiredMembersWithMeaningfulDefaultValues.GetUnassigned [NoDuplicateMembers] [DataMember(Name="reportingTags")] + [Key(5)] public ICollection OperationalUnitDimensionReportingTags { get { return _operationalUnitDimensionReportingTags; } @@ -114972,9 +119218,11 @@ public ICollection OperationalUnitDimensio // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(6)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(7)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -115151,7 +119399,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.OperationalUnitDimensionReportingTag table of the OperationalUnitDimension aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class OperationalUnitDimensionReportingTag : Entities.Common.EdFi.IOperationalUnitDimensionReportingTag, IValidatableObject { @@ -115194,6 +119442,7 @@ Entities.Common.EdFi.IOperationalUnitDimension IOperationalUnitDimensionReportin set { SetOperationalUnitDimension(value); } } + [IgnoreMember] public Entities.Common.EdFi.IOperationalUnitDimension OperationalUnitDimension { set { SetOperationalUnitDimension(value); } @@ -115211,7 +119460,15 @@ private void SetOperationalUnitDimension(Entities.Common.EdFi.IOperationalUnitDi [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="reportingTagDescriptor")][DescriptorExists("ReportingTagDescriptor")] + [IgnoreMember] public string ReportingTagDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int ReportingTagDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ReportingTagDescriptor", ReportingTagDescriptor); } + set { ReportingTagDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ReportingTagDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -115296,6 +119553,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "OperationalUnitDimension", "OperationalUnitDimensionReportingTag")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -115437,21 +119695,26 @@ namespace EdFi.Ods.Api.Common.Models.Resources.OrganizationDepartment.EdFi /// /// Represents a reference to the OrganizationDepartment resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class OrganizationDepartmentReference : IResourceReference { [DataMember(Name="organizationDepartmentId")] + [Key(0)] public long OrganizationDepartmentId { get; set; } /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(1)] public Guid ResourceId { get; set; } - private Link _link; + [JsonIgnore] + [Key(2)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -115501,7 +119764,7 @@ private Link CreateLink() /// /// A class which represents the edfi.OrganizationDepartment table of the OrganizationDepartment aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class OrganizationDepartment : Entities.Common.EdFi.IOrganizationDepartment, Entities.Common.EdFi.IEducationOrganization, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -115541,6 +119804,7 @@ public OrganizationDepartment() /// The unique identifier for the OrganizationDepartment resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -115564,6 +119828,7 @@ private EducationOrganization.EdFi.EducationOrganizationReference ImplicitParent } [DataMember(Name="parentEducationOrganizationReference")] + [Key(1)] [FullyDefinedReference] public EducationOrganization.EdFi.EducationOrganizationReference ParentEducationOrganizationReference { @@ -115593,7 +119858,7 @@ public EducationOrganization.EdFi.EducationOrganizationReference ParentEducation /// // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] - [DataMember(Name="organizationDepartmentId")] + [DataMember(Name="organizationDepartmentId"),Key(2)] public long OrganizationDepartmentId { get; set; } long IEducationOrganization.EducationOrganizationId @@ -115660,6 +119925,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="nameOfInstitution")] + [Key(3)] public string NameOfInstitution { get; set; } /// @@ -115668,14 +119934,23 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="operationalStatusDescriptor")][DescriptorExists("OperationalStatusDescriptor")] + [IgnoreMember] public string OperationalStatusDescriptor { get; set; } + [Key(4)][JsonIgnore] + public int OperationalStatusDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("OperationalStatusDescriptor", OperationalStatusDescriptor); } + set { OperationalStatusDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("OperationalStatusDescriptor", value); } + } + /// /// A short name for the institution. /// // NOT in a reference, NOT a lookup column [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortNameOfInstitution")] + [Key(5)] public string ShortNameOfInstitution { get; set; } /// @@ -115684,6 +119959,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(255, MinimumLength=5, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText] [DataMember(Name="webSite")] + [Key(6)] public string WebSite { get; set; } // ------------------------------------------------------------- @@ -115697,8 +119973,16 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="academicSubjectDescriptor")][DescriptorExists("AcademicSubjectDescriptor")] + [IgnoreMember] public string AcademicSubjectDescriptor { get; set; } + [Key(7)][JsonIgnore] + public int AcademicSubjectDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("AcademicSubjectDescriptor", AcademicSubjectDescriptor); } + set { AcademicSubjectDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("AcademicSubjectDescriptor", value); } + } + /// /// The identifier assigned to an education organization. /// @@ -115745,6 +120029,7 @@ public override int GetHashCode() [NoDuplicateMembers] [DataMember(Name="addresses")] + [Key(8)] public ICollection EducationOrganizationAddresses { get { return _educationOrganizationAddresses; } @@ -115766,6 +120051,7 @@ public ICollection Educ [NoDuplicateMembers][RequiredCollection] [DataMember(Name="categories")] + [Key(9)] public ICollection EducationOrganizationCategories { get { return _educationOrganizationCategories; } @@ -115787,6 +120073,7 @@ public ICollection Edu [NoDuplicateMembers] [DataMember(Name="identificationCodes")] + [Key(10)] public ICollection EducationOrganizationIdentificationCodes { get { return _educationOrganizationIdentificationCodes; } @@ -115808,6 +120095,7 @@ public ICollection EducationOrganizationIndicators { get { return _educationOrganizationIndicators; } @@ -115829,6 +120117,7 @@ public ICollection Ed [NoDuplicateMembers] [DataMember(Name="institutionTelephones")] + [Key(12)] public ICollection EducationOrganizationInstitutionTelephones { get { return _educationOrganizationInstitutionTelephones; } @@ -115850,6 +120139,7 @@ public ICollection EducationOrganizationInternationalAddresses { get { return _educationOrganizationInternationalAddresses; } @@ -115872,6 +120162,7 @@ public ICollection /// A class which represents the edfi.OtherNameTypeDescriptor table of the OtherNameTypeDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class OtherNameTypeDescriptor : Entities.Common.EdFi.IOtherNameTypeDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -116257,6 +120550,7 @@ public class OtherNameTypeDescriptor : Entities.Common.EdFi.IOtherNameTypeDescri /// The unique identifier for the OtherNameTypeDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -116341,6 +120635,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -116349,6 +120644,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -116356,6 +120652,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -116363,6 +120660,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -116372,6 +120670,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -116381,6 +120680,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -116424,9 +120724,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -116499,7 +120801,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.ParticipationDescriptor.EdFi /// /// A class which represents the edfi.ParticipationDescriptor table of the ParticipationDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class ParticipationDescriptor : Entities.Common.EdFi.IParticipationDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -116528,6 +120830,7 @@ public class ParticipationDescriptor : Entities.Common.EdFi.IParticipationDescri /// The unique identifier for the ParticipationDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -116612,6 +120915,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -116620,6 +120924,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -116627,6 +120932,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -116634,6 +120940,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -116643,6 +120950,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -116652,6 +120960,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -116695,9 +121004,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -116770,7 +121081,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.ParticipationStatusDescriptor.EdF /// /// A class which represents the edfi.ParticipationStatusDescriptor table of the ParticipationStatusDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class ParticipationStatusDescriptor : Entities.Common.EdFi.IParticipationStatusDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -116799,6 +121110,7 @@ public class ParticipationStatusDescriptor : Entities.Common.EdFi.IParticipation /// The unique identifier for the ParticipationStatusDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -116883,6 +121195,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -116891,6 +121204,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -116898,6 +121212,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -116905,6 +121220,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -116914,6 +121230,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -116923,6 +121240,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -116966,9 +121284,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -117041,7 +121361,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.PerformanceBaseConversionDescript /// /// A class which represents the edfi.PerformanceBaseConversionDescriptor table of the PerformanceBaseConversionDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class PerformanceBaseConversionDescriptor : Entities.Common.EdFi.IPerformanceBaseConversionDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -117070,6 +121390,7 @@ public class PerformanceBaseConversionDescriptor : Entities.Common.EdFi.IPerform /// The unique identifier for the PerformanceBaseConversionDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -117154,6 +121475,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -117162,6 +121484,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -117169,6 +121492,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -117176,6 +121500,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -117185,6 +121510,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -117194,6 +121520,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -117237,9 +121564,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -117312,7 +121641,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.PerformanceLevelDescriptor.EdFi /// /// A class which represents the edfi.PerformanceLevelDescriptor table of the PerformanceLevelDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class PerformanceLevelDescriptor : Entities.Common.EdFi.IPerformanceLevelDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -117341,6 +121670,7 @@ public class PerformanceLevelDescriptor : Entities.Common.EdFi.IPerformanceLevel /// The unique identifier for the PerformanceLevelDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -117425,6 +121755,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -117433,6 +121764,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -117440,6 +121772,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -117447,6 +121780,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -117456,6 +121790,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -117465,6 +121800,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -117508,9 +121844,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -117583,30 +121921,44 @@ namespace EdFi.Ods.Api.Common.Models.Resources.Person.EdFi /// /// Represents a reference to the Person resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class PersonReference : IResourceReference { [DataMember(Name="personId")] + [Key(0)] public string PersonId { get; set; } [DataMember(Name="sourceSystemDescriptor")][DescriptorExists("SourceSystemDescriptor")] + [IgnoreMember] public string SourceSystemDescriptor { get; set; } + [Key(1)][JsonIgnore] + public int SourceSystemDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("SourceSystemDescriptor", SourceSystemDescriptor); } + set { SourceSystemDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("SourceSystemDescriptor", value); } + } + /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(2)] 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. /// + [Key(3)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(4)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -117680,7 +122032,7 @@ private Link CreateLink() /// /// A class which represents the edfi.Person table of the Person aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class Person : Entities.Common.EdFi.IPerson, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -117709,6 +122061,7 @@ public class Person : Entities.Common.EdFi.IPerson, IHasETag, IDateVersionedEnti /// The unique identifier for the Person resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -117729,6 +122082,7 @@ public class Person : Entities.Common.EdFi.IPerson, IHasETag, IDateVersionedEnti [RequiredWithNonDefault] [NonDefaultStringLength(32, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="personId")] + [Key(1)] public string PersonId { get; set; } /// @@ -117738,7 +122092,15 @@ public class Person : Entities.Common.EdFi.IPerson, IHasETag, IDateVersionedEnti [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="sourceSystemDescriptor")][DescriptorExists("SourceSystemDescriptor")] + [IgnoreMember] public string SourceSystemDescriptor { get; set; } + + [Key(2)][JsonIgnore] + public int SourceSystemDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("SourceSystemDescriptor", SourceSystemDescriptor); } + set { SourceSystemDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("SourceSystemDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -117825,6 +122187,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "Person", "Person")] + [Key(3)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -117838,9 +122201,11 @@ public override int GetHashCode() // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(4)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(5)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -117972,7 +122337,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.PersonalInformationVerificationDe /// /// A class which represents the edfi.PersonalInformationVerificationDescriptor table of the PersonalInformationVerificationDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class PersonalInformationVerificationDescriptor : Entities.Common.EdFi.IPersonalInformationVerificationDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -118001,6 +122366,7 @@ public class PersonalInformationVerificationDescriptor : Entities.Common.EdFi.IP /// The unique identifier for the PersonalInformationVerificationDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -118085,6 +122451,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -118093,6 +122460,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -118100,6 +122468,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -118107,6 +122476,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -118116,6 +122486,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -118125,6 +122496,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -118168,9 +122540,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -118243,7 +122617,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.PlatformTypeDescriptor.EdFi /// /// A class which represents the edfi.PlatformTypeDescriptor table of the PlatformTypeDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class PlatformTypeDescriptor : Entities.Common.EdFi.IPlatformTypeDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -118272,6 +122646,7 @@ public class PlatformTypeDescriptor : Entities.Common.EdFi.IPlatformTypeDescript /// The unique identifier for the PlatformTypeDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -118356,6 +122731,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -118364,6 +122740,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -118371,6 +122748,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -118378,6 +122756,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -118387,6 +122766,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -118396,6 +122776,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -118439,9 +122820,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -118514,7 +122897,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.PopulationServedDescriptor.EdFi /// /// A class which represents the edfi.PopulationServedDescriptor table of the PopulationServedDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class PopulationServedDescriptor : Entities.Common.EdFi.IPopulationServedDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -118543,6 +122926,7 @@ public class PopulationServedDescriptor : Entities.Common.EdFi.IPopulationServed /// The unique identifier for the PopulationServedDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -118627,6 +123011,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -118635,6 +123020,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -118642,6 +123028,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -118649,6 +123036,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -118658,6 +123046,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -118667,6 +123056,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -118710,9 +123100,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -118785,7 +123177,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.PostingResultDescriptor.EdFi /// /// A class which represents the edfi.PostingResultDescriptor table of the PostingResultDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class PostingResultDescriptor : Entities.Common.EdFi.IPostingResultDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -118814,6 +123206,7 @@ public class PostingResultDescriptor : Entities.Common.EdFi.IPostingResultDescri /// The unique identifier for the PostingResultDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -118898,6 +123291,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -118906,6 +123300,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -118913,6 +123308,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -118920,6 +123316,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -118929,6 +123326,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -118938,6 +123336,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -118981,9 +123380,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -119056,16 +123457,25 @@ namespace EdFi.Ods.Api.Common.Models.Resources.PostSecondaryEvent.EdFi /// /// Represents a reference to the PostSecondaryEvent resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class PostSecondaryEventReference : IResourceReference { [DataMember(Name="eventDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(0)] public DateTime EventDate { get; set; } [DataMember(Name="postSecondaryEventCategoryDescriptor")][DescriptorExists("PostSecondaryEventCategoryDescriptor")] + [IgnoreMember] public string PostSecondaryEventCategoryDescriptor { get; set; } + [Key(1)][JsonIgnore] + public int PostSecondaryEventCategoryDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("PostSecondaryEventCategoryDescriptor", PostSecondaryEventCategoryDescriptor); } + set { PostSecondaryEventCategoryDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("PostSecondaryEventCategoryDescriptor", value); } + } + [DataMember(Name="studentUniqueId")] public string StudentUniqueId { @@ -119081,17 +123491,22 @@ public string StudentUniqueId /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(2)] 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. /// + [Key(3)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(4)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -119170,7 +123585,7 @@ private Link CreateLink() /// /// A class which represents the edfi.PostSecondaryEvent table of the PostSecondaryEvent aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class PostSecondaryEvent : Entities.Common.EdFi.IPostSecondaryEvent, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -119199,6 +123614,7 @@ public class PostSecondaryEvent : Entities.Common.EdFi.IPostSecondaryEvent, IHas /// The unique identifier for the PostSecondaryEvent resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -119222,6 +123638,7 @@ private PostSecondaryInstitution.EdFi.PostSecondaryInstitutionReference Implicit } [DataMember(Name="postSecondaryInstitutionReference")] + [Key(1)] [FullyDefinedReference] public PostSecondaryInstitution.EdFi.PostSecondaryInstitutionReference PostSecondaryInstitutionReference { @@ -119255,6 +123672,7 @@ private Student.EdFi.StudentReference ImplicitStudentReference } [DataMember(Name="studentReference")] + [Key(2)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Student.EdFi.StudentReference StudentReference { @@ -119285,6 +123703,7 @@ public Student.EdFi.StudentReference StudentReference // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] [DataMember(Name="eventDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime EventDate { get; set; } /// @@ -119294,8 +123713,16 @@ public Student.EdFi.StudentReference StudentReference [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="postSecondaryEventCategoryDescriptor")][DescriptorExists("PostSecondaryEventCategoryDescriptor")] + [IgnoreMember] public string PostSecondaryEventCategoryDescriptor { get; set; } + [Key(4)][JsonIgnore] + public int PostSecondaryEventCategoryDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("PostSecondaryEventCategoryDescriptor", PostSecondaryEventCategoryDescriptor); } + set { PostSecondaryEventCategoryDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("PostSecondaryEventCategoryDescriptor", value); } + } + /// /// A unique alphanumeric code assigned to a student. /// @@ -119442,6 +123869,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "PostSecondaryEvent", "PostSecondaryEvent")] + [Key(5)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -119455,9 +123883,11 @@ public override int GetHashCode() // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(6)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(7)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -119610,7 +124040,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.PostSecondaryEventCategoryDescrip /// /// A class which represents the edfi.PostSecondaryEventCategoryDescriptor table of the PostSecondaryEventCategoryDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class PostSecondaryEventCategoryDescriptor : Entities.Common.EdFi.IPostSecondaryEventCategoryDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -119639,6 +124069,7 @@ public class PostSecondaryEventCategoryDescriptor : Entities.Common.EdFi.IPostSe /// The unique identifier for the PostSecondaryEventCategoryDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -119723,6 +124154,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -119731,6 +124163,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -119738,6 +124171,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -119745,6 +124179,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -119754,6 +124189,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -119763,6 +124199,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -119806,9 +124243,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -119881,21 +124320,26 @@ namespace EdFi.Ods.Api.Common.Models.Resources.PostSecondaryInstitution.EdFi /// /// Represents a reference to the PostSecondaryInstitution resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class PostSecondaryInstitutionReference : IResourceReference { [DataMember(Name="postSecondaryInstitutionId")] + [Key(0)] public long PostSecondaryInstitutionId { get; set; } /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(1)] public Guid ResourceId { get; set; } - private Link _link; + [JsonIgnore] + [Key(2)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -119945,7 +124389,7 @@ private Link CreateLink() /// /// A class which represents the edfi.PostSecondaryInstitution table of the PostSecondaryInstitution aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class PostSecondaryInstitution : Entities.Common.EdFi.IPostSecondaryInstitution, Entities.Common.EdFi.IEducationOrganization, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -119986,6 +124430,7 @@ public PostSecondaryInstitution() /// The unique identifier for the PostSecondaryInstitution resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -120004,7 +124449,7 @@ public PostSecondaryInstitution() /// // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] - [DataMember(Name="postSecondaryInstitutionId")] + [DataMember(Name="postSecondaryInstitutionId"),Key(1)] public long PostSecondaryInstitutionId { get; set; } long IEducationOrganization.EducationOrganizationId @@ -120071,6 +124516,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="nameOfInstitution")] + [Key(2)] public string NameOfInstitution { get; set; } /// @@ -120079,14 +124525,23 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="operationalStatusDescriptor")][DescriptorExists("OperationalStatusDescriptor")] + [IgnoreMember] public string OperationalStatusDescriptor { get; set; } + [Key(3)][JsonIgnore] + public int OperationalStatusDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("OperationalStatusDescriptor", OperationalStatusDescriptor); } + set { OperationalStatusDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("OperationalStatusDescriptor", value); } + } + /// /// A short name for the institution. /// // NOT in a reference, NOT a lookup column [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortNameOfInstitution")] + [Key(4)] public string ShortNameOfInstitution { get; set; } /// @@ -120095,6 +124550,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(255, MinimumLength=5, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText] [DataMember(Name="webSite")] + [Key(5)] public string WebSite { get; set; } // ------------------------------------------------------------- @@ -120108,15 +124564,31 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="administrativeFundingControlDescriptor")][DescriptorExists("AdministrativeFundingControlDescriptor")] + [IgnoreMember] public string AdministrativeFundingControlDescriptor { get; set; } + [Key(6)][JsonIgnore] + public int AdministrativeFundingControlDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("AdministrativeFundingControlDescriptor", AdministrativeFundingControlDescriptor); } + set { AdministrativeFundingControlDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("AdministrativeFundingControlDescriptor", value); } + } + /// /// A classification of whether a post secondary institution's highest level of offering is a program of 4-years or higher (4 year), 2-but-less-than 4-years (2 year), or less than 2-years. /// // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="postSecondaryInstitutionLevelDescriptor")][DescriptorExists("PostSecondaryInstitutionLevelDescriptor")] + [IgnoreMember] public string PostSecondaryInstitutionLevelDescriptor { get; set; } + + [Key(7)][JsonIgnore] + public int PostSecondaryInstitutionLevelDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("PostSecondaryInstitutionLevelDescriptor", PostSecondaryInstitutionLevelDescriptor); } + set { PostSecondaryInstitutionLevelDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("PostSecondaryInstitutionLevelDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -120137,6 +124609,7 @@ public override int GetHashCode() [NoDuplicateMembers] [DataMember(Name="addresses")] + [Key(8)] public ICollection EducationOrganizationAddresses { get { return _educationOrganizationAddresses; } @@ -120158,6 +124631,7 @@ public ICollection Educ [NoDuplicateMembers][RequiredCollection] [DataMember(Name="categories")] + [Key(9)] public ICollection EducationOrganizationCategories { get { return _educationOrganizationCategories; } @@ -120179,6 +124653,7 @@ public ICollection Edu [NoDuplicateMembers] [DataMember(Name="identificationCodes")] + [Key(10)] public ICollection EducationOrganizationIdentificationCodes { get { return _educationOrganizationIdentificationCodes; } @@ -120200,6 +124675,7 @@ public ICollection EducationOrganizationIndicators { get { return _educationOrganizationIndicators; } @@ -120221,6 +124697,7 @@ public ICollection Ed [NoDuplicateMembers] [DataMember(Name="institutionTelephones")] + [Key(12)] public ICollection EducationOrganizationInstitutionTelephones { get { return _educationOrganizationInstitutionTelephones; } @@ -120242,6 +124719,7 @@ public ICollection EducationOrganizationInternationalAddresses { get { return _educationOrganizationInternationalAddresses; } @@ -120264,6 +124742,7 @@ public ICollection PostSecondaryInstitutionMediumOfInstructions { get { return _postSecondaryInstitutionMediumOfInstructions; } @@ -120307,9 +124787,11 @@ public ICollection PostSecondaryIns // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(16)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(17)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -120660,7 +125142,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.PostSecondaryInstitutionMediumOfInstruction table of the PostSecondaryInstitution aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class PostSecondaryInstitutionMediumOfInstruction : Entities.Common.EdFi.IPostSecondaryInstitutionMediumOfInstruction, IValidatableObject { @@ -120703,6 +125185,7 @@ Entities.Common.EdFi.IPostSecondaryInstitution IPostSecondaryInstitutionMediumOf set { SetPostSecondaryInstitution(value); } } + [IgnoreMember] public Entities.Common.EdFi.IPostSecondaryInstitution PostSecondaryInstitution { set { SetPostSecondaryInstitution(value); } @@ -120720,7 +125203,15 @@ private void SetPostSecondaryInstitution(Entities.Common.EdFi.IPostSecondaryInst [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="mediumOfInstructionDescriptor")][DescriptorExists("MediumOfInstructionDescriptor")] + [IgnoreMember] public string MediumOfInstructionDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int MediumOfInstructionDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("MediumOfInstructionDescriptor", MediumOfInstructionDescriptor); } + set { MediumOfInstructionDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("MediumOfInstructionDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -120805,6 +125296,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "PostSecondaryInstitution", "PostSecondaryInstitutionMediumOfInstruction")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -120946,7 +125438,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.PostSecondaryInstitutionLevelDesc /// /// A class which represents the edfi.PostSecondaryInstitutionLevelDescriptor table of the PostSecondaryInstitutionLevelDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class PostSecondaryInstitutionLevelDescriptor : Entities.Common.EdFi.IPostSecondaryInstitutionLevelDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -120975,6 +125467,7 @@ public class PostSecondaryInstitutionLevelDescriptor : Entities.Common.EdFi.IPos /// The unique identifier for the PostSecondaryInstitutionLevelDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -121059,6 +125552,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -121067,6 +125561,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -121074,6 +125569,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -121081,6 +125577,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -121090,6 +125587,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -121099,6 +125597,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -121142,9 +125641,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -121217,7 +125718,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.PrimaryLearningDeviceAccessDescri /// /// A class which represents the edfi.PrimaryLearningDeviceAccessDescriptor table of the PrimaryLearningDeviceAccessDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class PrimaryLearningDeviceAccessDescriptor : Entities.Common.EdFi.IPrimaryLearningDeviceAccessDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -121246,6 +125747,7 @@ public class PrimaryLearningDeviceAccessDescriptor : Entities.Common.EdFi.IPrima /// The unique identifier for the PrimaryLearningDeviceAccessDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -121330,6 +125832,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -121338,6 +125841,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -121345,6 +125849,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -121352,6 +125857,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -121361,6 +125867,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -121370,6 +125877,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -121413,9 +125921,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -121488,7 +125998,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.PrimaryLearningDeviceAwayFromScho /// /// A class which represents the edfi.PrimaryLearningDeviceAwayFromSchoolDescriptor table of the PrimaryLearningDeviceAwayFromSchoolDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class PrimaryLearningDeviceAwayFromSchoolDescriptor : Entities.Common.EdFi.IPrimaryLearningDeviceAwayFromSchoolDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -121517,6 +126027,7 @@ public class PrimaryLearningDeviceAwayFromSchoolDescriptor : Entities.Common.EdF /// The unique identifier for the PrimaryLearningDeviceAwayFromSchoolDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -121601,6 +126112,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -121609,6 +126121,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -121616,6 +126129,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -121623,6 +126137,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -121632,6 +126147,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -121641,6 +126157,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -121684,9 +126201,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -121759,7 +126278,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.PrimaryLearningDeviceProviderDesc /// /// A class which represents the edfi.PrimaryLearningDeviceProviderDescriptor table of the PrimaryLearningDeviceProviderDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class PrimaryLearningDeviceProviderDescriptor : Entities.Common.EdFi.IPrimaryLearningDeviceProviderDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -121788,6 +126307,7 @@ public class PrimaryLearningDeviceProviderDescriptor : Entities.Common.EdFi.IPri /// The unique identifier for the PrimaryLearningDeviceProviderDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -121872,6 +126392,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -121880,6 +126401,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -121887,6 +126409,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -121894,6 +126417,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -121903,6 +126427,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -121912,6 +126437,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -121955,9 +126481,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -122030,7 +126558,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.ProficiencyDescriptor.EdFi /// /// A class which represents the edfi.ProficiencyDescriptor table of the ProficiencyDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class ProficiencyDescriptor : Entities.Common.EdFi.IProficiencyDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -122059,6 +126587,7 @@ public class ProficiencyDescriptor : Entities.Common.EdFi.IProficiencyDescriptor /// The unique identifier for the ProficiencyDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -122143,6 +126672,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -122151,6 +126681,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -122158,6 +126689,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -122165,6 +126697,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -122174,6 +126707,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -122183,6 +126717,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -122226,9 +126761,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -122301,33 +126838,48 @@ namespace EdFi.Ods.Api.Common.Models.Resources.Program.EdFi /// /// Represents a reference to the Program resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class ProgramReference : IResourceReference { [DataMember(Name="educationOrganizationId")] + [Key(0)] public long EducationOrganizationId { get; set; } [DataMember(Name="programName")] + [Key(1)] public string ProgramName { get; set; } [DataMember(Name="programTypeDescriptor")][DescriptorExists("ProgramTypeDescriptor")] + [IgnoreMember] public string ProgramTypeDescriptor { get; set; } + [Key(2)][JsonIgnore] + public int ProgramTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ProgramTypeDescriptor", ProgramTypeDescriptor); } + set { ProgramTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ProgramTypeDescriptor", value); } + } + /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(3)] 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. /// + [Key(4)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(5)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -122406,7 +126958,7 @@ private Link CreateLink() /// /// A class which represents the edfi.Program table of the Program aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class Program : Entities.Common.EdFi.IProgram, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -122441,6 +126993,7 @@ public Program() /// The unique identifier for the Program resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -122464,6 +127017,7 @@ private EducationOrganization.EdFi.EducationOrganizationReference ImplicitEducat } [DataMember(Name="educationOrganizationReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public EducationOrganization.EdFi.EducationOrganizationReference EducationOrganizationReference { @@ -122520,6 +127074,7 @@ long Entities.Common.EdFi.IProgram.EducationOrganizationId [RequiredWithNonDefault] [NonDefaultStringLength(60, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="programName")] + [Key(2)] public string ProgramName { get; set; } /// @@ -122529,7 +127084,15 @@ long Entities.Common.EdFi.IProgram.EducationOrganizationId [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="programTypeDescriptor")][DescriptorExists("ProgramTypeDescriptor")] + [IgnoreMember] public string ProgramTypeDescriptor { get; set; } + + [Key(3)][JsonIgnore] + public int ProgramTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ProgramTypeDescriptor", ProgramTypeDescriptor); } + set { ProgramTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ProgramTypeDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -122610,6 +127173,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(20, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="programId")] + [Key(4)] public string ProgramId { get; set; } // ------------------------------------------------------------- @@ -122632,6 +127196,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "Program", "Program")] + [Key(5)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -122643,6 +127208,7 @@ public override int GetHashCode() [NoDuplicateMembers] [DataMember(Name="characteristics")] + [Key(6)] public ICollection ProgramCharacteristics { get { return _programCharacteristics; } @@ -122673,6 +127239,7 @@ public ICollection ProgramCharacteristics [NoDuplicateMembers] [DataMember(Name="learningStandards")] + [Key(7)] public ICollection ProgramLearningStandards { get { return _programLearningStandards; } @@ -122703,6 +127270,7 @@ public ICollection ProgramLearningStandards [NoDuplicateMembers] [DataMember(Name="sponsors")] + [Key(8)] public ICollection ProgramSponsors { get { return _programSponsors; } @@ -122735,9 +127303,11 @@ public ICollection ProgramSponsors // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(9)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(10)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -122986,7 +127556,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// /// A class which represents the edfi.ProgramCharacteristic table of the Program aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class ProgramCharacteristic : Entities.Common.EdFi.IProgramCharacteristic, IValidatableObject { @@ -123029,6 +127599,7 @@ Entities.Common.EdFi.IProgram IProgramCharacteristic.Program set { SetProgram(value); } } + [IgnoreMember] public Entities.Common.EdFi.IProgram Program { set { SetProgram(value); } @@ -123046,7 +127617,15 @@ private void SetProgram(Entities.Common.EdFi.IProgram value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="programCharacteristicDescriptor")][DescriptorExists("ProgramCharacteristicDescriptor")] + [IgnoreMember] public string ProgramCharacteristicDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int ProgramCharacteristicDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ProgramCharacteristicDescriptor", ProgramCharacteristicDescriptor); } + set { ProgramCharacteristicDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ProgramCharacteristicDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -123131,6 +127710,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "Program", "ProgramCharacteristic")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -123267,7 +127847,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.ProgramLearningStandard table of the Program aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class ProgramLearningStandard : Entities.Common.EdFi.IProgramLearningStandard, IValidatableObject { @@ -123312,6 +127892,7 @@ private LearningStandard.EdFi.LearningStandardReference ImplicitLearningStandard } [DataMember(Name="learningStandardReference")] + [Key(0)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public LearningStandard.EdFi.LearningStandardReference LearningStandardReference { @@ -123344,6 +127925,7 @@ Entities.Common.EdFi.IProgram IProgramLearningStandard.Program set { SetProgram(value); } } + [IgnoreMember] public Entities.Common.EdFi.IProgram Program { set { SetProgram(value); } @@ -123461,6 +128043,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "Program", "ProgramLearningStandard")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -123611,7 +128194,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.ProgramSponsor table of the Program aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class ProgramSponsor : Entities.Common.EdFi.IProgramSponsor, IValidatableObject { @@ -123654,6 +128237,7 @@ Entities.Common.EdFi.IProgram IProgramSponsor.Program set { SetProgram(value); } } + [IgnoreMember] public Entities.Common.EdFi.IProgram Program { set { SetProgram(value); } @@ -123671,7 +128255,15 @@ private void SetProgram(Entities.Common.EdFi.IProgram value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="programSponsorDescriptor")][DescriptorExists("ProgramSponsorDescriptor")] + [IgnoreMember] public string ProgramSponsorDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int ProgramSponsorDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ProgramSponsorDescriptor", ProgramSponsorDescriptor); } + set { ProgramSponsorDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ProgramSponsorDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -123756,6 +128348,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "Program", "ProgramSponsor")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -123897,7 +128490,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.ProgramAssignmentDescriptor.EdFi /// /// A class which represents the edfi.ProgramAssignmentDescriptor table of the ProgramAssignmentDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class ProgramAssignmentDescriptor : Entities.Common.EdFi.IProgramAssignmentDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -123926,6 +128519,7 @@ public class ProgramAssignmentDescriptor : Entities.Common.EdFi.IProgramAssignme /// The unique identifier for the ProgramAssignmentDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -124010,6 +128604,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -124018,6 +128613,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -124025,6 +128621,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -124032,6 +128629,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -124041,6 +128639,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -124050,6 +128649,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -124093,9 +128693,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -124168,7 +128770,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.ProgramCharacteristicDescriptor.E /// /// A class which represents the edfi.ProgramCharacteristicDescriptor table of the ProgramCharacteristicDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class ProgramCharacteristicDescriptor : Entities.Common.EdFi.IProgramCharacteristicDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -124197,6 +128799,7 @@ public class ProgramCharacteristicDescriptor : Entities.Common.EdFi.IProgramChar /// The unique identifier for the ProgramCharacteristicDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -124281,6 +128884,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -124289,6 +128893,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -124296,6 +128901,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -124303,6 +128909,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -124312,6 +128919,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -124321,6 +128929,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -124364,9 +128973,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -124439,30 +129050,37 @@ namespace EdFi.Ods.Api.Common.Models.Resources.ProgramDimension.EdFi /// /// Represents a reference to the ProgramDimension resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class ProgramDimensionReference : IResourceReference { [DataMember(Name="code")] + [Key(0)] public string Code { get; set; } [DataMember(Name="fiscalYear")] + [Key(1)] public int FiscalYear { get; set; } /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(2)] 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. /// + [Key(3)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(4)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -124536,7 +129154,7 @@ private Link CreateLink() /// /// A class which represents the edfi.ProgramDimension table of the ProgramDimension aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] [NoUnsuppliedRequiredMembersWithMeaningfulDefaults] public class ProgramDimension : Entities.Common.EdFi.IProgramDimension, IHasETag, IDateVersionedEntity, IHasRequiredMembersWithMeaningfulDefaultValues, IValidatableObject @@ -124570,6 +129188,7 @@ public ProgramDimension() /// The unique identifier for the ProgramDimension resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -124590,6 +129209,7 @@ public ProgramDimension() [RequiredWithNonDefault] [NonDefaultStringLength(16, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="code")] + [Key(1)] public string Code { get; set; } private bool _fiscalYearExplicitlyAssigned = false; @@ -124601,6 +129221,7 @@ public ProgramDimension() // NOT in a reference, NOT a lookup column [Range(2020, 2040, ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="fiscalYear")] + [Key(2)] public int FiscalYear { get => _fiscalYear; @@ -124683,6 +129304,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(100, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeName")] + [Key(3)] public string CodeName { get; set; } // ------------------------------------------------------------- @@ -124713,6 +129335,7 @@ IEnumerable IHasRequiredMembersWithMeaningfulDefaultValues.GetUnassigned // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "ProgramDimension", "ProgramDimension")] + [Key(4)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -124724,6 +129347,7 @@ IEnumerable IHasRequiredMembersWithMeaningfulDefaultValues.GetUnassigned [NoDuplicateMembers] [DataMember(Name="reportingTags")] + [Key(5)] public ICollection ProgramDimensionReportingTags { get { return _programDimensionReportingTags; } @@ -124756,9 +129380,11 @@ public ICollection ProgramDimensionReportingTags // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(6)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(7)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -124935,7 +129561,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.ProgramDimensionReportingTag table of the ProgramDimension aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class ProgramDimensionReportingTag : Entities.Common.EdFi.IProgramDimensionReportingTag, IValidatableObject { @@ -124978,6 +129604,7 @@ Entities.Common.EdFi.IProgramDimension IProgramDimensionReportingTag.ProgramDime set { SetProgramDimension(value); } } + [IgnoreMember] public Entities.Common.EdFi.IProgramDimension ProgramDimension { set { SetProgramDimension(value); } @@ -124995,7 +129622,15 @@ private void SetProgramDimension(Entities.Common.EdFi.IProgramDimension value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="reportingTagDescriptor")][DescriptorExists("ReportingTagDescriptor")] + [IgnoreMember] public string ReportingTagDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int ReportingTagDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ReportingTagDescriptor", ReportingTagDescriptor); } + set { ReportingTagDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ReportingTagDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -125080,6 +129715,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "ProgramDimension", "ProgramDimensionReportingTag")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -125221,42 +129857,74 @@ namespace EdFi.Ods.Api.Common.Models.Resources.ProgramEvaluation.EdFi /// /// Represents a reference to the ProgramEvaluation resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class ProgramEvaluationReference : IResourceReference { [DataMember(Name="programEducationOrganizationId")] + [Key(0)] public long ProgramEducationOrganizationId { get; set; } [DataMember(Name="programEvaluationPeriodDescriptor")][DescriptorExists("ProgramEvaluationPeriodDescriptor")] + [IgnoreMember] public string ProgramEvaluationPeriodDescriptor { get; set; } + [Key(1)][JsonIgnore] + public int ProgramEvaluationPeriodDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ProgramEvaluationPeriodDescriptor", ProgramEvaluationPeriodDescriptor); } + set { ProgramEvaluationPeriodDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ProgramEvaluationPeriodDescriptor", value); } + } + [DataMember(Name="programEvaluationTitle")] + [Key(2)] public string ProgramEvaluationTitle { get; set; } [DataMember(Name="programEvaluationTypeDescriptor")][DescriptorExists("ProgramEvaluationTypeDescriptor")] + [IgnoreMember] public string ProgramEvaluationTypeDescriptor { get; set; } + [Key(3)][JsonIgnore] + public int ProgramEvaluationTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ProgramEvaluationTypeDescriptor", ProgramEvaluationTypeDescriptor); } + set { ProgramEvaluationTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ProgramEvaluationTypeDescriptor", value); } + } + [DataMember(Name="programName")] + [Key(4)] public string ProgramName { get; set; } [DataMember(Name="programTypeDescriptor")][DescriptorExists("ProgramTypeDescriptor")] + [IgnoreMember] public string ProgramTypeDescriptor { get; set; } + [Key(5)][JsonIgnore] + public int ProgramTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ProgramTypeDescriptor", ProgramTypeDescriptor); } + set { ProgramTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ProgramTypeDescriptor", value); } + } + /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(6)] 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. /// + [Key(7)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(8)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -125350,7 +130018,7 @@ private Link CreateLink() /// /// A class which represents the edfi.ProgramEvaluation table of the ProgramEvaluation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class ProgramEvaluation : Entities.Common.EdFi.IProgramEvaluation, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -125383,6 +130051,7 @@ public ProgramEvaluation() /// The unique identifier for the ProgramEvaluation resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -125406,6 +130075,7 @@ private Program.EdFi.ProgramReference ImplicitProgramReference } [DataMember(Name="programReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Program.EdFi.ProgramReference ProgramReference { @@ -125462,8 +130132,16 @@ long Entities.Common.EdFi.IProgramEvaluation.ProgramEducationOrganizationId [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="programEvaluationPeriodDescriptor")][DescriptorExists("ProgramEvaluationPeriodDescriptor")] + [IgnoreMember] public string ProgramEvaluationPeriodDescriptor { get; set; } + [Key(2)][JsonIgnore] + public int ProgramEvaluationPeriodDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ProgramEvaluationPeriodDescriptor", ProgramEvaluationPeriodDescriptor); } + set { ProgramEvaluationPeriodDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ProgramEvaluationPeriodDescriptor", value); } + } + /// /// An assigned unique identifier for the student program evaluation. /// @@ -125471,6 +130149,7 @@ long Entities.Common.EdFi.IProgramEvaluation.ProgramEducationOrganizationId [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="programEvaluationTitle")] + [Key(3)] public string ProgramEvaluationTitle { get; set; } /// @@ -125480,8 +130159,16 @@ long Entities.Common.EdFi.IProgramEvaluation.ProgramEducationOrganizationId [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="programEvaluationTypeDescriptor")][DescriptorExists("ProgramEvaluationTypeDescriptor")] + [IgnoreMember] public string ProgramEvaluationTypeDescriptor { get; set; } + [Key(4)][JsonIgnore] + public int ProgramEvaluationTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ProgramEvaluationTypeDescriptor", ProgramEvaluationTypeDescriptor); } + set { ProgramEvaluationTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ProgramEvaluationTypeDescriptor", value); } + } + /// /// The formal name of the program of instruction, training, services, or benefits available through federal, state, or local agencies. /// @@ -125633,6 +130320,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-999.999", "999.999", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="evaluationMaxNumericRating")] + [Key(5)] public decimal? EvaluationMaxNumericRating { get; set; } /// @@ -125641,6 +130329,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-999.999", "999.999", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="evaluationMinNumericRating")] + [Key(6)] public decimal? EvaluationMinNumericRating { get; set; } /// @@ -125649,6 +130338,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="programEvaluationDescription")] + [Key(7)] public string ProgramEvaluationDescription { get; set; } // ------------------------------------------------------------- @@ -125671,6 +130361,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "ProgramEvaluation", "ProgramEvaluation")] + [Key(8)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -125682,6 +130373,7 @@ public override int GetHashCode() [NoDuplicateMembers] [DataMember(Name="levels")] + [Key(9)] public ICollection ProgramEvaluationLevels { get { return _programEvaluationLevels; } @@ -125714,9 +130406,11 @@ public ICollection ProgramEvaluationLevels // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(10)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(11)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -125907,7 +130601,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.ProgramEvaluationLevel table of the ProgramEvaluation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class ProgramEvaluationLevel : Entities.Common.EdFi.IProgramEvaluationLevel, IValidatableObject { @@ -125950,6 +130644,7 @@ Entities.Common.EdFi.IProgramEvaluation IProgramEvaluationLevel.ProgramEvaluatio set { SetProgramEvaluation(value); } } + [IgnoreMember] public Entities.Common.EdFi.IProgramEvaluation ProgramEvaluation { set { SetProgramEvaluation(value); } @@ -125967,7 +130662,15 @@ private void SetProgramEvaluation(Entities.Common.EdFi.IProgramEvaluation value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="ratingLevelDescriptor")][DescriptorExists("RatingLevelDescriptor")] + [IgnoreMember] public string RatingLevelDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int RatingLevelDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("RatingLevelDescriptor", RatingLevelDescriptor); } + set { RatingLevelDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("RatingLevelDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -126038,6 +130741,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-999.999", "999.999", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="maxNumericRating")] + [Key(1)] public decimal? MaxNumericRating { get; set; } /// @@ -126046,6 +130750,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-999.999", "999.999", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="minNumericRating")] + [Key(2)] public decimal? MinNumericRating { get; set; } // ------------------------------------------------------------- @@ -126068,6 +130773,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "ProgramEvaluation", "ProgramEvaluationLevel")] + [Key(3)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -126209,45 +130915,78 @@ namespace EdFi.Ods.Api.Common.Models.Resources.ProgramEvaluationElement.EdFi /// /// Represents a reference to the ProgramEvaluationElement resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class ProgramEvaluationElementReference : IResourceReference { [DataMember(Name="programEducationOrganizationId")] + [Key(0)] public long ProgramEducationOrganizationId { get; set; } [DataMember(Name="programEvaluationElementTitle")] + [Key(1)] public string ProgramEvaluationElementTitle { get; set; } [DataMember(Name="programEvaluationPeriodDescriptor")][DescriptorExists("ProgramEvaluationPeriodDescriptor")] + [IgnoreMember] public string ProgramEvaluationPeriodDescriptor { get; set; } + [Key(2)][JsonIgnore] + public int ProgramEvaluationPeriodDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ProgramEvaluationPeriodDescriptor", ProgramEvaluationPeriodDescriptor); } + set { ProgramEvaluationPeriodDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ProgramEvaluationPeriodDescriptor", value); } + } + [DataMember(Name="programEvaluationTitle")] + [Key(3)] public string ProgramEvaluationTitle { get; set; } [DataMember(Name="programEvaluationTypeDescriptor")][DescriptorExists("ProgramEvaluationTypeDescriptor")] + [IgnoreMember] public string ProgramEvaluationTypeDescriptor { get; set; } + [Key(4)][JsonIgnore] + public int ProgramEvaluationTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ProgramEvaluationTypeDescriptor", ProgramEvaluationTypeDescriptor); } + set { ProgramEvaluationTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ProgramEvaluationTypeDescriptor", value); } + } + [DataMember(Name="programName")] + [Key(5)] public string ProgramName { get; set; } [DataMember(Name="programTypeDescriptor")][DescriptorExists("ProgramTypeDescriptor")] + [IgnoreMember] public string ProgramTypeDescriptor { get; set; } + [Key(6)][JsonIgnore] + public int ProgramTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ProgramTypeDescriptor", ProgramTypeDescriptor); } + set { ProgramTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ProgramTypeDescriptor", value); } + } + /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(7)] 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. /// + [Key(8)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(9)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -126346,7 +131085,7 @@ private Link CreateLink() /// /// A class which represents the edfi.ProgramEvaluationElement table of the ProgramEvaluationElement aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class ProgramEvaluationElement : Entities.Common.EdFi.IProgramEvaluationElement, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -126379,6 +131118,7 @@ public ProgramEvaluationElement() /// The unique identifier for the ProgramEvaluationElement resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -126402,6 +131142,7 @@ private ProgramEvaluationObjective.EdFi.ProgramEvaluationObjectiveReference Impl } [DataMember(Name="programEvaluationObjectiveReference")] + [Key(1)] [FullyDefinedReference] public ProgramEvaluationObjective.EdFi.ProgramEvaluationObjectiveReference ProgramEvaluationObjectiveReference { @@ -126435,6 +131176,7 @@ private ProgramEvaluation.EdFi.ProgramEvaluationReference ImplicitProgramEvaluat } [DataMember(Name="programEvaluationReference")] + [Key(2)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public ProgramEvaluation.EdFi.ProgramEvaluationReference ProgramEvaluationReference { @@ -126495,6 +131237,7 @@ long Entities.Common.EdFi.IProgramEvaluationElement.ProgramEducationOrganization [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="programEvaluationElementTitle")] + [Key(3)] public string ProgramEvaluationElementTitle { get; set; } /// @@ -126734,6 +131477,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-999.999", "999.999", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="elementMaxNumericRating")] + [Key(4)] public decimal? ElementMaxNumericRating { get; set; } /// @@ -126742,6 +131486,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-999.999", "999.999", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="elementMinNumericRating")] + [Key(5)] public decimal? ElementMinNumericRating { get; set; } /// @@ -126749,6 +131494,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="elementSortOrder")] + [Key(6)] public int? ElementSortOrder { get; set; } /// @@ -126757,6 +131503,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="programEvaluationElementDescription")] + [Key(7)] public string ProgramEvaluationElementDescription { get; set; } /// @@ -126806,6 +131553,7 @@ string Entities.Common.EdFi.IProgramEvaluationElement.ProgramEvaluationObjective // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "ProgramEvaluationElement", "ProgramEvaluationElement")] + [Key(8)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -126817,6 +131565,7 @@ string Entities.Common.EdFi.IProgramEvaluationElement.ProgramEvaluationObjective [NoDuplicateMembers] [DataMember(Name="programEvaluationLevels")] + [Key(9)] public ICollection ProgramEvaluationElementProgramEvaluationLevels { get { return _programEvaluationElementProgramEvaluationLevels; } @@ -126849,9 +131598,11 @@ public ICollection ProgramEvalua // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(10)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(11)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -127255,7 +132006,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.ProgramEvaluationElementProgramEvaluationLevel table of the ProgramEvaluationElement aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class ProgramEvaluationElementProgramEvaluationLevel : Entities.Common.EdFi.IProgramEvaluationElementProgramEvaluationLevel, IValidatableObject { @@ -127298,6 +132049,7 @@ Entities.Common.EdFi.IProgramEvaluationElement IProgramEvaluationElementProgramE set { SetProgramEvaluationElement(value); } } + [IgnoreMember] public Entities.Common.EdFi.IProgramEvaluationElement ProgramEvaluationElement { set { SetProgramEvaluationElement(value); } @@ -127315,7 +132067,15 @@ private void SetProgramEvaluationElement(Entities.Common.EdFi.IProgramEvaluation [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="ratingLevelDescriptor")][DescriptorExists("RatingLevelDescriptor")] + [IgnoreMember] public string RatingLevelDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int RatingLevelDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("RatingLevelDescriptor", RatingLevelDescriptor); } + set { RatingLevelDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("RatingLevelDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -127386,6 +132146,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-999.999", "999.999", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="maxNumericRating")] + [Key(1)] public decimal? MaxNumericRating { get; set; } /// @@ -127394,6 +132155,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-999.999", "999.999", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="minNumericRating")] + [Key(2)] public decimal? MinNumericRating { get; set; } // ------------------------------------------------------------- @@ -127416,6 +132178,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "ProgramEvaluationElement", "ProgramEvaluationElementProgramEvaluationLevel")] + [Key(3)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -127557,45 +132320,78 @@ namespace EdFi.Ods.Api.Common.Models.Resources.ProgramEvaluationObjective.EdFi /// /// Represents a reference to the ProgramEvaluationObjective resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class ProgramEvaluationObjectiveReference : IResourceReference { [DataMember(Name="programEducationOrganizationId")] + [Key(0)] public long ProgramEducationOrganizationId { get; set; } [DataMember(Name="programEvaluationObjectiveTitle")] + [Key(1)] public string ProgramEvaluationObjectiveTitle { get; set; } [DataMember(Name="programEvaluationPeriodDescriptor")][DescriptorExists("ProgramEvaluationPeriodDescriptor")] + [IgnoreMember] public string ProgramEvaluationPeriodDescriptor { get; set; } + [Key(2)][JsonIgnore] + public int ProgramEvaluationPeriodDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ProgramEvaluationPeriodDescriptor", ProgramEvaluationPeriodDescriptor); } + set { ProgramEvaluationPeriodDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ProgramEvaluationPeriodDescriptor", value); } + } + [DataMember(Name="programEvaluationTitle")] + [Key(3)] public string ProgramEvaluationTitle { get; set; } [DataMember(Name="programEvaluationTypeDescriptor")][DescriptorExists("ProgramEvaluationTypeDescriptor")] + [IgnoreMember] public string ProgramEvaluationTypeDescriptor { get; set; } + [Key(4)][JsonIgnore] + public int ProgramEvaluationTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ProgramEvaluationTypeDescriptor", ProgramEvaluationTypeDescriptor); } + set { ProgramEvaluationTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ProgramEvaluationTypeDescriptor", value); } + } + [DataMember(Name="programName")] + [Key(5)] public string ProgramName { get; set; } [DataMember(Name="programTypeDescriptor")][DescriptorExists("ProgramTypeDescriptor")] + [IgnoreMember] public string ProgramTypeDescriptor { get; set; } + [Key(6)][JsonIgnore] + public int ProgramTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ProgramTypeDescriptor", ProgramTypeDescriptor); } + set { ProgramTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ProgramTypeDescriptor", value); } + } + /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(7)] 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. /// + [Key(8)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(9)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -127694,7 +132490,7 @@ private Link CreateLink() /// /// A class which represents the edfi.ProgramEvaluationObjective table of the ProgramEvaluationObjective aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class ProgramEvaluationObjective : Entities.Common.EdFi.IProgramEvaluationObjective, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -127727,6 +132523,7 @@ public ProgramEvaluationObjective() /// The unique identifier for the ProgramEvaluationObjective resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -127750,6 +132547,7 @@ private ProgramEvaluation.EdFi.ProgramEvaluationReference ImplicitProgramEvaluat } [DataMember(Name="programEvaluationReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public ProgramEvaluation.EdFi.ProgramEvaluationReference ProgramEvaluationReference { @@ -127806,6 +132604,7 @@ long Entities.Common.EdFi.IProgramEvaluationObjective.ProgramEducationOrganizati [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="programEvaluationObjectiveTitle")] + [Key(2)] public string ProgramEvaluationObjectiveTitle { get; set; } /// @@ -128034,6 +132833,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-999.999", "999.999", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="objectiveMaxNumericRating")] + [Key(3)] public decimal? ObjectiveMaxNumericRating { get; set; } /// @@ -128042,6 +132842,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-999.999", "999.999", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="objectiveMinNumericRating")] + [Key(4)] public decimal? ObjectiveMinNumericRating { get; set; } /// @@ -128049,6 +132850,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="objectiveSortOrder")] + [Key(5)] public int? ObjectiveSortOrder { get; set; } /// @@ -128057,6 +132859,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="programEvaluationObjectiveDescription")] + [Key(6)] public string ProgramEvaluationObjectiveDescription { get; set; } // ------------------------------------------------------------- @@ -128079,6 +132882,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "ProgramEvaluationObjective", "ProgramEvaluationObjective")] + [Key(7)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -128090,6 +132894,7 @@ public override int GetHashCode() [NoDuplicateMembers] [DataMember(Name="programEvaluationLevels")] + [Key(8)] public ICollection ProgramEvaluationObjectiveProgramEvaluationLevels { get { return _programEvaluationObjectiveProgramEvaluationLevels; } @@ -128122,9 +132927,11 @@ public ICollection ProgramEval // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(9)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(10)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -128315,7 +133122,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.ProgramEvaluationObjectiveProgramEvaluationLevel table of the ProgramEvaluationObjective aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class ProgramEvaluationObjectiveProgramEvaluationLevel : Entities.Common.EdFi.IProgramEvaluationObjectiveProgramEvaluationLevel, IValidatableObject { @@ -128358,6 +133165,7 @@ Entities.Common.EdFi.IProgramEvaluationObjective IProgramEvaluationObjectiveProg set { SetProgramEvaluationObjective(value); } } + [IgnoreMember] public Entities.Common.EdFi.IProgramEvaluationObjective ProgramEvaluationObjective { set { SetProgramEvaluationObjective(value); } @@ -128375,7 +133183,15 @@ private void SetProgramEvaluationObjective(Entities.Common.EdFi.IProgramEvaluati [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="ratingLevelDescriptor")][DescriptorExists("RatingLevelDescriptor")] + [IgnoreMember] public string RatingLevelDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int RatingLevelDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("RatingLevelDescriptor", RatingLevelDescriptor); } + set { RatingLevelDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("RatingLevelDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -128446,6 +133262,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-999.999", "999.999", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="maxNumericRating")] + [Key(1)] public decimal? MaxNumericRating { get; set; } /// @@ -128454,6 +133271,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-999.999", "999.999", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="minNumericRating")] + [Key(2)] public decimal? MinNumericRating { get; set; } // ------------------------------------------------------------- @@ -128476,6 +133294,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "ProgramEvaluationObjective", "ProgramEvaluationObjectiveProgramEvaluationLevel")] + [Key(3)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -128617,7 +133436,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.ProgramEvaluationPeriodDescriptor /// /// A class which represents the edfi.ProgramEvaluationPeriodDescriptor table of the ProgramEvaluationPeriodDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class ProgramEvaluationPeriodDescriptor : Entities.Common.EdFi.IProgramEvaluationPeriodDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -128646,6 +133465,7 @@ public class ProgramEvaluationPeriodDescriptor : Entities.Common.EdFi.IProgramEv /// The unique identifier for the ProgramEvaluationPeriodDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -128730,6 +133550,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -128738,6 +133559,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -128745,6 +133567,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -128752,6 +133575,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -128761,6 +133585,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -128770,6 +133595,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -128813,9 +133639,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -128888,7 +133716,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.ProgramEvaluationTypeDescriptor.E /// /// A class which represents the edfi.ProgramEvaluationTypeDescriptor table of the ProgramEvaluationTypeDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class ProgramEvaluationTypeDescriptor : Entities.Common.EdFi.IProgramEvaluationTypeDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -128917,6 +133745,7 @@ public class ProgramEvaluationTypeDescriptor : Entities.Common.EdFi.IProgramEval /// The unique identifier for the ProgramEvaluationTypeDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -129001,6 +133830,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -129009,6 +133839,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -129016,6 +133847,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -129023,6 +133855,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -129032,6 +133865,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -129041,6 +133875,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -129084,9 +133919,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -129159,7 +133996,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.ProgramSponsorDescriptor.EdFi /// /// A class which represents the edfi.ProgramSponsorDescriptor table of the ProgramSponsorDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class ProgramSponsorDescriptor : Entities.Common.EdFi.IProgramSponsorDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -129188,6 +134025,7 @@ public class ProgramSponsorDescriptor : Entities.Common.EdFi.IProgramSponsorDesc /// The unique identifier for the ProgramSponsorDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -129272,6 +134110,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -129280,6 +134119,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -129287,6 +134127,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -129294,6 +134135,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -129303,6 +134145,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -129312,6 +134155,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -129355,9 +134199,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -129430,7 +134276,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.ProgramTypeDescriptor.EdFi /// /// A class which represents the edfi.ProgramTypeDescriptor table of the ProgramTypeDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class ProgramTypeDescriptor : Entities.Common.EdFi.IProgramTypeDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -129459,6 +134305,7 @@ public class ProgramTypeDescriptor : Entities.Common.EdFi.IProgramTypeDescriptor /// The unique identifier for the ProgramTypeDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -129543,6 +134390,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -129551,6 +134399,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -129558,6 +134407,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -129565,6 +134415,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -129574,6 +134425,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -129583,6 +134435,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -129626,9 +134479,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -129701,7 +134556,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.ProgressDescriptor.EdFi /// /// A class which represents the edfi.ProgressDescriptor table of the ProgressDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class ProgressDescriptor : Entities.Common.EdFi.IProgressDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -129730,6 +134585,7 @@ public class ProgressDescriptor : Entities.Common.EdFi.IProgressDescriptor, Enti /// The unique identifier for the ProgressDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -129814,6 +134670,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -129822,6 +134679,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -129829,6 +134687,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -129836,6 +134695,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -129845,6 +134705,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -129854,6 +134715,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -129897,9 +134759,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -129972,7 +134836,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.ProgressLevelDescriptor.EdFi /// /// A class which represents the edfi.ProgressLevelDescriptor table of the ProgressLevelDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class ProgressLevelDescriptor : Entities.Common.EdFi.IProgressLevelDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -130001,6 +134865,7 @@ public class ProgressLevelDescriptor : Entities.Common.EdFi.IProgressLevelDescri /// The unique identifier for the ProgressLevelDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -130085,6 +134950,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -130093,6 +134959,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -130100,6 +134967,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -130107,6 +134975,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -130116,6 +134985,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -130125,6 +134995,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -130168,9 +135039,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -130243,30 +135116,37 @@ namespace EdFi.Ods.Api.Common.Models.Resources.ProjectDimension.EdFi /// /// Represents a reference to the ProjectDimension resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class ProjectDimensionReference : IResourceReference { [DataMember(Name="code")] + [Key(0)] public string Code { get; set; } [DataMember(Name="fiscalYear")] + [Key(1)] public int FiscalYear { get; set; } /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(2)] 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. /// + [Key(3)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(4)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -130340,7 +135220,7 @@ private Link CreateLink() /// /// A class which represents the edfi.ProjectDimension table of the ProjectDimension aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] [NoUnsuppliedRequiredMembersWithMeaningfulDefaults] public class ProjectDimension : Entities.Common.EdFi.IProjectDimension, IHasETag, IDateVersionedEntity, IHasRequiredMembersWithMeaningfulDefaultValues, IValidatableObject @@ -130374,6 +135254,7 @@ public ProjectDimension() /// The unique identifier for the ProjectDimension resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -130394,6 +135275,7 @@ public ProjectDimension() [RequiredWithNonDefault] [NonDefaultStringLength(16, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="code")] + [Key(1)] public string Code { get; set; } private bool _fiscalYearExplicitlyAssigned = false; @@ -130405,6 +135287,7 @@ public ProjectDimension() // NOT in a reference, NOT a lookup column [Range(2020, 2040, ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="fiscalYear")] + [Key(2)] public int FiscalYear { get => _fiscalYear; @@ -130487,6 +135370,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(100, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeName")] + [Key(3)] public string CodeName { get; set; } // ------------------------------------------------------------- @@ -130517,6 +135401,7 @@ IEnumerable IHasRequiredMembersWithMeaningfulDefaultValues.GetUnassigned // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "ProjectDimension", "ProjectDimension")] + [Key(4)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -130528,6 +135413,7 @@ IEnumerable IHasRequiredMembersWithMeaningfulDefaultValues.GetUnassigned [NoDuplicateMembers] [DataMember(Name="reportingTags")] + [Key(5)] public ICollection ProjectDimensionReportingTags { get { return _projectDimensionReportingTags; } @@ -130560,9 +135446,11 @@ public ICollection ProjectDimensionReportingTags // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(6)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(7)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -130739,7 +135627,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.ProjectDimensionReportingTag table of the ProjectDimension aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class ProjectDimensionReportingTag : Entities.Common.EdFi.IProjectDimensionReportingTag, IValidatableObject { @@ -130782,6 +135670,7 @@ Entities.Common.EdFi.IProjectDimension IProjectDimensionReportingTag.ProjectDime set { SetProjectDimension(value); } } + [IgnoreMember] public Entities.Common.EdFi.IProjectDimension ProjectDimension { set { SetProjectDimension(value); } @@ -130799,7 +135688,15 @@ private void SetProjectDimension(Entities.Common.EdFi.IProjectDimension value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="reportingTagDescriptor")][DescriptorExists("ReportingTagDescriptor")] + [IgnoreMember] public string ReportingTagDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int ReportingTagDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ReportingTagDescriptor", ReportingTagDescriptor); } + set { ReportingTagDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ReportingTagDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -130884,6 +135781,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "ProjectDimension", "ProjectDimensionReportingTag")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -131025,7 +135923,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.ProviderCategoryDescriptor.EdFi /// /// A class which represents the edfi.ProviderCategoryDescriptor table of the ProviderCategoryDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class ProviderCategoryDescriptor : Entities.Common.EdFi.IProviderCategoryDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -131054,6 +135952,7 @@ public class ProviderCategoryDescriptor : Entities.Common.EdFi.IProviderCategory /// The unique identifier for the ProviderCategoryDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -131138,6 +136037,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -131146,6 +136046,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -131153,6 +136054,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -131160,6 +136062,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -131169,6 +136072,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -131178,6 +136082,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -131221,9 +136126,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -131296,7 +136203,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.ProviderProfitabilityDescriptor.E /// /// A class which represents the edfi.ProviderProfitabilityDescriptor table of the ProviderProfitabilityDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class ProviderProfitabilityDescriptor : Entities.Common.EdFi.IProviderProfitabilityDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -131325,6 +136232,7 @@ public class ProviderProfitabilityDescriptor : Entities.Common.EdFi.IProviderPro /// The unique identifier for the ProviderProfitabilityDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -131409,6 +136317,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -131417,6 +136326,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -131424,6 +136334,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -131431,6 +136342,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -131440,6 +136352,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -131449,6 +136362,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -131492,9 +136406,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -131567,7 +136483,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.ProviderStatusDescriptor.EdFi /// /// A class which represents the edfi.ProviderStatusDescriptor table of the ProviderStatusDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class ProviderStatusDescriptor : Entities.Common.EdFi.IProviderStatusDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -131596,6 +136512,7 @@ public class ProviderStatusDescriptor : Entities.Common.EdFi.IProviderStatusDesc /// The unique identifier for the ProviderStatusDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -131680,6 +136597,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -131688,6 +136606,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -131695,6 +136614,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -131702,6 +136622,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -131711,6 +136632,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -131720,6 +136642,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -131763,9 +136686,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -131838,7 +136763,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.PublicationStatusDescriptor.EdFi /// /// A class which represents the edfi.PublicationStatusDescriptor table of the PublicationStatusDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class PublicationStatusDescriptor : Entities.Common.EdFi.IPublicationStatusDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -131867,6 +136792,7 @@ public class PublicationStatusDescriptor : Entities.Common.EdFi.IPublicationStat /// The unique identifier for the PublicationStatusDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -131951,6 +136877,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -131959,6 +136886,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -131966,6 +136894,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -131973,6 +136902,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -131982,6 +136912,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -131991,6 +136922,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -132034,9 +136966,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -132109,7 +137043,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.QuestionFormDescriptor.EdFi /// /// A class which represents the edfi.QuestionFormDescriptor table of the QuestionFormDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class QuestionFormDescriptor : Entities.Common.EdFi.IQuestionFormDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -132138,6 +137072,7 @@ public class QuestionFormDescriptor : Entities.Common.EdFi.IQuestionFormDescript /// The unique identifier for the QuestionFormDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -132222,6 +137157,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -132230,6 +137166,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -132237,6 +137174,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -132244,6 +137182,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -132253,6 +137192,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -132262,6 +137202,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -132305,9 +137246,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -132380,7 +137323,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.RaceDescriptor.EdFi /// /// A class which represents the edfi.RaceDescriptor table of the RaceDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class RaceDescriptor : Entities.Common.EdFi.IRaceDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -132409,6 +137352,7 @@ public class RaceDescriptor : Entities.Common.EdFi.IRaceDescriptor, Entities.Com /// The unique identifier for the RaceDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -132493,6 +137437,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -132501,6 +137446,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -132508,6 +137454,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -132515,6 +137462,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -132524,6 +137472,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -132533,6 +137482,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -132576,9 +137526,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -132651,7 +137603,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.RatingLevelDescriptor.EdFi /// /// A class which represents the edfi.RatingLevelDescriptor table of the RatingLevelDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class RatingLevelDescriptor : Entities.Common.EdFi.IRatingLevelDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -132680,6 +137632,7 @@ public class RatingLevelDescriptor : Entities.Common.EdFi.IRatingLevelDescriptor /// The unique identifier for the RatingLevelDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -132764,6 +137717,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -132772,6 +137726,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -132779,6 +137734,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -132786,6 +137742,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -132795,6 +137752,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -132804,6 +137762,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -132847,9 +137806,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -132922,7 +137883,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.ReasonExitedDescriptor.EdFi /// /// A class which represents the edfi.ReasonExitedDescriptor table of the ReasonExitedDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class ReasonExitedDescriptor : Entities.Common.EdFi.IReasonExitedDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -132951,6 +137912,7 @@ public class ReasonExitedDescriptor : Entities.Common.EdFi.IReasonExitedDescript /// The unique identifier for the ReasonExitedDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -133035,6 +137997,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -133043,6 +138006,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -133050,6 +138014,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -133057,6 +138022,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -133066,6 +138032,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -133075,6 +138042,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -133118,9 +138086,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -133193,7 +138163,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.ReasonNotTestedDescriptor.EdFi /// /// A class which represents the edfi.ReasonNotTestedDescriptor table of the ReasonNotTestedDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class ReasonNotTestedDescriptor : Entities.Common.EdFi.IReasonNotTestedDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -133222,6 +138192,7 @@ public class ReasonNotTestedDescriptor : Entities.Common.EdFi.IReasonNotTestedDe /// The unique identifier for the ReasonNotTestedDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -133306,6 +138277,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -133314,6 +138286,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -133321,6 +138294,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -133328,6 +138302,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -133337,6 +138312,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -133346,6 +138322,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -133389,9 +138366,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -133464,7 +138443,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.RecognitionTypeDescriptor.EdFi /// /// A class which represents the edfi.RecognitionTypeDescriptor table of the RecognitionTypeDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class RecognitionTypeDescriptor : Entities.Common.EdFi.IRecognitionTypeDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -133493,6 +138472,7 @@ public class RecognitionTypeDescriptor : Entities.Common.EdFi.IRecognitionTypeDe /// The unique identifier for the RecognitionTypeDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -133577,6 +138557,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -133585,6 +138566,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -133592,6 +138574,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -133599,6 +138582,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -133608,6 +138592,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -133617,6 +138602,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -133660,9 +138646,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -133735,7 +138723,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.RelationDescriptor.EdFi /// /// A class which represents the edfi.RelationDescriptor table of the RelationDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class RelationDescriptor : Entities.Common.EdFi.IRelationDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -133764,6 +138752,7 @@ public class RelationDescriptor : Entities.Common.EdFi.IRelationDescriptor, Enti /// The unique identifier for the RelationDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -133848,6 +138837,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -133856,6 +138846,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -133863,6 +138854,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -133870,6 +138862,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -133879,6 +138872,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -133888,6 +138882,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -133931,9 +138926,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -134006,7 +139003,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.RepeatIdentifierDescriptor.EdFi /// /// A class which represents the edfi.RepeatIdentifierDescriptor table of the RepeatIdentifierDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class RepeatIdentifierDescriptor : Entities.Common.EdFi.IRepeatIdentifierDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -134035,6 +139032,7 @@ public class RepeatIdentifierDescriptor : Entities.Common.EdFi.IRepeatIdentifier /// The unique identifier for the RepeatIdentifierDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -134119,6 +139117,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -134127,6 +139126,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -134134,6 +139134,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -134141,6 +139142,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -134150,6 +139152,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -134159,6 +139162,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -134202,9 +139206,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -134277,23 +139283,35 @@ namespace EdFi.Ods.Api.Common.Models.Resources.ReportCard.EdFi /// /// Represents a reference to the ReportCard resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class ReportCardReference : IResourceReference { [DataMember(Name="educationOrganizationId")] + [Key(0)] public long EducationOrganizationId { get; set; } [DataMember(Name="gradingPeriodDescriptor")][DescriptorExists("GradingPeriodDescriptor")] + [IgnoreMember] public string GradingPeriodDescriptor { get; set; } + [Key(1)][JsonIgnore] + public int GradingPeriodDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("GradingPeriodDescriptor", GradingPeriodDescriptor); } + set { GradingPeriodDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("GradingPeriodDescriptor", value); } + } + [DataMember(Name="gradingPeriodName")] + [Key(2)] public string GradingPeriodName { get; set; } [DataMember(Name="gradingPeriodSchoolId")] + [Key(3)] public long GradingPeriodSchoolId { get; set; } [DataMember(Name="gradingPeriodSchoolYear")] + [Key(4)] public short GradingPeriodSchoolYear { get; set; } [DataMember(Name="studentUniqueId")] @@ -134311,17 +139329,22 @@ public string StudentUniqueId /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(5)] 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. /// + [Key(6)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(7)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -134415,7 +139438,7 @@ private Link CreateLink() /// /// A class which represents the edfi.ReportCard table of the ReportCard aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class ReportCard : Entities.Common.EdFi.IReportCard, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -134450,6 +139473,7 @@ public ReportCard() /// The unique identifier for the ReportCard resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -134473,6 +139497,7 @@ private EducationOrganization.EdFi.EducationOrganizationReference ImplicitEducat } [DataMember(Name="educationOrganizationReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public EducationOrganization.EdFi.EducationOrganizationReference EducationOrganizationReference { @@ -134506,6 +139531,7 @@ private GradingPeriod.EdFi.GradingPeriodReference ImplicitGradingPeriodReference } [DataMember(Name="gradingPeriodReference")] + [Key(2)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public GradingPeriod.EdFi.GradingPeriodReference GradingPeriodReference { @@ -134539,6 +139565,7 @@ private Student.EdFi.StudentReference ImplicitStudentReference } [DataMember(Name="studentReference")] + [Key(3)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Student.EdFi.StudentReference StudentReference { @@ -134812,6 +139839,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "0", "99999999999999.9999", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="numberOfDaysAbsent")] + [Key(4)] public decimal? NumberOfDaysAbsent { get; set; } /// @@ -134820,6 +139848,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "0", "99999999999999.9999", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="numberOfDaysInAttendance")] + [Key(5)] public decimal? NumberOfDaysInAttendance { get; set; } /// @@ -134828,6 +139857,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(0, 2147483647, ErrorMessage=ValidationHelpers.RangeMinOnlyMessageFormat)] [DataMember(Name="numberOfDaysTardy")] + [Key(6)] public int? NumberOfDaysTardy { get; set; } // ------------------------------------------------------------- @@ -134850,6 +139880,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "ReportCard", "ReportCard")] + [Key(7)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -134861,6 +139892,7 @@ public override int GetHashCode() [NoDuplicateMembers] [DataMember(Name="gradePointAverages")] + [Key(8)] public ICollection ReportCardGradePointAverages { get { return _reportCardGradePointAverages; } @@ -134891,6 +139923,7 @@ public ICollection ReportCardGradePointAverages [NoDuplicateMembers] [DataMember(Name="grades")] + [Key(9)] public ICollection ReportCardGrades { get { return _reportCardGrades; } @@ -134921,6 +139954,7 @@ public ICollection ReportCardGrades [NoDuplicateMembers] [DataMember(Name="studentCompetencyObjectives")] + [Key(10)] public ICollection ReportCardStudentCompetencyObjectives { get { return _reportCardStudentCompetencyObjectives; } @@ -134953,9 +139987,11 @@ public ICollection ReportCardStudentCompet // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(11)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(12)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -135232,7 +140268,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.ReportCardGrade table of the ReportCard aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class ReportCardGrade : Entities.Common.EdFi.IReportCardGrade, IValidatableObject { @@ -135277,6 +140313,7 @@ private Grade.EdFi.GradeReference ImplicitGradeReference } [DataMember(Name="gradeReference")] + [Key(0)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Grade.EdFi.GradeReference GradeReference { @@ -135309,6 +140346,7 @@ Entities.Common.EdFi.IReportCard IReportCardGrade.ReportCard set { SetReportCard(value); } } + [IgnoreMember] public Entities.Common.EdFi.IReportCard ReportCard { set { SetReportCard(value); } @@ -135630,6 +140668,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "ReportCard", "ReportCardGrade")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -135901,7 +140940,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.ReportCardGradePointAverage table of the ReportCard aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] [NoUnsuppliedRequiredMembersWithMeaningfulDefaults] public class ReportCardGradePointAverage : Entities.Common.EdFi.IReportCardGradePointAverage, IHasRequiredMembersWithMeaningfulDefaultValues, IValidatableObject @@ -135945,6 +140984,7 @@ Entities.Common.EdFi.IReportCard IReportCardGradePointAverage.ReportCard set { SetReportCard(value); } } + [IgnoreMember] public Entities.Common.EdFi.IReportCard ReportCard { set { SetReportCard(value); } @@ -135962,7 +141002,15 @@ private void SetReportCard(Entities.Common.EdFi.IReportCard value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="gradePointAverageTypeDescriptor")][DescriptorExists("GradePointAverageTypeDescriptor")] + [IgnoreMember] public string GradePointAverageTypeDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int GradePointAverageTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("GradePointAverageTypeDescriptor", GradePointAverageTypeDescriptor); } + set { GradePointAverageTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("GradePointAverageTypeDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -136036,6 +141084,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "0", "99999999999999.9999", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="gradePointAverageValue")] + [Key(1)] public decimal GradePointAverageValue { get => _gradePointAverageValue; @@ -136052,6 +141101,7 @@ public decimal GradePointAverageValue /// // NOT in a reference, NOT a lookup column [DataMember(Name="isCumulative")] + [Key(2)] public bool? IsCumulative { get; set; } /// @@ -136060,6 +141110,7 @@ public decimal GradePointAverageValue // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "0", "99999999999999.9999", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="maxGradePointAverageValue")] + [Key(3)] public decimal? MaxGradePointAverageValue { get; set; } // ------------------------------------------------------------- @@ -136090,6 +141141,7 @@ IEnumerable IHasRequiredMembersWithMeaningfulDefaultValues.GetUnassigned // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "ReportCard", "ReportCardGradePointAverage")] + [Key(4)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -136226,7 +141278,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.ReportCardStudentCompetencyObjective table of the ReportCard aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class ReportCardStudentCompetencyObjective : Entities.Common.EdFi.IReportCardStudentCompetencyObjective, IValidatableObject { @@ -136271,6 +141323,7 @@ private StudentCompetencyObjective.EdFi.StudentCompetencyObjectiveReference Impl } [DataMember(Name="studentCompetencyObjectiveReference")] + [Key(0)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public StudentCompetencyObjective.EdFi.StudentCompetencyObjectiveReference StudentCompetencyObjectiveReference { @@ -136303,6 +141356,7 @@ Entities.Common.EdFi.IReportCard IReportCardStudentCompetencyObjective.ReportCar set { SetReportCard(value); } } + [IgnoreMember] public Entities.Common.EdFi.IReportCard ReportCard { set { SetReportCard(value); } @@ -136493,6 +141547,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "ReportCard", "ReportCardStudentCompetencyObjective")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -136796,7 +141851,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.ReporterDescriptionDescriptor.EdF /// /// A class which represents the edfi.ReporterDescriptionDescriptor table of the ReporterDescriptionDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class ReporterDescriptionDescriptor : Entities.Common.EdFi.IReporterDescriptionDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -136825,6 +141880,7 @@ public class ReporterDescriptionDescriptor : Entities.Common.EdFi.IReporterDescr /// The unique identifier for the ReporterDescriptionDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -136909,6 +141965,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -136917,6 +141974,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -136924,6 +141982,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -136931,6 +141990,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -136940,6 +142000,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -136949,6 +142010,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -136992,9 +142054,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -137067,7 +142131,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.ReportingTagDescriptor.EdFi /// /// A class which represents the edfi.ReportingTagDescriptor table of the ReportingTagDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class ReportingTagDescriptor : Entities.Common.EdFi.IReportingTagDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -137096,6 +142160,7 @@ public class ReportingTagDescriptor : Entities.Common.EdFi.IReportingTagDescript /// The unique identifier for the ReportingTagDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -137180,6 +142245,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -137188,6 +142254,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -137195,6 +142262,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -137202,6 +142270,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -137211,6 +142280,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -137220,6 +142290,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -137263,9 +142334,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -137338,7 +142411,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.ResidencyStatusDescriptor.EdFi /// /// A class which represents the edfi.ResidencyStatusDescriptor table of the ResidencyStatusDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class ResidencyStatusDescriptor : Entities.Common.EdFi.IResidencyStatusDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -137367,6 +142440,7 @@ public class ResidencyStatusDescriptor : Entities.Common.EdFi.IResidencyStatusDe /// The unique identifier for the ResidencyStatusDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -137451,6 +142525,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -137459,6 +142534,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -137466,6 +142542,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -137473,6 +142550,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -137482,6 +142560,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -137491,6 +142570,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -137534,9 +142614,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -137609,7 +142691,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.ResponseIndicatorDescriptor.EdFi /// /// A class which represents the edfi.ResponseIndicatorDescriptor table of the ResponseIndicatorDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class ResponseIndicatorDescriptor : Entities.Common.EdFi.IResponseIndicatorDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -137638,6 +142720,7 @@ public class ResponseIndicatorDescriptor : Entities.Common.EdFi.IResponseIndicat /// The unique identifier for the ResponseIndicatorDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -137722,6 +142805,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -137730,6 +142814,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -137737,6 +142822,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -137744,6 +142830,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -137753,6 +142840,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -137762,6 +142850,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -137805,9 +142894,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -137880,7 +142971,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.ResponsibilityDescriptor.EdFi /// /// A class which represents the edfi.ResponsibilityDescriptor table of the ResponsibilityDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class ResponsibilityDescriptor : Entities.Common.EdFi.IResponsibilityDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -137909,6 +143000,7 @@ public class ResponsibilityDescriptor : Entities.Common.EdFi.IResponsibilityDesc /// The unique identifier for the ResponsibilityDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -137993,6 +143085,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -138001,6 +143094,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -138008,6 +143102,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -138015,6 +143110,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -138024,6 +143120,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -138033,6 +143130,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -138076,9 +143174,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -138151,14 +143251,16 @@ namespace EdFi.Ods.Api.Common.Models.Resources.RestraintEvent.EdFi /// /// Represents a reference to the RestraintEvent resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class RestraintEventReference : IResourceReference { [DataMember(Name="restraintEventIdentifier")] + [Key(0)] public string RestraintEventIdentifier { get; set; } [DataMember(Name="schoolId")] + [Key(1)] public long SchoolId { get; set; } [DataMember(Name="studentUniqueId")] @@ -138176,17 +143278,22 @@ public string StudentUniqueId /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(2)] 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. /// + [Key(3)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(4)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -138265,7 +143372,7 @@ private Link CreateLink() /// /// A class which represents the edfi.RestraintEvent table of the RestraintEvent aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class RestraintEvent : Entities.Common.EdFi.IRestraintEvent, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -138299,6 +143406,7 @@ public RestraintEvent() /// The unique identifier for the RestraintEvent resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -138322,6 +143430,7 @@ private DisciplineIncident.EdFi.DisciplineIncidentReference ImplicitDisciplineIn } [DataMember(Name="disciplineIncidentReference")] + [Key(1)] [FullyDefinedReference] public DisciplineIncident.EdFi.DisciplineIncidentReference DisciplineIncidentReference { @@ -138355,6 +143464,7 @@ private School.EdFi.SchoolReference ImplicitSchoolReference } [DataMember(Name="schoolReference")] + [Key(2)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public School.EdFi.SchoolReference SchoolReference { @@ -138388,6 +143498,7 @@ private Student.EdFi.StudentReference ImplicitStudentReference } [DataMember(Name="studentReference")] + [Key(3)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Student.EdFi.StudentReference StudentReference { @@ -138419,6 +143530,7 @@ public Student.EdFi.StudentReference StudentReference [RequiredWithNonDefault] [NonDefaultStringLength(36, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="restraintEventIdentifier")] + [Key(4)] public string RestraintEventIdentifier { get; set; } /// @@ -138554,14 +143666,23 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="educationalEnvironmentDescriptor")][DescriptorExists("EducationalEnvironmentDescriptor")] + [IgnoreMember] public string EducationalEnvironmentDescriptor { get; set; } + [Key(5)][JsonIgnore] + public int EducationalEnvironmentDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("EducationalEnvironmentDescriptor", EducationalEnvironmentDescriptor); } + set { EducationalEnvironmentDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("EducationalEnvironmentDescriptor", value); } + } + /// /// Month, day, and year of the restraint event. /// // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] [DataMember(Name="eventDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(6)] public DateTime EventDate { get; set; } /// @@ -138611,6 +143732,7 @@ string Entities.Common.EdFi.IRestraintEvent.IncidentIdentifier // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "RestraintEvent", "RestraintEvent")] + [Key(7)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -138622,6 +143744,7 @@ string Entities.Common.EdFi.IRestraintEvent.IncidentIdentifier [NoDuplicateMembers] [DataMember(Name="programs")] + [Key(8)] public ICollection RestraintEventPrograms { get { return _restraintEventPrograms; } @@ -138652,6 +143775,7 @@ public ICollection RestraintEventPrograms [NoDuplicateMembers] [DataMember(Name="reasons")] + [Key(9)] public ICollection RestraintEventReasons { get { return _restraintEventReasons; } @@ -138684,9 +143808,11 @@ public ICollection RestraintEventReasons // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(10)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(11)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -138966,7 +144092,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.RestraintEventProgram table of the RestraintEvent aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class RestraintEventProgram : Entities.Common.EdFi.IRestraintEventProgram, IValidatableObject { @@ -139011,6 +144137,7 @@ private Program.EdFi.ProgramReference ImplicitProgramReference } [DataMember(Name="programReference")] + [Key(0)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Program.EdFi.ProgramReference ProgramReference { @@ -139043,6 +144170,7 @@ Entities.Common.EdFi.IRestraintEvent IRestraintEventProgram.RestraintEvent set { SetRestraintEvent(value); } } + [IgnoreMember] public Entities.Common.EdFi.IRestraintEvent RestraintEvent { set { SetRestraintEvent(value); } @@ -139223,6 +144351,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "RestraintEvent", "RestraintEventProgram")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -139373,7 +144502,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.RestraintEventReason table of the RestraintEvent aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class RestraintEventReason : Entities.Common.EdFi.IRestraintEventReason, IValidatableObject { @@ -139416,6 +144545,7 @@ Entities.Common.EdFi.IRestraintEvent IRestraintEventReason.RestraintEvent set { SetRestraintEvent(value); } } + [IgnoreMember] public Entities.Common.EdFi.IRestraintEvent RestraintEvent { set { SetRestraintEvent(value); } @@ -139433,7 +144563,15 @@ private void SetRestraintEvent(Entities.Common.EdFi.IRestraintEvent value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="restraintEventReasonDescriptor")][DescriptorExists("RestraintEventReasonDescriptor")] + [IgnoreMember] public string RestraintEventReasonDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int RestraintEventReasonDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("RestraintEventReasonDescriptor", RestraintEventReasonDescriptor); } + set { RestraintEventReasonDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("RestraintEventReasonDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -139518,6 +144656,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "RestraintEvent", "RestraintEventReason")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -139659,7 +144798,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.RestraintEventReasonDescriptor.Ed /// /// A class which represents the edfi.RestraintEventReasonDescriptor table of the RestraintEventReasonDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class RestraintEventReasonDescriptor : Entities.Common.EdFi.IRestraintEventReasonDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -139688,6 +144827,7 @@ public class RestraintEventReasonDescriptor : Entities.Common.EdFi.IRestraintEve /// The unique identifier for the RestraintEventReasonDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -139772,6 +144912,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -139780,6 +144921,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -139787,6 +144929,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -139794,6 +144937,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -139803,6 +144947,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -139812,6 +144957,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -139855,9 +145001,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -139930,7 +145078,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.ResultDatatypeTypeDescriptor.EdFi /// /// A class which represents the edfi.ResultDatatypeTypeDescriptor table of the ResultDatatypeTypeDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class ResultDatatypeTypeDescriptor : Entities.Common.EdFi.IResultDatatypeTypeDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -139959,6 +145107,7 @@ public class ResultDatatypeTypeDescriptor : Entities.Common.EdFi.IResultDatatype /// The unique identifier for the ResultDatatypeTypeDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -140043,6 +145192,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -140051,6 +145201,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -140058,6 +145209,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -140065,6 +145217,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -140074,6 +145227,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -140083,6 +145237,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -140126,9 +145281,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -140201,7 +145358,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.RetestIndicatorDescriptor.EdFi /// /// A class which represents the edfi.RetestIndicatorDescriptor table of the RetestIndicatorDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class RetestIndicatorDescriptor : Entities.Common.EdFi.IRetestIndicatorDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -140230,6 +145387,7 @@ public class RetestIndicatorDescriptor : Entities.Common.EdFi.IRetestIndicatorDe /// The unique identifier for the RetestIndicatorDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -140314,6 +145472,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -140322,6 +145481,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -140329,6 +145489,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -140336,6 +145497,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -140345,6 +145507,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -140354,6 +145517,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -140397,9 +145561,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -140472,21 +145638,26 @@ namespace EdFi.Ods.Api.Common.Models.Resources.School.EdFi /// /// Represents a reference to the School resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class SchoolReference : IResourceReference { [DataMember(Name="schoolId")] + [Key(0)] public long SchoolId { get; set; } /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(1)] public Guid ResourceId { get; set; } - private Link _link; + [JsonIgnore] + [Key(2)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -140536,7 +145707,7 @@ private Link CreateLink() /// /// A class which represents the edfi.School table of the School aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class School : Entities.Common.EdFi.ISchool, Entities.Common.EdFi.IEducationOrganization, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -140578,6 +145749,7 @@ public School() /// The unique identifier for the School resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -140601,6 +145773,7 @@ private SchoolYearType.EdFi.SchoolYearTypeReference ImplicitCharterApprovalSchoo } [DataMember(Name="charterApprovalSchoolYearTypeReference")] + [Key(1)] [FullyDefinedReference] public SchoolYearType.EdFi.SchoolYearTypeReference CharterApprovalSchoolYearTypeReference { @@ -140634,6 +145807,7 @@ private LocalEducationAgency.EdFi.LocalEducationAgencyReference ImplicitLocalEdu } [DataMember(Name="localEducationAgencyReference")] + [Key(2)] [FullyDefinedReference] public LocalEducationAgency.EdFi.LocalEducationAgencyReference LocalEducationAgencyReference { @@ -140663,7 +145837,7 @@ public LocalEducationAgency.EdFi.LocalEducationAgencyReference LocalEducationAge /// // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] - [DataMember(Name="schoolId")] + [DataMember(Name="schoolId"),Key(3)] public long SchoolId { get; set; } long IEducationOrganization.EducationOrganizationId @@ -140730,6 +145904,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="nameOfInstitution")] + [Key(4)] public string NameOfInstitution { get; set; } /// @@ -140738,14 +145913,23 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="operationalStatusDescriptor")][DescriptorExists("OperationalStatusDescriptor")] + [IgnoreMember] public string OperationalStatusDescriptor { get; set; } + [Key(5)][JsonIgnore] + public int OperationalStatusDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("OperationalStatusDescriptor", OperationalStatusDescriptor); } + set { OperationalStatusDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("OperationalStatusDescriptor", value); } + } + /// /// A short name for the institution. /// // NOT in a reference, NOT a lookup column [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortNameOfInstitution")] + [Key(6)] public string ShortNameOfInstitution { get; set; } /// @@ -140754,6 +145938,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(255, MinimumLength=5, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText] [DataMember(Name="webSite")] + [Key(7)] public string WebSite { get; set; } // ------------------------------------------------------------- @@ -140767,16 +145952,32 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="administrativeFundingControlDescriptor")][DescriptorExists("AdministrativeFundingControlDescriptor")] + [IgnoreMember] public string AdministrativeFundingControlDescriptor { get; set; } + [Key(8)][JsonIgnore] + public int AdministrativeFundingControlDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("AdministrativeFundingControlDescriptor", AdministrativeFundingControlDescriptor); } + set { AdministrativeFundingControlDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("AdministrativeFundingControlDescriptor", value); } + } + /// /// The type of agency that approved the establishment or continuation of a charter school. /// // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="charterApprovalAgencyTypeDescriptor")][DescriptorExists("CharterApprovalAgencyTypeDescriptor")] + [IgnoreMember] public string CharterApprovalAgencyTypeDescriptor { get; set; } + [Key(9)][JsonIgnore] + public int CharterApprovalAgencyTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("CharterApprovalAgencyTypeDescriptor", CharterApprovalAgencyTypeDescriptor); } + set { CharterApprovalAgencyTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("CharterApprovalAgencyTypeDescriptor", value); } + } + /// /// The school year in which a charter school was initially approved. /// @@ -140810,16 +146011,32 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="charterStatusDescriptor")][DescriptorExists("CharterStatusDescriptor")] + [IgnoreMember] public string CharterStatusDescriptor { get; set; } + [Key(10)][JsonIgnore] + public int CharterStatusDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("CharterStatusDescriptor", CharterStatusDescriptor); } + set { CharterStatusDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("CharterStatusDescriptor", value); } + } + /// /// The type of Internet access available. /// // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="internetAccessDescriptor")][DescriptorExists("InternetAccessDescriptor")] + [IgnoreMember] public string InternetAccessDescriptor { get; set; } + [Key(11)][JsonIgnore] + public int InternetAccessDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("InternetAccessDescriptor", InternetAccessDescriptor); } + set { InternetAccessDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("InternetAccessDescriptor", value); } + } + /// /// The identifier assigned to a local education agency. It must be distinct from any other identifier assigned to educational organizations, such as a SchoolId, to prevent duplication. /// @@ -140853,23 +146070,47 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="magnetSpecialProgramEmphasisSchoolDescriptor")][DescriptorExists("MagnetSpecialProgramEmphasisSchoolDescriptor")] + [IgnoreMember] public string MagnetSpecialProgramEmphasisSchoolDescriptor { get; set; } + [Key(12)][JsonIgnore] + public int MagnetSpecialProgramEmphasisSchoolDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("MagnetSpecialProgramEmphasisSchoolDescriptor", MagnetSpecialProgramEmphasisSchoolDescriptor); } + set { MagnetSpecialProgramEmphasisSchoolDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("MagnetSpecialProgramEmphasisSchoolDescriptor", value); } + } + /// /// The type of education institution as classified by its primary focus. /// // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="schoolTypeDescriptor")][DescriptorExists("SchoolTypeDescriptor")] + [IgnoreMember] public string SchoolTypeDescriptor { get; set; } + [Key(13)][JsonIgnore] + public int SchoolTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("SchoolTypeDescriptor", SchoolTypeDescriptor); } + set { SchoolTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("SchoolTypeDescriptor", value); } + } + /// /// Denotes the Title I Part A designation for the school. /// // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="titleIPartASchoolDesignationDescriptor")][DescriptorExists("TitleIPartASchoolDesignationDescriptor")] + [IgnoreMember] public string TitleIPartASchoolDesignationDescriptor { get; set; } + + [Key(14)][JsonIgnore] + public int TitleIPartASchoolDesignationDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("TitleIPartASchoolDesignationDescriptor", TitleIPartASchoolDesignationDescriptor); } + set { TitleIPartASchoolDesignationDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("TitleIPartASchoolDesignationDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -140890,6 +146131,7 @@ public override int GetHashCode() [NoDuplicateMembers] [DataMember(Name="addresses")] + [Key(15)] public ICollection EducationOrganizationAddresses { get { return _educationOrganizationAddresses; } @@ -140911,6 +146153,7 @@ public ICollection Educ [NoDuplicateMembers][RequiredCollection] [DataMember(Name="educationOrganizationCategories")] + [Key(16)] public ICollection EducationOrganizationCategories { get { return _educationOrganizationCategories; } @@ -140932,6 +146175,7 @@ public ICollection Edu [NoDuplicateMembers] [DataMember(Name="identificationCodes")] + [Key(17)] public ICollection EducationOrganizationIdentificationCodes { get { return _educationOrganizationIdentificationCodes; } @@ -140953,6 +146197,7 @@ public ICollection EducationOrganizationIndicators { get { return _educationOrganizationIndicators; } @@ -140974,6 +146219,7 @@ public ICollection Ed [NoDuplicateMembers] [DataMember(Name="institutionTelephones")] + [Key(19)] public ICollection EducationOrganizationInstitutionTelephones { get { return _educationOrganizationInstitutionTelephones; } @@ -140995,6 +146241,7 @@ public ICollection EducationOrganizationInternationalAddresses { get { return _educationOrganizationInternationalAddresses; } @@ -141017,6 +146264,7 @@ public ICollection SchoolCategories { get { return _schoolCategories; } @@ -141058,6 +146307,7 @@ public ICollection SchoolCategories [NoDuplicateMembers][RequiredCollection] [DataMember(Name="gradeLevels")] + [Key(23)] public ICollection SchoolGradeLevels { get { return _schoolGradeLevels; } @@ -141090,9 +146340,11 @@ public ICollection SchoolGradeLevels // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(24)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(25)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -141486,7 +146738,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext c /// /// A class which represents the edfi.SchoolCategory table of the School aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class SchoolCategory : Entities.Common.EdFi.ISchoolCategory, IValidatableObject { @@ -141529,6 +146781,7 @@ Entities.Common.EdFi.ISchool ISchoolCategory.School set { SetSchool(value); } } + [IgnoreMember] public Entities.Common.EdFi.ISchool School { set { SetSchool(value); } @@ -141546,7 +146799,15 @@ private void SetSchool(Entities.Common.EdFi.ISchool value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="schoolCategoryDescriptor")][DescriptorExists("SchoolCategoryDescriptor")] + [IgnoreMember] public string SchoolCategoryDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int SchoolCategoryDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("SchoolCategoryDescriptor", SchoolCategoryDescriptor); } + set { SchoolCategoryDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("SchoolCategoryDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -141631,6 +146892,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "School", "SchoolCategory")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -141767,7 +147029,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.SchoolGradeLevel table of the School aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class SchoolGradeLevel : Entities.Common.EdFi.ISchoolGradeLevel, IValidatableObject { @@ -141810,6 +147072,7 @@ Entities.Common.EdFi.ISchool ISchoolGradeLevel.School set { SetSchool(value); } } + [IgnoreMember] public Entities.Common.EdFi.ISchool School { set { SetSchool(value); } @@ -141827,7 +147090,15 @@ private void SetSchool(Entities.Common.EdFi.ISchool value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="gradeLevelDescriptor")][DescriptorExists("GradeLevelDescriptor")] + [IgnoreMember] public string GradeLevelDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int GradeLevelDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("GradeLevelDescriptor", GradeLevelDescriptor); } + set { GradeLevelDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("GradeLevelDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -141912,6 +147183,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "School", "SchoolGradeLevel")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -142053,7 +147325,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.SchoolCategoryDescriptor.EdFi /// /// A class which represents the edfi.SchoolCategoryDescriptor table of the SchoolCategoryDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class SchoolCategoryDescriptor : Entities.Common.EdFi.ISchoolCategoryDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -142082,6 +147354,7 @@ public class SchoolCategoryDescriptor : Entities.Common.EdFi.ISchoolCategoryDesc /// The unique identifier for the SchoolCategoryDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -142166,6 +147439,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -142174,6 +147448,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -142181,6 +147456,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -142188,6 +147464,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -142197,6 +147474,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -142206,6 +147484,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -142249,9 +147528,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -142324,7 +147605,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.SchoolChoiceBasisDescriptor.EdFi /// /// A class which represents the edfi.SchoolChoiceBasisDescriptor table of the SchoolChoiceBasisDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class SchoolChoiceBasisDescriptor : Entities.Common.EdFi.ISchoolChoiceBasisDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -142353,6 +147634,7 @@ public class SchoolChoiceBasisDescriptor : Entities.Common.EdFi.ISchoolChoiceBas /// The unique identifier for the SchoolChoiceBasisDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -142437,6 +147719,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -142445,6 +147728,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -142452,6 +147736,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -142459,6 +147744,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -142468,6 +147754,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -142477,6 +147764,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -142520,9 +147808,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -142595,7 +147885,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.SchoolChoiceImplementStatusDescri /// /// A class which represents the edfi.SchoolChoiceImplementStatusDescriptor table of the SchoolChoiceImplementStatusDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class SchoolChoiceImplementStatusDescriptor : Entities.Common.EdFi.ISchoolChoiceImplementStatusDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -142624,6 +147914,7 @@ public class SchoolChoiceImplementStatusDescriptor : Entities.Common.EdFi.ISchoo /// The unique identifier for the SchoolChoiceImplementStatusDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -142708,6 +147999,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -142716,6 +148008,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -142723,6 +148016,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -142730,6 +148024,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -142739,6 +148034,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -142748,6 +148044,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -142791,9 +148088,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -142866,7 +148165,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.SchoolFoodServiceProgramServiceDe /// /// A class which represents the edfi.SchoolFoodServiceProgramServiceDescriptor table of the SchoolFoodServiceProgramServiceDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class SchoolFoodServiceProgramServiceDescriptor : Entities.Common.EdFi.ISchoolFoodServiceProgramServiceDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -142895,6 +148194,7 @@ public class SchoolFoodServiceProgramServiceDescriptor : Entities.Common.EdFi.IS /// The unique identifier for the SchoolFoodServiceProgramServiceDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -142979,6 +148279,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -142987,6 +148288,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -142994,6 +148296,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -143001,6 +148304,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -143010,6 +148314,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -143019,6 +148324,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -143062,9 +148368,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -143137,7 +148445,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.SchoolTypeDescriptor.EdFi /// /// A class which represents the edfi.SchoolTypeDescriptor table of the SchoolTypeDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class SchoolTypeDescriptor : Entities.Common.EdFi.ISchoolTypeDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -143166,6 +148474,7 @@ public class SchoolTypeDescriptor : Entities.Common.EdFi.ISchoolTypeDescriptor, /// The unique identifier for the SchoolTypeDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -143250,6 +148559,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -143258,6 +148568,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -143265,6 +148576,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -143272,6 +148584,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -143281,6 +148594,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -143290,6 +148604,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -143333,9 +148648,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -143408,21 +148725,26 @@ namespace EdFi.Ods.Api.Common.Models.Resources.SchoolYearType.EdFi /// /// Represents a reference to the SchoolYearType resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class SchoolYearTypeReference : IResourceReference { [DataMember(Name="schoolYear")] + [Key(0)] public short SchoolYear { get; set; } /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(1)] public Guid ResourceId { get; set; } - private Link _link; + [JsonIgnore] + [Key(2)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -143472,7 +148794,7 @@ private Link CreateLink() /// /// A class which represents the edfi.SchoolYearType table of the SchoolYearType aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] [NoUnsuppliedRequiredMembersWithMeaningfulDefaults] public class SchoolYearType : Entities.Common.EdFi.ISchoolYearType, IHasETag, IDateVersionedEntity, IHasRequiredMembersWithMeaningfulDefaultValues, IValidatableObject @@ -143502,6 +148824,7 @@ public class SchoolYearType : Entities.Common.EdFi.ISchoolYearType, IHasETag, ID /// The unique identifier for the SchoolYearType resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -143521,6 +148844,7 @@ public class SchoolYearType : Entities.Common.EdFi.ISchoolYearType, IHasETag, ID // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] [DataMember(Name="schoolYear")] + [Key(1)] public short SchoolYear { get; set; } // ------------------------------------------------------------- @@ -143587,6 +148911,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="currentSchoolYear")] + [Key(2)] public bool CurrentSchoolYear { get => _currentSchoolYear; @@ -143605,6 +148930,7 @@ public bool CurrentSchoolYear [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="schoolYearDescription")] + [Key(3)] public string SchoolYearDescription { get; set; } // ------------------------------------------------------------- @@ -143635,6 +148961,7 @@ IEnumerable IHasRequiredMembersWithMeaningfulDefaultValues.GetUnassigned // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "SchoolYearType", "SchoolYearType")] + [Key(4)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -143648,9 +148975,11 @@ IEnumerable IHasRequiredMembersWithMeaningfulDefaultValues.GetUnassigned // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(5)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(6)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -143782,39 +149111,49 @@ namespace EdFi.Ods.Api.Common.Models.Resources.Section.EdFi /// /// Represents a reference to the Section resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class SectionReference : IResourceReference { [DataMember(Name="localCourseCode")] + [Key(0)] public string LocalCourseCode { get; set; } [DataMember(Name="schoolId")] + [Key(1)] public long SchoolId { get; set; } [DataMember(Name="schoolYear")] + [Key(2)] public short SchoolYear { get; set; } [DataMember(Name="sectionIdentifier")] + [Key(3)] public string SectionIdentifier { get; set; } [DataMember(Name="sessionName")] + [Key(4)] public string SessionName { get; set; } /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(5)] 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. /// + [Key(6)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(7)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -143903,7 +149242,7 @@ private Link CreateLink() /// /// A class which represents the edfi.Section table of the Section aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class Section : Entities.Common.EdFi.ISection, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -143940,6 +149279,7 @@ public Section() /// The unique identifier for the Section resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -143963,6 +149303,7 @@ private CourseOffering.EdFi.CourseOfferingReference ImplicitCourseOfferingRefere } [DataMember(Name="courseOfferingReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public CourseOffering.EdFi.CourseOfferingReference CourseOfferingReference { @@ -143996,6 +149337,7 @@ private Location.EdFi.LocationReference ImplicitLocationReference } [DataMember(Name="locationReference")] + [Key(2)] [FullyDefinedReference] public Location.EdFi.LocationReference LocationReference { @@ -144029,6 +149371,7 @@ private School.EdFi.SchoolReference ImplicitLocationSchoolReference } [DataMember(Name="locationSchoolReference")] + [Key(3)] [FullyDefinedReference] public School.EdFi.SchoolReference LocationSchoolReference { @@ -144135,6 +149478,7 @@ short Entities.Common.EdFi.ISection.SchoolYear [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="sectionIdentifier")] + [Key(4)] public string SectionIdentifier { get; set; } /// @@ -144256,6 +149600,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-9999999.99", "9999999.99", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="availableCreditConversion")] + [Key(5)] public decimal? AvailableCreditConversion { get; set; } /// @@ -144264,6 +149609,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "0", "999999.999", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="availableCredits")] + [Key(6)] public decimal? AvailableCredits { get; set; } /// @@ -144272,24 +149618,48 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="availableCreditTypeDescriptor")][DescriptorExists("CreditTypeDescriptor")] + [IgnoreMember] public string AvailableCreditTypeDescriptor { get; set; } + [Key(7)][JsonIgnore] + public int AvailableCreditTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("CreditTypeDescriptor", AvailableCreditTypeDescriptor); } + set { AvailableCreditTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("CreditTypeDescriptor", value); } + } + /// /// The setting in which a student receives education and related services. /// // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="educationalEnvironmentDescriptor")][DescriptorExists("EducationalEnvironmentDescriptor")] + [IgnoreMember] public string EducationalEnvironmentDescriptor { get; set; } + [Key(8)][JsonIgnore] + public int EducationalEnvironmentDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("EducationalEnvironmentDescriptor", EducationalEnvironmentDescriptor); } + set { EducationalEnvironmentDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("EducationalEnvironmentDescriptor", value); } + } + /// /// The primary language of instruction. If omitted, English is assumed. /// // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="instructionLanguageDescriptor")][DescriptorExists("LanguageDescriptor")] + [IgnoreMember] public string InstructionLanguageDescriptor { get; set; } + [Key(9)][JsonIgnore] + public int InstructionLanguageDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("LanguageDescriptor", InstructionLanguageDescriptor); } + set { InstructionLanguageDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("LanguageDescriptor", value); } + } + /// /// A unique number or alphanumeric code assigned to a room by a school, school system, state, or other agency or entity. /// @@ -144360,13 +149730,22 @@ string Entities.Common.EdFi.ISection.LocationClassroomIdentificationCode // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="mediumOfInstructionDescriptor")][DescriptorExists("MediumOfInstructionDescriptor")] + [IgnoreMember] public string MediumOfInstructionDescriptor { get; set; } + [Key(10)][JsonIgnore] + public int MediumOfInstructionDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("MediumOfInstructionDescriptor", MediumOfInstructionDescriptor); } + set { MediumOfInstructionDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("MediumOfInstructionDescriptor", value); } + } + /// /// Indicator of whether this section is used for official daily attendance. Alternatively, official daily attendance may be tied to a class period. /// // NOT in a reference, NOT a lookup column [DataMember(Name="officialAttendancePeriod")] + [Key(11)] public bool? OfficialAttendancePeriod { get; set; } /// @@ -144375,14 +149754,23 @@ string Entities.Common.EdFi.ISection.LocationClassroomIdentificationCode // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="populationServedDescriptor")][DescriptorExists("PopulationServedDescriptor")] + [IgnoreMember] public string PopulationServedDescriptor { get; set; } + [Key(12)][JsonIgnore] + public int PopulationServedDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("PopulationServedDescriptor", PopulationServedDescriptor); } + set { PopulationServedDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("PopulationServedDescriptor", value); } + } + /// /// A locally-defined name for the section, generally created to make the section more recognizable in informal contexts and generally distinct from the section identifier. /// // NOT in a reference, NOT a lookup column [NonDefaultStringLength(100, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="sectionName")] + [Key(13)] public string SectionName { get; set; } /// @@ -144391,14 +149779,23 @@ string Entities.Common.EdFi.ISection.LocationClassroomIdentificationCode // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="sectionTypeDescriptor")][DescriptorExists("SectionTypeDescriptor")] + [IgnoreMember] public string SectionTypeDescriptor { get; set; } + [Key(14)][JsonIgnore] + public int SectionTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("SectionTypeDescriptor", SectionTypeDescriptor); } + set { SectionTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("SectionTypeDescriptor", value); } + } + /// /// When a section is part of a sequence of parts for a course, the number of the sequence. If the course has only one part, the value of this section attribute should be 1. /// // NOT in a reference, NOT a lookup column [Range(1, 8, ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="sequenceOfCourse")] + [Key(15)] public int? SequenceOfCourse { get; set; } // ------------------------------------------------------------- @@ -144421,6 +149818,7 @@ string Entities.Common.EdFi.ISection.LocationClassroomIdentificationCode // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "Section", "Section")] + [Key(16)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -144432,6 +149830,7 @@ string Entities.Common.EdFi.ISection.LocationClassroomIdentificationCode [NoDuplicateMembers] [DataMember(Name="characteristics")] + [Key(17)] public ICollection SectionCharacteristics { get { return _sectionCharacteristics; } @@ -144462,6 +149861,7 @@ public ICollection SectionCharacteristics [NoDuplicateMembers] [DataMember(Name="classPeriods")] + [Key(18)] public ICollection SectionClassPeriods { get { return _sectionClassPeriods; } @@ -144492,6 +149892,7 @@ public ICollection SectionClassPeriods [NoDuplicateMembers] [DataMember(Name="courseLevelCharacteristics")] + [Key(19)] public ICollection SectionCourseLevelCharacteristics { get { return _sectionCourseLevelCharacteristics; } @@ -144522,6 +149923,7 @@ public ICollection SectionCourseLevelCharacter [NoDuplicateMembers] [DataMember(Name="offeredGradeLevels")] + [Key(20)] public ICollection SectionOfferedGradeLevels { get { return _sectionOfferedGradeLevels; } @@ -144552,6 +149954,7 @@ public ICollection SectionOfferedGradeLevels [NoDuplicateMembers] [DataMember(Name="programs")] + [Key(21)] public ICollection SectionPrograms { get { return _sectionPrograms; } @@ -144584,9 +149987,11 @@ public ICollection SectionPrograms // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(22)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(23)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -144953,7 +150358,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext
/// /// A class which represents the edfi.SectionCharacteristic table of the Section aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class SectionCharacteristic : Entities.Common.EdFi.ISectionCharacteristic, IValidatableObject { @@ -144996,6 +150401,7 @@ Entities.Common.EdFi.ISection ISectionCharacteristic.Section set { SetSection(value); } } + [IgnoreMember] public Entities.Common.EdFi.ISection Section { set { SetSection(value); } @@ -145013,7 +150419,15 @@ private void SetSection(Entities.Common.EdFi.ISection value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="sectionCharacteristicDescriptor")][DescriptorExists("SectionCharacteristicDescriptor")] + [IgnoreMember] public string SectionCharacteristicDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int SectionCharacteristicDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("SectionCharacteristicDescriptor", SectionCharacteristicDescriptor); } + set { SectionCharacteristicDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("SectionCharacteristicDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -145098,6 +150512,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "Section", "SectionCharacteristic")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -145234,7 +150649,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.SectionClassPeriod table of the Section aggregate in the ODS Database. ///
- [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class SectionClassPeriod : Entities.Common.EdFi.ISectionClassPeriod, IValidatableObject { @@ -145279,6 +150694,7 @@ private ClassPeriod.EdFi.ClassPeriodReference ImplicitClassPeriodReference } [DataMember(Name="classPeriodReference")] + [Key(0)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public ClassPeriod.EdFi.ClassPeriodReference ClassPeriodReference { @@ -145311,6 +150727,7 @@ Entities.Common.EdFi.ISection ISectionClassPeriod.Section set { SetSection(value); } } + [IgnoreMember] public Entities.Common.EdFi.ISection Section { set { SetSection(value); } @@ -145434,6 +150851,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "Section", "SectionClassPeriod")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -145624,7 +151042,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.SectionCourseLevelCharacteristic table of the Section aggregate in the ODS Database. ///
- [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class SectionCourseLevelCharacteristic : Entities.Common.EdFi.ISectionCourseLevelCharacteristic, IValidatableObject { @@ -145667,6 +151085,7 @@ Entities.Common.EdFi.ISection ISectionCourseLevelCharacteristic.Section set { SetSection(value); } } + [IgnoreMember] public Entities.Common.EdFi.ISection Section { set { SetSection(value); } @@ -145684,7 +151103,15 @@ private void SetSection(Entities.Common.EdFi.ISection value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="courseLevelCharacteristicDescriptor")][DescriptorExists("CourseLevelCharacteristicDescriptor")] + [IgnoreMember] public string CourseLevelCharacteristicDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int CourseLevelCharacteristicDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("CourseLevelCharacteristicDescriptor", CourseLevelCharacteristicDescriptor); } + set { CourseLevelCharacteristicDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("CourseLevelCharacteristicDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -145769,6 +151196,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "Section", "SectionCourseLevelCharacteristic")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -145905,7 +151333,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.SectionOfferedGradeLevel table of the Section aggregate in the ODS Database. ///
- [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class SectionOfferedGradeLevel : Entities.Common.EdFi.ISectionOfferedGradeLevel, IValidatableObject { @@ -145948,6 +151376,7 @@ Entities.Common.EdFi.ISection ISectionOfferedGradeLevel.Section set { SetSection(value); } } + [IgnoreMember] public Entities.Common.EdFi.ISection Section { set { SetSection(value); } @@ -145965,7 +151394,15 @@ private void SetSection(Entities.Common.EdFi.ISection value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="gradeLevelDescriptor")][DescriptorExists("GradeLevelDescriptor")] + [IgnoreMember] public string GradeLevelDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int GradeLevelDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("GradeLevelDescriptor", GradeLevelDescriptor); } + set { GradeLevelDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("GradeLevelDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -146050,6 +151487,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "Section", "SectionOfferedGradeLevel")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -146186,7 +151624,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.SectionProgram table of the Section aggregate in the ODS Database. ///
- [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class SectionProgram : Entities.Common.EdFi.ISectionProgram, IValidatableObject { @@ -146231,6 +151669,7 @@ private Program.EdFi.ProgramReference ImplicitProgramReference } [DataMember(Name="programReference")] + [Key(0)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Program.EdFi.ProgramReference ProgramReference { @@ -146263,6 +151702,7 @@ Entities.Common.EdFi.ISection ISectionProgram.Section set { SetSection(value); } } + [IgnoreMember] public Entities.Common.EdFi.ISection Section { set { SetSection(value); } @@ -146443,6 +151883,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "Section", "SectionProgram")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -146598,45 +152039,57 @@ namespace EdFi.Ods.Api.Common.Models.Resources.SectionAttendanceTakenEvent.EdFi /// /// Represents a reference to the SectionAttendanceTakenEvent resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class SectionAttendanceTakenEventReference : IResourceReference { [DataMember(Name="calendarCode")] + [Key(0)] public string CalendarCode { get; set; } [DataMember(Name="date")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(1)] public DateTime Date { get; set; } [DataMember(Name="localCourseCode")] + [Key(2)] public string LocalCourseCode { get; set; } [DataMember(Name="schoolId")] + [Key(3)] public long SchoolId { get; set; } [DataMember(Name="schoolYear")] + [Key(4)] public short SchoolYear { get; set; } [DataMember(Name="sectionIdentifier")] + [Key(5)] public string SectionIdentifier { get; set; } [DataMember(Name="sessionName")] + [Key(6)] public string SessionName { get; set; } /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(7)] 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. /// + [Key(8)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(9)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -146735,7 +152188,7 @@ private Link CreateLink() /// /// A class which represents the edfi.SectionAttendanceTakenEvent table of the SectionAttendanceTakenEvent aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class SectionAttendanceTakenEvent : Entities.Common.EdFi.ISectionAttendanceTakenEvent, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -146764,6 +152217,7 @@ public class SectionAttendanceTakenEvent : Entities.Common.EdFi.ISectionAttendan /// The unique identifier for the SectionAttendanceTakenEvent resource. ///
[DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -146787,6 +152241,7 @@ private CalendarDate.EdFi.CalendarDateReference ImplicitCalendarDateReference } [DataMember(Name="calendarDateReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public CalendarDate.EdFi.CalendarDateReference CalendarDateReference { @@ -146820,6 +152275,7 @@ private Section.EdFi.SectionReference ImplicitSectionReference } [DataMember(Name="sectionReference")] + [Key(2)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Section.EdFi.SectionReference SectionReference { @@ -146853,6 +152309,7 @@ private Staff.EdFi.StaffReference ImplicitStaffReference } [DataMember(Name="staffReference")] + [Key(3)] [FullyDefinedReference] public Staff.EdFi.StaffReference StaffReference { @@ -147169,6 +152626,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] [DataMember(Name="eventDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime EventDate { get; set; } /// @@ -147219,6 +152677,7 @@ string Entities.Common.EdFi.ISectionAttendanceTakenEvent.StaffUniqueId // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "SectionAttendanceTakenEvent", "SectionAttendanceTakenEvent")] + [Key(5)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -147232,9 +152691,11 @@ string Entities.Common.EdFi.ISectionAttendanceTakenEvent.StaffUniqueId // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(6)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(7)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -147479,7 +152940,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.SectionCharacteristicDescriptor.E /// /// A class which represents the edfi.SectionCharacteristicDescriptor table of the SectionCharacteristicDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class SectionCharacteristicDescriptor : Entities.Common.EdFi.ISectionCharacteristicDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -147508,6 +152969,7 @@ public class SectionCharacteristicDescriptor : Entities.Common.EdFi.ISectionChar /// The unique identifier for the SectionCharacteristicDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -147592,6 +153054,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -147600,6 +153063,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -147607,6 +153071,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -147614,6 +153079,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -147623,6 +153089,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -147632,6 +153099,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -147675,9 +153143,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -147750,7 +153220,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.SectionTypeDescriptor.EdFi /// /// A class which represents the edfi.SectionTypeDescriptor table of the SectionTypeDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class SectionTypeDescriptor : Entities.Common.EdFi.ISectionTypeDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -147779,6 +153249,7 @@ public class SectionTypeDescriptor : Entities.Common.EdFi.ISectionTypeDescriptor /// The unique identifier for the SectionTypeDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -147863,6 +153334,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -147871,6 +153343,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -147878,6 +153351,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -147885,6 +153359,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -147894,6 +153369,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -147903,6 +153379,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -147946,9 +153423,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -148021,7 +153500,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.SeparationDescriptor.EdFi /// /// A class which represents the edfi.SeparationDescriptor table of the SeparationDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class SeparationDescriptor : Entities.Common.EdFi.ISeparationDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -148050,6 +153529,7 @@ public class SeparationDescriptor : Entities.Common.EdFi.ISeparationDescriptor, /// The unique identifier for the SeparationDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -148134,6 +153614,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -148142,6 +153623,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -148149,6 +153631,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -148156,6 +153639,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -148165,6 +153649,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -148174,6 +153659,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -148217,9 +153703,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -148292,7 +153780,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.SeparationReasonDescriptor.EdFi /// /// A class which represents the edfi.SeparationReasonDescriptor table of the SeparationReasonDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class SeparationReasonDescriptor : Entities.Common.EdFi.ISeparationReasonDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -148321,6 +153809,7 @@ public class SeparationReasonDescriptor : Entities.Common.EdFi.ISeparationReason /// The unique identifier for the SeparationReasonDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -148405,6 +153894,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -148413,6 +153903,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -148420,6 +153911,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -148427,6 +153919,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -148436,6 +153929,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -148445,6 +153939,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -148488,9 +153983,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -148563,7 +154060,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.ServiceDescriptor.EdFi /// /// A class which represents the edfi.ServiceDescriptor table of the ServiceDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class ServiceDescriptor : Entities.Common.EdFi.IServiceDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -148592,6 +154089,7 @@ public class ServiceDescriptor : Entities.Common.EdFi.IServiceDescriptor, Entiti /// The unique identifier for the ServiceDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -148676,6 +154174,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -148684,6 +154183,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -148691,6 +154191,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -148698,6 +154199,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -148707,6 +154209,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -148716,6 +154219,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -148759,9 +154263,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -148834,33 +154340,41 @@ namespace EdFi.Ods.Api.Common.Models.Resources.Session.EdFi /// /// Represents a reference to the Session resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class SessionReference : IResourceReference { [DataMember(Name="schoolId")] + [Key(0)] public long SchoolId { get; set; } [DataMember(Name="schoolYear")] + [Key(1)] public short SchoolYear { get; set; } [DataMember(Name="sessionName")] + [Key(2)] public string SessionName { get; set; } /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(3)] 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. /// + [Key(4)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(5)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -148939,7 +154453,7 @@ private Link CreateLink() /// /// A class which represents the edfi.Session table of the Session aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] [NoUnsuppliedRequiredMembersWithMeaningfulDefaults] public class Session : Entities.Common.EdFi.ISession, IHasETag, IDateVersionedEntity, IHasRequiredMembersWithMeaningfulDefaultValues, IValidatableObject @@ -148974,6 +154488,7 @@ public Session() /// The unique identifier for the Session resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -148997,6 +154512,7 @@ private School.EdFi.SchoolReference ImplicitSchoolReference } [DataMember(Name="schoolReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public School.EdFi.SchoolReference SchoolReference { @@ -149030,6 +154546,7 @@ private SchoolYearType.EdFi.SchoolYearTypeReference ImplicitSchoolYearTypeRefere } [DataMember(Name="schoolYearTypeReference")] + [Key(2)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public SchoolYearType.EdFi.SchoolYearTypeReference SchoolYearTypeReference { @@ -149111,6 +154628,7 @@ short Entities.Common.EdFi.ISession.SchoolYear [RequiredWithNonDefault] [NonDefaultStringLength(60, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="sessionName")] + [Key(3)] public string SessionName { get; set; } // ------------------------------------------------------------- @@ -149191,6 +154709,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] [DataMember(Name="beginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime BeginDate { get; set; } /// @@ -149199,6 +154718,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] [DataMember(Name="endDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(5)] public DateTime EndDate { get; set; } /// @@ -149208,7 +154728,15 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="termDescriptor")][DescriptorExists("TermDescriptor")] + [IgnoreMember] public string TermDescriptor { get; set; } + + [Key(6)][JsonIgnore] + public int TermDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("TermDescriptor", TermDescriptor); } + set { TermDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("TermDescriptor", value); } + } private bool _totalInstructionalDaysExplicitlyAssigned = false; private int _totalInstructionalDays; @@ -149219,6 +154747,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(0, 2147483647, ErrorMessage=ValidationHelpers.RangeMinOnlyMessageFormat)] [DataMember(Name="totalInstructionalDays")] + [Key(7)] public int TotalInstructionalDays { get => _totalInstructionalDays; @@ -149258,6 +154787,7 @@ IEnumerable IHasRequiredMembersWithMeaningfulDefaultValues.GetUnassigned // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "Session", "Session")] + [Key(8)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -149269,6 +154799,7 @@ IEnumerable IHasRequiredMembersWithMeaningfulDefaultValues.GetUnassigned [NoDuplicateMembers] [DataMember(Name="academicWeeks")] + [Key(9)] public ICollection SessionAcademicWeeks { get { return _sessionAcademicWeeks; } @@ -149299,6 +154830,7 @@ public ICollection SessionAcademicWeeks [NoDuplicateMembers] [DataMember(Name="gradingPeriods")] + [Key(10)] public ICollection SessionGradingPeriods { get { return _sessionGradingPeriods; } @@ -149331,9 +154863,11 @@ public ICollection SessionGradingPeriods // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(11)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(12)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -149553,7 +155087,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// /// A class which represents the edfi.SessionAcademicWeek table of the Session aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class SessionAcademicWeek : Entities.Common.EdFi.ISessionAcademicWeek, IValidatableObject { @@ -149598,6 +155132,7 @@ private AcademicWeek.EdFi.AcademicWeekReference ImplicitAcademicWeekReference } [DataMember(Name="academicWeekReference")] + [Key(0)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public AcademicWeek.EdFi.AcademicWeekReference AcademicWeekReference { @@ -149630,6 +155165,7 @@ Entities.Common.EdFi.ISession ISessionAcademicWeek.Session set { SetSession(value); } } + [IgnoreMember] public Entities.Common.EdFi.ISession Session { set { SetSession(value); } @@ -149753,6 +155289,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "Session", "SessionAcademicWeek")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -149943,7 +155480,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.SessionGradingPeriod table of the Session aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class SessionGradingPeriod : Entities.Common.EdFi.ISessionGradingPeriod, IValidatableObject { @@ -149988,6 +155525,7 @@ private GradingPeriod.EdFi.GradingPeriodReference ImplicitGradingPeriodReference } [DataMember(Name="gradingPeriodReference")] + [Key(0)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public GradingPeriod.EdFi.GradingPeriodReference GradingPeriodReference { @@ -150020,6 +155558,7 @@ Entities.Common.EdFi.ISession ISessionGradingPeriod.Session set { SetSession(value); } } + [IgnoreMember] public Entities.Common.EdFi.ISession Session { set { SetSession(value); } @@ -150174,6 +155713,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "Session", "SessionGradingPeriod")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -150396,7 +155936,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.SexDescriptor.EdFi /// /// A class which represents the edfi.SexDescriptor table of the SexDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class SexDescriptor : Entities.Common.EdFi.ISexDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -150425,6 +155965,7 @@ public class SexDescriptor : Entities.Common.EdFi.ISexDescriptor, Entities.Commo /// The unique identifier for the SexDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -150509,6 +156050,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -150517,6 +156059,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -150524,6 +156067,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -150531,6 +156075,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -150540,6 +156085,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -150549,6 +156095,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -150592,9 +156139,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -150667,30 +156216,37 @@ namespace EdFi.Ods.Api.Common.Models.Resources.SourceDimension.EdFi /// /// Represents a reference to the SourceDimension resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class SourceDimensionReference : IResourceReference { [DataMember(Name="code")] + [Key(0)] public string Code { get; set; } [DataMember(Name="fiscalYear")] + [Key(1)] public int FiscalYear { get; set; } /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(2)] 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. /// + [Key(3)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(4)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -150764,7 +156320,7 @@ private Link CreateLink() /// /// A class which represents the edfi.SourceDimension table of the SourceDimension aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] [NoUnsuppliedRequiredMembersWithMeaningfulDefaults] public class SourceDimension : Entities.Common.EdFi.ISourceDimension, IHasETag, IDateVersionedEntity, IHasRequiredMembersWithMeaningfulDefaultValues, IValidatableObject @@ -150798,6 +156354,7 @@ public SourceDimension() /// The unique identifier for the SourceDimension resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -150818,6 +156375,7 @@ public SourceDimension() [RequiredWithNonDefault] [NonDefaultStringLength(16, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="code")] + [Key(1)] public string Code { get; set; } private bool _fiscalYearExplicitlyAssigned = false; @@ -150829,6 +156387,7 @@ public SourceDimension() // NOT in a reference, NOT a lookup column [Range(2020, 2040, ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="fiscalYear")] + [Key(2)] public int FiscalYear { get => _fiscalYear; @@ -150911,6 +156470,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(100, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeName")] + [Key(3)] public string CodeName { get; set; } // ------------------------------------------------------------- @@ -150941,6 +156501,7 @@ IEnumerable IHasRequiredMembersWithMeaningfulDefaultValues.GetUnassigned // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "SourceDimension", "SourceDimension")] + [Key(4)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -150952,6 +156513,7 @@ IEnumerable IHasRequiredMembersWithMeaningfulDefaultValues.GetUnassigned [NoDuplicateMembers] [DataMember(Name="reportingTags")] + [Key(5)] public ICollection SourceDimensionReportingTags { get { return _sourceDimensionReportingTags; } @@ -150984,9 +156546,11 @@ public ICollection SourceDimensionReportingTags // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(6)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(7)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -151163,7 +156727,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.SourceDimensionReportingTag table of the SourceDimension aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class SourceDimensionReportingTag : Entities.Common.EdFi.ISourceDimensionReportingTag, IValidatableObject { @@ -151206,6 +156770,7 @@ Entities.Common.EdFi.ISourceDimension ISourceDimensionReportingTag.SourceDimensi set { SetSourceDimension(value); } } + [IgnoreMember] public Entities.Common.EdFi.ISourceDimension SourceDimension { set { SetSourceDimension(value); } @@ -151223,7 +156788,15 @@ private void SetSourceDimension(Entities.Common.EdFi.ISourceDimension value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="reportingTagDescriptor")][DescriptorExists("ReportingTagDescriptor")] + [IgnoreMember] public string ReportingTagDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int ReportingTagDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ReportingTagDescriptor", ReportingTagDescriptor); } + set { ReportingTagDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ReportingTagDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -151308,6 +156881,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "SourceDimension", "SourceDimensionReportingTag")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -151449,7 +157023,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.SourceSystemDescriptor.EdFi /// /// A class which represents the edfi.SourceSystemDescriptor table of the SourceSystemDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class SourceSystemDescriptor : Entities.Common.EdFi.ISourceSystemDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -151478,6 +157052,7 @@ public class SourceSystemDescriptor : Entities.Common.EdFi.ISourceSystemDescript /// The unique identifier for the SourceSystemDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -151562,6 +157137,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -151570,6 +157146,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -151577,6 +157154,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -151584,6 +157162,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -151593,6 +157172,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -151602,6 +157182,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -151645,9 +157226,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -151720,7 +157303,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.SpecialEducationExitReasonDescrip /// /// A class which represents the edfi.SpecialEducationExitReasonDescriptor table of the SpecialEducationExitReasonDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class SpecialEducationExitReasonDescriptor : Entities.Common.EdFi.ISpecialEducationExitReasonDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -151749,6 +157332,7 @@ public class SpecialEducationExitReasonDescriptor : Entities.Common.EdFi.ISpecia /// The unique identifier for the SpecialEducationExitReasonDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -151833,6 +157417,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -151841,6 +157426,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -151848,6 +157434,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -151855,6 +157442,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -151864,6 +157452,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -151873,6 +157462,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -151916,9 +157506,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -151991,7 +157583,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.SpecialEducationProgramServiceDes /// /// A class which represents the edfi.SpecialEducationProgramServiceDescriptor table of the SpecialEducationProgramServiceDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class SpecialEducationProgramServiceDescriptor : Entities.Common.EdFi.ISpecialEducationProgramServiceDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -152020,6 +157612,7 @@ public class SpecialEducationProgramServiceDescriptor : Entities.Common.EdFi.ISp /// The unique identifier for the SpecialEducationProgramServiceDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -152104,6 +157697,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -152112,6 +157706,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -152119,6 +157714,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -152126,6 +157722,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -152135,6 +157732,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -152144,6 +157742,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -152187,9 +157786,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -152262,7 +157863,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.SpecialEducationSettingDescriptor /// /// A class which represents the edfi.SpecialEducationSettingDescriptor table of the SpecialEducationSettingDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class SpecialEducationSettingDescriptor : Entities.Common.EdFi.ISpecialEducationSettingDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -152291,6 +157892,7 @@ public class SpecialEducationSettingDescriptor : Entities.Common.EdFi.ISpecialEd /// The unique identifier for the SpecialEducationSettingDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -152375,6 +157977,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -152383,6 +157986,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -152390,6 +157994,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -152397,6 +158002,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -152406,6 +158012,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -152415,6 +158022,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -152458,9 +158066,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -152533,7 +158143,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.Staff.EdFi /// /// Represents a reference to the Staff resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StaffReference : IResourceReference { @@ -152552,17 +158162,22 @@ public string StaffUniqueId /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(0)] 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. /// + [Key(1)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(2)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -152631,7 +158246,7 @@ private Link CreateLink() /// /// A class which represents the edfi.Staff table of the Staff aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class Staff : Entities.Common.EdFi.IStaff, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -152678,6 +158293,7 @@ public Staff() /// The unique identifier for the Staff resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -152701,6 +158317,7 @@ private Person.EdFi.PersonReference ImplicitPersonReference } [DataMember(Name="personReference")] + [Key(1)] [FullyDefinedReference] public Person.EdFi.PersonReference PersonReference { @@ -152732,6 +158349,7 @@ public Person.EdFi.PersonReference PersonReference [RequiredWithNonDefault] [NonDefaultStringLength(32, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [UniqueId][DataMember(Name="staffUniqueId")] + [Key(2)] public string StaffUniqueId { get => _staffUniqueId; @@ -152804,6 +158422,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="birthDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? BirthDate { get; set; } /// @@ -152812,8 +158431,16 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="citizenshipStatusDescriptor")][DescriptorExists("CitizenshipStatusDescriptor")] + [IgnoreMember] public string CitizenshipStatusDescriptor { get; set; } + [Key(4)][JsonIgnore] + public int CitizenshipStatusDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("CitizenshipStatusDescriptor", CitizenshipStatusDescriptor); } + set { CitizenshipStatusDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("CitizenshipStatusDescriptor", value); } + } + /// /// A name given to an individual at birth, baptism, or during another naming ceremony, or through legal change. /// @@ -152821,6 +158448,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="firstName")] + [Key(5)] public string FirstName { get; set; } /// @@ -152829,6 +158457,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(60, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="genderIdentity")] + [Key(6)] public string GenderIdentity { get; set; } /// @@ -152837,6 +158466,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(10, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="generationCodeSuffix")] + [Key(7)] public string GenerationCodeSuffix { get; set; } /// @@ -152845,13 +158475,22 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="highestCompletedLevelOfEducationDescriptor")][DescriptorExists("LevelOfEducationDescriptor")] + [IgnoreMember] public string HighestCompletedLevelOfEducationDescriptor { get; set; } + [Key(8)][JsonIgnore] + public int HighestCompletedLevelOfEducationDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("LevelOfEducationDescriptor", HighestCompletedLevelOfEducationDescriptor); } + set { HighestCompletedLevelOfEducationDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("LevelOfEducationDescriptor", value); } + } + /// /// An indication of whether a teacher is classified as highly qualified for his/her assignment according to state definition. This attribute indicates the teacher is highly qualified for ALL Sections being taught. /// // NOT in a reference, NOT a lookup column [DataMember(Name="highlyQualifiedTeacher")] + [Key(9)] public bool? HighlyQualifiedTeacher { get; set; } /// @@ -152859,6 +158498,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="hispanicLatinoEthnicity")] + [Key(10)] public bool? HispanicLatinoEthnicity { get; set; } /// @@ -152868,6 +158508,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="lastSurname")] + [Key(11)] public string LastSurname { get; set; } /// @@ -152876,6 +158517,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(60, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="loginId")] + [Key(12)] public string LoginId { get; set; } /// @@ -152884,6 +158526,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="maidenName")] + [Key(13)] public string MaidenName { get; set; } /// @@ -152892,6 +158535,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="middleName")] + [Key(14)] public string MiddleName { get; set; } /// @@ -152900,6 +158544,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(30, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="personalTitlePrefix")] + [Key(15)] public string PersonalTitlePrefix { get; set; } /// @@ -152935,6 +158580,7 @@ string Entities.Common.EdFi.IStaff.PersonId // NOT in a reference, NOT a lookup column [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="preferredFirstName")] + [Key(16)] public string PreferredFirstName { get; set; } /// @@ -152943,6 +158589,7 @@ string Entities.Common.EdFi.IStaff.PersonId // NOT in a reference, NOT a lookup column [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="preferredLastSurname")] + [Key(17)] public string PreferredLastSurname { get; set; } /// @@ -152951,8 +158598,16 @@ string Entities.Common.EdFi.IStaff.PersonId // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="sexDescriptor")][DescriptorExists("SexDescriptor")] + [IgnoreMember] public string SexDescriptor { get; set; } + [Key(18)][JsonIgnore] + public int SexDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("SexDescriptor", SexDescriptor); } + set { SexDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("SexDescriptor", value); } + } + /// /// This descriptor defines the originating record source system for the person. /// @@ -152983,6 +158638,7 @@ string Entities.Common.EdFi.IStaff.SourceSystemDescriptor // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-999.99", "999.99", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="yearsOfPriorProfessionalExperience")] + [Key(19)] public decimal? YearsOfPriorProfessionalExperience { get; set; } /// @@ -152991,6 +158647,7 @@ string Entities.Common.EdFi.IStaff.SourceSystemDescriptor // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-999.99", "999.99", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="yearsOfPriorTeachingExperience")] + [Key(20)] public decimal? YearsOfPriorTeachingExperience { get; set; } // ------------------------------------------------------------- @@ -153013,6 +158670,7 @@ string Entities.Common.EdFi.IStaff.SourceSystemDescriptor // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "Staff", "Staff")] + [Key(21)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -153024,6 +158682,7 @@ string Entities.Common.EdFi.IStaff.SourceSystemDescriptor [NoDuplicateMembers] [DataMember(Name="addresses")] + [Key(22)] public ICollection StaffAddresses { get { return _staffAddresses; } @@ -153054,6 +158713,7 @@ public ICollection StaffAddresses [NoDuplicateMembers] [DataMember(Name="ancestryEthnicOrigins")] + [Key(23)] public ICollection StaffAncestryEthnicOrigins { get { return _staffAncestryEthnicOrigins; } @@ -153084,6 +158744,7 @@ public ICollection StaffAncestryEthnicOrigins [NoDuplicateMembers] [DataMember(Name="credentials")] + [Key(24)] public ICollection StaffCredentials { get { return _staffCredentials; } @@ -153114,6 +158775,7 @@ public ICollection StaffCredentials [NoDuplicateMembers] [DataMember(Name="electronicMails")] + [Key(25)] public ICollection StaffElectronicMails { get { return _staffElectronicMails; } @@ -153144,6 +158806,7 @@ public ICollection StaffElectronicMails [NoDuplicateMembers] [DataMember(Name="identificationCodes")] + [Key(26)] public ICollection StaffIdentificationCodes { get { return _staffIdentificationCodes; } @@ -153174,6 +158837,7 @@ public ICollection StaffIdentificationCodes [NoDuplicateMembers] [DataMember(Name="identificationDocuments")] + [Key(27)] public ICollection StaffIdentificationDocuments { get { return _staffIdentificationDocuments; } @@ -153204,6 +158868,7 @@ public ICollection StaffIdentificationDocuments [NoDuplicateMembers] [DataMember(Name="internationalAddresses")] + [Key(28)] public ICollection StaffInternationalAddresses { get { return _staffInternationalAddresses; } @@ -153234,6 +158899,7 @@ public ICollection StaffInternationalAddresses [NoDuplicateMembers] [DataMember(Name="languages")] + [Key(29)] public ICollection StaffLanguages { get { return _staffLanguages; } @@ -153264,6 +158930,7 @@ public ICollection StaffLanguages [NoDuplicateMembers] [DataMember(Name="otherNames")] + [Key(30)] public ICollection StaffOtherNames { get { return _staffOtherNames; } @@ -153294,6 +158961,7 @@ public ICollection StaffOtherNames [NoDuplicateMembers] [DataMember(Name="personalIdentificationDocuments")] + [Key(31)] public ICollection StaffPersonalIdentificationDocuments { get { return _staffPersonalIdentificationDocuments; } @@ -153324,6 +158992,7 @@ public ICollection StaffPersonalIdentificat [NoDuplicateMembers] [DataMember(Name="races")] + [Key(32)] public ICollection StaffRaces { get { return _staffRaces; } @@ -153354,6 +159023,7 @@ public ICollection StaffRaces [NoDuplicateMembers] [DataMember(Name="recognitions")] + [Key(33)] public ICollection StaffRecognitions { get { return _staffRecognitions; } @@ -153384,6 +159054,7 @@ public ICollection StaffRecognitions [NoDuplicateMembers] [DataMember(Name="telephones")] + [Key(34)] public ICollection StaffTelephones { get { return _staffTelephones; } @@ -153414,6 +159085,7 @@ public ICollection StaffTelephones [NoDuplicateMembers] [DataMember(Name="tribalAffiliations")] + [Key(35)] public ICollection StaffTribalAffiliations { get { return _staffTribalAffiliations; } @@ -153444,6 +159116,7 @@ public ICollection StaffTribalAffiliations [NoDuplicateMembers] [DataMember(Name="visas")] + [Key(36)] public ICollection StaffVisas { get { return _staffVisas; } @@ -153476,9 +159149,11 @@ public ICollection StaffVisas // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(37)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(38)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -154075,7 +159750,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext co /// /// A class which represents the edfi.StaffAddress table of the Staff aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StaffAddress : Entities.Common.EdFi.IStaffAddress, IValidatableObject { @@ -154122,6 +159797,7 @@ Entities.Common.EdFi.IStaff IStaffAddress.Staff set { SetStaff(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStaff Staff { set { SetStaff(value); } @@ -154139,8 +159815,16 @@ private void SetStaff(Entities.Common.EdFi.IStaff value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="addressTypeDescriptor")][DescriptorExists("AddressTypeDescriptor")] + [IgnoreMember] public string AddressTypeDescriptor { get; set; } + [Key(0)][JsonIgnore] + public int AddressTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("AddressTypeDescriptor", AddressTypeDescriptor); } + set { AddressTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("AddressTypeDescriptor", value); } + } + /// /// The name of the city in which an address is located. /// @@ -154148,6 +159832,7 @@ private void SetStaff(Entities.Common.EdFi.IStaff value) [RequiredWithNonDefault] [NonDefaultStringLength(30, MinimumLength=2, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="city")] + [Key(1)] public string City { get; set; } /// @@ -154157,6 +159842,7 @@ private void SetStaff(Entities.Common.EdFi.IStaff value) [RequiredWithNonDefault] [NonDefaultStringLength(17, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="postalCode")] + [Key(2)] public string PostalCode { get; set; } /// @@ -154166,8 +159852,16 @@ private void SetStaff(Entities.Common.EdFi.IStaff value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="stateAbbreviationDescriptor")][DescriptorExists("StateAbbreviationDescriptor")] + [IgnoreMember] public string StateAbbreviationDescriptor { get; set; } + [Key(3)][JsonIgnore] + public int StateAbbreviationDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("StateAbbreviationDescriptor", StateAbbreviationDescriptor); } + set { StateAbbreviationDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("StateAbbreviationDescriptor", value); } + } + /// /// The street number and street name or post office box number of an address. /// @@ -154175,6 +159869,7 @@ private void SetStaff(Entities.Common.EdFi.IStaff value) [RequiredWithNonDefault] [NonDefaultStringLength(150, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="streetNumberName")] + [Key(4)] public string StreetNumberName { get; set; } // ------------------------------------------------------------- @@ -154282,6 +159977,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="apartmentRoomSuiteNumber")] + [Key(5)] public string ApartmentRoomSuiteNumber { get; set; } /// @@ -154290,6 +159986,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(20, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="buildingSiteNumber")] + [Key(6)] public string BuildingSiteNumber { get; set; } /// @@ -154298,6 +159995,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(30, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="congressionalDistrict")] + [Key(7)] public string CongressionalDistrict { get; set; } /// @@ -154306,6 +160004,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(5, MinimumLength=3, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText] [DataMember(Name="countyFIPSCode")] + [Key(8)] public string CountyFIPSCode { get; set; } /// @@ -154313,6 +160012,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="doNotPublishIndicator")] + [Key(9)] public bool? DoNotPublishIndicator { get; set; } /// @@ -154321,6 +160021,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(20, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="latitude")] + [Key(10)] public string Latitude { get; set; } /// @@ -154329,14 +160030,23 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="localeDescriptor")][DescriptorExists("LocaleDescriptor")] + [IgnoreMember] public string LocaleDescriptor { get; set; } + [Key(11)][JsonIgnore] + public int LocaleDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("LocaleDescriptor", LocaleDescriptor); } + set { LocaleDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("LocaleDescriptor", value); } + } + /// /// The geographic longitude of the physical address. /// // NOT in a reference, NOT a lookup column [NonDefaultStringLength(20, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="longitude")] + [Key(12)] public string Longitude { get; set; } /// @@ -154345,6 +160055,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(30, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="nameOfCounty")] + [Key(13)] public string NameOfCounty { get; set; } // ------------------------------------------------------------- @@ -154367,6 +160078,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "Staff", "StaffAddress")] + [Key(14)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -154378,6 +160090,7 @@ public override int GetHashCode() [NoDuplicateMembers] [DataMember(Name="periods")] + [Key(15)] public ICollection StaffAddressPeriods { get { return _staffAddressPeriods; } @@ -154583,7 +160296,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.StaffAddressPeriod table of the Staff aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StaffAddressPeriod : Entities.Common.EdFi.IStaffAddressPeriod, IValidatableObject { @@ -154626,6 +160339,7 @@ Entities.Common.EdFi.IStaffAddress IStaffAddressPeriod.StaffAddress set { SetStaffAddress(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStaffAddress StaffAddress { set { SetStaffAddress(value); } @@ -154642,6 +160356,7 @@ private void SetStaffAddress(Entities.Common.EdFi.IStaffAddress value) // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] [DataMember(Name="beginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(0)] public DateTime BeginDate { get; set; } // ------------------------------------------------------------- @@ -154712,6 +160427,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="endDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(1)] public DateTime? EndDate { get; set; } // ------------------------------------------------------------- @@ -154734,6 +160450,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "Staff", "StaffAddressPeriod")] + [Key(2)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -154870,7 +160587,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.StaffAncestryEthnicOrigin table of the Staff aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StaffAncestryEthnicOrigin : Entities.Common.EdFi.IStaffAncestryEthnicOrigin, IValidatableObject { @@ -154913,6 +160630,7 @@ Entities.Common.EdFi.IStaff IStaffAncestryEthnicOrigin.Staff set { SetStaff(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStaff Staff { set { SetStaff(value); } @@ -154930,7 +160648,15 @@ private void SetStaff(Entities.Common.EdFi.IStaff value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="ancestryEthnicOriginDescriptor")][DescriptorExists("AncestryEthnicOriginDescriptor")] + [IgnoreMember] public string AncestryEthnicOriginDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int AncestryEthnicOriginDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("AncestryEthnicOriginDescriptor", AncestryEthnicOriginDescriptor); } + set { AncestryEthnicOriginDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("AncestryEthnicOriginDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -155015,6 +160741,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "Staff", "StaffAncestryEthnicOrigin")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -155151,7 +160878,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.StaffCredential table of the Staff aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StaffCredential : Entities.Common.EdFi.IStaffCredential, IValidatableObject { @@ -155196,6 +160923,7 @@ private Credential.EdFi.CredentialReference ImplicitCredentialReference } [DataMember(Name="credentialReference")] + [Key(0)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Credential.EdFi.CredentialReference CredentialReference { @@ -155228,6 +160956,7 @@ Entities.Common.EdFi.IStaff IStaffCredential.Staff set { SetStaff(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStaff Staff { set { SetStaff(value); } @@ -155375,6 +161104,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "Staff", "StaffCredential")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -155525,7 +161255,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.StaffElectronicMail table of the Staff aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StaffElectronicMail : Entities.Common.EdFi.IStaffElectronicMail, IValidatableObject { @@ -155568,6 +161298,7 @@ Entities.Common.EdFi.IStaff IStaffElectronicMail.Staff set { SetStaff(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStaff Staff { set { SetStaff(value); } @@ -155585,6 +161316,7 @@ private void SetStaff(Entities.Common.EdFi.IStaff value) [RequiredWithNonDefault] [NonDefaultStringLength(128, MinimumLength=7, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="electronicMailAddress")] + [Key(0)] public string ElectronicMailAddress { get; set; } /// @@ -155594,7 +161326,15 @@ private void SetStaff(Entities.Common.EdFi.IStaff value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="electronicMailTypeDescriptor")][DescriptorExists("ElectronicMailTypeDescriptor")] + [IgnoreMember] public string ElectronicMailTypeDescriptor { get; set; } + + [Key(1)][JsonIgnore] + public int ElectronicMailTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ElectronicMailTypeDescriptor", ElectronicMailTypeDescriptor); } + set { ElectronicMailTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ElectronicMailTypeDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -155673,6 +161413,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="doNotPublishIndicator")] + [Key(2)] public bool? DoNotPublishIndicator { get; set; } /// @@ -155680,6 +161421,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="primaryEmailAddressIndicator")] + [Key(3)] public bool? PrimaryEmailAddressIndicator { get; set; } // ------------------------------------------------------------- @@ -155702,6 +161444,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "Staff", "StaffElectronicMail")] + [Key(4)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -155838,7 +161581,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.StaffIdentificationCode table of the Staff aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StaffIdentificationCode : Entities.Common.EdFi.IStaffIdentificationCode, IValidatableObject { @@ -155881,6 +161624,7 @@ Entities.Common.EdFi.IStaff IStaffIdentificationCode.Staff set { SetStaff(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStaff Staff { set { SetStaff(value); } @@ -155898,7 +161642,15 @@ private void SetStaff(Entities.Common.EdFi.IStaff value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="staffIdentificationSystemDescriptor")][DescriptorExists("StaffIdentificationSystemDescriptor")] + [IgnoreMember] public string StaffIdentificationSystemDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int StaffIdentificationSystemDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("StaffIdentificationSystemDescriptor", StaffIdentificationSystemDescriptor); } + set { StaffIdentificationSystemDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("StaffIdentificationSystemDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -155969,6 +161721,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(60, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="assigningOrganizationIdentificationCode")] + [Key(1)] public string AssigningOrganizationIdentificationCode { get; set; } /// @@ -155978,6 +161731,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(60, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="identificationCode")] + [Key(2)] public string IdentificationCode { get; set; } // ------------------------------------------------------------- @@ -156000,6 +161754,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "Staff", "StaffIdentificationCode")] + [Key(3)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -156136,7 +161891,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.StaffIdentificationDocument table of the Staff aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StaffIdentificationDocument : Entities.Common.EdFi.IStaffIdentificationDocument, IValidatableObject { @@ -156179,6 +161934,7 @@ Entities.Common.EdFi.IStaff IStaffIdentificationDocument.Staff set { SetStaff(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStaff Staff { set { SetStaff(value); } @@ -156196,8 +161952,16 @@ private void SetStaff(Entities.Common.EdFi.IStaff value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="identificationDocumentUseDescriptor")][DescriptorExists("IdentificationDocumentUseDescriptor")] + [IgnoreMember] public string IdentificationDocumentUseDescriptor { get; set; } + [Key(0)][JsonIgnore] + public int IdentificationDocumentUseDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("IdentificationDocumentUseDescriptor", IdentificationDocumentUseDescriptor); } + set { IdentificationDocumentUseDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("IdentificationDocumentUseDescriptor", value); } + } + /// /// The category of the document relative to its purpose. /// @@ -156205,7 +161969,15 @@ private void SetStaff(Entities.Common.EdFi.IStaff value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="personalInformationVerificationDescriptor")][DescriptorExists("PersonalInformationVerificationDescriptor")] + [IgnoreMember] public string PersonalInformationVerificationDescriptor { get; set; } + + [Key(1)][JsonIgnore] + public int PersonalInformationVerificationDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("PersonalInformationVerificationDescriptor", PersonalInformationVerificationDescriptor); } + set { PersonalInformationVerificationDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("PersonalInformationVerificationDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -156284,6 +162056,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="documentExpirationDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(2)] public DateTime? DocumentExpirationDate { get; set; } /// @@ -156292,6 +162065,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(60, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="documentTitle")] + [Key(3)] public string DocumentTitle { get; set; } /// @@ -156300,14 +162074,23 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="issuerCountryDescriptor")][DescriptorExists("CountryDescriptor")] + [IgnoreMember] public string IssuerCountryDescriptor { get; set; } + [Key(4)][JsonIgnore] + public int IssuerCountryDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("CountryDescriptor", IssuerCountryDescriptor); } + set { IssuerCountryDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("CountryDescriptor", value); } + } + /// /// The unique identifier on the issuer's identification system. /// // NOT in a reference, NOT a lookup column [NonDefaultStringLength(60, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="issuerDocumentIdentificationCode")] + [Key(5)] public string IssuerDocumentIdentificationCode { get; set; } /// @@ -156316,6 +162099,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(150, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="issuerName")] + [Key(6)] public string IssuerName { get; set; } // ------------------------------------------------------------- @@ -156338,6 +162122,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "Staff", "StaffIdentificationDocument")] + [Key(7)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -156474,7 +162259,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.StaffInternationalAddress table of the Staff aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StaffInternationalAddress : Entities.Common.EdFi.IStaffInternationalAddress, IValidatableObject { @@ -156517,6 +162302,7 @@ Entities.Common.EdFi.IStaff IStaffInternationalAddress.Staff set { SetStaff(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStaff Staff { set { SetStaff(value); } @@ -156534,7 +162320,15 @@ private void SetStaff(Entities.Common.EdFi.IStaff value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="addressTypeDescriptor")][DescriptorExists("AddressTypeDescriptor")] + [IgnoreMember] public string AddressTypeDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int AddressTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("AddressTypeDescriptor", AddressTypeDescriptor); } + set { AddressTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("AddressTypeDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -156606,6 +162400,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(150, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="addressLine1")] + [Key(1)] public string AddressLine1 { get; set; } /// @@ -156614,6 +162409,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(150, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="addressLine2")] + [Key(2)] public string AddressLine2 { get; set; } /// @@ -156622,6 +162418,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(150, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="addressLine3")] + [Key(3)] public string AddressLine3 { get; set; } /// @@ -156630,6 +162427,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(150, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="addressLine4")] + [Key(4)] public string AddressLine4 { get; set; } /// @@ -156637,6 +162435,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="beginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(5)] public DateTime? BeginDate { get; set; } /// @@ -156646,13 +162445,22 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="countryDescriptor")][DescriptorExists("CountryDescriptor")] + [IgnoreMember] public string CountryDescriptor { get; set; } + [Key(6)][JsonIgnore] + public int CountryDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("CountryDescriptor", CountryDescriptor); } + set { CountryDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("CountryDescriptor", value); } + } + /// /// The last date the address is valid. For physical addresses, the date the individual moved from that address. Note: Date interpretation may vary. Ed-Fi recommends inclusive dates, but states may define dates as inclusive or exclusive. For calculations, align with local guidelines. /// // NOT in a reference, NOT a lookup column [DataMember(Name="endDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(7)] public DateTime? EndDate { get; set; } /// @@ -156661,6 +162469,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(20, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="latitude")] + [Key(8)] public string Latitude { get; set; } /// @@ -156669,6 +162478,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(20, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="longitude")] + [Key(9)] public string Longitude { get; set; } // ------------------------------------------------------------- @@ -156691,6 +162501,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "Staff", "StaffInternationalAddress")] + [Key(10)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -156827,7 +162638,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.StaffLanguage table of the Staff aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StaffLanguage : Entities.Common.EdFi.IStaffLanguage, IValidatableObject { @@ -156874,6 +162685,7 @@ Entities.Common.EdFi.IStaff IStaffLanguage.Staff set { SetStaff(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStaff Staff { set { SetStaff(value); } @@ -156891,7 +162703,15 @@ private void SetStaff(Entities.Common.EdFi.IStaff value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="languageDescriptor")][DescriptorExists("LanguageDescriptor")] + [IgnoreMember] public string LanguageDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int LanguageDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("LanguageDescriptor", LanguageDescriptor); } + set { LanguageDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("LanguageDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -156976,6 +162796,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "Staff", "StaffLanguage")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -156987,6 +162808,7 @@ public override int GetHashCode() [NoDuplicateMembers] [DataMember(Name="uses")] + [Key(2)] public ICollection StaffLanguageUses { get { return _staffLanguageUses; } @@ -157192,7 +163014,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.StaffLanguageUse table of the Staff aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StaffLanguageUse : Entities.Common.EdFi.IStaffLanguageUse, IValidatableObject { @@ -157235,6 +163057,7 @@ Entities.Common.EdFi.IStaffLanguage IStaffLanguageUse.StaffLanguage set { SetStaffLanguage(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStaffLanguage StaffLanguage { set { SetStaffLanguage(value); } @@ -157252,7 +163075,15 @@ private void SetStaffLanguage(Entities.Common.EdFi.IStaffLanguage value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="languageUseDescriptor")][DescriptorExists("LanguageUseDescriptor")] + [IgnoreMember] public string LanguageUseDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int LanguageUseDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("LanguageUseDescriptor", LanguageUseDescriptor); } + set { LanguageUseDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("LanguageUseDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -157337,6 +163168,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "Staff", "StaffLanguageUse")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -157473,7 +163305,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.StaffOtherName table of the Staff aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StaffOtherName : Entities.Common.EdFi.IStaffOtherName, IValidatableObject { @@ -157516,6 +163348,7 @@ Entities.Common.EdFi.IStaff IStaffOtherName.Staff set { SetStaff(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStaff Staff { set { SetStaff(value); } @@ -157533,7 +163366,15 @@ private void SetStaff(Entities.Common.EdFi.IStaff value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="otherNameTypeDescriptor")][DescriptorExists("OtherNameTypeDescriptor")] + [IgnoreMember] public string OtherNameTypeDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int OtherNameTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("OtherNameTypeDescriptor", OtherNameTypeDescriptor); } + set { OtherNameTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("OtherNameTypeDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -157605,6 +163446,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="firstName")] + [Key(1)] public string FirstName { get; set; } /// @@ -157613,6 +163455,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(10, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="generationCodeSuffix")] + [Key(2)] public string GenerationCodeSuffix { get; set; } /// @@ -157622,6 +163465,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="lastSurname")] + [Key(3)] public string LastSurname { get; set; } /// @@ -157630,6 +163474,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="middleName")] + [Key(4)] public string MiddleName { get; set; } /// @@ -157638,6 +163483,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(30, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="personalTitlePrefix")] + [Key(5)] public string PersonalTitlePrefix { get; set; } // ------------------------------------------------------------- @@ -157660,6 +163506,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "Staff", "StaffOtherName")] + [Key(6)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -157796,7 +163643,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.StaffPersonalIdentificationDocument table of the Staff aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StaffPersonalIdentificationDocument : Entities.Common.EdFi.IStaffPersonalIdentificationDocument, IValidatableObject { @@ -157839,6 +163686,7 @@ Entities.Common.EdFi.IStaff IStaffPersonalIdentificationDocument.Staff set { SetStaff(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStaff Staff { set { SetStaff(value); } @@ -157856,8 +163704,16 @@ private void SetStaff(Entities.Common.EdFi.IStaff value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="identificationDocumentUseDescriptor")][DescriptorExists("IdentificationDocumentUseDescriptor")] + [IgnoreMember] public string IdentificationDocumentUseDescriptor { get; set; } + [Key(0)][JsonIgnore] + public int IdentificationDocumentUseDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("IdentificationDocumentUseDescriptor", IdentificationDocumentUseDescriptor); } + set { IdentificationDocumentUseDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("IdentificationDocumentUseDescriptor", value); } + } + /// /// The category of the document relative to its purpose. /// @@ -157865,7 +163721,15 @@ private void SetStaff(Entities.Common.EdFi.IStaff value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="personalInformationVerificationDescriptor")][DescriptorExists("PersonalInformationVerificationDescriptor")] + [IgnoreMember] public string PersonalInformationVerificationDescriptor { get; set; } + + [Key(1)][JsonIgnore] + public int PersonalInformationVerificationDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("PersonalInformationVerificationDescriptor", PersonalInformationVerificationDescriptor); } + set { PersonalInformationVerificationDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("PersonalInformationVerificationDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -157944,6 +163808,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="documentExpirationDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(2)] public DateTime? DocumentExpirationDate { get; set; } /// @@ -157952,6 +163817,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(60, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="documentTitle")] + [Key(3)] public string DocumentTitle { get; set; } /// @@ -157960,14 +163826,23 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="issuerCountryDescriptor")][DescriptorExists("CountryDescriptor")] + [IgnoreMember] public string IssuerCountryDescriptor { get; set; } + [Key(4)][JsonIgnore] + public int IssuerCountryDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("CountryDescriptor", IssuerCountryDescriptor); } + set { IssuerCountryDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("CountryDescriptor", value); } + } + /// /// The unique identifier on the issuer's identification system. /// // NOT in a reference, NOT a lookup column [NonDefaultStringLength(60, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="issuerDocumentIdentificationCode")] + [Key(5)] public string IssuerDocumentIdentificationCode { get; set; } /// @@ -157976,6 +163851,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(150, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="issuerName")] + [Key(6)] public string IssuerName { get; set; } // ------------------------------------------------------------- @@ -157998,6 +163874,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "Staff", "StaffPersonalIdentificationDocument")] + [Key(7)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -158134,7 +164011,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.StaffRace table of the Staff aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StaffRace : Entities.Common.EdFi.IStaffRace, IValidatableObject { @@ -158177,6 +164054,7 @@ Entities.Common.EdFi.IStaff IStaffRace.Staff set { SetStaff(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStaff Staff { set { SetStaff(value); } @@ -158194,7 +164072,15 @@ private void SetStaff(Entities.Common.EdFi.IStaff value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="raceDescriptor")][DescriptorExists("RaceDescriptor")] + [IgnoreMember] public string RaceDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int RaceDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("RaceDescriptor", RaceDescriptor); } + set { RaceDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("RaceDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -158279,6 +164165,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "Staff", "StaffRace")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -158415,7 +164302,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.StaffRecognition table of the Staff aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StaffRecognition : Entities.Common.EdFi.IStaffRecognition, IValidatableObject { @@ -158458,6 +164345,7 @@ Entities.Common.EdFi.IStaff IStaffRecognition.Staff set { SetStaff(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStaff Staff { set { SetStaff(value); } @@ -158475,7 +164363,15 @@ private void SetStaff(Entities.Common.EdFi.IStaff value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="recognitionTypeDescriptor")][DescriptorExists("RecognitionTypeDescriptor")] + [IgnoreMember] public string RecognitionTypeDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int RecognitionTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("RecognitionTypeDescriptor", RecognitionTypeDescriptor); } + set { RecognitionTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("RecognitionTypeDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -158546,14 +164442,23 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="achievementCategoryDescriptor")][DescriptorExists("AchievementCategoryDescriptor")] + [IgnoreMember] public string AchievementCategoryDescriptor { get; set; } + [Key(1)][JsonIgnore] + public int AchievementCategoryDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("AchievementCategoryDescriptor", AchievementCategoryDescriptor); } + set { AchievementCategoryDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("AchievementCategoryDescriptor", value); } + } + /// /// The system that defines the categories by which an achievement is attributed to the individual. /// // NOT in a reference, NOT a lookup column [NonDefaultStringLength(60, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="achievementCategorySystem")] + [Key(2)] public string AchievementCategorySystem { get; set; } /// @@ -158562,6 +164467,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(60, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="achievementTitle")] + [Key(3)] public string AchievementTitle { get; set; } /// @@ -158570,6 +164476,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(150, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="criteria")] + [Key(4)] public string Criteria { get; set; } /// @@ -158578,6 +164485,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(255, MinimumLength=5, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText] [DataMember(Name="criteriaURL")] + [Key(5)] public string CriteriaURL { get; set; } /// @@ -158586,6 +164494,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(150, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="evidenceStatement")] + [Key(6)] public string EvidenceStatement { get; set; } /// @@ -158594,6 +164503,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(255, MinimumLength=5, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText] [DataMember(Name="imageURL")] + [Key(7)] public string ImageURL { get; set; } /// @@ -158602,6 +164512,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(150, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="issuerName")] + [Key(8)] public string IssuerName { get; set; } /// @@ -158610,6 +164521,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(255, MinimumLength=5, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText] [DataMember(Name="issuerOriginURL")] + [Key(9)] public string IssuerOriginURL { get; set; } /// @@ -158617,6 +164529,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="recognitionAwardDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(10)] public DateTime? RecognitionAwardDate { get; set; } /// @@ -158624,6 +164537,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="recognitionAwardExpiresDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(11)] public DateTime? RecognitionAwardExpiresDate { get; set; } /// @@ -158632,6 +164546,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(80, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="recognitionDescription")] + [Key(12)] public string RecognitionDescription { get; set; } // ------------------------------------------------------------- @@ -158654,6 +164569,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "Staff", "StaffRecognition")] + [Key(13)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -158790,7 +164706,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.StaffTelephone table of the Staff aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StaffTelephone : Entities.Common.EdFi.IStaffTelephone, IValidatableObject { @@ -158833,6 +164749,7 @@ Entities.Common.EdFi.IStaff IStaffTelephone.Staff set { SetStaff(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStaff Staff { set { SetStaff(value); } @@ -158850,6 +164767,7 @@ private void SetStaff(Entities.Common.EdFi.IStaff value) [RequiredWithNonDefault] [NonDefaultStringLength(24, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="telephoneNumber")] + [Key(0)] public string TelephoneNumber { get; set; } /// @@ -158859,7 +164777,15 @@ private void SetStaff(Entities.Common.EdFi.IStaff value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="telephoneNumberTypeDescriptor")][DescriptorExists("TelephoneNumberTypeDescriptor")] + [IgnoreMember] public string TelephoneNumberTypeDescriptor { get; set; } + + [Key(1)][JsonIgnore] + public int TelephoneNumberTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("TelephoneNumberTypeDescriptor", TelephoneNumberTypeDescriptor); } + set { TelephoneNumberTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("TelephoneNumberTypeDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -158938,6 +164864,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="doNotPublishIndicator")] + [Key(2)] public bool? DoNotPublishIndicator { get; set; } /// @@ -158946,6 +164873,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(1, 2147483647, ErrorMessage=ValidationHelpers.RangeMinOnlyMessageFormat)] [DataMember(Name="orderOfPriority")] + [Key(3)] public int? OrderOfPriority { get; set; } /// @@ -158953,6 +164881,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="textMessageCapabilityIndicator")] + [Key(4)] public bool? TextMessageCapabilityIndicator { get; set; } // ------------------------------------------------------------- @@ -158975,6 +164904,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "Staff", "StaffTelephone")] + [Key(5)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -159111,7 +165041,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.StaffTribalAffiliation table of the Staff aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StaffTribalAffiliation : Entities.Common.EdFi.IStaffTribalAffiliation, IValidatableObject { @@ -159154,6 +165084,7 @@ Entities.Common.EdFi.IStaff IStaffTribalAffiliation.Staff set { SetStaff(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStaff Staff { set { SetStaff(value); } @@ -159171,7 +165102,15 @@ private void SetStaff(Entities.Common.EdFi.IStaff value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="tribalAffiliationDescriptor")][DescriptorExists("TribalAffiliationDescriptor")] + [IgnoreMember] public string TribalAffiliationDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int TribalAffiliationDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("TribalAffiliationDescriptor", TribalAffiliationDescriptor); } + set { TribalAffiliationDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("TribalAffiliationDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -159256,6 +165195,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "Staff", "StaffTribalAffiliation")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -159392,7 +165332,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.StaffVisa table of the Staff aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StaffVisa : Entities.Common.EdFi.IStaffVisa, IValidatableObject { @@ -159435,6 +165375,7 @@ Entities.Common.EdFi.IStaff IStaffVisa.Staff set { SetStaff(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStaff Staff { set { SetStaff(value); } @@ -159452,7 +165393,15 @@ private void SetStaff(Entities.Common.EdFi.IStaff value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="visaDescriptor")][DescriptorExists("VisaDescriptor")] + [IgnoreMember] public string VisaDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int VisaDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("VisaDescriptor", VisaDescriptor); } + set { VisaDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("VisaDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -159537,6 +165486,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "Staff", "StaffVisa")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -159678,14 +165628,23 @@ namespace EdFi.Ods.Api.Common.Models.Resources.StaffAbsenceEvent.EdFi /// /// Represents a reference to the StaffAbsenceEvent resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StaffAbsenceEventReference : IResourceReference { [DataMember(Name="absenceEventCategoryDescriptor")][DescriptorExists("AbsenceEventCategoryDescriptor")] + [IgnoreMember] public string AbsenceEventCategoryDescriptor { get; set; } + [Key(0)][JsonIgnore] + public int AbsenceEventCategoryDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("AbsenceEventCategoryDescriptor", AbsenceEventCategoryDescriptor); } + set { AbsenceEventCategoryDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("AbsenceEventCategoryDescriptor", value); } + } + [DataMember(Name="eventDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(1)] public DateTime EventDate { get; set; } [DataMember(Name="staffUniqueId")] @@ -159703,17 +165662,22 @@ public string StaffUniqueId /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(2)] 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. /// + [Key(3)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(4)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -159792,7 +165756,7 @@ private Link CreateLink() /// /// A class which represents the edfi.StaffAbsenceEvent table of the StaffAbsenceEvent aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StaffAbsenceEvent : Entities.Common.EdFi.IStaffAbsenceEvent, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -159821,6 +165785,7 @@ public class StaffAbsenceEvent : Entities.Common.EdFi.IStaffAbsenceEvent, IHasET /// The unique identifier for the StaffAbsenceEvent resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -159844,6 +165809,7 @@ private Staff.EdFi.StaffReference ImplicitStaffReference } [DataMember(Name="staffReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Staff.EdFi.StaffReference StaffReference { @@ -159875,14 +165841,23 @@ public Staff.EdFi.StaffReference StaffReference [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="absenceEventCategoryDescriptor")][DescriptorExists("AbsenceEventCategoryDescriptor")] + [IgnoreMember] public string AbsenceEventCategoryDescriptor { get; set; } + [Key(2)][JsonIgnore] + public int AbsenceEventCategoryDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("AbsenceEventCategoryDescriptor", AbsenceEventCategoryDescriptor); } + set { AbsenceEventCategoryDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("AbsenceEventCategoryDescriptor", value); } + } + /// /// Date for this leave event. /// // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] [DataMember(Name="eventDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime EventDate { get; set; } /// @@ -159990,6 +165965,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(40, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="absenceEventReason")] + [Key(4)] public string AbsenceEventReason { get; set; } /// @@ -159998,6 +165974,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-9999999999999999.99", "9999999999999999.99", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="hoursAbsent")] + [Key(5)] public decimal? HoursAbsent { get; set; } // ------------------------------------------------------------- @@ -160020,6 +165997,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StaffAbsenceEvent", "StaffAbsenceEvent")] + [Key(6)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -160033,9 +166011,11 @@ public override int GetHashCode() // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -160181,7 +166161,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.StaffClassificationDescriptor.EdF /// /// A class which represents the edfi.StaffClassificationDescriptor table of the StaffClassificationDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StaffClassificationDescriptor : Entities.Common.EdFi.IStaffClassificationDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -160210,6 +166190,7 @@ public class StaffClassificationDescriptor : Entities.Common.EdFi.IStaffClassifi /// The unique identifier for the StaffClassificationDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -160294,6 +166275,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -160302,6 +166284,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -160309,6 +166292,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -160316,6 +166300,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -160325,6 +166310,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -160334,6 +166320,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -160377,9 +166364,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -160452,17 +166441,20 @@ namespace EdFi.Ods.Api.Common.Models.Resources.StaffCohortAssociation.EdFi /// /// Represents a reference to the StaffCohortAssociation resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StaffCohortAssociationReference : IResourceReference { [DataMember(Name="beginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(0)] public DateTime BeginDate { get; set; } [DataMember(Name="cohortIdentifier")] + [Key(1)] public string CohortIdentifier { get; set; } [DataMember(Name="educationOrganizationId")] + [Key(2)] public long EducationOrganizationId { get; set; } [DataMember(Name="staffUniqueId")] @@ -160480,17 +166472,22 @@ public string StaffUniqueId /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(3)] 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. /// + [Key(4)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(5)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -160574,7 +166571,7 @@ private Link CreateLink() /// /// A class which represents the edfi.StaffCohortAssociation table of the StaffCohortAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StaffCohortAssociation : Entities.Common.EdFi.IStaffCohortAssociation, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -160603,6 +166600,7 @@ public class StaffCohortAssociation : Entities.Common.EdFi.IStaffCohortAssociati /// The unique identifier for the StaffCohortAssociation resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -160626,6 +166624,7 @@ private Cohort.EdFi.CohortReference ImplicitCohortReference } [DataMember(Name="cohortReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Cohort.EdFi.CohortReference CohortReference { @@ -160659,6 +166658,7 @@ private Staff.EdFi.StaffReference ImplicitStaffReference } [DataMember(Name="staffReference")] + [Key(2)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Staff.EdFi.StaffReference StaffReference { @@ -160689,6 +166689,7 @@ public Staff.EdFi.StaffReference StaffReference // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] [DataMember(Name="beginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime BeginDate { get; set; } /// @@ -160852,6 +166853,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="endDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EndDate { get; set; } /// @@ -160859,6 +166861,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="studentRecordAccess")] + [Key(5)] public bool? StudentRecordAccess { get; set; } // ------------------------------------------------------------- @@ -160881,6 +166884,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StaffCohortAssociation", "StaffCohortAssociation")] + [Key(6)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -160894,9 +166898,11 @@ public override int GetHashCode() // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -161056,14 +167062,16 @@ namespace EdFi.Ods.Api.Common.Models.Resources.StaffDisciplineIncidentAssociatio /// /// Represents a reference to the StaffDisciplineIncidentAssociation resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StaffDisciplineIncidentAssociationReference : IResourceReference { [DataMember(Name="incidentIdentifier")] + [Key(0)] public string IncidentIdentifier { get; set; } [DataMember(Name="schoolId")] + [Key(1)] public long SchoolId { get; set; } [DataMember(Name="staffUniqueId")] @@ -161081,17 +167089,22 @@ public string StaffUniqueId /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(2)] 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. /// + [Key(3)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(4)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -161170,7 +167183,7 @@ private Link CreateLink() /// /// A class which represents the edfi.StaffDisciplineIncidentAssociation table of the StaffDisciplineIncidentAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StaffDisciplineIncidentAssociation : Entities.Common.EdFi.IStaffDisciplineIncidentAssociation, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -161203,6 +167216,7 @@ public StaffDisciplineIncidentAssociation() /// The unique identifier for the StaffDisciplineIncidentAssociation resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -161226,6 +167240,7 @@ private DisciplineIncident.EdFi.DisciplineIncidentReference ImplicitDisciplineIn } [DataMember(Name="disciplineIncidentReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public DisciplineIncident.EdFi.DisciplineIncidentReference DisciplineIncidentReference { @@ -161259,6 +167274,7 @@ private Staff.EdFi.StaffReference ImplicitStaffReference } [DataMember(Name="staffReference")] + [Key(2)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Staff.EdFi.StaffReference StaffReference { @@ -161450,6 +167466,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StaffDisciplineIncidentAssociation", "StaffDisciplineIncidentAssociation")] + [Key(3)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -161461,6 +167478,7 @@ public override int GetHashCode() [NoDuplicateMembers][RequiredCollection] [DataMember(Name="disciplineIncidentParticipationCodes")] + [Key(4)] public ICollection StaffDisciplineIncidentAssociationDisciplineIncidentParticipationCodes { get { return _staffDisciplineIncidentAssociationDisciplineIncidentParticipationCodes; } @@ -161493,9 +167511,11 @@ public ICollection /// A class which represents the edfi.StaffDisciplineIncidentAssociationDisciplineIncidentParticipationCode table of the StaffDisciplineIncidentAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StaffDisciplineIncidentAssociationDisciplineIncidentParticipationCode : Entities.Common.EdFi.IStaffDisciplineIncidentAssociationDisciplineIncidentParticipationCode, IValidatableObject { @@ -161743,6 +167763,7 @@ Entities.Common.EdFi.IStaffDisciplineIncidentAssociation IStaffDisciplineInciden set { SetStaffDisciplineIncidentAssociation(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStaffDisciplineIncidentAssociation StaffDisciplineIncidentAssociation { set { SetStaffDisciplineIncidentAssociation(value); } @@ -161760,7 +167781,15 @@ private void SetStaffDisciplineIncidentAssociation(Entities.Common.EdFi.IStaffDi [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="disciplineIncidentParticipationCodeDescriptor")][DescriptorExists("DisciplineIncidentParticipationCodeDescriptor")] + [IgnoreMember] public string DisciplineIncidentParticipationCodeDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int DisciplineIncidentParticipationCodeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("DisciplineIncidentParticipationCodeDescriptor", DisciplineIncidentParticipationCodeDescriptor); } + set { DisciplineIncidentParticipationCodeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("DisciplineIncidentParticipationCodeDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -161845,6 +167874,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StaffDisciplineIncidentAssociation", "StaffDisciplineIncidentAssociationDisciplineIncidentParticipationCode")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -161986,19 +168016,29 @@ namespace EdFi.Ods.Api.Common.Models.Resources.StaffEducationOrganizationAssignm /// /// Represents a reference to the StaffEducationOrganizationAssignmentAssociation resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StaffEducationOrganizationAssignmentAssociationReference : IResourceReference { [DataMember(Name="beginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(0)] public DateTime BeginDate { get; set; } [DataMember(Name="educationOrganizationId")] + [Key(1)] public long EducationOrganizationId { get; set; } [DataMember(Name="staffClassificationDescriptor")][DescriptorExists("StaffClassificationDescriptor")] + [IgnoreMember] public string StaffClassificationDescriptor { get; set; } + [Key(2)][JsonIgnore] + public int StaffClassificationDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("StaffClassificationDescriptor", StaffClassificationDescriptor); } + set { StaffClassificationDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("StaffClassificationDescriptor", value); } + } + [DataMember(Name="staffUniqueId")] public string StaffUniqueId { @@ -162014,17 +168054,22 @@ public string StaffUniqueId /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(3)] 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. /// + [Key(4)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(5)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -162108,7 +168153,7 @@ private Link CreateLink() /// /// A class which represents the edfi.StaffEducationOrganizationAssignmentAssociation table of the StaffEducationOrganizationAssignmentAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StaffEducationOrganizationAssignmentAssociation : Entities.Common.EdFi.IStaffEducationOrganizationAssignmentAssociation, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -162137,6 +168182,7 @@ public class StaffEducationOrganizationAssignmentAssociation : Entities.Common.E /// The unique identifier for the StaffEducationOrganizationAssignmentAssociation resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -162160,6 +168206,7 @@ private Credential.EdFi.CredentialReference ImplicitCredentialReference } [DataMember(Name="credentialReference")] + [Key(1)] [FullyDefinedReference] public Credential.EdFi.CredentialReference CredentialReference { @@ -162193,6 +168240,7 @@ private EducationOrganization.EdFi.EducationOrganizationReference ImplicitEducat } [DataMember(Name="educationOrganizationReference")] + [Key(2)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public EducationOrganization.EdFi.EducationOrganizationReference EducationOrganizationReference { @@ -162226,6 +168274,7 @@ private StaffEducationOrganizationEmploymentAssociation.EdFi.StaffEducationOrgan } [DataMember(Name="employmentStaffEducationOrganizationEmploymentAssociationReference")] + [Key(3)] [FullyDefinedReference] public StaffEducationOrganizationEmploymentAssociation.EdFi.StaffEducationOrganizationEmploymentAssociationReference EmploymentStaffEducationOrganizationEmploymentAssociationReference { @@ -162259,6 +168308,7 @@ private Staff.EdFi.StaffReference ImplicitStaffReference } [DataMember(Name="staffReference")] + [Key(4)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Staff.EdFi.StaffReference StaffReference { @@ -162289,6 +168339,7 @@ public Staff.EdFi.StaffReference StaffReference // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] [DataMember(Name="beginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(5)] public DateTime BeginDate { get; set; } /// @@ -162323,8 +168374,16 @@ long Entities.Common.EdFi.IStaffEducationOrganizationAssignmentAssociation.Educa [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="staffClassificationDescriptor")][DescriptorExists("StaffClassificationDescriptor")] + [IgnoreMember] public string StaffClassificationDescriptor { get; set; } + [Key(6)][JsonIgnore] + public int StaffClassificationDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("StaffClassificationDescriptor", StaffClassificationDescriptor); } + set { StaffClassificationDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("StaffClassificationDescriptor", value); } + } + /// /// A unique alphanumeric code assigned to a staff. /// @@ -162546,6 +168605,7 @@ string Entities.Common.EdFi.IStaffEducationOrganizationAssignmentAssociation.Emp /// // NOT in a reference, NOT a lookup column [DataMember(Name="endDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(7)] public DateTime? EndDate { get; set; } /// @@ -162554,6 +168614,7 @@ string Entities.Common.EdFi.IStaffEducationOrganizationAssignmentAssociation.Emp // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "0", "9.9999", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="fullTimeEquivalency")] + [Key(8)] public decimal? FullTimeEquivalency { get; set; } /// @@ -162561,6 +168622,7 @@ string Entities.Common.EdFi.IStaffEducationOrganizationAssignmentAssociation.Emp /// // NOT in a reference, NOT a lookup column [DataMember(Name="orderOfAssignment")] + [Key(9)] public int? OrderOfAssignment { get; set; } /// @@ -162569,6 +168631,7 @@ string Entities.Common.EdFi.IStaffEducationOrganizationAssignmentAssociation.Emp // NOT in a reference, NOT a lookup column [NonDefaultStringLength(100, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="positionTitle")] + [Key(10)] public string PositionTitle { get; set; } /// @@ -162615,6 +168678,7 @@ string Entities.Common.EdFi.IStaffEducationOrganizationAssignmentAssociation.Sta // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StaffEducationOrganizationAssignmentAssociation", "StaffEducationOrganizationAssignmentAssociation")] + [Key(11)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -162628,9 +168692,11 @@ string Entities.Common.EdFi.IStaffEducationOrganizationAssignmentAssociation.Sta // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(12)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(13)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -162857,14 +168923,16 @@ namespace EdFi.Ods.Api.Common.Models.Resources.StaffEducationOrganizationContact /// /// Represents a reference to the StaffEducationOrganizationContactAssociation resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StaffEducationOrganizationContactAssociationReference : IResourceReference { [DataMember(Name="contactTitle")] + [Key(0)] public string ContactTitle { get; set; } [DataMember(Name="educationOrganizationId")] + [Key(1)] public long EducationOrganizationId { get; set; } [DataMember(Name="staffUniqueId")] @@ -162882,17 +168950,22 @@ public string StaffUniqueId /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(2)] 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. /// + [Key(3)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(4)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -162971,7 +169044,7 @@ private Link CreateLink() /// /// A class which represents the edfi.StaffEducationOrganizationContactAssociation table of the StaffEducationOrganizationContactAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StaffEducationOrganizationContactAssociation : Entities.Common.EdFi.IStaffEducationOrganizationContactAssociation, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -163004,6 +169077,7 @@ public StaffEducationOrganizationContactAssociation() /// The unique identifier for the StaffEducationOrganizationContactAssociation resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -163027,6 +169101,7 @@ private EducationOrganization.EdFi.EducationOrganizationReference ImplicitEducat } [DataMember(Name="educationOrganizationReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public EducationOrganization.EdFi.EducationOrganizationReference EducationOrganizationReference { @@ -163060,6 +169135,7 @@ private Staff.EdFi.StaffReference ImplicitStaffReference } [DataMember(Name="staffReference")] + [Key(2)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Staff.EdFi.StaffReference StaffReference { @@ -163091,6 +169167,7 @@ public Staff.EdFi.StaffReference StaffReference [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="contactTitle")] + [Key(3)] public string ContactTitle { get; set; } /// @@ -163222,8 +169299,16 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="contactTypeDescriptor")][DescriptorExists("ContactTypeDescriptor")] + [IgnoreMember] public string ContactTypeDescriptor { get; set; } + [Key(4)][JsonIgnore] + public int ContactTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ContactTypeDescriptor", ContactTypeDescriptor); } + set { ContactTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ContactTypeDescriptor", value); } + } + /// /// The email for the contact associated with the education organization. /// @@ -163231,6 +169316,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(128, MinimumLength=7, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText] [DataMember(Name="electronicMailAddress")] + [Key(5)] public string ElectronicMailAddress { get; set; } // ------------------------------------------------------------- @@ -163242,6 +169328,7 @@ public override int GetHashCode() /// [DataMember(Name = "address")] + [Key(6)] public StaffEducationOrganizationContactAssociationAddress StaffEducationOrganizationContactAssociationAddress { get; set; } Entities.Common.EdFi.IStaffEducationOrganizationContactAssociationAddress Entities.Common.EdFi.IStaffEducationOrganizationContactAssociation.StaffEducationOrganizationContactAssociationAddress @@ -163266,6 +169353,7 @@ Entities.Common.EdFi.IStaffEducationOrganizationContactAssociationAddress Entiti // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StaffEducationOrganizationContactAssociation", "StaffEducationOrganizationContactAssociation")] + [Key(7)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -163277,6 +169365,7 @@ Entities.Common.EdFi.IStaffEducationOrganizationContactAssociationAddress Entiti [NoDuplicateMembers] [DataMember(Name="telephones")] + [Key(8)] public ICollection StaffEducationOrganizationContactAssociationTelephones { get { return _staffEducationOrganizationContactAssociationTelephones; } @@ -163309,9 +169398,11 @@ public ICollection StaffE // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(9)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(10)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -163528,7 +169619,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.StaffEducationOrganizationContactAssociationAddress table of the StaffEducationOrganizationContactAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StaffEducationOrganizationContactAssociationAddress : Entities.Common.EdFi.IStaffEducationOrganizationContactAssociationAddress, IValidatableObject { @@ -163575,6 +169666,7 @@ Entities.Common.EdFi.IStaffEducationOrganizationContactAssociation IStaffEducati set { SetStaffEducationOrganizationContactAssociation(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStaffEducationOrganizationContactAssociation StaffEducationOrganizationContactAssociation { set { SetStaffEducationOrganizationContactAssociation(value); } @@ -163646,14 +169738,23 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="addressTypeDescriptor")][DescriptorExists("AddressTypeDescriptor")] + [IgnoreMember] public string AddressTypeDescriptor { get; set; } + [Key(0)][JsonIgnore] + public int AddressTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("AddressTypeDescriptor", AddressTypeDescriptor); } + set { AddressTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("AddressTypeDescriptor", value); } + } + /// /// The apartment, room, or suite number of an address. /// // NOT in a reference, NOT a lookup column [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="apartmentRoomSuiteNumber")] + [Key(1)] public string ApartmentRoomSuiteNumber { get; set; } /// @@ -163662,6 +169763,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(20, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="buildingSiteNumber")] + [Key(2)] public string BuildingSiteNumber { get; set; } /// @@ -163671,6 +169773,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(30, MinimumLength=2, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText] [DataMember(Name="city")] + [Key(3)] public string City { get; set; } /// @@ -163679,6 +169782,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(30, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="congressionalDistrict")] + [Key(4)] public string CongressionalDistrict { get; set; } /// @@ -163687,6 +169791,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(5, MinimumLength=3, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText] [DataMember(Name="countyFIPSCode")] + [Key(5)] public string CountyFIPSCode { get; set; } /// @@ -163694,6 +169799,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="doNotPublishIndicator")] + [Key(6)] public bool? DoNotPublishIndicator { get; set; } /// @@ -163702,6 +169808,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(20, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="latitude")] + [Key(7)] public string Latitude { get; set; } /// @@ -163710,14 +169817,23 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="localeDescriptor")][DescriptorExists("LocaleDescriptor")] + [IgnoreMember] public string LocaleDescriptor { get; set; } + [Key(8)][JsonIgnore] + public int LocaleDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("LocaleDescriptor", LocaleDescriptor); } + set { LocaleDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("LocaleDescriptor", value); } + } + /// /// The geographic longitude of the physical address. /// // NOT in a reference, NOT a lookup column [NonDefaultStringLength(20, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="longitude")] + [Key(9)] public string Longitude { get; set; } /// @@ -163726,6 +169842,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(30, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="nameOfCounty")] + [Key(10)] public string NameOfCounty { get; set; } /// @@ -163735,6 +169852,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(17, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="postalCode")] + [Key(11)] public string PostalCode { get; set; } /// @@ -163744,8 +169862,16 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="stateAbbreviationDescriptor")][DescriptorExists("StateAbbreviationDescriptor")] + [IgnoreMember] public string StateAbbreviationDescriptor { get; set; } + [Key(12)][JsonIgnore] + public int StateAbbreviationDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("StateAbbreviationDescriptor", StateAbbreviationDescriptor); } + set { StateAbbreviationDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("StateAbbreviationDescriptor", value); } + } + /// /// The street number and street name or post office box number of an address. /// @@ -163753,6 +169879,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(150, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="streetNumberName")] + [Key(13)] public string StreetNumberName { get; set; } // ------------------------------------------------------------- @@ -163775,6 +169902,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StaffEducationOrganizationContactAssociation", "StaffEducationOrganizationContactAssociationAddress")] + [Key(14)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -163786,6 +169914,7 @@ public override int GetHashCode() [NoDuplicateMembers] [DataMember(Name="periods")] + [Key(15)] public ICollection StaffEducationOrganizationContactAssociationAddressPeriods { get { return _staffEducationOrganizationContactAssociationAddressPeriods; } @@ -163991,7 +170120,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.StaffEducationOrganizationContactAssociationAddressPeriod table of the StaffEducationOrganizationContactAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StaffEducationOrganizationContactAssociationAddressPeriod : Entities.Common.EdFi.IStaffEducationOrganizationContactAssociationAddressPeriod, IValidatableObject { @@ -164034,6 +170163,7 @@ Entities.Common.EdFi.IStaffEducationOrganizationContactAssociationAddress IStaff set { SetStaffEducationOrganizationContactAssociationAddress(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStaffEducationOrganizationContactAssociationAddress StaffEducationOrganizationContactAssociationAddress { set { SetStaffEducationOrganizationContactAssociationAddress(value); } @@ -164050,6 +170180,7 @@ private void SetStaffEducationOrganizationContactAssociationAddress(Entities.Com // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] [DataMember(Name="beginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(0)] public DateTime BeginDate { get; set; } // ------------------------------------------------------------- @@ -164120,6 +170251,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="endDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(1)] public DateTime? EndDate { get; set; } // ------------------------------------------------------------- @@ -164142,6 +170274,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StaffEducationOrganizationContactAssociation", "StaffEducationOrganizationContactAssociationAddressPeriod")] + [Key(2)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -164278,7 +170411,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.StaffEducationOrganizationContactAssociationTelephone table of the StaffEducationOrganizationContactAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StaffEducationOrganizationContactAssociationTelephone : Entities.Common.EdFi.IStaffEducationOrganizationContactAssociationTelephone, IValidatableObject { @@ -164321,6 +170454,7 @@ Entities.Common.EdFi.IStaffEducationOrganizationContactAssociation IStaffEducati set { SetStaffEducationOrganizationContactAssociation(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStaffEducationOrganizationContactAssociation StaffEducationOrganizationContactAssociation { set { SetStaffEducationOrganizationContactAssociation(value); } @@ -164338,6 +170472,7 @@ private void SetStaffEducationOrganizationContactAssociation(Entities.Common.EdF [RequiredWithNonDefault] [NonDefaultStringLength(24, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="telephoneNumber")] + [Key(0)] public string TelephoneNumber { get; set; } /// @@ -164347,7 +170482,15 @@ private void SetStaffEducationOrganizationContactAssociation(Entities.Common.EdF [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="telephoneNumberTypeDescriptor")][DescriptorExists("TelephoneNumberTypeDescriptor")] + [IgnoreMember] public string TelephoneNumberTypeDescriptor { get; set; } + + [Key(1)][JsonIgnore] + public int TelephoneNumberTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("TelephoneNumberTypeDescriptor", TelephoneNumberTypeDescriptor); } + set { TelephoneNumberTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("TelephoneNumberTypeDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -164426,6 +170569,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="doNotPublishIndicator")] + [Key(2)] public bool? DoNotPublishIndicator { get; set; } /// @@ -164434,6 +170578,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(1, 2147483647, ErrorMessage=ValidationHelpers.RangeMinOnlyMessageFormat)] [DataMember(Name="orderOfPriority")] + [Key(3)] public int? OrderOfPriority { get; set; } /// @@ -164441,6 +170586,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="textMessageCapabilityIndicator")] + [Key(4)] public bool? TextMessageCapabilityIndicator { get; set; } // ------------------------------------------------------------- @@ -164463,6 +170609,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StaffEducationOrganizationContactAssociation", "StaffEducationOrganizationContactAssociationTelephone")] + [Key(5)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -164604,17 +170751,27 @@ namespace EdFi.Ods.Api.Common.Models.Resources.StaffEducationOrganizationEmploym /// /// Represents a reference to the StaffEducationOrganizationEmploymentAssociation resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StaffEducationOrganizationEmploymentAssociationReference : IResourceReference { [DataMember(Name="educationOrganizationId")] + [Key(0)] public long EducationOrganizationId { get; set; } [DataMember(Name="employmentStatusDescriptor")][DescriptorExists("EmploymentStatusDescriptor")] + [IgnoreMember] public string EmploymentStatusDescriptor { get; set; } + [Key(1)][JsonIgnore] + public int EmploymentStatusDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("EmploymentStatusDescriptor", EmploymentStatusDescriptor); } + set { EmploymentStatusDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("EmploymentStatusDescriptor", value); } + } + [DataMember(Name="hireDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(2)] public DateTime HireDate { get; set; } [DataMember(Name="staffUniqueId")] @@ -164632,17 +170789,22 @@ public string StaffUniqueId /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(3)] 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. /// + [Key(4)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(5)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -164726,7 +170888,7 @@ private Link CreateLink() /// /// A class which represents the edfi.StaffEducationOrganizationEmploymentAssociation table of the StaffEducationOrganizationEmploymentAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StaffEducationOrganizationEmploymentAssociation : Entities.Common.EdFi.IStaffEducationOrganizationEmploymentAssociation, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -164755,6 +170917,7 @@ public class StaffEducationOrganizationEmploymentAssociation : Entities.Common.E /// The unique identifier for the StaffEducationOrganizationEmploymentAssociation resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -164778,6 +170941,7 @@ private Credential.EdFi.CredentialReference ImplicitCredentialReference } [DataMember(Name="credentialReference")] + [Key(1)] [FullyDefinedReference] public Credential.EdFi.CredentialReference CredentialReference { @@ -164811,6 +170975,7 @@ private EducationOrganization.EdFi.EducationOrganizationReference ImplicitEducat } [DataMember(Name="educationOrganizationReference")] + [Key(2)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public EducationOrganization.EdFi.EducationOrganizationReference EducationOrganizationReference { @@ -164844,6 +171009,7 @@ private Staff.EdFi.StaffReference ImplicitStaffReference } [DataMember(Name="staffReference")] + [Key(3)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Staff.EdFi.StaffReference StaffReference { @@ -164900,14 +171066,23 @@ long Entities.Common.EdFi.IStaffEducationOrganizationEmploymentAssociation.Educa [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="employmentStatusDescriptor")][DescriptorExists("EmploymentStatusDescriptor")] + [IgnoreMember] public string EmploymentStatusDescriptor { get; set; } + [Key(4)][JsonIgnore] + public int EmploymentStatusDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("EmploymentStatusDescriptor", EmploymentStatusDescriptor); } + set { EmploymentStatusDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("EmploymentStatusDescriptor", value); } + } + /// /// The month, day, and year on which an individual was hired for a position. Note: Date interpretation may vary. Ed-Fi recommends inclusive dates, but states may define dates as inclusive or exclusive. For calculations, align with local guidelines. /// // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] [DataMember(Name="hireDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(5)] public DateTime HireDate { get; set; } /// @@ -165023,6 +171198,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-922337203685477.5808", "922337203685477.5807", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="annualWage")] + [Key(6)] public decimal? AnnualWage { get; set; } /// @@ -165058,6 +171234,7 @@ string Entities.Common.EdFi.IStaffEducationOrganizationEmploymentAssociation.Cre // NOT in a reference, NOT a lookup column [NonDefaultStringLength(60, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="department")] + [Key(7)] public string Department { get; set; } /// @@ -165065,6 +171242,7 @@ string Entities.Common.EdFi.IStaffEducationOrganizationEmploymentAssociation.Cre /// // NOT in a reference, NOT a lookup column [DataMember(Name="endDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(8)] public DateTime? EndDate { get; set; } /// @@ -165073,6 +171251,7 @@ string Entities.Common.EdFi.IStaffEducationOrganizationEmploymentAssociation.Cre // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "0", "9.9999", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="fullTimeEquivalency")] + [Key(9)] public decimal? FullTimeEquivalency { get; set; } /// @@ -165081,6 +171260,7 @@ string Entities.Common.EdFi.IStaffEducationOrganizationEmploymentAssociation.Cre // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-922337203685477.5808", "922337203685477.5807", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="hourlyWage")] + [Key(10)] public decimal? HourlyWage { get; set; } /// @@ -165088,6 +171268,7 @@ string Entities.Common.EdFi.IStaffEducationOrganizationEmploymentAssociation.Cre /// // NOT in a reference, NOT a lookup column [DataMember(Name="offerDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(11)] public DateTime? OfferDate { get; set; } /// @@ -165096,16 +171277,32 @@ string Entities.Common.EdFi.IStaffEducationOrganizationEmploymentAssociation.Cre // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="separationDescriptor")][DescriptorExists("SeparationDescriptor")] + [IgnoreMember] public string SeparationDescriptor { get; set; } + [Key(12)][JsonIgnore] + public int SeparationDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("SeparationDescriptor", SeparationDescriptor); } + set { SeparationDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("SeparationDescriptor", value); } + } + /// /// Reason for terminating the employment. /// // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="separationReasonDescriptor")][DescriptorExists("SeparationReasonDescriptor")] + [IgnoreMember] public string SeparationReasonDescriptor { get; set; } + [Key(13)][JsonIgnore] + public int SeparationReasonDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("SeparationReasonDescriptor", SeparationReasonDescriptor); } + set { SeparationReasonDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("SeparationReasonDescriptor", value); } + } + /// /// The abbreviation for the name of the state (within the United States) or extra-state jurisdiction in which a license/credential was issued. /// @@ -165150,6 +171347,7 @@ string Entities.Common.EdFi.IStaffEducationOrganizationEmploymentAssociation.Sta // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StaffEducationOrganizationEmploymentAssociation", "StaffEducationOrganizationEmploymentAssociation")] + [Key(14)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -165163,9 +171361,11 @@ string Entities.Common.EdFi.IStaffEducationOrganizationEmploymentAssociation.Sta // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(15)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(16)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -165339,7 +171539,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.StaffIdentificationSystemDescript /// /// A class which represents the edfi.StaffIdentificationSystemDescriptor table of the StaffIdentificationSystemDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StaffIdentificationSystemDescriptor : Entities.Common.EdFi.IStaffIdentificationSystemDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -165368,6 +171568,7 @@ public class StaffIdentificationSystemDescriptor : Entities.Common.EdFi.IStaffId /// The unique identifier for the StaffIdentificationSystemDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -165452,6 +171653,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -165460,6 +171662,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -165467,6 +171670,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -165474,6 +171678,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -165483,6 +171688,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -165492,6 +171698,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -165535,9 +171742,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -165610,16 +171819,25 @@ namespace EdFi.Ods.Api.Common.Models.Resources.StaffLeave.EdFi /// /// Represents a reference to the StaffLeave resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StaffLeaveReference : IResourceReference { [DataMember(Name="beginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(0)] public DateTime BeginDate { get; set; } [DataMember(Name="staffLeaveEventCategoryDescriptor")][DescriptorExists("StaffLeaveEventCategoryDescriptor")] + [IgnoreMember] public string StaffLeaveEventCategoryDescriptor { get; set; } + [Key(1)][JsonIgnore] + public int StaffLeaveEventCategoryDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("StaffLeaveEventCategoryDescriptor", StaffLeaveEventCategoryDescriptor); } + set { StaffLeaveEventCategoryDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("StaffLeaveEventCategoryDescriptor", value); } + } + [DataMember(Name="staffUniqueId")] public string StaffUniqueId { @@ -165635,17 +171853,22 @@ public string StaffUniqueId /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(2)] 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. /// + [Key(3)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(4)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -165724,7 +171947,7 @@ private Link CreateLink() /// /// A class which represents the edfi.StaffLeave table of the StaffLeave aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StaffLeave : Entities.Common.EdFi.IStaffLeave, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -165753,6 +171976,7 @@ public class StaffLeave : Entities.Common.EdFi.IStaffLeave, IHasETag, IDateVersi /// The unique identifier for the StaffLeave resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -165776,6 +172000,7 @@ private Staff.EdFi.StaffReference ImplicitStaffReference } [DataMember(Name="staffReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Staff.EdFi.StaffReference StaffReference { @@ -165806,6 +172031,7 @@ public Staff.EdFi.StaffReference StaffReference // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] [DataMember(Name="beginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(2)] public DateTime BeginDate { get; set; } /// @@ -165815,8 +172041,16 @@ public Staff.EdFi.StaffReference StaffReference [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="staffLeaveEventCategoryDescriptor")][DescriptorExists("StaffLeaveEventCategoryDescriptor")] + [IgnoreMember] public string StaffLeaveEventCategoryDescriptor { get; set; } + [Key(3)][JsonIgnore] + public int StaffLeaveEventCategoryDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("StaffLeaveEventCategoryDescriptor", StaffLeaveEventCategoryDescriptor); } + set { StaffLeaveEventCategoryDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("StaffLeaveEventCategoryDescriptor", value); } + } + /// /// A unique alphanumeric code assigned to a staff. /// @@ -165921,6 +172155,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="endDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EndDate { get; set; } /// @@ -165929,6 +172164,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(40, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="reason")] + [Key(5)] public string Reason { get; set; } /// @@ -165936,6 +172172,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="substituteAssigned")] + [Key(6)] public bool? SubstituteAssigned { get; set; } // ------------------------------------------------------------- @@ -165958,6 +172195,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StaffLeave", "StaffLeave")] + [Key(7)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -165971,9 +172209,11 @@ public override int GetHashCode() // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(8)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(9)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -166119,7 +172359,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.StaffLeaveEventCategoryDescriptor /// /// A class which represents the edfi.StaffLeaveEventCategoryDescriptor table of the StaffLeaveEventCategoryDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StaffLeaveEventCategoryDescriptor : Entities.Common.EdFi.IStaffLeaveEventCategoryDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -166148,6 +172388,7 @@ public class StaffLeaveEventCategoryDescriptor : Entities.Common.EdFi.IStaffLeav /// The unique identifier for the StaffLeaveEventCategoryDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -166232,6 +172473,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -166240,6 +172482,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -166247,6 +172490,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -166254,6 +172498,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -166263,6 +172508,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -166272,6 +172518,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -166315,9 +172562,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -166390,22 +172639,33 @@ namespace EdFi.Ods.Api.Common.Models.Resources.StaffProgramAssociation.EdFi /// /// Represents a reference to the StaffProgramAssociation resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StaffProgramAssociationReference : IResourceReference { [DataMember(Name="beginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(0)] public DateTime BeginDate { get; set; } [DataMember(Name="programEducationOrganizationId")] + [Key(1)] public long ProgramEducationOrganizationId { get; set; } [DataMember(Name="programName")] + [Key(2)] public string ProgramName { get; set; } [DataMember(Name="programTypeDescriptor")][DescriptorExists("ProgramTypeDescriptor")] + [IgnoreMember] public string ProgramTypeDescriptor { get; set; } + [Key(3)][JsonIgnore] + public int ProgramTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ProgramTypeDescriptor", ProgramTypeDescriptor); } + set { ProgramTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ProgramTypeDescriptor", value); } + } + [DataMember(Name="staffUniqueId")] public string StaffUniqueId { @@ -166421,17 +172681,22 @@ public string StaffUniqueId /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(4)] 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. /// + [Key(5)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(6)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -166520,7 +172785,7 @@ private Link CreateLink() /// /// A class which represents the edfi.StaffProgramAssociation table of the StaffProgramAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StaffProgramAssociation : Entities.Common.EdFi.IStaffProgramAssociation, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -166549,6 +172814,7 @@ public class StaffProgramAssociation : Entities.Common.EdFi.IStaffProgramAssocia /// The unique identifier for the StaffProgramAssociation resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -166572,6 +172838,7 @@ private Program.EdFi.ProgramReference ImplicitProgramReference } [DataMember(Name="programReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Program.EdFi.ProgramReference ProgramReference { @@ -166605,6 +172872,7 @@ private Staff.EdFi.StaffReference ImplicitStaffReference } [DataMember(Name="staffReference")] + [Key(2)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Staff.EdFi.StaffReference StaffReference { @@ -166635,6 +172903,7 @@ public Staff.EdFi.StaffReference StaffReference // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] [DataMember(Name="beginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime BeginDate { get; set; } /// @@ -166828,6 +173097,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="endDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EndDate { get; set; } /// @@ -166835,6 +173105,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="studentRecordAccess")] + [Key(5)] public bool? StudentRecordAccess { get; set; } // ------------------------------------------------------------- @@ -166857,6 +173128,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StaffProgramAssociation", "StaffProgramAssociation")] + [Key(6)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -166870,9 +173142,11 @@ public override int GetHashCode() // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -167032,14 +173306,23 @@ namespace EdFi.Ods.Api.Common.Models.Resources.StaffSchoolAssociation.EdFi /// /// Represents a reference to the StaffSchoolAssociation resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StaffSchoolAssociationReference : IResourceReference { [DataMember(Name="programAssignmentDescriptor")][DescriptorExists("ProgramAssignmentDescriptor")] + [IgnoreMember] public string ProgramAssignmentDescriptor { get; set; } + [Key(0)][JsonIgnore] + public int ProgramAssignmentDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ProgramAssignmentDescriptor", ProgramAssignmentDescriptor); } + set { ProgramAssignmentDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ProgramAssignmentDescriptor", value); } + } + [DataMember(Name="schoolId")] + [Key(1)] public long SchoolId { get; set; } [DataMember(Name="staffUniqueId")] @@ -167057,17 +173340,22 @@ public string StaffUniqueId /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(2)] 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. /// + [Key(3)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(4)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -167146,7 +173434,7 @@ private Link CreateLink() /// /// A class which represents the edfi.StaffSchoolAssociation table of the StaffSchoolAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StaffSchoolAssociation : Entities.Common.EdFi.IStaffSchoolAssociation, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -167180,6 +173468,7 @@ public StaffSchoolAssociation() /// The unique identifier for the StaffSchoolAssociation resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -167203,6 +173492,7 @@ private Calendar.EdFi.CalendarReference ImplicitCalendarReference } [DataMember(Name="calendarReference")] + [Key(1)] [FullyDefinedReference] public Calendar.EdFi.CalendarReference CalendarReference { @@ -167236,6 +173526,7 @@ private School.EdFi.SchoolReference ImplicitSchoolReference } [DataMember(Name="schoolReference")] + [Key(2)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public School.EdFi.SchoolReference SchoolReference { @@ -167269,6 +173560,7 @@ private SchoolYearType.EdFi.SchoolYearTypeReference ImplicitSchoolYearTypeRefere } [DataMember(Name="schoolYearTypeReference")] + [Key(3)] [FullyDefinedReference] public SchoolYearType.EdFi.SchoolYearTypeReference SchoolYearTypeReference { @@ -167302,6 +173594,7 @@ private Staff.EdFi.StaffReference ImplicitStaffReference } [DataMember(Name="staffReference")] + [Key(4)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Staff.EdFi.StaffReference StaffReference { @@ -167333,8 +173626,16 @@ public Staff.EdFi.StaffReference StaffReference [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="programAssignmentDescriptor")][DescriptorExists("ProgramAssignmentDescriptor")] + [IgnoreMember] public string ProgramAssignmentDescriptor { get; set; } + [Key(5)][JsonIgnore] + public int ProgramAssignmentDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ProgramAssignmentDescriptor", ProgramAssignmentDescriptor); } + set { ProgramAssignmentDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ProgramAssignmentDescriptor", value); } + } + /// /// The identifier assigned to a school. It must be distinct from any other identifier assigned to educational organizations, such as a LocalEducationAgencyId, to prevent duplication. /// @@ -167546,6 +173847,7 @@ string Entities.Common.EdFi.IStaffSchoolAssociation.CalendarCode // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StaffSchoolAssociation", "StaffSchoolAssociation")] + [Key(6)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -167557,6 +173859,7 @@ string Entities.Common.EdFi.IStaffSchoolAssociation.CalendarCode [NoDuplicateMembers] [DataMember(Name="academicSubjects")] + [Key(7)] public ICollection StaffSchoolAssociationAcademicSubjects { get { return _staffSchoolAssociationAcademicSubjects; } @@ -167587,6 +173890,7 @@ public ICollection StaffSchoolAssociation [NoDuplicateMembers] [DataMember(Name="gradeLevels")] + [Key(8)] public ICollection StaffSchoolAssociationGradeLevels { get { return _staffSchoolAssociationGradeLevels; } @@ -167619,9 +173923,11 @@ public ICollection StaffSchoolAssociationGrade // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(9)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(10)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -167940,7 +174246,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.StaffSchoolAssociationAcademicSubject table of the StaffSchoolAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StaffSchoolAssociationAcademicSubject : Entities.Common.EdFi.IStaffSchoolAssociationAcademicSubject, IValidatableObject { @@ -167983,6 +174289,7 @@ Entities.Common.EdFi.IStaffSchoolAssociation IStaffSchoolAssociationAcademicSubj set { SetStaffSchoolAssociation(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStaffSchoolAssociation StaffSchoolAssociation { set { SetStaffSchoolAssociation(value); } @@ -168000,7 +174307,15 @@ private void SetStaffSchoolAssociation(Entities.Common.EdFi.IStaffSchoolAssociat [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="academicSubjectDescriptor")][DescriptorExists("AcademicSubjectDescriptor")] + [IgnoreMember] public string AcademicSubjectDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int AcademicSubjectDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("AcademicSubjectDescriptor", AcademicSubjectDescriptor); } + set { AcademicSubjectDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("AcademicSubjectDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -168085,6 +174400,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StaffSchoolAssociation", "StaffSchoolAssociationAcademicSubject")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -168221,7 +174537,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.StaffSchoolAssociationGradeLevel table of the StaffSchoolAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StaffSchoolAssociationGradeLevel : Entities.Common.EdFi.IStaffSchoolAssociationGradeLevel, IValidatableObject { @@ -168264,6 +174580,7 @@ Entities.Common.EdFi.IStaffSchoolAssociation IStaffSchoolAssociationGradeLevel.S set { SetStaffSchoolAssociation(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStaffSchoolAssociation StaffSchoolAssociation { set { SetStaffSchoolAssociation(value); } @@ -168281,7 +174598,15 @@ private void SetStaffSchoolAssociation(Entities.Common.EdFi.IStaffSchoolAssociat [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="gradeLevelDescriptor")][DescriptorExists("GradeLevelDescriptor")] + [IgnoreMember] public string GradeLevelDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int GradeLevelDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("GradeLevelDescriptor", GradeLevelDescriptor); } + set { GradeLevelDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("GradeLevelDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -168366,6 +174691,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StaffSchoolAssociation", "StaffSchoolAssociationGradeLevel")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -168507,26 +174833,32 @@ namespace EdFi.Ods.Api.Common.Models.Resources.StaffSectionAssociation.EdFi /// /// Represents a reference to the StaffSectionAssociation resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StaffSectionAssociationReference : IResourceReference { [DataMember(Name="beginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(0)] public DateTime BeginDate { get; set; } [DataMember(Name="localCourseCode")] + [Key(1)] public string LocalCourseCode { get; set; } [DataMember(Name="schoolId")] + [Key(2)] public long SchoolId { get; set; } [DataMember(Name="schoolYear")] + [Key(3)] public short SchoolYear { get; set; } [DataMember(Name="sectionIdentifier")] + [Key(4)] public string SectionIdentifier { get; set; } [DataMember(Name="sessionName")] + [Key(5)] public string SessionName { get; set; } [DataMember(Name="staffUniqueId")] @@ -168544,17 +174876,22 @@ public string StaffUniqueId /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(6)] 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. /// + [Key(7)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(8)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -168653,7 +174990,7 @@ private Link CreateLink() /// /// A class which represents the edfi.StaffSectionAssociation table of the StaffSectionAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StaffSectionAssociation : Entities.Common.EdFi.IStaffSectionAssociation, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -168682,6 +175019,7 @@ public class StaffSectionAssociation : Entities.Common.EdFi.IStaffSectionAssocia /// The unique identifier for the StaffSectionAssociation resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -168705,6 +175043,7 @@ private Section.EdFi.SectionReference ImplicitSectionReference } [DataMember(Name="sectionReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Section.EdFi.SectionReference SectionReference { @@ -168738,6 +175077,7 @@ private Staff.EdFi.StaffReference ImplicitStaffReference } [DataMember(Name="staffReference")] + [Key(2)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Staff.EdFi.StaffReference StaffReference { @@ -168768,6 +175108,7 @@ public Staff.EdFi.StaffReference StaffReference // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] [DataMember(Name="beginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime BeginDate { get; set; } /// @@ -169032,13 +175373,22 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="classroomPositionDescriptor")][DescriptorExists("ClassroomPositionDescriptor")] + [IgnoreMember] public string ClassroomPositionDescriptor { get; set; } + [Key(4)][JsonIgnore] + public int ClassroomPositionDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ClassroomPositionDescriptor", ClassroomPositionDescriptor); } + set { ClassroomPositionDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ClassroomPositionDescriptor", value); } + } + /// /// Month, day, and year of the last day of a staff member's assignment to the section. Note: Date interpretation may vary. Ed-Fi recommends inclusive dates, but states may define dates as inclusive or exclusive. For calculations, align with local guidelines. /// // NOT in a reference, NOT a lookup column [DataMember(Name="endDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(5)] public DateTime? EndDate { get; set; } /// @@ -169046,6 +175396,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="highlyQualifiedTeacher")] + [Key(6)] public bool? HighlyQualifiedTeacher { get; set; } /// @@ -169054,6 +175405,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-9.9999", "9.9999", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="percentageContribution")] + [Key(7)] public decimal? PercentageContribution { get; set; } /// @@ -169061,6 +175413,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="teacherStudentDataLinkExclusion")] + [Key(8)] public bool? TeacherStudentDataLinkExclusion { get; set; } // ------------------------------------------------------------- @@ -169083,6 +175436,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StaffSectionAssociation", "StaffSectionAssociation")] + [Key(9)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -169096,9 +175450,11 @@ public override int GetHashCode() // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(10)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(11)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -169258,7 +175614,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.StateAbbreviationDescriptor.EdFi /// /// A class which represents the edfi.StateAbbreviationDescriptor table of the StateAbbreviationDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StateAbbreviationDescriptor : Entities.Common.EdFi.IStateAbbreviationDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -169287,6 +175643,7 @@ public class StateAbbreviationDescriptor : Entities.Common.EdFi.IStateAbbreviati /// The unique identifier for the StateAbbreviationDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -169371,6 +175728,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -169379,6 +175737,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -169386,6 +175745,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -169393,6 +175753,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -169402,6 +175763,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -169411,6 +175773,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -169454,9 +175817,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -169529,21 +175894,26 @@ namespace EdFi.Ods.Api.Common.Models.Resources.StateEducationAgency.EdFi /// /// Represents a reference to the StateEducationAgency resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StateEducationAgencyReference : IResourceReference { [DataMember(Name="stateEducationAgencyId")] + [Key(0)] public long StateEducationAgencyId { get; set; } /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(1)] public Guid ResourceId { get; set; } - private Link _link; + [JsonIgnore] + [Key(2)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -169593,7 +175963,7 @@ private Link CreateLink() /// /// A class which represents the edfi.StateEducationAgency table of the StateEducationAgency aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StateEducationAgency : Entities.Common.EdFi.IStateEducationAgency, Entities.Common.EdFi.IEducationOrganization, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -169635,6 +176005,7 @@ public StateEducationAgency() /// The unique identifier for the StateEducationAgency resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -169653,7 +176024,7 @@ public StateEducationAgency() /// // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] - [DataMember(Name="stateEducationAgencyId")] + [DataMember(Name="stateEducationAgencyId"),Key(1)] public long StateEducationAgencyId { get; set; } long IEducationOrganization.EducationOrganizationId @@ -169720,6 +176091,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="nameOfInstitution")] + [Key(2)] public string NameOfInstitution { get; set; } /// @@ -169728,14 +176100,23 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="operationalStatusDescriptor")][DescriptorExists("OperationalStatusDescriptor")] + [IgnoreMember] public string OperationalStatusDescriptor { get; set; } + [Key(3)][JsonIgnore] + public int OperationalStatusDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("OperationalStatusDescriptor", OperationalStatusDescriptor); } + set { OperationalStatusDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("OperationalStatusDescriptor", value); } + } + /// /// A short name for the institution. /// // NOT in a reference, NOT a lookup column [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortNameOfInstitution")] + [Key(4)] public string ShortNameOfInstitution { get; set; } /// @@ -169744,6 +176125,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(255, MinimumLength=5, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText] [DataMember(Name="webSite")] + [Key(5)] public string WebSite { get; set; } // ------------------------------------------------------------- @@ -169770,6 +176152,7 @@ public override int GetHashCode() [NoDuplicateMembers] [DataMember(Name="addresses")] + [Key(6)] public ICollection EducationOrganizationAddresses { get { return _educationOrganizationAddresses; } @@ -169791,6 +176174,7 @@ public ICollection Educ [NoDuplicateMembers][RequiredCollection] [DataMember(Name="categories")] + [Key(7)] public ICollection EducationOrganizationCategories { get { return _educationOrganizationCategories; } @@ -169812,6 +176196,7 @@ public ICollection Edu [NoDuplicateMembers] [DataMember(Name="identificationCodes")] + [Key(8)] public ICollection EducationOrganizationIdentificationCodes { get { return _educationOrganizationIdentificationCodes; } @@ -169833,6 +176218,7 @@ public ICollection EducationOrganizationIndicators { get { return _educationOrganizationIndicators; } @@ -169854,6 +176240,7 @@ public ICollection Ed [NoDuplicateMembers] [DataMember(Name="institutionTelephones")] + [Key(10)] public ICollection EducationOrganizationInstitutionTelephones { get { return _educationOrganizationInstitutionTelephones; } @@ -169875,6 +176262,7 @@ public ICollection EducationOrganizationInternationalAddresses { get { return _educationOrganizationInternationalAddresses; } @@ -169897,6 +176285,7 @@ public ICollection StateEducationAgencyAccountabilities { get { return _stateEducationAgencyAccountabilities; } @@ -169938,6 +176328,7 @@ public ICollection StateEducationAgencyAccou [NoDuplicateMembers] [DataMember(Name="federalFunds")] + [Key(14)] public ICollection StateEducationAgencyFederalFunds { get { return _stateEducationAgencyFederalFunds; } @@ -169970,9 +176361,11 @@ public ICollection StateEducationAgencyFederal // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(15)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(16)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -170352,7 +176745,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.StateEducationAgencyAccountability table of the StateEducationAgency aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StateEducationAgencyAccountability : Entities.Common.EdFi.IStateEducationAgencyAccountability, IValidatableObject { @@ -170397,6 +176790,7 @@ private SchoolYearType.EdFi.SchoolYearTypeReference ImplicitSchoolYearTypeRefere } [DataMember(Name="schoolYearTypeReference")] + [Key(0)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public SchoolYearType.EdFi.SchoolYearTypeReference SchoolYearTypeReference { @@ -170429,6 +176823,7 @@ Entities.Common.EdFi.IStateEducationAgency IStateEducationAgencyAccountability.S set { SetStateEducationAgency(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStateEducationAgency StateEducationAgency { set { SetStateEducationAgency(value); } @@ -170531,6 +176926,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="cteGraduationRateInclusion")] + [Key(1)] public bool? CTEGraduationRateInclusion { get; set; } // ------------------------------------------------------------- @@ -170553,6 +176949,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StateEducationAgency", "StateEducationAgencyAccountability")] + [Key(2)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -170696,7 +177093,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.StateEducationAgencyFederalFunds table of the StateEducationAgency aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StateEducationAgencyFederalFunds : Entities.Common.EdFi.IStateEducationAgencyFederalFunds, IValidatableObject { @@ -170739,6 +177136,7 @@ Entities.Common.EdFi.IStateEducationAgency IStateEducationAgencyFederalFunds.Sta set { SetStateEducationAgency(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStateEducationAgency StateEducationAgency { set { SetStateEducationAgency(value); } @@ -170755,6 +177153,7 @@ private void SetStateEducationAgency(Entities.Common.EdFi.IStateEducationAgency // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] [DataMember(Name="fiscalYear")] + [Key(0)] public int FiscalYear { get; set; } // ------------------------------------------------------------- @@ -170826,6 +177225,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-922337203685477.5808", "922337203685477.5807", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="federalProgramsFundingAllocation")] + [Key(1)] public decimal? FederalProgramsFundingAllocation { get; set; } // ------------------------------------------------------------- @@ -170848,6 +177248,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StateEducationAgency", "StateEducationAgencyFederalFunds")] + [Key(2)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -170989,7 +177390,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.Student.EdFi /// /// Represents a reference to the Student resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentReference : IResourceReference { @@ -171008,17 +177409,22 @@ public string StudentUniqueId /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(0)] 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. /// + [Key(1)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(2)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -171087,7 +177493,7 @@ private Link CreateLink() /// /// A class which represents the edfi.Student table of the Student aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class Student : Entities.Common.EdFi.IStudent, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -171123,6 +177529,7 @@ public Student() /// The unique identifier for the Student resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -171146,6 +177553,7 @@ private Person.EdFi.PersonReference ImplicitPersonReference } [DataMember(Name="personReference")] + [Key(1)] [FullyDefinedReference] public Person.EdFi.PersonReference PersonReference { @@ -171177,6 +177585,7 @@ public Person.EdFi.PersonReference PersonReference [RequiredWithNonDefault] [NonDefaultStringLength(32, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [UniqueId][DataMember(Name="studentUniqueId")] + [Key(2)] public string StudentUniqueId { get => _studentUniqueId; @@ -171250,6 +177659,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(30, MinimumLength=2, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText] [DataMember(Name="birthCity")] + [Key(3)] public string BirthCity { get; set; } /// @@ -171258,14 +177668,23 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="birthCountryDescriptor")][DescriptorExists("CountryDescriptor")] + [IgnoreMember] public string BirthCountryDescriptor { get; set; } + [Key(4)][JsonIgnore] + public int BirthCountryDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("CountryDescriptor", BirthCountryDescriptor); } + set { BirthCountryDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("CountryDescriptor", value); } + } + /// /// The month, day, and year on which an individual was born. /// // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] [DataMember(Name="birthDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(5)] public DateTime BirthDate { get; set; } /// @@ -171274,6 +177693,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(150, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="birthInternationalProvince")] + [Key(6)] public string BirthInternationalProvince { get; set; } /// @@ -171282,29 +177702,54 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="birthSexDescriptor")][DescriptorExists("SexDescriptor")] + [IgnoreMember] public string BirthSexDescriptor { get; set; } + [Key(7)][JsonIgnore] + public int BirthSexDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("SexDescriptor", BirthSexDescriptor); } + set { BirthSexDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("SexDescriptor", value); } + } + /// /// The abbreviation for the name of the state (within the United States) or extra-state jurisdiction in which an individual was born. /// // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="birthStateAbbreviationDescriptor")][DescriptorExists("StateAbbreviationDescriptor")] + [IgnoreMember] public string BirthStateAbbreviationDescriptor { get; set; } + [Key(8)][JsonIgnore] + public int BirthStateAbbreviationDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("StateAbbreviationDescriptor", BirthStateAbbreviationDescriptor); } + set { BirthStateAbbreviationDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("StateAbbreviationDescriptor", value); } + } + /// /// An indicator of whether or not the person is a U.S. citizen. /// // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="citizenshipStatusDescriptor")][DescriptorExists("CitizenshipStatusDescriptor")] + [IgnoreMember] public string CitizenshipStatusDescriptor { get; set; } + [Key(9)][JsonIgnore] + public int CitizenshipStatusDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("CitizenshipStatusDescriptor", CitizenshipStatusDescriptor); } + set { CitizenshipStatusDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("CitizenshipStatusDescriptor", value); } + } + /// /// For students born outside of the U.S., the date the student entered the U.S. /// // NOT in a reference, NOT a lookup column [DataMember(Name="dateEnteredUS")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(10)] public DateTime? DateEnteredUS { get; set; } /// @@ -171314,6 +177759,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="firstName")] + [Key(11)] public string FirstName { get; set; } /// @@ -171322,6 +177768,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(10, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="generationCodeSuffix")] + [Key(12)] public string GenerationCodeSuffix { get; set; } /// @@ -171331,6 +177778,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="lastSurname")] + [Key(13)] public string LastSurname { get; set; } /// @@ -171339,6 +177787,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="maidenName")] + [Key(14)] public string MaidenName { get; set; } /// @@ -171347,6 +177796,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="middleName")] + [Key(15)] public string MiddleName { get; set; } /// @@ -171354,6 +177804,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="multipleBirthStatus")] + [Key(16)] public bool? MultipleBirthStatus { get; set; } /// @@ -171362,6 +177813,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(30, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="personalTitlePrefix")] + [Key(17)] public string PersonalTitlePrefix { get; set; } /// @@ -171397,6 +177849,7 @@ string Entities.Common.EdFi.IStudent.PersonId // NOT in a reference, NOT a lookup column [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="preferredFirstName")] + [Key(18)] public string PreferredFirstName { get; set; } /// @@ -171405,6 +177858,7 @@ string Entities.Common.EdFi.IStudent.PersonId // NOT in a reference, NOT a lookup column [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="preferredLastSurname")] + [Key(19)] public string PreferredLastSurname { get; set; } /// @@ -171451,6 +177905,7 @@ string Entities.Common.EdFi.IStudent.SourceSystemDescriptor // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "Student", "Student")] + [Key(20)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -171462,6 +177917,7 @@ string Entities.Common.EdFi.IStudent.SourceSystemDescriptor [NoDuplicateMembers] [DataMember(Name="identificationDocuments")] + [Key(21)] public ICollection StudentIdentificationDocuments { get { return _studentIdentificationDocuments; } @@ -171492,6 +177948,7 @@ public ICollection StudentIdentificationDocuments [NoDuplicateMembers] [DataMember(Name="otherNames")] + [Key(22)] public ICollection StudentOtherNames { get { return _studentOtherNames; } @@ -171522,6 +177979,7 @@ public ICollection StudentOtherNames [NoDuplicateMembers] [DataMember(Name="personalIdentificationDocuments")] + [Key(23)] public ICollection StudentPersonalIdentificationDocuments { get { return _studentPersonalIdentificationDocuments; } @@ -171552,6 +178010,7 @@ public ICollection StudentPersonalIdentif [NoDuplicateMembers] [DataMember(Name="visas")] + [Key(24)] public ICollection StudentVisas { get { return _studentVisas; } @@ -171584,9 +178043,11 @@ public ICollection StudentVisas // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(25)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(26)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -171864,7 +178325,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// /// A class which represents the edfi.StudentIdentificationDocument table of the Student aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentIdentificationDocument : Entities.Common.EdFi.IStudentIdentificationDocument, IValidatableObject { @@ -171907,6 +178368,7 @@ Entities.Common.EdFi.IStudent IStudentIdentificationDocument.Student set { SetStudent(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStudent Student { set { SetStudent(value); } @@ -171924,8 +178386,16 @@ private void SetStudent(Entities.Common.EdFi.IStudent value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="identificationDocumentUseDescriptor")][DescriptorExists("IdentificationDocumentUseDescriptor")] + [IgnoreMember] public string IdentificationDocumentUseDescriptor { get; set; } + [Key(0)][JsonIgnore] + public int IdentificationDocumentUseDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("IdentificationDocumentUseDescriptor", IdentificationDocumentUseDescriptor); } + set { IdentificationDocumentUseDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("IdentificationDocumentUseDescriptor", value); } + } + /// /// The category of the document relative to its purpose. /// @@ -171933,7 +178403,15 @@ private void SetStudent(Entities.Common.EdFi.IStudent value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="personalInformationVerificationDescriptor")][DescriptorExists("PersonalInformationVerificationDescriptor")] + [IgnoreMember] public string PersonalInformationVerificationDescriptor { get; set; } + + [Key(1)][JsonIgnore] + public int PersonalInformationVerificationDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("PersonalInformationVerificationDescriptor", PersonalInformationVerificationDescriptor); } + set { PersonalInformationVerificationDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("PersonalInformationVerificationDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -172012,6 +178490,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="documentExpirationDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(2)] public DateTime? DocumentExpirationDate { get; set; } /// @@ -172020,6 +178499,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(60, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="documentTitle")] + [Key(3)] public string DocumentTitle { get; set; } /// @@ -172028,14 +178508,23 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="issuerCountryDescriptor")][DescriptorExists("CountryDescriptor")] + [IgnoreMember] public string IssuerCountryDescriptor { get; set; } + [Key(4)][JsonIgnore] + public int IssuerCountryDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("CountryDescriptor", IssuerCountryDescriptor); } + set { IssuerCountryDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("CountryDescriptor", value); } + } + /// /// The unique identifier on the issuer's identification system. /// // NOT in a reference, NOT a lookup column [NonDefaultStringLength(60, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="issuerDocumentIdentificationCode")] + [Key(5)] public string IssuerDocumentIdentificationCode { get; set; } /// @@ -172044,6 +178533,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(150, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="issuerName")] + [Key(6)] public string IssuerName { get; set; } // ------------------------------------------------------------- @@ -172066,6 +178556,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "Student", "StudentIdentificationDocument")] + [Key(7)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -172202,7 +178693,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.StudentOtherName table of the Student aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentOtherName : Entities.Common.EdFi.IStudentOtherName, IValidatableObject { @@ -172245,6 +178736,7 @@ Entities.Common.EdFi.IStudent IStudentOtherName.Student set { SetStudent(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStudent Student { set { SetStudent(value); } @@ -172262,7 +178754,15 @@ private void SetStudent(Entities.Common.EdFi.IStudent value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="otherNameTypeDescriptor")][DescriptorExists("OtherNameTypeDescriptor")] + [IgnoreMember] public string OtherNameTypeDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int OtherNameTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("OtherNameTypeDescriptor", OtherNameTypeDescriptor); } + set { OtherNameTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("OtherNameTypeDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -172334,6 +178834,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="firstName")] + [Key(1)] public string FirstName { get; set; } /// @@ -172342,6 +178843,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(10, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="generationCodeSuffix")] + [Key(2)] public string GenerationCodeSuffix { get; set; } /// @@ -172351,6 +178853,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="lastSurname")] + [Key(3)] public string LastSurname { get; set; } /// @@ -172359,6 +178862,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="middleName")] + [Key(4)] public string MiddleName { get; set; } /// @@ -172367,6 +178871,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(30, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="personalTitlePrefix")] + [Key(5)] public string PersonalTitlePrefix { get; set; } // ------------------------------------------------------------- @@ -172389,6 +178894,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "Student", "StudentOtherName")] + [Key(6)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -172525,7 +179031,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.StudentPersonalIdentificationDocument table of the Student aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentPersonalIdentificationDocument : Entities.Common.EdFi.IStudentPersonalIdentificationDocument, IValidatableObject { @@ -172568,6 +179074,7 @@ Entities.Common.EdFi.IStudent IStudentPersonalIdentificationDocument.Student set { SetStudent(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStudent Student { set { SetStudent(value); } @@ -172585,8 +179092,16 @@ private void SetStudent(Entities.Common.EdFi.IStudent value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="identificationDocumentUseDescriptor")][DescriptorExists("IdentificationDocumentUseDescriptor")] + [IgnoreMember] public string IdentificationDocumentUseDescriptor { get; set; } + [Key(0)][JsonIgnore] + public int IdentificationDocumentUseDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("IdentificationDocumentUseDescriptor", IdentificationDocumentUseDescriptor); } + set { IdentificationDocumentUseDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("IdentificationDocumentUseDescriptor", value); } + } + /// /// The category of the document relative to its purpose. /// @@ -172594,7 +179109,15 @@ private void SetStudent(Entities.Common.EdFi.IStudent value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="personalInformationVerificationDescriptor")][DescriptorExists("PersonalInformationVerificationDescriptor")] + [IgnoreMember] public string PersonalInformationVerificationDescriptor { get; set; } + + [Key(1)][JsonIgnore] + public int PersonalInformationVerificationDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("PersonalInformationVerificationDescriptor", PersonalInformationVerificationDescriptor); } + set { PersonalInformationVerificationDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("PersonalInformationVerificationDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -172673,6 +179196,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="documentExpirationDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(2)] public DateTime? DocumentExpirationDate { get; set; } /// @@ -172681,6 +179205,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(60, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="documentTitle")] + [Key(3)] public string DocumentTitle { get; set; } /// @@ -172689,14 +179214,23 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="issuerCountryDescriptor")][DescriptorExists("CountryDescriptor")] + [IgnoreMember] public string IssuerCountryDescriptor { get; set; } + [Key(4)][JsonIgnore] + public int IssuerCountryDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("CountryDescriptor", IssuerCountryDescriptor); } + set { IssuerCountryDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("CountryDescriptor", value); } + } + /// /// The unique identifier on the issuer's identification system. /// // NOT in a reference, NOT a lookup column [NonDefaultStringLength(60, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="issuerDocumentIdentificationCode")] + [Key(5)] public string IssuerDocumentIdentificationCode { get; set; } /// @@ -172705,6 +179239,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(150, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="issuerName")] + [Key(6)] public string IssuerName { get; set; } // ------------------------------------------------------------- @@ -172727,6 +179262,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "Student", "StudentPersonalIdentificationDocument")] + [Key(7)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -172863,7 +179399,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.StudentVisa table of the Student aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentVisa : Entities.Common.EdFi.IStudentVisa, IValidatableObject { @@ -172906,6 +179442,7 @@ Entities.Common.EdFi.IStudent IStudentVisa.Student set { SetStudent(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStudent Student { set { SetStudent(value); } @@ -172923,7 +179460,15 @@ private void SetStudent(Entities.Common.EdFi.IStudent value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="visaDescriptor")][DescriptorExists("VisaDescriptor")] + [IgnoreMember] public string VisaDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int VisaDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("VisaDescriptor", VisaDescriptor); } + set { VisaDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("VisaDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -173008,6 +179553,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "Student", "StudentVisa")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -173149,14 +179695,16 @@ namespace EdFi.Ods.Api.Common.Models.Resources.StudentAcademicRecord.EdFi /// /// Represents a reference to the StudentAcademicRecord resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentAcademicRecordReference : IResourceReference { [DataMember(Name="educationOrganizationId")] + [Key(0)] public long EducationOrganizationId { get; set; } [DataMember(Name="schoolYear")] + [Key(1)] public short SchoolYear { get; set; } [DataMember(Name="studentUniqueId")] @@ -173172,22 +179720,35 @@ public string StudentUniqueId private string _studentUniqueId; [DataMember(Name="termDescriptor")][DescriptorExists("TermDescriptor")] + [IgnoreMember] public string TermDescriptor { get; set; } + [Key(2)][JsonIgnore] + public int TermDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("TermDescriptor", TermDescriptor); } + set { TermDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("TermDescriptor", value); } + } + /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(3)] 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. /// + [Key(4)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(5)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -173271,7 +179832,7 @@ private Link CreateLink() /// /// A class which represents the edfi.StudentAcademicRecord table of the StudentAcademicRecord aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentAcademicRecord : Entities.Common.EdFi.IStudentAcademicRecord, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -173308,6 +179869,7 @@ public StudentAcademicRecord() /// The unique identifier for the StudentAcademicRecord resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -173331,6 +179893,7 @@ private EducationOrganization.EdFi.EducationOrganizationReference ImplicitEducat } [DataMember(Name="educationOrganizationReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public EducationOrganization.EdFi.EducationOrganizationReference EducationOrganizationReference { @@ -173364,6 +179927,7 @@ private SchoolYearType.EdFi.SchoolYearTypeReference ImplicitSchoolYearTypeRefere } [DataMember(Name="schoolYearTypeReference")] + [Key(2)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public SchoolYearType.EdFi.SchoolYearTypeReference SchoolYearTypeReference { @@ -173397,6 +179961,7 @@ private Student.EdFi.StudentReference ImplicitStudentReference } [DataMember(Name="studentReference")] + [Key(3)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Student.EdFi.StudentReference StudentReference { @@ -173504,7 +180069,15 @@ string Entities.Common.EdFi.IStudentAcademicRecord.StudentUniqueId [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="termDescriptor")][DescriptorExists("TermDescriptor")] + [IgnoreMember] public string TermDescriptor { get; set; } + + [Key(4)][JsonIgnore] + public int TermDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("TermDescriptor", TermDescriptor); } + set { TermDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("TermDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -173592,6 +180165,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-9999999.99", "9999999.99", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="cumulativeAttemptedCreditConversion")] + [Key(5)] public decimal? CumulativeAttemptedCreditConversion { get; set; } /// @@ -173600,6 +180174,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "0", "999999.999", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="cumulativeAttemptedCredits")] + [Key(6)] public decimal? CumulativeAttemptedCredits { get; set; } /// @@ -173608,14 +180183,23 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="cumulativeAttemptedCreditTypeDescriptor")][DescriptorExists("CreditTypeDescriptor")] + [IgnoreMember] public string CumulativeAttemptedCreditTypeDescriptor { get; set; } + [Key(7)][JsonIgnore] + public int CumulativeAttemptedCreditTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("CreditTypeDescriptor", CumulativeAttemptedCreditTypeDescriptor); } + set { CumulativeAttemptedCreditTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("CreditTypeDescriptor", value); } + } + /// /// Conversion factor that when multiplied by the number of credits is equivalent to Carnegie units. /// // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-9999999.99", "9999999.99", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="cumulativeEarnedCreditConversion")] + [Key(8)] public decimal? CumulativeEarnedCreditConversion { get; set; } /// @@ -173624,6 +180208,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "0", "999999.999", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="cumulativeEarnedCredits")] + [Key(9)] public decimal? CumulativeEarnedCredits { get; set; } /// @@ -173632,13 +180217,22 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="cumulativeEarnedCreditTypeDescriptor")][DescriptorExists("CreditTypeDescriptor")] + [IgnoreMember] public string CumulativeEarnedCreditTypeDescriptor { get; set; } + [Key(10)][JsonIgnore] + public int CumulativeEarnedCreditTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("CreditTypeDescriptor", CumulativeEarnedCreditTypeDescriptor); } + set { CumulativeEarnedCreditTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("CreditTypeDescriptor", value); } + } + /// /// The month and year the student is projected to graduate. /// // NOT in a reference, NOT a lookup column [DataMember(Name="projectedGraduationDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(11)] public DateTime? ProjectedGraduationDate { get; set; } /// @@ -173647,6 +180241,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-9999999.99", "9999999.99", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="sessionAttemptedCreditConversion")] + [Key(12)] public decimal? SessionAttemptedCreditConversion { get; set; } /// @@ -173655,6 +180250,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "0", "999999.999", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="sessionAttemptedCredits")] + [Key(13)] public decimal? SessionAttemptedCredits { get; set; } /// @@ -173663,14 +180259,23 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="sessionAttemptedCreditTypeDescriptor")][DescriptorExists("CreditTypeDescriptor")] + [IgnoreMember] public string SessionAttemptedCreditTypeDescriptor { get; set; } + [Key(14)][JsonIgnore] + public int SessionAttemptedCreditTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("CreditTypeDescriptor", SessionAttemptedCreditTypeDescriptor); } + set { SessionAttemptedCreditTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("CreditTypeDescriptor", value); } + } + /// /// Conversion factor that when multiplied by the number of credits is equivalent to Carnegie units. /// // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-9999999.99", "9999999.99", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="sessionEarnedCreditConversion")] + [Key(15)] public decimal? SessionEarnedCreditConversion { get; set; } /// @@ -173679,6 +180284,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "0", "999999.999", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="sessionEarnedCredits")] + [Key(16)] public decimal? SessionEarnedCredits { get; set; } /// @@ -173687,7 +180293,15 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="sessionEarnedCreditTypeDescriptor")][DescriptorExists("CreditTypeDescriptor")] + [IgnoreMember] public string SessionEarnedCreditTypeDescriptor { get; set; } + + [Key(17)][JsonIgnore] + public int SessionEarnedCreditTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("CreditTypeDescriptor", SessionEarnedCreditTypeDescriptor); } + set { SessionEarnedCreditTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("CreditTypeDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -173698,6 +180312,7 @@ public override int GetHashCode() /// [DataMember(Name = "classRanking")] + [Key(18)] public StudentAcademicRecordClassRanking StudentAcademicRecordClassRanking { get; set; } Entities.Common.EdFi.IStudentAcademicRecordClassRanking Entities.Common.EdFi.IStudentAcademicRecord.StudentAcademicRecordClassRanking @@ -173722,6 +180337,7 @@ Entities.Common.EdFi.IStudentAcademicRecordClassRanking Entities.Common.EdFi.ISt // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StudentAcademicRecord", "StudentAcademicRecord")] + [Key(19)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -173733,6 +180349,7 @@ Entities.Common.EdFi.IStudentAcademicRecordClassRanking Entities.Common.EdFi.ISt [NoDuplicateMembers] [DataMember(Name="academicHonors")] + [Key(20)] public ICollection StudentAcademicRecordAcademicHonors { get { return _studentAcademicRecordAcademicHonors; } @@ -173763,6 +180380,7 @@ public ICollection StudentAcademicRecordAcad [NoDuplicateMembers] [DataMember(Name="diplomas")] + [Key(21)] public ICollection StudentAcademicRecordDiplomas { get { return _studentAcademicRecordDiplomas; } @@ -173793,6 +180411,7 @@ public ICollection StudentAcademicRecordDiplomas [NoDuplicateMembers] [DataMember(Name="gradePointAverages")] + [Key(22)] public ICollection StudentAcademicRecordGradePointAverages { get { return _studentAcademicRecordGradePointAverages; } @@ -173823,6 +180442,7 @@ public ICollection StudentAcademicRecord [NoDuplicateMembers] [DataMember(Name="recognitions")] + [Key(23)] public ICollection StudentAcademicRecordRecognitions { get { return _studentAcademicRecordRecognitions; } @@ -173853,6 +180473,7 @@ public ICollection StudentAcademicRecordRecogn [NoDuplicateMembers] [DataMember(Name="reportCards")] + [Key(24)] public ICollection StudentAcademicRecordReportCards { get { return _studentAcademicRecordReportCards; } @@ -173885,9 +180506,11 @@ public ICollection StudentAcademicRecordReportC // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(25)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(26)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -174227,7 +180850,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.StudentAcademicRecordAcademicHonor table of the StudentAcademicRecord aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentAcademicRecordAcademicHonor : Entities.Common.EdFi.IStudentAcademicRecordAcademicHonor, IValidatableObject { @@ -174270,6 +180893,7 @@ Entities.Common.EdFi.IStudentAcademicRecord IStudentAcademicRecordAcademicHonor. set { SetStudentAcademicRecord(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStudentAcademicRecord StudentAcademicRecord { set { SetStudentAcademicRecord(value); } @@ -174287,8 +180911,16 @@ private void SetStudentAcademicRecord(Entities.Common.EdFi.IStudentAcademicRecor [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="academicHonorCategoryDescriptor")][DescriptorExists("AcademicHonorCategoryDescriptor")] + [IgnoreMember] public string AcademicHonorCategoryDescriptor { get; set; } + [Key(0)][JsonIgnore] + public int AcademicHonorCategoryDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("AcademicHonorCategoryDescriptor", AcademicHonorCategoryDescriptor); } + set { AcademicHonorCategoryDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("AcademicHonorCategoryDescriptor", value); } + } + /// /// A description of the type of academic distinctions earned by or awarded to the individual. /// @@ -174296,6 +180928,7 @@ private void SetStudentAcademicRecord(Entities.Common.EdFi.IStudentAcademicRecor [RequiredWithNonDefault] [NonDefaultStringLength(80, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="honorDescription")] + [Key(1)] public string HonorDescription { get; set; } // ------------------------------------------------------------- @@ -174376,14 +181009,23 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="achievementCategoryDescriptor")][DescriptorExists("AchievementCategoryDescriptor")] + [IgnoreMember] public string AchievementCategoryDescriptor { get; set; } + [Key(2)][JsonIgnore] + public int AchievementCategoryDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("AchievementCategoryDescriptor", AchievementCategoryDescriptor); } + set { AchievementCategoryDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("AchievementCategoryDescriptor", value); } + } + /// /// The system that defines the categories by which an achievement is attributed to the individual. /// // NOT in a reference, NOT a lookup column [NonDefaultStringLength(60, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="achievementCategorySystem")] + [Key(3)] public string AchievementCategorySystem { get; set; } /// @@ -174392,6 +181034,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(60, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="achievementTitle")] + [Key(4)] public string AchievementTitle { get; set; } /// @@ -174400,6 +181043,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(150, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="criteria")] + [Key(5)] public string Criteria { get; set; } /// @@ -174408,6 +181052,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(255, MinimumLength=5, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText] [DataMember(Name="criteriaURL")] + [Key(6)] public string CriteriaURL { get; set; } /// @@ -174416,6 +181061,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(150, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="evidenceStatement")] + [Key(7)] public string EvidenceStatement { get; set; } /// @@ -174423,6 +181069,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="honorAwardDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(8)] public DateTime? HonorAwardDate { get; set; } /// @@ -174430,6 +181077,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="honorAwardExpiresDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(9)] public DateTime? HonorAwardExpiresDate { get; set; } /// @@ -174438,6 +181086,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(255, MinimumLength=5, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText] [DataMember(Name="imageURL")] + [Key(10)] public string ImageURL { get; set; } /// @@ -174446,6 +181095,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(150, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="issuerName")] + [Key(11)] public string IssuerName { get; set; } /// @@ -174454,6 +181104,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(255, MinimumLength=5, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText] [DataMember(Name="issuerOriginURL")] + [Key(12)] public string IssuerOriginURL { get; set; } // ------------------------------------------------------------- @@ -174476,6 +181127,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StudentAcademicRecord", "StudentAcademicRecordAcademicHonor")] + [Key(13)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -174612,7 +181264,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.StudentAcademicRecordClassRanking table of the StudentAcademicRecord aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] [NoUnsuppliedRequiredMembersWithMeaningfulDefaults] public class StudentAcademicRecordClassRanking : Entities.Common.EdFi.IStudentAcademicRecordClassRanking, IHasRequiredMembersWithMeaningfulDefaultValues, IValidatableObject @@ -174656,6 +181308,7 @@ Entities.Common.EdFi.IStudentAcademicRecord IStudentAcademicRecordClassRanking.S set { SetStudentAcademicRecord(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStudentAcademicRecord StudentAcademicRecord { set { SetStudentAcademicRecord(value); } @@ -174728,6 +181381,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="classRank")] + [Key(0)] public int ClassRank { get => _classRank; @@ -174744,6 +181398,7 @@ public int ClassRank /// // NOT in a reference, NOT a lookup column [DataMember(Name="classRankingDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(1)] public DateTime? ClassRankingDate { get; set; } /// @@ -174751,6 +181406,7 @@ public int ClassRank /// // NOT in a reference, NOT a lookup column [DataMember(Name="percentageRanking")] + [Key(2)] public int? PercentageRanking { get; set; } private bool _totalNumberInClassExplicitlyAssigned = false; @@ -174761,6 +181417,7 @@ public int ClassRank /// // NOT in a reference, NOT a lookup column [DataMember(Name="totalNumberInClass")] + [Key(3)] public int TotalNumberInClass { get => _totalNumberInClass; @@ -174804,6 +181461,7 @@ IEnumerable IHasRequiredMembersWithMeaningfulDefaultValues.GetUnassigned // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StudentAcademicRecord", "StudentAcademicRecordClassRanking")] + [Key(4)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -174940,7 +181598,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.StudentAcademicRecordDiploma table of the StudentAcademicRecord aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentAcademicRecordDiploma : Entities.Common.EdFi.IStudentAcademicRecordDiploma, IValidatableObject { @@ -174983,6 +181641,7 @@ Entities.Common.EdFi.IStudentAcademicRecord IStudentAcademicRecordDiploma.Studen set { SetStudentAcademicRecord(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStudentAcademicRecord StudentAcademicRecord { set { SetStudentAcademicRecord(value); } @@ -174999,6 +181658,7 @@ private void SetStudentAcademicRecord(Entities.Common.EdFi.IStudentAcademicRecor // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] [DataMember(Name="diplomaAwardDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(0)] public DateTime DiplomaAwardDate { get; set; } /// @@ -175008,7 +181668,15 @@ private void SetStudentAcademicRecord(Entities.Common.EdFi.IStudentAcademicRecor [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="diplomaTypeDescriptor")][DescriptorExists("DiplomaTypeDescriptor")] + [IgnoreMember] public string DiplomaTypeDescriptor { get; set; } + + [Key(1)][JsonIgnore] + public int DiplomaTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("DiplomaTypeDescriptor", DiplomaTypeDescriptor); } + set { DiplomaTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("DiplomaTypeDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -175088,14 +181756,23 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="achievementCategoryDescriptor")][DescriptorExists("AchievementCategoryDescriptor")] + [IgnoreMember] public string AchievementCategoryDescriptor { get; set; } + [Key(2)][JsonIgnore] + public int AchievementCategoryDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("AchievementCategoryDescriptor", AchievementCategoryDescriptor); } + set { AchievementCategoryDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("AchievementCategoryDescriptor", value); } + } + /// /// The system that defines the categories by which an achievement is attributed to the individual. /// // NOT in a reference, NOT a lookup column [NonDefaultStringLength(60, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="achievementCategorySystem")] + [Key(3)] public string AchievementCategorySystem { get; set; } /// @@ -175104,6 +181781,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(60, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="achievementTitle")] + [Key(4)] public string AchievementTitle { get; set; } /// @@ -175112,6 +181790,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(150, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="criteria")] + [Key(5)] public string Criteria { get; set; } /// @@ -175120,6 +181799,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(255, MinimumLength=5, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText] [DataMember(Name="criteriaURL")] + [Key(6)] public string CriteriaURL { get; set; } /// @@ -175127,6 +181807,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="cteCompleter")] + [Key(7)] public bool? CTECompleter { get; set; } /// @@ -175134,6 +181815,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="diplomaAwardExpiresDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(8)] public DateTime? DiplomaAwardExpiresDate { get; set; } /// @@ -175142,6 +181824,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(80, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="diplomaDescription")] + [Key(9)] public string DiplomaDescription { get; set; } /// @@ -175150,14 +181833,23 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="diplomaLevelDescriptor")][DescriptorExists("DiplomaLevelDescriptor")] + [IgnoreMember] public string DiplomaLevelDescriptor { get; set; } + [Key(10)][JsonIgnore] + public int DiplomaLevelDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("DiplomaLevelDescriptor", DiplomaLevelDescriptor); } + set { DiplomaLevelDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("DiplomaLevelDescriptor", value); } + } + /// /// A statement or reference describing the evidence that the individual met the criteria for attainment of the achievement/award. /// // NOT in a reference, NOT a lookup column [NonDefaultStringLength(150, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="evidenceStatement")] + [Key(11)] public string EvidenceStatement { get; set; } /// @@ -175166,6 +181858,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(255, MinimumLength=5, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText] [DataMember(Name="imageURL")] + [Key(12)] public string ImageURL { get; set; } /// @@ -175174,6 +181867,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(150, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="issuerName")] + [Key(13)] public string IssuerName { get; set; } /// @@ -175182,6 +181876,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(255, MinimumLength=5, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText] [DataMember(Name="issuerOriginURL")] + [Key(14)] public string IssuerOriginURL { get; set; } // ------------------------------------------------------------- @@ -175204,6 +181899,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StudentAcademicRecord", "StudentAcademicRecordDiploma")] + [Key(15)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -175340,7 +182036,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.StudentAcademicRecordGradePointAverage table of the StudentAcademicRecord aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] [NoUnsuppliedRequiredMembersWithMeaningfulDefaults] public class StudentAcademicRecordGradePointAverage : Entities.Common.EdFi.IStudentAcademicRecordGradePointAverage, IHasRequiredMembersWithMeaningfulDefaultValues, IValidatableObject @@ -175384,6 +182080,7 @@ Entities.Common.EdFi.IStudentAcademicRecord IStudentAcademicRecordGradePointAver set { SetStudentAcademicRecord(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStudentAcademicRecord StudentAcademicRecord { set { SetStudentAcademicRecord(value); } @@ -175401,7 +182098,15 @@ private void SetStudentAcademicRecord(Entities.Common.EdFi.IStudentAcademicRecor [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="gradePointAverageTypeDescriptor")][DescriptorExists("GradePointAverageTypeDescriptor")] + [IgnoreMember] public string GradePointAverageTypeDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int GradePointAverageTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("GradePointAverageTypeDescriptor", GradePointAverageTypeDescriptor); } + set { GradePointAverageTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("GradePointAverageTypeDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -175475,6 +182180,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "0", "99999999999999.9999", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="gradePointAverageValue")] + [Key(1)] public decimal GradePointAverageValue { get => _gradePointAverageValue; @@ -175491,6 +182197,7 @@ public decimal GradePointAverageValue /// // NOT in a reference, NOT a lookup column [DataMember(Name="isCumulative")] + [Key(2)] public bool? IsCumulative { get; set; } /// @@ -175499,6 +182206,7 @@ public decimal GradePointAverageValue // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "0", "99999999999999.9999", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="maxGradePointAverageValue")] + [Key(3)] public decimal? MaxGradePointAverageValue { get; set; } // ------------------------------------------------------------- @@ -175529,6 +182237,7 @@ IEnumerable IHasRequiredMembersWithMeaningfulDefaultValues.GetUnassigned // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StudentAcademicRecord", "StudentAcademicRecordGradePointAverage")] + [Key(4)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -175665,7 +182374,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.StudentAcademicRecordRecognition table of the StudentAcademicRecord aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentAcademicRecordRecognition : Entities.Common.EdFi.IStudentAcademicRecordRecognition, IValidatableObject { @@ -175708,6 +182417,7 @@ Entities.Common.EdFi.IStudentAcademicRecord IStudentAcademicRecordRecognition.St set { SetStudentAcademicRecord(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStudentAcademicRecord StudentAcademicRecord { set { SetStudentAcademicRecord(value); } @@ -175725,7 +182435,15 @@ private void SetStudentAcademicRecord(Entities.Common.EdFi.IStudentAcademicRecor [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="recognitionTypeDescriptor")][DescriptorExists("RecognitionTypeDescriptor")] + [IgnoreMember] public string RecognitionTypeDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int RecognitionTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("RecognitionTypeDescriptor", RecognitionTypeDescriptor); } + set { RecognitionTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("RecognitionTypeDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -175796,14 +182514,23 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="achievementCategoryDescriptor")][DescriptorExists("AchievementCategoryDescriptor")] + [IgnoreMember] public string AchievementCategoryDescriptor { get; set; } + [Key(1)][JsonIgnore] + public int AchievementCategoryDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("AchievementCategoryDescriptor", AchievementCategoryDescriptor); } + set { AchievementCategoryDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("AchievementCategoryDescriptor", value); } + } + /// /// The system that defines the categories by which an achievement is attributed to the individual. /// // NOT in a reference, NOT a lookup column [NonDefaultStringLength(60, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="achievementCategorySystem")] + [Key(2)] public string AchievementCategorySystem { get; set; } /// @@ -175812,6 +182539,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(60, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="achievementTitle")] + [Key(3)] public string AchievementTitle { get; set; } /// @@ -175820,6 +182548,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(150, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="criteria")] + [Key(4)] public string Criteria { get; set; } /// @@ -175828,6 +182557,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(255, MinimumLength=5, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText] [DataMember(Name="criteriaURL")] + [Key(5)] public string CriteriaURL { get; set; } /// @@ -175836,6 +182566,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(150, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="evidenceStatement")] + [Key(6)] public string EvidenceStatement { get; set; } /// @@ -175844,6 +182575,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(255, MinimumLength=5, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText] [DataMember(Name="imageURL")] + [Key(7)] public string ImageURL { get; set; } /// @@ -175852,6 +182584,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(150, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="issuerName")] + [Key(8)] public string IssuerName { get; set; } /// @@ -175860,6 +182593,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(255, MinimumLength=5, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText] [DataMember(Name="issuerOriginURL")] + [Key(9)] public string IssuerOriginURL { get; set; } /// @@ -175867,6 +182601,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="recognitionAwardDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(10)] public DateTime? RecognitionAwardDate { get; set; } /// @@ -175874,6 +182609,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="recognitionAwardExpiresDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(11)] public DateTime? RecognitionAwardExpiresDate { get; set; } /// @@ -175882,6 +182618,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(80, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="recognitionDescription")] + [Key(12)] public string RecognitionDescription { get; set; } // ------------------------------------------------------------- @@ -175904,6 +182641,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StudentAcademicRecord", "StudentAcademicRecordRecognition")] + [Key(13)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -176040,7 +182778,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.StudentAcademicRecordReportCard table of the StudentAcademicRecord aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentAcademicRecordReportCard : Entities.Common.EdFi.IStudentAcademicRecordReportCard, IValidatableObject { @@ -176085,6 +182823,7 @@ private ReportCard.EdFi.ReportCardReference ImplicitReportCardReference } [DataMember(Name="reportCardReference")] + [Key(0)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public ReportCard.EdFi.ReportCardReference ReportCardReference { @@ -176117,6 +182856,7 @@ Entities.Common.EdFi.IStudentAcademicRecord IStudentAcademicRecordReportCard.Stu set { SetStudentAcademicRecord(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStudentAcademicRecord StudentAcademicRecord { set { SetStudentAcademicRecord(value); } @@ -176337,6 +183077,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StudentAcademicRecord", "StudentAcademicRecordReportCard")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -176559,17 +183300,20 @@ namespace EdFi.Ods.Api.Common.Models.Resources.StudentAssessment.EdFi /// /// Represents a reference to the StudentAssessment resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentAssessmentReference : IResourceReference { [DataMember(Name="assessmentIdentifier")] + [Key(0)] public string AssessmentIdentifier { get; set; } [DataMember(Name="namespace")] + [Key(1)] public string Namespace { get; set; } [DataMember(Name="studentAssessmentIdentifier")] + [Key(2)] public string StudentAssessmentIdentifier { get; set; } [DataMember(Name="studentUniqueId")] @@ -176587,17 +183331,22 @@ public string StudentUniqueId /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(3)] 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. /// + [Key(4)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(5)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -176681,7 +183430,7 @@ private Link CreateLink() /// /// A class which represents the edfi.StudentAssessment table of the StudentAssessment aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentAssessment : Entities.Common.EdFi.IStudentAssessment, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -176718,6 +183467,7 @@ public StudentAssessment() /// The unique identifier for the StudentAssessment resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -176741,6 +183491,7 @@ private Assessment.EdFi.AssessmentReference ImplicitAssessmentReference } [DataMember(Name="assessmentReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Assessment.EdFi.AssessmentReference AssessmentReference { @@ -176774,6 +183525,7 @@ private School.EdFi.SchoolReference ImplicitReportedSchoolReference } [DataMember(Name="reportedSchoolReference")] + [Key(2)] [FullyDefinedReference] public School.EdFi.SchoolReference ReportedSchoolReference { @@ -176807,6 +183559,7 @@ private SchoolYearType.EdFi.SchoolYearTypeReference ImplicitSchoolYearTypeRefere } [DataMember(Name="schoolYearTypeReference")] + [Key(3)] [FullyDefinedReference] public SchoolYearType.EdFi.SchoolYearTypeReference SchoolYearTypeReference { @@ -176840,6 +183593,7 @@ private Student.EdFi.StudentReference ImplicitStudentReference } [DataMember(Name="studentReference")] + [Key(4)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Student.EdFi.StudentReference StudentReference { @@ -176921,6 +183675,7 @@ string Entities.Common.EdFi.IStudentAssessment.Namespace [RequiredWithNonDefault] [NonDefaultStringLength(60, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="studentAssessmentIdentifier")] + [Key(5)] public string StudentAssessmentIdentifier { get; set; } /// @@ -177034,6 +183789,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="administrationDate")] + [Key(6)] public DateTime? AdministrationDate { get; set; } /// @@ -177041,6 +183797,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="administrationEndDate")] + [Key(7)] public DateTime? AdministrationEndDate { get; set; } /// @@ -177049,21 +183806,38 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="administrationEnvironmentDescriptor")][DescriptorExists("AdministrationEnvironmentDescriptor")] + [IgnoreMember] public string AdministrationEnvironmentDescriptor { get; set; } + [Key(8)][JsonIgnore] + public int AdministrationEnvironmentDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("AdministrationEnvironmentDescriptor", AdministrationEnvironmentDescriptor); } + set { AdministrationEnvironmentDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("AdministrationEnvironmentDescriptor", value); } + } + /// /// The language in which an assessment is written and/or administered. /// // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="administrationLanguageDescriptor")][DescriptorExists("LanguageDescriptor")] + [IgnoreMember] public string AdministrationLanguageDescriptor { get; set; } + [Key(9)][JsonIgnore] + public int AdministrationLanguageDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("LanguageDescriptor", AdministrationLanguageDescriptor); } + set { AdministrationLanguageDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("LanguageDescriptor", value); } + } + /// /// Reported time student was assessed in minutes. /// // NOT in a reference, NOT a lookup column [DataMember(Name="assessedMinutes")] + [Key(10)] public int? AssessedMinutes { get; set; } /// @@ -177072,14 +183846,23 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="eventCircumstanceDescriptor")][DescriptorExists("EventCircumstanceDescriptor")] + [IgnoreMember] public string EventCircumstanceDescriptor { get; set; } + [Key(11)][JsonIgnore] + public int EventCircumstanceDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("EventCircumstanceDescriptor", EventCircumstanceDescriptor); } + set { EventCircumstanceDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("EventCircumstanceDescriptor", value); } + } + /// /// Describes special events that occur before during or after the assessment session that may impact use of results. /// // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="eventDescription")] + [Key(12)] public string EventDescription { get; set; } /// @@ -177088,16 +183871,32 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="platformTypeDescriptor")][DescriptorExists("PlatformTypeDescriptor")] + [IgnoreMember] public string PlatformTypeDescriptor { get; set; } + [Key(13)][JsonIgnore] + public int PlatformTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("PlatformTypeDescriptor", PlatformTypeDescriptor); } + set { PlatformTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("PlatformTypeDescriptor", value); } + } + /// /// The primary reason student is not tested. /// // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="reasonNotTestedDescriptor")][DescriptorExists("ReasonNotTestedDescriptor")] + [IgnoreMember] public string ReasonNotTestedDescriptor { get; set; } + [Key(14)][JsonIgnore] + public int ReasonNotTestedDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ReasonNotTestedDescriptor", ReasonNotTestedDescriptor); } + set { ReasonNotTestedDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ReasonNotTestedDescriptor", value); } + } + /// /// The identifier assigned to a school. It must be distinct from any other identifier assigned to educational organizations, such as a LocalEducationAgencyId, to prevent duplication. /// @@ -177131,6 +183930,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(60, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="reportedSchoolIdentifier")] + [Key(15)] public string ReportedSchoolIdentifier { get; set; } /// @@ -177139,8 +183939,16 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="retestIndicatorDescriptor")][DescriptorExists("RetestIndicatorDescriptor")] + [IgnoreMember] public string RetestIndicatorDescriptor { get; set; } + [Key(16)][JsonIgnore] + public int RetestIndicatorDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("RetestIndicatorDescriptor", RetestIndicatorDescriptor); } + set { RetestIndicatorDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("RetestIndicatorDescriptor", value); } + } + /// /// The school year for which the assessment was administered to a student. Among other uses, handles cases in which a student takes a prior-year exam in a subsequent school year during an exam re-test. /// @@ -177174,6 +183982,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(60, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="serialNumber")] + [Key(17)] public string SerialNumber { get; set; } /// @@ -177182,7 +183991,15 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="whenAssessedGradeLevelDescriptor")][DescriptorExists("GradeLevelDescriptor")] + [IgnoreMember] public string WhenAssessedGradeLevelDescriptor { get; set; } + + [Key(18)][JsonIgnore] + public int WhenAssessedGradeLevelDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("GradeLevelDescriptor", WhenAssessedGradeLevelDescriptor); } + set { WhenAssessedGradeLevelDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("GradeLevelDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -177193,6 +184010,7 @@ public override int GetHashCode() /// [DataMember(Name = "period")] + [Key(19)] public StudentAssessmentPeriod StudentAssessmentPeriod { get; set; } Entities.Common.EdFi.IStudentAssessmentPeriod Entities.Common.EdFi.IStudentAssessment.StudentAssessmentPeriod @@ -177217,6 +184035,7 @@ Entities.Common.EdFi.IStudentAssessmentPeriod Entities.Common.EdFi.IStudentAsses // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StudentAssessment", "StudentAssessment")] + [Key(20)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -177228,6 +184047,7 @@ Entities.Common.EdFi.IStudentAssessmentPeriod Entities.Common.EdFi.IStudentAsses [NoDuplicateMembers] [DataMember(Name="accommodations")] + [Key(21)] public ICollection StudentAssessmentAccommodations { get { return _studentAssessmentAccommodations; } @@ -177258,6 +184078,7 @@ public ICollection StudentAssessmentAccommodatio [NoDuplicateMembers] [DataMember(Name="items")] + [Key(22)] public ICollection StudentAssessmentItems { get { return _studentAssessmentItems; } @@ -177288,6 +184109,7 @@ public ICollection StudentAssessmentItems [NoDuplicateMembers] [DataMember(Name="performanceLevels")] + [Key(23)] public ICollection StudentAssessmentPerformanceLevels { get { return _studentAssessmentPerformanceLevels; } @@ -177318,6 +184140,7 @@ public ICollection StudentAssessmentPerforman [NoDuplicateMembers] [DataMember(Name="scoreResults")] + [Key(24)] public ICollection StudentAssessmentScoreResults { get { return _studentAssessmentScoreResults; } @@ -177348,6 +184171,7 @@ public ICollection StudentAssessmentScoreResults [NoDuplicateMembers] [DataMember(Name="studentObjectiveAssessments")] + [Key(25)] public ICollection StudentAssessmentStudentObjectiveAssessments { get { return _studentAssessmentStudentObjectiveAssessments; } @@ -177380,9 +184204,11 @@ public ICollection StudentAssessmen // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(26)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(27)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -177729,7 +184555,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.StudentAssessmentAccommodation table of the StudentAssessment aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentAssessmentAccommodation : Entities.Common.EdFi.IStudentAssessmentAccommodation, IValidatableObject { @@ -177772,6 +184598,7 @@ Entities.Common.EdFi.IStudentAssessment IStudentAssessmentAccommodation.StudentA set { SetStudentAssessment(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStudentAssessment StudentAssessment { set { SetStudentAssessment(value); } @@ -177789,7 +184616,15 @@ private void SetStudentAssessment(Entities.Common.EdFi.IStudentAssessment value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="accommodationDescriptor")][DescriptorExists("AccommodationDescriptor")] + [IgnoreMember] public string AccommodationDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int AccommodationDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("AccommodationDescriptor", AccommodationDescriptor); } + set { AccommodationDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("AccommodationDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -177874,6 +184709,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StudentAssessment", "StudentAssessmentAccommodation")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -178010,7 +184846,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.StudentAssessmentItem table of the StudentAssessment aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentAssessmentItem : Entities.Common.EdFi.IStudentAssessmentItem, IValidatableObject { @@ -178055,6 +184891,7 @@ private AssessmentItem.EdFi.AssessmentItemReference ImplicitAssessmentItemRefere } [DataMember(Name="assessmentItemReference")] + [Key(0)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public AssessmentItem.EdFi.AssessmentItemReference AssessmentItemReference { @@ -178087,6 +184924,7 @@ Entities.Common.EdFi.IStudentAssessment IStudentAssessmentItem.StudentAssessment set { SetStudentAssessment(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStudentAssessment StudentAssessment { set { SetStudentAssessment(value); } @@ -178198,14 +185036,23 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="assessmentItemResultDescriptor")][DescriptorExists("AssessmentItemResultDescriptor")] + [IgnoreMember] public string AssessmentItemResultDescriptor { get; set; } + [Key(1)][JsonIgnore] + public int AssessmentItemResultDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("AssessmentItemResultDescriptor", AssessmentItemResultDescriptor); } + set { AssessmentItemResultDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("AssessmentItemResultDescriptor", value); } + } + /// /// A student's response to a stimulus on a test. /// // NOT in a reference, NOT a lookup column [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="assessmentResponse")] + [Key(2)] public string AssessmentResponse { get; set; } /// @@ -178214,6 +185061,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="descriptiveFeedback")] + [Key(3)] public string DescriptiveFeedback { get; set; } /// @@ -178221,6 +185069,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="itemNumber")] + [Key(4)] public int? ItemNumber { get; set; } /// @@ -178229,6 +185078,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-9999999999.99999", "9999999999.99999", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="rawScoreResult")] + [Key(5)] public decimal? RawScoreResult { get; set; } /// @@ -178237,14 +185087,23 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="responseIndicatorDescriptor")][DescriptorExists("ResponseIndicatorDescriptor")] + [IgnoreMember] public string ResponseIndicatorDescriptor { get; set; } + [Key(6)][JsonIgnore] + public int ResponseIndicatorDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ResponseIndicatorDescriptor", ResponseIndicatorDescriptor); } + set { ResponseIndicatorDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ResponseIndicatorDescriptor", value); } + } + /// /// The overall time that a student actually spent on the assessment item expressed in minutes. /// // NOT in a reference, NOT a lookup column [NonDefaultStringLength(30, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="timeAssessed")] + [Key(7)] public string TimeAssessed { get; set; } // ------------------------------------------------------------- @@ -178267,6 +185126,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StudentAssessment", "StudentAssessmentItem")] + [Key(8)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -178484,7 +185344,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.StudentAssessmentPerformanceLevel table of the StudentAssessment aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentAssessmentPerformanceLevel : Entities.Common.EdFi.IStudentAssessmentPerformanceLevel, IValidatableObject { @@ -178527,6 +185387,7 @@ Entities.Common.EdFi.IStudentAssessment IStudentAssessmentPerformanceLevel.Stude set { SetStudentAssessment(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStudentAssessment StudentAssessment { set { SetStudentAssessment(value); } @@ -178544,8 +185405,16 @@ private void SetStudentAssessment(Entities.Common.EdFi.IStudentAssessment value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="assessmentReportingMethodDescriptor")][DescriptorExists("AssessmentReportingMethodDescriptor")] + [IgnoreMember] public string AssessmentReportingMethodDescriptor { get; set; } + [Key(0)][JsonIgnore] + public int AssessmentReportingMethodDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("AssessmentReportingMethodDescriptor", AssessmentReportingMethodDescriptor); } + set { AssessmentReportingMethodDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("AssessmentReportingMethodDescriptor", value); } + } + /// /// A specification of which performance level value describes the student proficiency. /// @@ -178553,7 +185422,15 @@ private void SetStudentAssessment(Entities.Common.EdFi.IStudentAssessment value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="performanceLevelDescriptor")][DescriptorExists("PerformanceLevelDescriptor")] + [IgnoreMember] public string PerformanceLevelDescriptor { get; set; } + + [Key(1)][JsonIgnore] + public int PerformanceLevelDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("PerformanceLevelDescriptor", PerformanceLevelDescriptor); } + set { PerformanceLevelDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("PerformanceLevelDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -178633,6 +185510,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(60, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="performanceLevelIndicatorName")] + [Key(2)] public string PerformanceLevelIndicatorName { get; set; } // ------------------------------------------------------------- @@ -178655,6 +185533,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StudentAssessment", "StudentAssessmentPerformanceLevel")] + [Key(3)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -178791,7 +185670,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.StudentAssessmentPeriod table of the StudentAssessment aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentAssessmentPeriod : Entities.Common.EdFi.IStudentAssessmentPeriod, IValidatableObject { @@ -178834,6 +185713,7 @@ Entities.Common.EdFi.IStudentAssessment IStudentAssessmentPeriod.StudentAssessme set { SetStudentAssessment(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStudentAssessment StudentAssessment { set { SetStudentAssessment(value); } @@ -178905,13 +185785,22 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="assessmentPeriodDescriptor")][DescriptorExists("AssessmentPeriodDescriptor")] + [IgnoreMember] public string AssessmentPeriodDescriptor { get; set; } + [Key(0)][JsonIgnore] + public int AssessmentPeriodDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("AssessmentPeriodDescriptor", AssessmentPeriodDescriptor); } + set { AssessmentPeriodDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("AssessmentPeriodDescriptor", value); } + } + /// /// The first date the assessment is to be administered. Note: Date interpretation may vary. Ed-Fi recommends inclusive dates, but states may define dates as inclusive or exclusive. For calculations, align with local guidelines. /// // NOT in a reference, NOT a lookup column [DataMember(Name="beginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(1)] public DateTime? BeginDate { get; set; } /// @@ -178919,6 +185808,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="endDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(2)] public DateTime? EndDate { get; set; } // ------------------------------------------------------------- @@ -178941,6 +185831,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StudentAssessment", "StudentAssessmentPeriod")] + [Key(3)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -179077,7 +185968,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.StudentAssessmentScoreResult table of the StudentAssessment aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentAssessmentScoreResult : Entities.Common.EdFi.IStudentAssessmentScoreResult, IValidatableObject { @@ -179120,6 +186011,7 @@ Entities.Common.EdFi.IStudentAssessment IStudentAssessmentScoreResult.StudentAss set { SetStudentAssessment(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStudentAssessment StudentAssessment { set { SetStudentAssessment(value); } @@ -179137,7 +186029,15 @@ private void SetStudentAssessment(Entities.Common.EdFi.IStudentAssessment value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="assessmentReportingMethodDescriptor")][DescriptorExists("AssessmentReportingMethodDescriptor")] + [IgnoreMember] public string AssessmentReportingMethodDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int AssessmentReportingMethodDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("AssessmentReportingMethodDescriptor", AssessmentReportingMethodDescriptor); } + set { AssessmentReportingMethodDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("AssessmentReportingMethodDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -179209,6 +186109,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(35, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="result")] + [Key(1)] public string Result { get; set; } /// @@ -179218,7 +186119,15 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="resultDatatypeTypeDescriptor")][DescriptorExists("ResultDatatypeTypeDescriptor")] + [IgnoreMember] public string ResultDatatypeTypeDescriptor { get; set; } + + [Key(2)][JsonIgnore] + public int ResultDatatypeTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ResultDatatypeTypeDescriptor", ResultDatatypeTypeDescriptor); } + set { ResultDatatypeTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ResultDatatypeTypeDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -179240,6 +186149,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StudentAssessment", "StudentAssessmentScoreResult")] + [Key(3)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -179376,7 +186286,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.StudentAssessmentStudentObjectiveAssessment table of the StudentAssessment aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentAssessmentStudentObjectiveAssessment : Entities.Common.EdFi.IStudentAssessmentStudentObjectiveAssessment, IValidatableObject { @@ -179426,6 +186336,7 @@ private ObjectiveAssessment.EdFi.ObjectiveAssessmentReference ImplicitObjectiveA } [DataMember(Name="objectiveAssessmentReference")] + [Key(0)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public ObjectiveAssessment.EdFi.ObjectiveAssessmentReference ObjectiveAssessmentReference { @@ -179458,6 +186369,7 @@ Entities.Common.EdFi.IStudentAssessment IStudentAssessmentStudentObjectiveAssess set { SetStudentAssessment(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStudentAssessment StudentAssessment { set { SetStudentAssessment(value); } @@ -179567,6 +186479,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="administrationDate")] + [Key(1)] public DateTime? AdministrationDate { get; set; } /// @@ -179574,6 +186487,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="administrationEndDate")] + [Key(2)] public DateTime? AdministrationEndDate { get; set; } /// @@ -179581,6 +186495,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="assessedMinutes")] + [Key(3)] public int? AssessedMinutes { get; set; } // ------------------------------------------------------------- @@ -179603,6 +186518,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StudentAssessment", "StudentAssessmentStudentObjectiveAssessment")] + [Key(4)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -179614,6 +186530,7 @@ public override int GetHashCode() [NoDuplicateMembers] [DataMember(Name="performanceLevels")] + [Key(5)] public ICollection StudentAssessmentStudentObjectiveAssessmentPerformanceLevels { get { return _studentAssessmentStudentObjectiveAssessmentPerformanceLevels; } @@ -179644,6 +186561,7 @@ public ICollection [NoDuplicateMembers] [DataMember(Name="scoreResults")] + [Key(6)] public ICollection StudentAssessmentStudentObjectiveAssessmentScoreResults { get { return _studentAssessmentStudentObjectiveAssessmentScoreResults; } @@ -179953,7 +186871,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel table of the StudentAssessment aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentAssessmentStudentObjectiveAssessmentPerformanceLevel : Entities.Common.EdFi.IStudentAssessmentStudentObjectiveAssessmentPerformanceLevel, IValidatableObject { @@ -179996,6 +186914,7 @@ Entities.Common.EdFi.IStudentAssessmentStudentObjectiveAssessment IStudentAssess set { SetStudentAssessmentStudentObjectiveAssessment(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStudentAssessmentStudentObjectiveAssessment StudentAssessmentStudentObjectiveAssessment { set { SetStudentAssessmentStudentObjectiveAssessment(value); } @@ -180013,8 +186932,16 @@ private void SetStudentAssessmentStudentObjectiveAssessment(Entities.Common.EdFi [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="assessmentReportingMethodDescriptor")][DescriptorExists("AssessmentReportingMethodDescriptor")] + [IgnoreMember] public string AssessmentReportingMethodDescriptor { get; set; } + [Key(0)][JsonIgnore] + public int AssessmentReportingMethodDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("AssessmentReportingMethodDescriptor", AssessmentReportingMethodDescriptor); } + set { AssessmentReportingMethodDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("AssessmentReportingMethodDescriptor", value); } + } + /// /// A specification of which performance level value describes the student proficiency. /// @@ -180022,7 +186949,15 @@ private void SetStudentAssessmentStudentObjectiveAssessment(Entities.Common.EdFi [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="performanceLevelDescriptor")][DescriptorExists("PerformanceLevelDescriptor")] + [IgnoreMember] public string PerformanceLevelDescriptor { get; set; } + + [Key(1)][JsonIgnore] + public int PerformanceLevelDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("PerformanceLevelDescriptor", PerformanceLevelDescriptor); } + set { PerformanceLevelDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("PerformanceLevelDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -180102,6 +187037,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(60, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="performanceLevelIndicatorName")] + [Key(2)] public string PerformanceLevelIndicatorName { get; set; } // ------------------------------------------------------------- @@ -180124,6 +187060,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StudentAssessment", "StudentAssessmentStudentObjectiveAssessmentPerformanceLevel")] + [Key(3)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -180260,7 +187197,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult table of the StudentAssessment aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentAssessmentStudentObjectiveAssessmentScoreResult : Entities.Common.EdFi.IStudentAssessmentStudentObjectiveAssessmentScoreResult, IValidatableObject { @@ -180303,6 +187240,7 @@ Entities.Common.EdFi.IStudentAssessmentStudentObjectiveAssessment IStudentAssess set { SetStudentAssessmentStudentObjectiveAssessment(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStudentAssessmentStudentObjectiveAssessment StudentAssessmentStudentObjectiveAssessment { set { SetStudentAssessmentStudentObjectiveAssessment(value); } @@ -180320,7 +187258,15 @@ private void SetStudentAssessmentStudentObjectiveAssessment(Entities.Common.EdFi [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="assessmentReportingMethodDescriptor")][DescriptorExists("AssessmentReportingMethodDescriptor")] + [IgnoreMember] public string AssessmentReportingMethodDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int AssessmentReportingMethodDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("AssessmentReportingMethodDescriptor", AssessmentReportingMethodDescriptor); } + set { AssessmentReportingMethodDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("AssessmentReportingMethodDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -180392,6 +187338,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(35, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="result")] + [Key(1)] public string Result { get; set; } /// @@ -180401,7 +187348,15 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="resultDatatypeTypeDescriptor")][DescriptorExists("ResultDatatypeTypeDescriptor")] + [IgnoreMember] public string ResultDatatypeTypeDescriptor { get; set; } + + [Key(2)][JsonIgnore] + public int ResultDatatypeTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ResultDatatypeTypeDescriptor", ResultDatatypeTypeDescriptor); } + set { ResultDatatypeTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ResultDatatypeTypeDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -180423,6 +187378,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StudentAssessment", "StudentAssessmentStudentObjectiveAssessmentScoreResult")] + [Key(3)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -180564,23 +187520,35 @@ namespace EdFi.Ods.Api.Common.Models.Resources.StudentAssessmentEducationOrganiz /// /// Represents a reference to the StudentAssessmentEducationOrganizationAssociation resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentAssessmentEducationOrganizationAssociationReference : IResourceReference { [DataMember(Name="assessmentIdentifier")] + [Key(0)] public string AssessmentIdentifier { get; set; } [DataMember(Name="educationOrganizationAssociationTypeDescriptor")][DescriptorExists("EducationOrganizationAssociationTypeDescriptor")] + [IgnoreMember] public string EducationOrganizationAssociationTypeDescriptor { get; set; } + [Key(1)][JsonIgnore] + public int EducationOrganizationAssociationTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("EducationOrganizationAssociationTypeDescriptor", EducationOrganizationAssociationTypeDescriptor); } + set { EducationOrganizationAssociationTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("EducationOrganizationAssociationTypeDescriptor", value); } + } + [DataMember(Name="educationOrganizationId")] + [Key(2)] public long EducationOrganizationId { get; set; } [DataMember(Name="namespace")] + [Key(3)] public string Namespace { get; set; } [DataMember(Name="studentAssessmentIdentifier")] + [Key(4)] public string StudentAssessmentIdentifier { get; set; } [DataMember(Name="studentUniqueId")] @@ -180598,17 +187566,22 @@ public string StudentUniqueId /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(5)] 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. /// + [Key(6)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(7)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -180702,7 +187675,7 @@ private Link CreateLink() /// /// A class which represents the edfi.StudentAssessmentEducationOrganizationAssociation table of the StudentAssessmentEducationOrganizationAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentAssessmentEducationOrganizationAssociation : Entities.Common.EdFi.IStudentAssessmentEducationOrganizationAssociation, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -180731,6 +187704,7 @@ public class StudentAssessmentEducationOrganizationAssociation : Entities.Common /// The unique identifier for the StudentAssessmentEducationOrganizationAssociation resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -180754,6 +187728,7 @@ private EducationOrganization.EdFi.EducationOrganizationReference ImplicitEducat } [DataMember(Name="educationOrganizationReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public EducationOrganization.EdFi.EducationOrganizationReference EducationOrganizationReference { @@ -180787,6 +187762,7 @@ private SchoolYearType.EdFi.SchoolYearTypeReference ImplicitSchoolYearTypeRefere } [DataMember(Name="schoolYearTypeReference")] + [Key(2)] [FullyDefinedReference] public SchoolYearType.EdFi.SchoolYearTypeReference SchoolYearTypeReference { @@ -180820,6 +187796,7 @@ private StudentAssessment.EdFi.StudentAssessmentReference ImplicitStudentAssessm } [DataMember(Name="studentAssessmentReference")] + [Key(3)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public StudentAssessment.EdFi.StudentAssessmentReference StudentAssessmentReference { @@ -180876,8 +187853,16 @@ string Entities.Common.EdFi.IStudentAssessmentEducationOrganizationAssociation.A [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="educationOrganizationAssociationTypeDescriptor")][DescriptorExists("EducationOrganizationAssociationTypeDescriptor")] + [IgnoreMember] public string EducationOrganizationAssociationTypeDescriptor { get; set; } + [Key(4)][JsonIgnore] + public int EducationOrganizationAssociationTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("EducationOrganizationAssociationTypeDescriptor", EducationOrganizationAssociationTypeDescriptor); } + set { EducationOrganizationAssociationTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("EducationOrganizationAssociationTypeDescriptor", value); } + } + /// /// The identifier assigned to an education organization. /// @@ -181122,6 +188107,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StudentAssessmentEducationOrganizationAssociation", "StudentAssessmentEducationOrganizationAssociation")] + [Key(5)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -181135,9 +188121,11 @@ public override int GetHashCode() // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(6)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(7)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -181304,7 +188292,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.StudentCharacteristicDescriptor.E /// /// A class which represents the edfi.StudentCharacteristicDescriptor table of the StudentCharacteristicDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentCharacteristicDescriptor : Entities.Common.EdFi.IStudentCharacteristicDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -181333,6 +188321,7 @@ public class StudentCharacteristicDescriptor : Entities.Common.EdFi.IStudentChar /// The unique identifier for the StudentCharacteristicDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -181417,6 +188406,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -181425,6 +188415,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -181432,6 +188423,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -181439,6 +188431,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -181448,6 +188441,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -181457,6 +188451,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -181500,9 +188495,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -181575,17 +188572,20 @@ namespace EdFi.Ods.Api.Common.Models.Resources.StudentCohortAssociation.EdFi /// /// Represents a reference to the StudentCohortAssociation resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentCohortAssociationReference : IResourceReference { [DataMember(Name="beginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(0)] public DateTime BeginDate { get; set; } [DataMember(Name="cohortIdentifier")] + [Key(1)] public string CohortIdentifier { get; set; } [DataMember(Name="educationOrganizationId")] + [Key(2)] public long EducationOrganizationId { get; set; } [DataMember(Name="studentUniqueId")] @@ -181603,17 +188603,22 @@ public string StudentUniqueId /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(3)] 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. /// + [Key(4)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(5)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -181697,7 +188702,7 @@ private Link CreateLink() /// /// A class which represents the edfi.StudentCohortAssociation table of the StudentCohortAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentCohortAssociation : Entities.Common.EdFi.IStudentCohortAssociation, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -181730,6 +188735,7 @@ public StudentCohortAssociation() /// The unique identifier for the StudentCohortAssociation resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -181753,6 +188759,7 @@ private Cohort.EdFi.CohortReference ImplicitCohortReference } [DataMember(Name="cohortReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Cohort.EdFi.CohortReference CohortReference { @@ -181786,6 +188793,7 @@ private Student.EdFi.StudentReference ImplicitStudentReference } [DataMember(Name="studentReference")] + [Key(2)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Student.EdFi.StudentReference StudentReference { @@ -181816,6 +188824,7 @@ public Student.EdFi.StudentReference StudentReference // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] [DataMember(Name="beginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime BeginDate { get; set; } /// @@ -181979,6 +188988,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="endDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EndDate { get; set; } // ------------------------------------------------------------- @@ -182001,6 +189011,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StudentCohortAssociation", "StudentCohortAssociation")] + [Key(5)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -182012,6 +189023,7 @@ public override int GetHashCode() [NoDuplicateMembers] [DataMember(Name="sections")] + [Key(6)] public ICollection StudentCohortAssociationSections { get { return _studentCohortAssociationSections; } @@ -182044,9 +189056,11 @@ public ICollection StudentCohortAssociationSect // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -182251,7 +189265,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.StudentCohortAssociationSection table of the StudentCohortAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentCohortAssociationSection : Entities.Common.EdFi.IStudentCohortAssociationSection, IValidatableObject { @@ -182296,6 +189310,7 @@ private Section.EdFi.SectionReference ImplicitSectionReference } [DataMember(Name="sectionReference")] + [Key(0)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Section.EdFi.SectionReference SectionReference { @@ -182328,6 +189343,7 @@ Entities.Common.EdFi.IStudentCohortAssociation IStudentCohortAssociationSection. set { SetStudentCohortAssociation(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStudentCohortAssociation StudentCohortAssociation { set { SetStudentCohortAssociation(value); } @@ -182577,6 +189593,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StudentCohortAssociation", "StudentCohortAssociationSection")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -182732,31 +189749,52 @@ namespace EdFi.Ods.Api.Common.Models.Resources.StudentCompetencyObjective.EdFi /// /// Represents a reference to the StudentCompetencyObjective resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentCompetencyObjectiveReference : IResourceReference { [DataMember(Name="gradingPeriodDescriptor")][DescriptorExists("GradingPeriodDescriptor")] + [IgnoreMember] public string GradingPeriodDescriptor { get; set; } + [Key(0)][JsonIgnore] + public int GradingPeriodDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("GradingPeriodDescriptor", GradingPeriodDescriptor); } + set { GradingPeriodDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("GradingPeriodDescriptor", value); } + } + [DataMember(Name="gradingPeriodName")] + [Key(1)] public string GradingPeriodName { get; set; } [DataMember(Name="gradingPeriodSchoolId")] + [Key(2)] public long GradingPeriodSchoolId { get; set; } [DataMember(Name="gradingPeriodSchoolYear")] + [Key(3)] public short GradingPeriodSchoolYear { get; set; } [DataMember(Name="objective")] + [Key(4)] public string Objective { get; set; } [DataMember(Name="objectiveEducationOrganizationId")] + [Key(5)] public long ObjectiveEducationOrganizationId { get; set; } [DataMember(Name="objectiveGradeLevelDescriptor")][DescriptorExists("GradeLevelDescriptor")] + [IgnoreMember] public string ObjectiveGradeLevelDescriptor { get; set; } + [Key(6)][JsonIgnore] + public int ObjectiveGradeLevelDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("GradeLevelDescriptor", ObjectiveGradeLevelDescriptor); } + set { ObjectiveGradeLevelDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("GradeLevelDescriptor", value); } + } + [DataMember(Name="studentUniqueId")] public string StudentUniqueId { @@ -182772,17 +189810,22 @@ public string StudentUniqueId /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(7)] 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. /// + [Key(8)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(9)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -182886,7 +189929,7 @@ private Link CreateLink() /// /// A class which represents the edfi.StudentCompetencyObjective table of the StudentCompetencyObjective aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentCompetencyObjective : Entities.Common.EdFi.IStudentCompetencyObjective, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -182920,6 +189963,7 @@ public StudentCompetencyObjective() /// The unique identifier for the StudentCompetencyObjective resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -182943,6 +189987,7 @@ private GradingPeriod.EdFi.GradingPeriodReference ImplicitGradingPeriodReference } [DataMember(Name="gradingPeriodReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public GradingPeriod.EdFi.GradingPeriodReference GradingPeriodReference { @@ -182976,6 +190021,7 @@ private CompetencyObjective.EdFi.CompetencyObjectiveReference ImplicitObjectiveC } [DataMember(Name="objectiveCompetencyObjectiveReference")] + [Key(2)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public CompetencyObjective.EdFi.CompetencyObjectiveReference ObjectiveCompetencyObjectiveReference { @@ -183009,6 +190055,7 @@ private Student.EdFi.StudentReference ImplicitStudentReference } [DataMember(Name="studentReference")] + [Key(3)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Student.EdFi.StudentReference StudentReference { @@ -183346,14 +190393,23 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="competencyLevelDescriptor")][DescriptorExists("CompetencyLevelDescriptor")] + [IgnoreMember] public string CompetencyLevelDescriptor { get; set; } + [Key(4)][JsonIgnore] + public int CompetencyLevelDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("CompetencyLevelDescriptor", CompetencyLevelDescriptor); } + set { CompetencyLevelDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("CompetencyLevelDescriptor", value); } + } + /// /// A statement provided by the teacher that provides information in addition to the grade or assessment score. /// // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="diagnosticStatement")] + [Key(5)] public string DiagnosticStatement { get; set; } // ------------------------------------------------------------- @@ -183376,6 +190432,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StudentCompetencyObjective", "StudentCompetencyObjective")] + [Key(6)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -183387,6 +190444,7 @@ public override int GetHashCode() [NoDuplicateMembers] [DataMember(Name="generalStudentProgramAssociations")] + [Key(7)] public ICollection StudentCompetencyObjectiveGeneralStudentProgramAssociations { get { return _studentCompetencyObjectiveGeneralStudentProgramAssociations; } @@ -183417,6 +190475,7 @@ public ICollection S [NoDuplicateMembers] [DataMember(Name="studentSectionAssociations")] + [Key(8)] public ICollection StudentCompetencyObjectiveStudentSectionAssociations { get { return _studentCompetencyObjectiveStudentSectionAssociations; } @@ -183449,9 +190508,11 @@ public ICollection StudentC // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(9)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(10)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -183699,7 +190760,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.StudentCompetencyObjectiveGeneralStudentProgramAssociation table of the StudentCompetencyObjective aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentCompetencyObjectiveGeneralStudentProgramAssociation : Entities.Common.EdFi.IStudentCompetencyObjectiveGeneralStudentProgramAssociation, IValidatableObject { @@ -183744,6 +190805,7 @@ private GeneralStudentProgramAssociation.EdFi.GeneralStudentProgramAssociationRe } [DataMember(Name="generalStudentProgramAssociationReference")] + [Key(0)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public GeneralStudentProgramAssociation.EdFi.GeneralStudentProgramAssociationReference GeneralStudentProgramAssociationReference { @@ -183776,6 +190838,7 @@ Entities.Common.EdFi.IStudentCompetencyObjective IStudentCompetencyObjectiveGene set { SetStudentCompetencyObjective(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStudentCompetencyObjective StudentCompetencyObjective { set { SetStudentCompetencyObjective(value); } @@ -184028,6 +191091,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StudentCompetencyObjective", "StudentCompetencyObjectiveGeneralStudentProgramAssociation")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -184218,7 +191282,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.StudentCompetencyObjectiveStudentSectionAssociation table of the StudentCompetencyObjective aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentCompetencyObjectiveStudentSectionAssociation : Entities.Common.EdFi.IStudentCompetencyObjectiveStudentSectionAssociation, IValidatableObject { @@ -184263,6 +191327,7 @@ private StudentSectionAssociation.EdFi.StudentSectionAssociationReference Implic } [DataMember(Name="studentSectionAssociationReference")] + [Key(0)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public StudentSectionAssociation.EdFi.StudentSectionAssociationReference StudentSectionAssociationReference { @@ -184295,6 +191360,7 @@ Entities.Common.EdFi.IStudentCompetencyObjective IStudentCompetencyObjectiveStud set { SetStudentCompetencyObjective(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStudentCompetencyObjective StudentCompetencyObjective { set { SetStudentCompetencyObjective(value); } @@ -184583,6 +191649,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StudentCompetencyObjective", "StudentCompetencyObjectiveStudentSectionAssociation")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -184778,7 +191845,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.StudentContactAssociation.EdFi /// /// Represents a reference to the StudentContactAssociation resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentContactAssociationReference : IResourceReference { @@ -184809,17 +191876,22 @@ public string StudentUniqueId /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(0)] 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. /// + [Key(1)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(2)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -184893,7 +191965,7 @@ private Link CreateLink() /// /// A class which represents the edfi.StudentContactAssociation table of the StudentContactAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentContactAssociation : Entities.Common.EdFi.IStudentContactAssociation, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -184922,6 +191994,7 @@ public class StudentContactAssociation : Entities.Common.EdFi.IStudentContactAss /// The unique identifier for the StudentContactAssociation resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -184945,6 +192018,7 @@ private Contact.EdFi.ContactReference ImplicitContactReference } [DataMember(Name="contactReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Contact.EdFi.ContactReference ContactReference { @@ -184978,6 +192052,7 @@ private Student.EdFi.StudentReference ImplicitStudentReference } [DataMember(Name="studentReference")] + [Key(2)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Student.EdFi.StudentReference StudentReference { @@ -185122,6 +192197,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="contactPriority")] + [Key(3)] public int? ContactPriority { get; set; } /// @@ -185130,6 +192206,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(250, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="contactRestrictions")] + [Key(4)] public string ContactRestrictions { get; set; } /// @@ -185137,6 +192214,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="emergencyContactStatus")] + [Key(5)] public bool? EmergencyContactStatus { get; set; } /// @@ -185144,6 +192222,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="legalGuardian")] + [Key(6)] public bool? LegalGuardian { get; set; } /// @@ -185151,6 +192230,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="livesWith")] + [Key(7)] public bool? LivesWith { get; set; } /// @@ -185158,6 +192238,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="primaryContactStatus")] + [Key(8)] public bool? PrimaryContactStatus { get; set; } /// @@ -185166,7 +192247,15 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="relationDescriptor")][DescriptorExists("RelationDescriptor")] + [IgnoreMember] public string RelationDescriptor { get; set; } + + [Key(9)][JsonIgnore] + public int RelationDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("RelationDescriptor", RelationDescriptor); } + set { RelationDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("RelationDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -185188,6 +192277,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StudentContactAssociation", "StudentContactAssociation")] + [Key(10)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -185201,9 +192291,11 @@ public override int GetHashCode() // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(11)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(12)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -185363,25 +192455,37 @@ namespace EdFi.Ods.Api.Common.Models.Resources.StudentCTEProgramAssociation.EdFi /// /// Represents a reference to the StudentCTEProgramAssociation resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentCTEProgramAssociationReference : IResourceReference { [DataMember(Name="beginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(0)] public DateTime BeginDate { get; set; } [DataMember(Name="educationOrganizationId")] + [Key(1)] public long EducationOrganizationId { get; set; } [DataMember(Name="programEducationOrganizationId")] + [Key(2)] public long ProgramEducationOrganizationId { get; set; } [DataMember(Name="programName")] + [Key(3)] public string ProgramName { get; set; } [DataMember(Name="programTypeDescriptor")][DescriptorExists("ProgramTypeDescriptor")] + [IgnoreMember] public string ProgramTypeDescriptor { get; set; } + [Key(4)][JsonIgnore] + public int ProgramTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ProgramTypeDescriptor", ProgramTypeDescriptor); } + set { ProgramTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ProgramTypeDescriptor", value); } + } + [DataMember(Name="studentUniqueId")] public string StudentUniqueId { @@ -185397,11 +192501,15 @@ public string StudentUniqueId /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(5)] public Guid ResourceId { get; set; } - private Link _link; + [JsonIgnore] + [Key(6)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -185476,7 +192584,7 @@ private Link CreateLink() /// /// A class which represents the edfi.StudentCTEProgramAssociation table of the StudentCTEProgramAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentCTEProgramAssociation : Entities.Common.EdFi.IStudentCTEProgramAssociation, Entities.Common.EdFi.IGeneralStudentProgramAssociation, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -185512,6 +192620,7 @@ public StudentCTEProgramAssociation() /// The unique identifier for the StudentCTEProgramAssociation resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -185535,6 +192644,7 @@ private EducationOrganization.EdFi.EducationOrganizationReference ImplicitEducat } [DataMember(Name="educationOrganizationReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public EducationOrganization.EdFi.EducationOrganizationReference EducationOrganizationReference { @@ -185568,6 +192678,7 @@ private Program.EdFi.ProgramReference ImplicitProgramReference } [DataMember(Name="programReference")] + [Key(2)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Program.EdFi.ProgramReference ProgramReference { @@ -185601,6 +192712,7 @@ private Student.EdFi.StudentReference ImplicitStudentReference } [DataMember(Name="studentReference")] + [Key(3)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Student.EdFi.StudentReference StudentReference { @@ -185631,6 +192743,7 @@ public Student.EdFi.StudentReference StudentReference // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] [DataMember(Name="beginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime BeginDate { get; set; } /// @@ -185852,6 +192965,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="endDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(5)] public DateTime? EndDate { get; set; } /// @@ -185860,13 +192974,22 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="reasonExitedDescriptor")][DescriptorExists("ReasonExitedDescriptor")] + [IgnoreMember] public string ReasonExitedDescriptor { get; set; } + [Key(6)][JsonIgnore] + public int ReasonExitedDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ReasonExitedDescriptor", ReasonExitedDescriptor); } + set { ReasonExitedDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ReasonExitedDescriptor", value); } + } + /// /// Indicates whether the student received services during the summer session or between sessions. /// // NOT in a reference, NOT a lookup column [DataMember(Name="servedOutsideOfRegularSession")] + [Key(7)] public bool? ServedOutsideOfRegularSession { get; set; } // ------------------------------------------------------------- @@ -185879,6 +193002,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="nonTraditionalGenderStatus")] + [Key(8)] public bool? NonTraditionalGenderStatus { get; set; } /// @@ -185886,6 +193010,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="privateCTEProgram")] + [Key(9)] public bool? PrivateCTEProgram { get; set; } /// @@ -185894,7 +193019,15 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="technicalSkillsAssessmentDescriptor")][DescriptorExists("TechnicalSkillsAssessmentDescriptor")] + [IgnoreMember] public string TechnicalSkillsAssessmentDescriptor { get; set; } + + [Key(10)][JsonIgnore] + public int TechnicalSkillsAssessmentDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("TechnicalSkillsAssessmentDescriptor", TechnicalSkillsAssessmentDescriptor); } + set { TechnicalSkillsAssessmentDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("TechnicalSkillsAssessmentDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -185915,6 +193048,7 @@ public override int GetHashCode() [NoDuplicateMembers] [DataMember(Name="programParticipationStatuses")] + [Key(11)] public ICollection GeneralStudentProgramAssociationProgramParticipationStatuses { get { return _generalStudentProgramAssociationProgramParticipationStatuses; } @@ -185937,6 +193071,7 @@ public ICollection StudentCTEProgramAssociationCTEProgramServices { get { return _studentCTEProgramAssociationCTEProgramServices; } @@ -185980,9 +193116,11 @@ public ICollection StudentCTEProg // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(14)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(15)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -186230,7 +193368,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.StudentCTEProgramAssociationCTEProgramService table of the StudentCTEProgramAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentCTEProgramAssociationCTEProgramService : Entities.Common.EdFi.IStudentCTEProgramAssociationCTEProgramService, IValidatableObject { @@ -186273,6 +193411,7 @@ Entities.Common.EdFi.IStudentCTEProgramAssociation IStudentCTEProgramAssociation set { SetStudentCTEProgramAssociation(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStudentCTEProgramAssociation StudentCTEProgramAssociation { set { SetStudentCTEProgramAssociation(value); } @@ -186290,7 +193429,15 @@ private void SetStudentCTEProgramAssociation(Entities.Common.EdFi.IStudentCTEPro [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="cteProgramServiceDescriptor")][DescriptorExists("CTEProgramServiceDescriptor")] + [IgnoreMember] public string CTEProgramServiceDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int CTEProgramServiceDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("CTEProgramServiceDescriptor", CTEProgramServiceDescriptor); } + set { CTEProgramServiceDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("CTEProgramServiceDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -186361,6 +193508,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(120, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="cipCode")] + [Key(1)] public string CIPCode { get; set; } /// @@ -186368,6 +193516,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="primaryIndicator")] + [Key(2)] public bool? PrimaryIndicator { get; set; } /// @@ -186375,6 +193524,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="serviceBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? ServiceBeginDate { get; set; } /// @@ -186382,6 +193532,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="serviceEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? ServiceEndDate { get; set; } // ------------------------------------------------------------- @@ -186404,6 +193555,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StudentCTEProgramAssociation", "StudentCTEProgramAssociationCTEProgramService")] + [Key(5)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -186545,17 +193697,27 @@ namespace EdFi.Ods.Api.Common.Models.Resources.StudentDisciplineIncidentBehavior /// /// Represents a reference to the StudentDisciplineIncidentBehaviorAssociation resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentDisciplineIncidentBehaviorAssociationReference : IResourceReference { [DataMember(Name="behaviorDescriptor")][DescriptorExists("BehaviorDescriptor")] + [IgnoreMember] public string BehaviorDescriptor { get; set; } + [Key(0)][JsonIgnore] + public int BehaviorDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("BehaviorDescriptor", BehaviorDescriptor); } + set { BehaviorDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("BehaviorDescriptor", value); } + } + [DataMember(Name="incidentIdentifier")] + [Key(1)] public string IncidentIdentifier { get; set; } [DataMember(Name="schoolId")] + [Key(2)] public long SchoolId { get; set; } [DataMember(Name="studentUniqueId")] @@ -186573,17 +193735,22 @@ public string StudentUniqueId /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(3)] 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. /// + [Key(4)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(5)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -186667,7 +193834,7 @@ private Link CreateLink() /// /// A class which represents the edfi.StudentDisciplineIncidentBehaviorAssociation table of the StudentDisciplineIncidentBehaviorAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentDisciplineIncidentBehaviorAssociation : Entities.Common.EdFi.IStudentDisciplineIncidentBehaviorAssociation, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -186700,6 +193867,7 @@ public StudentDisciplineIncidentBehaviorAssociation() /// The unique identifier for the StudentDisciplineIncidentBehaviorAssociation resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -186723,6 +193891,7 @@ private DisciplineIncident.EdFi.DisciplineIncidentReference ImplicitDisciplineIn } [DataMember(Name="disciplineIncidentReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public DisciplineIncident.EdFi.DisciplineIncidentReference DisciplineIncidentReference { @@ -186756,6 +193925,7 @@ private Student.EdFi.StudentReference ImplicitStudentReference } [DataMember(Name="studentReference")] + [Key(2)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Student.EdFi.StudentReference StudentReference { @@ -186787,8 +193957,16 @@ public Student.EdFi.StudentReference StudentReference [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="behaviorDescriptor")][DescriptorExists("BehaviorDescriptor")] + [IgnoreMember] public string BehaviorDescriptor { get; set; } + [Key(3)][JsonIgnore] + public int BehaviorDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("BehaviorDescriptor", BehaviorDescriptor); } + set { BehaviorDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("BehaviorDescriptor", value); } + } + /// /// A locally assigned unique identifier (within the school or school district) to identify each specific DisciplineIncident or occurrence. The same identifier should be used to document the entire discipline incident even if it included multiple offenses and multiple offenders. /// @@ -186951,6 +194129,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="behaviorDetailedDescription")] + [Key(4)] public string BehaviorDetailedDescription { get; set; } // ------------------------------------------------------------- @@ -186973,6 +194152,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StudentDisciplineIncidentBehaviorAssociation", "StudentDisciplineIncidentBehaviorAssociation")] + [Key(5)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -186984,6 +194164,7 @@ public override int GetHashCode() [NoDuplicateMembers] [DataMember(Name="disciplineIncidentParticipationCodes")] + [Key(6)] public ICollection StudentDisciplineIncidentBehaviorAssociationDisciplineIncidentParticipationCodes { get { return _studentDisciplineIncidentBehaviorAssociationDisciplineIncidentParticipationCodes; } @@ -187016,9 +194197,11 @@ public ICollection /// A class which represents the edfi.StudentDisciplineIncidentBehaviorAssociationDisciplineIncidentParticipationCode table of the StudentDisciplineIncidentBehaviorAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentDisciplineIncidentBehaviorAssociationDisciplineIncidentParticipationCode : Entities.Common.EdFi.IStudentDisciplineIncidentBehaviorAssociationDisciplineIncidentParticipationCode, IValidatableObject { @@ -187266,6 +194449,7 @@ Entities.Common.EdFi.IStudentDisciplineIncidentBehaviorAssociation IStudentDisci set { SetStudentDisciplineIncidentBehaviorAssociation(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStudentDisciplineIncidentBehaviorAssociation StudentDisciplineIncidentBehaviorAssociation { set { SetStudentDisciplineIncidentBehaviorAssociation(value); } @@ -187283,7 +194467,15 @@ private void SetStudentDisciplineIncidentBehaviorAssociation(Entities.Common.EdF [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="disciplineIncidentParticipationCodeDescriptor")][DescriptorExists("DisciplineIncidentParticipationCodeDescriptor")] + [IgnoreMember] public string DisciplineIncidentParticipationCodeDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int DisciplineIncidentParticipationCodeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("DisciplineIncidentParticipationCodeDescriptor", DisciplineIncidentParticipationCodeDescriptor); } + set { DisciplineIncidentParticipationCodeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("DisciplineIncidentParticipationCodeDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -187368,6 +194560,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StudentDisciplineIncidentBehaviorAssociation", "StudentDisciplineIncidentBehaviorAssociationDisciplineIncidentParticipationCode")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -187509,14 +194702,16 @@ namespace EdFi.Ods.Api.Common.Models.Resources.StudentDisciplineIncidentNonOffen /// /// Represents a reference to the StudentDisciplineIncidentNonOffenderAssociation resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentDisciplineIncidentNonOffenderAssociationReference : IResourceReference { [DataMember(Name="incidentIdentifier")] + [Key(0)] public string IncidentIdentifier { get; set; } [DataMember(Name="schoolId")] + [Key(1)] public long SchoolId { get; set; } [DataMember(Name="studentUniqueId")] @@ -187534,17 +194729,22 @@ public string StudentUniqueId /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(2)] 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. /// + [Key(3)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(4)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -187623,7 +194823,7 @@ private Link CreateLink() /// /// A class which represents the edfi.StudentDisciplineIncidentNonOffenderAssociation table of the StudentDisciplineIncidentNonOffenderAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentDisciplineIncidentNonOffenderAssociation : Entities.Common.EdFi.IStudentDisciplineIncidentNonOffenderAssociation, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -187656,6 +194856,7 @@ public StudentDisciplineIncidentNonOffenderAssociation() /// The unique identifier for the StudentDisciplineIncidentNonOffenderAssociation resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -187679,6 +194880,7 @@ private DisciplineIncident.EdFi.DisciplineIncidentReference ImplicitDisciplineIn } [DataMember(Name="disciplineIncidentReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public DisciplineIncident.EdFi.DisciplineIncidentReference DisciplineIncidentReference { @@ -187712,6 +194914,7 @@ private Student.EdFi.StudentReference ImplicitStudentReference } [DataMember(Name="studentReference")] + [Key(2)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Student.EdFi.StudentReference StudentReference { @@ -187903,6 +195106,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StudentDisciplineIncidentNonOffenderAssociation", "StudentDisciplineIncidentNonOffenderAssociation")] + [Key(3)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -187914,6 +195118,7 @@ public override int GetHashCode() [NoDuplicateMembers] [DataMember(Name="disciplineIncidentParticipationCodes")] + [Key(4)] public ICollection StudentDisciplineIncidentNonOffenderAssociationDisciplineIncidentParticipationCodes { get { return _studentDisciplineIncidentNonOffenderAssociationDisciplineIncidentParticipationCodes; } @@ -187946,9 +195151,11 @@ public ICollection /// A class which represents the edfi.StudentDisciplineIncidentNonOffenderAssociationDisciplineIncidentParticipationCode table of the StudentDisciplineIncidentNonOffenderAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentDisciplineIncidentNonOffenderAssociationDisciplineIncidentParticipationCode : Entities.Common.EdFi.IStudentDisciplineIncidentNonOffenderAssociationDisciplineIncidentParticipationCode, IValidatableObject { @@ -188196,6 +195403,7 @@ Entities.Common.EdFi.IStudentDisciplineIncidentNonOffenderAssociation IStudentDi set { SetStudentDisciplineIncidentNonOffenderAssociation(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStudentDisciplineIncidentNonOffenderAssociation StudentDisciplineIncidentNonOffenderAssociation { set { SetStudentDisciplineIncidentNonOffenderAssociation(value); } @@ -188213,7 +195421,15 @@ private void SetStudentDisciplineIncidentNonOffenderAssociation(Entities.Common. [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="disciplineIncidentParticipationCodeDescriptor")][DescriptorExists("DisciplineIncidentParticipationCodeDescriptor")] + [IgnoreMember] public string DisciplineIncidentParticipationCodeDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int DisciplineIncidentParticipationCodeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("DisciplineIncidentParticipationCodeDescriptor", DisciplineIncidentParticipationCodeDescriptor); } + set { DisciplineIncidentParticipationCodeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("DisciplineIncidentParticipationCodeDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -188298,6 +195514,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StudentDisciplineIncidentNonOffenderAssociation", "StudentDisciplineIncidentNonOffenderAssociationDisciplineIncidentParticipationCode")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -188439,11 +195656,12 @@ namespace EdFi.Ods.Api.Common.Models.Resources.StudentEducationOrganizationAssoc /// /// Represents a reference to the StudentEducationOrganizationAssociation resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentEducationOrganizationAssociationReference : IResourceReference { [DataMember(Name="educationOrganizationId")] + [Key(0)] public long EducationOrganizationId { get; set; } [DataMember(Name="studentUniqueId")] @@ -188461,17 +195679,22 @@ public string StudentUniqueId /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(1)] 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. /// + [Key(2)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(3)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -188545,7 +195768,7 @@ private Link CreateLink() /// /// A class which represents the edfi.StudentEducationOrganizationAssociation table of the StudentEducationOrganizationAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentEducationOrganizationAssociation : Entities.Common.EdFi.IStudentEducationOrganizationAssociation, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -188591,6 +195814,7 @@ public StudentEducationOrganizationAssociation() /// The unique identifier for the StudentEducationOrganizationAssociation resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -188614,6 +195838,7 @@ private EducationOrganization.EdFi.EducationOrganizationReference ImplicitEducat } [DataMember(Name="educationOrganizationReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public EducationOrganization.EdFi.EducationOrganizationReference EducationOrganizationReference { @@ -188647,6 +195872,7 @@ private Student.EdFi.StudentReference ImplicitStudentReference } [DataMember(Name="studentReference")] + [Key(2)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Student.EdFi.StudentReference StudentReference { @@ -188791,14 +196017,23 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="barrierToInternetAccessInResidenceDescriptor")][DescriptorExists("BarrierToInternetAccessInResidenceDescriptor")] + [IgnoreMember] public string BarrierToInternetAccessInResidenceDescriptor { get; set; } + [Key(3)][JsonIgnore] + public int BarrierToInternetAccessInResidenceDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("BarrierToInternetAccessInResidenceDescriptor", BarrierToInternetAccessInResidenceDescriptor); } + set { BarrierToInternetAccessInResidenceDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("BarrierToInternetAccessInResidenceDescriptor", value); } + } + /// /// The student's gender as last reported to the education organization. /// // NOT in a reference, NOT a lookup column [NonDefaultStringLength(60, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="genderIdentity")] + [Key(4)] public string GenderIdentity { get; set; } /// @@ -188806,6 +196041,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="hispanicLatinoEthnicity")] + [Key(5)] public bool? HispanicLatinoEthnicity { get; set; } /// @@ -188813,6 +196049,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="internetAccessInResidence")] + [Key(6)] public bool? InternetAccessInResidence { get; set; } /// @@ -188821,30 +196058,55 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="internetAccessTypeInResidenceDescriptor")][DescriptorExists("InternetAccessTypeInResidenceDescriptor")] + [IgnoreMember] public string InternetAccessTypeInResidenceDescriptor { get; set; } + [Key(7)][JsonIgnore] + public int InternetAccessTypeInResidenceDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("InternetAccessTypeInResidenceDescriptor", InternetAccessTypeInResidenceDescriptor); } + set { InternetAccessTypeInResidenceDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("InternetAccessTypeInResidenceDescriptor", value); } + } + /// /// An indication of whether the student can complete the full range of learning activities, including video streaming and assignment upload, without interruptions caused by poor internet performance in their primary place of residence. /// // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="internetPerformanceInResidenceDescriptor")][DescriptorExists("InternetPerformanceInResidenceDescriptor")] + [IgnoreMember] public string InternetPerformanceInResidenceDescriptor { get; set; } + [Key(8)][JsonIgnore] + public int InternetPerformanceInResidenceDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("InternetPerformanceInResidenceDescriptor", InternetPerformanceInResidenceDescriptor); } + set { InternetPerformanceInResidenceDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("InternetPerformanceInResidenceDescriptor", value); } + } + /// /// An indication that the student has been identified as limited English proficient by the Language Proficiency Assessment Committee (LPAC), or English proficient. /// // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="limitedEnglishProficiencyDescriptor")][DescriptorExists("LimitedEnglishProficiencyDescriptor")] + [IgnoreMember] public string LimitedEnglishProficiencyDescriptor { get; set; } + [Key(9)][JsonIgnore] + public int LimitedEnglishProficiencyDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("LimitedEnglishProficiencyDescriptor", LimitedEnglishProficiencyDescriptor); } + set { LimitedEnglishProficiencyDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("LimitedEnglishProficiencyDescriptor", value); } + } + /// /// The login ID for the user; used for security access control interface. /// // NOT in a reference, NOT a lookup column [NonDefaultStringLength(60, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="loginId")] + [Key(10)] public string LoginId { get; set; } /// @@ -188853,30 +196115,55 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="primaryLearningDeviceAccessDescriptor")][DescriptorExists("PrimaryLearningDeviceAccessDescriptor")] + [IgnoreMember] public string PrimaryLearningDeviceAccessDescriptor { get; set; } + [Key(11)][JsonIgnore] + public int PrimaryLearningDeviceAccessDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("PrimaryLearningDeviceAccessDescriptor", PrimaryLearningDeviceAccessDescriptor); } + set { PrimaryLearningDeviceAccessDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("PrimaryLearningDeviceAccessDescriptor", value); } + } + /// /// The type of device the student uses most often to complete learning activities away from school. /// // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="primaryLearningDeviceAwayFromSchoolDescriptor")][DescriptorExists("PrimaryLearningDeviceAwayFromSchoolDescriptor")] + [IgnoreMember] public string PrimaryLearningDeviceAwayFromSchoolDescriptor { get; set; } + [Key(12)][JsonIgnore] + public int PrimaryLearningDeviceAwayFromSchoolDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("PrimaryLearningDeviceAwayFromSchoolDescriptor", PrimaryLearningDeviceAwayFromSchoolDescriptor); } + set { PrimaryLearningDeviceAwayFromSchoolDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("PrimaryLearningDeviceAwayFromSchoolDescriptor", value); } + } + /// /// The provider of the primary learning device. /// // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="primaryLearningDeviceProviderDescriptor")][DescriptorExists("PrimaryLearningDeviceProviderDescriptor")] + [IgnoreMember] public string PrimaryLearningDeviceProviderDescriptor { get; set; } + [Key(13)][JsonIgnore] + public int PrimaryLearningDeviceProviderDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("PrimaryLearningDeviceProviderDescriptor", PrimaryLearningDeviceProviderDescriptor); } + set { PrimaryLearningDeviceProviderDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("PrimaryLearningDeviceProviderDescriptor", value); } + } + /// /// Locator reference for the student photo. The specification for that reference is left to local definition. /// // NOT in a reference, NOT a lookup column [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="profileThumbnail")] + [Key(14)] public string ProfileThumbnail { get; set; } /// @@ -188885,15 +196172,31 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="sexDescriptor")][DescriptorExists("SexDescriptor")] + [IgnoreMember] public string SexDescriptor { get; set; } + [Key(15)][JsonIgnore] + public int SexDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("SexDescriptor", SexDescriptor); } + set { SexDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("SexDescriptor", value); } + } + /// /// Military connection of the person/people whom the student is a dependent of. /// // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="supporterMilitaryConnectionDescriptor")][DescriptorExists("SupporterMilitaryConnectionDescriptor")] + [IgnoreMember] public string SupporterMilitaryConnectionDescriptor { get; set; } + + [Key(16)][JsonIgnore] + public int SupporterMilitaryConnectionDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("SupporterMilitaryConnectionDescriptor", SupporterMilitaryConnectionDescriptor); } + set { SupporterMilitaryConnectionDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("SupporterMilitaryConnectionDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -188915,6 +196218,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StudentEducationOrganizationAssociation", "StudentEducationOrganizationAssociation")] + [Key(17)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -188926,6 +196230,7 @@ public override int GetHashCode() [NoDuplicateMembers] [DataMember(Name="addresses")] + [Key(18)] public ICollection StudentEducationOrganizationAssociationAddresses { get { return _studentEducationOrganizationAssociationAddresses; } @@ -188956,6 +196261,7 @@ public ICollection StudentEducat [NoDuplicateMembers] [DataMember(Name="ancestryEthnicOrigins")] + [Key(19)] public ICollection StudentEducationOrganizationAssociationAncestryEthnicOrigins { get { return _studentEducationOrganizationAssociationAncestryEthnicOrigins; } @@ -188986,6 +196292,7 @@ public ICollection [NoDuplicateMembers] [DataMember(Name="cohortYears")] + [Key(20)] public ICollection StudentEducationOrganizationAssociationCohortYears { get { return _studentEducationOrganizationAssociationCohortYears; } @@ -189016,6 +196323,7 @@ public ICollection StudentEdu [NoDuplicateMembers] [DataMember(Name="disabilities")] + [Key(21)] public ICollection StudentEducationOrganizationAssociationDisabilities { get { return _studentEducationOrganizationAssociationDisabilities; } @@ -189046,6 +196354,7 @@ public ICollection StudentEdu [NoDuplicateMembers] [DataMember(Name="displacedStudents")] + [Key(22)] public ICollection StudentEducationOrganizationAssociationDisplacedStudents { get { return _studentEducationOrganizationAssociationDisplacedStudents; } @@ -189076,6 +196385,7 @@ public ICollection Stud [NoDuplicateMembers] [DataMember(Name="electronicMails")] + [Key(23)] public ICollection StudentEducationOrganizationAssociationElectronicMails { get { return _studentEducationOrganizationAssociationElectronicMails; } @@ -189106,6 +196416,7 @@ public ICollection Studen [NoDuplicateMembers] [DataMember(Name="internationalAddresses")] + [Key(24)] public ICollection StudentEducationOrganizationAssociationInternationalAddresses { get { return _studentEducationOrganizationAssociationInternationalAddresses; } @@ -189136,6 +196447,7 @@ public ICollection [NoDuplicateMembers] [DataMember(Name="languages")] + [Key(25)] public ICollection StudentEducationOrganizationAssociationLanguages { get { return _studentEducationOrganizationAssociationLanguages; } @@ -189166,6 +196478,7 @@ public ICollection StudentEduca [NoDuplicateMembers] [DataMember(Name="races")] + [Key(26)] public ICollection StudentEducationOrganizationAssociationRaces { get { return _studentEducationOrganizationAssociationRaces; } @@ -189196,6 +196509,7 @@ public ICollection StudentEducation [NoDuplicateMembers] [DataMember(Name="studentCharacteristics")] + [Key(27)] public ICollection StudentEducationOrganizationAssociationStudentCharacteristics { get { return _studentEducationOrganizationAssociationStudentCharacteristics; } @@ -189226,6 +196540,7 @@ public ICollection [NoDuplicateMembers] [DataMember(Name="studentIdentificationCodes")] + [Key(28)] public ICollection StudentEducationOrganizationAssociationStudentIdentificationCodes { get { return _studentEducationOrganizationAssociationStudentIdentificationCodes; } @@ -189256,6 +196571,7 @@ public ICollection StudentEducationOrganizationAssociationStudentIndicators { get { return _studentEducationOrganizationAssociationStudentIndicators; } @@ -189286,6 +196602,7 @@ public ICollection Stud [NoDuplicateMembers] [DataMember(Name="telephones")] + [Key(30)] public ICollection StudentEducationOrganizationAssociationTelephones { get { return _studentEducationOrganizationAssociationTelephones; } @@ -189316,6 +196633,7 @@ public ICollection StudentEduc [NoDuplicateMembers] [DataMember(Name="tribalAffiliations")] + [Key(31)] public ICollection StudentEducationOrganizationAssociationTribalAffiliations { get { return _studentEducationOrganizationAssociationTribalAffiliations; } @@ -189348,9 +196666,11 @@ public ICollection Stu // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(32)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(33)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -189932,7 +197252,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.StudentEducationOrganizationAssociationAddress table of the StudentEducationOrganizationAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentEducationOrganizationAssociationAddress : Entities.Common.EdFi.IStudentEducationOrganizationAssociationAddress, IValidatableObject { @@ -189979,6 +197299,7 @@ Entities.Common.EdFi.IStudentEducationOrganizationAssociation IStudentEducationO set { SetStudentEducationOrganizationAssociation(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStudentEducationOrganizationAssociation StudentEducationOrganizationAssociation { set { SetStudentEducationOrganizationAssociation(value); } @@ -189996,8 +197317,16 @@ private void SetStudentEducationOrganizationAssociation(Entities.Common.EdFi.ISt [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="addressTypeDescriptor")][DescriptorExists("AddressTypeDescriptor")] + [IgnoreMember] public string AddressTypeDescriptor { get; set; } + [Key(0)][JsonIgnore] + public int AddressTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("AddressTypeDescriptor", AddressTypeDescriptor); } + set { AddressTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("AddressTypeDescriptor", value); } + } + /// /// The name of the city in which an address is located. /// @@ -190005,6 +197334,7 @@ private void SetStudentEducationOrganizationAssociation(Entities.Common.EdFi.ISt [RequiredWithNonDefault] [NonDefaultStringLength(30, MinimumLength=2, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="city")] + [Key(1)] public string City { get; set; } /// @@ -190014,6 +197344,7 @@ private void SetStudentEducationOrganizationAssociation(Entities.Common.EdFi.ISt [RequiredWithNonDefault] [NonDefaultStringLength(17, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="postalCode")] + [Key(2)] public string PostalCode { get; set; } /// @@ -190023,8 +197354,16 @@ private void SetStudentEducationOrganizationAssociation(Entities.Common.EdFi.ISt [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="stateAbbreviationDescriptor")][DescriptorExists("StateAbbreviationDescriptor")] + [IgnoreMember] public string StateAbbreviationDescriptor { get; set; } + [Key(3)][JsonIgnore] + public int StateAbbreviationDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("StateAbbreviationDescriptor", StateAbbreviationDescriptor); } + set { StateAbbreviationDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("StateAbbreviationDescriptor", value); } + } + /// /// The street number and street name or post office box number of an address. /// @@ -190032,6 +197371,7 @@ private void SetStudentEducationOrganizationAssociation(Entities.Common.EdFi.ISt [RequiredWithNonDefault] [NonDefaultStringLength(150, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="streetNumberName")] + [Key(4)] public string StreetNumberName { get; set; } // ------------------------------------------------------------- @@ -190139,6 +197479,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="apartmentRoomSuiteNumber")] + [Key(5)] public string ApartmentRoomSuiteNumber { get; set; } /// @@ -190147,6 +197488,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(20, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="buildingSiteNumber")] + [Key(6)] public string BuildingSiteNumber { get; set; } /// @@ -190155,6 +197497,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(30, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="congressionalDistrict")] + [Key(7)] public string CongressionalDistrict { get; set; } /// @@ -190163,6 +197506,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(5, MinimumLength=3, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText] [DataMember(Name="countyFIPSCode")] + [Key(8)] public string CountyFIPSCode { get; set; } /// @@ -190170,6 +197514,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="doNotPublishIndicator")] + [Key(9)] public bool? DoNotPublishIndicator { get; set; } /// @@ -190178,6 +197523,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(20, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="latitude")] + [Key(10)] public string Latitude { get; set; } /// @@ -190186,14 +197532,23 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="localeDescriptor")][DescriptorExists("LocaleDescriptor")] + [IgnoreMember] public string LocaleDescriptor { get; set; } + [Key(11)][JsonIgnore] + public int LocaleDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("LocaleDescriptor", LocaleDescriptor); } + set { LocaleDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("LocaleDescriptor", value); } + } + /// /// The geographic longitude of the physical address. /// // NOT in a reference, NOT a lookup column [NonDefaultStringLength(20, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="longitude")] + [Key(12)] public string Longitude { get; set; } /// @@ -190202,6 +197557,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(30, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="nameOfCounty")] + [Key(13)] public string NameOfCounty { get; set; } // ------------------------------------------------------------- @@ -190224,6 +197580,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StudentEducationOrganizationAssociation", "StudentEducationOrganizationAssociationAddress")] + [Key(14)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -190235,6 +197592,7 @@ public override int GetHashCode() [NoDuplicateMembers] [DataMember(Name="periods")] + [Key(15)] public ICollection StudentEducationOrganizationAssociationAddressPeriods { get { return _studentEducationOrganizationAssociationAddressPeriods; } @@ -190440,7 +197798,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.StudentEducationOrganizationAssociationAddressPeriod table of the StudentEducationOrganizationAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentEducationOrganizationAssociationAddressPeriod : Entities.Common.EdFi.IStudentEducationOrganizationAssociationAddressPeriod, IValidatableObject { @@ -190483,6 +197841,7 @@ Entities.Common.EdFi.IStudentEducationOrganizationAssociationAddress IStudentEdu set { SetStudentEducationOrganizationAssociationAddress(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStudentEducationOrganizationAssociationAddress StudentEducationOrganizationAssociationAddress { set { SetStudentEducationOrganizationAssociationAddress(value); } @@ -190499,6 +197858,7 @@ private void SetStudentEducationOrganizationAssociationAddress(Entities.Common.E // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] [DataMember(Name="beginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(0)] public DateTime BeginDate { get; set; } // ------------------------------------------------------------- @@ -190569,6 +197929,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="endDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(1)] public DateTime? EndDate { get; set; } // ------------------------------------------------------------- @@ -190591,6 +197952,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StudentEducationOrganizationAssociation", "StudentEducationOrganizationAssociationAddressPeriod")] + [Key(2)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -190727,7 +198089,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.StudentEducationOrganizationAssociationAncestryEthnicOrigin table of the StudentEducationOrganizationAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentEducationOrganizationAssociationAncestryEthnicOrigin : Entities.Common.EdFi.IStudentEducationOrganizationAssociationAncestryEthnicOrigin, IValidatableObject { @@ -190770,6 +198132,7 @@ Entities.Common.EdFi.IStudentEducationOrganizationAssociation IStudentEducationO set { SetStudentEducationOrganizationAssociation(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStudentEducationOrganizationAssociation StudentEducationOrganizationAssociation { set { SetStudentEducationOrganizationAssociation(value); } @@ -190787,7 +198150,15 @@ private void SetStudentEducationOrganizationAssociation(Entities.Common.EdFi.ISt [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="ancestryEthnicOriginDescriptor")][DescriptorExists("AncestryEthnicOriginDescriptor")] + [IgnoreMember] public string AncestryEthnicOriginDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int AncestryEthnicOriginDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("AncestryEthnicOriginDescriptor", AncestryEthnicOriginDescriptor); } + set { AncestryEthnicOriginDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("AncestryEthnicOriginDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -190872,6 +198243,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StudentEducationOrganizationAssociation", "StudentEducationOrganizationAssociationAncestryEthnicOrigin")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -191008,7 +198380,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.StudentEducationOrganizationAssociationCohortYear table of the StudentEducationOrganizationAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentEducationOrganizationAssociationCohortYear : Entities.Common.EdFi.IStudentEducationOrganizationAssociationCohortYear, IValidatableObject { @@ -191053,6 +198425,7 @@ private SchoolYearType.EdFi.SchoolYearTypeReference ImplicitSchoolYearTypeRefere } [DataMember(Name="schoolYearTypeReference")] + [Key(0)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public SchoolYearType.EdFi.SchoolYearTypeReference SchoolYearTypeReference { @@ -191085,6 +198458,7 @@ Entities.Common.EdFi.IStudentEducationOrganizationAssociation IStudentEducationO set { SetStudentEducationOrganizationAssociation(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStudentEducationOrganizationAssociation StudentEducationOrganizationAssociation { set { SetStudentEducationOrganizationAssociation(value); } @@ -191102,8 +198476,16 @@ private void SetStudentEducationOrganizationAssociation(Entities.Common.EdFi.ISt [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="cohortYearTypeDescriptor")][DescriptorExists("CohortYearTypeDescriptor")] + [IgnoreMember] public string CohortYearTypeDescriptor { get; set; } + [Key(1)][JsonIgnore] + public int CohortYearTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("CohortYearTypeDescriptor", CohortYearTypeDescriptor); } + set { CohortYearTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("CohortYearTypeDescriptor", value); } + } + /// /// The school year associated with the cohort; for example, the intended school year of graduation. /// @@ -191206,7 +198588,15 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="termDescriptor")][DescriptorExists("TermDescriptor")] + [IgnoreMember] public string TermDescriptor { get; set; } + + [Key(2)][JsonIgnore] + public int TermDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("TermDescriptor", TermDescriptor); } + set { TermDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("TermDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -191228,6 +198618,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StudentEducationOrganizationAssociation", "StudentEducationOrganizationAssociationCohortYear")] + [Key(3)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -191371,7 +198762,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.StudentEducationOrganizationAssociationDisability table of the StudentEducationOrganizationAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentEducationOrganizationAssociationDisability : Entities.Common.EdFi.IStudentEducationOrganizationAssociationDisability, IValidatableObject { @@ -191418,6 +198809,7 @@ Entities.Common.EdFi.IStudentEducationOrganizationAssociation IStudentEducationO set { SetStudentEducationOrganizationAssociation(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStudentEducationOrganizationAssociation StudentEducationOrganizationAssociation { set { SetStudentEducationOrganizationAssociation(value); } @@ -191435,7 +198827,15 @@ private void SetStudentEducationOrganizationAssociation(Entities.Common.EdFi.ISt [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="disabilityDescriptor")][DescriptorExists("DisabilityDescriptor")] + [IgnoreMember] public string DisabilityDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int DisabilityDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("DisabilityDescriptor", DisabilityDescriptor); } + set { DisabilityDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("DisabilityDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -191506,14 +198906,23 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="disabilityDeterminationSourceTypeDescriptor")][DescriptorExists("DisabilityDeterminationSourceTypeDescriptor")] + [IgnoreMember] public string DisabilityDeterminationSourceTypeDescriptor { get; set; } + [Key(1)][JsonIgnore] + public int DisabilityDeterminationSourceTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("DisabilityDeterminationSourceTypeDescriptor", DisabilityDeterminationSourceTypeDescriptor); } + set { DisabilityDeterminationSourceTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("DisabilityDeterminationSourceTypeDescriptor", value); } + } + /// /// A description of the disability diagnosis. /// // NOT in a reference, NOT a lookup column [NonDefaultStringLength(80, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="disabilityDiagnosis")] + [Key(2)] public string DisabilityDiagnosis { get; set; } /// @@ -191521,6 +198930,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="orderOfDisability")] + [Key(3)] public int? OrderOfDisability { get; set; } // ------------------------------------------------------------- @@ -191543,6 +198953,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StudentEducationOrganizationAssociation", "StudentEducationOrganizationAssociationDisability")] + [Key(4)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -191554,6 +198965,7 @@ public override int GetHashCode() [NoDuplicateMembers] [DataMember(Name="designations")] + [Key(5)] public ICollection StudentEducationOrganizationAssociationDisabilityDesignations { get { return _studentEducationOrganizationAssociationDisabilityDesignations; } @@ -191759,7 +199171,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.StudentEducationOrganizationAssociationDisabilityDesignation table of the StudentEducationOrganizationAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentEducationOrganizationAssociationDisabilityDesignation : Entities.Common.EdFi.IStudentEducationOrganizationAssociationDisabilityDesignation, IValidatableObject { @@ -191802,6 +199214,7 @@ Entities.Common.EdFi.IStudentEducationOrganizationAssociationDisability IStudent set { SetStudentEducationOrganizationAssociationDisability(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStudentEducationOrganizationAssociationDisability StudentEducationOrganizationAssociationDisability { set { SetStudentEducationOrganizationAssociationDisability(value); } @@ -191819,7 +199232,15 @@ private void SetStudentEducationOrganizationAssociationDisability(Entities.Commo [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="disabilityDesignationDescriptor")][DescriptorExists("DisabilityDesignationDescriptor")] + [IgnoreMember] public string DisabilityDesignationDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int DisabilityDesignationDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("DisabilityDesignationDescriptor", DisabilityDesignationDescriptor); } + set { DisabilityDesignationDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("DisabilityDesignationDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -191904,6 +199325,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StudentEducationOrganizationAssociation", "StudentEducationOrganizationAssociationDisabilityDesignation")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -192040,7 +199462,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.StudentEducationOrganizationAssociationDisplacedStudent table of the StudentEducationOrganizationAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentEducationOrganizationAssociationDisplacedStudent : Entities.Common.EdFi.IStudentEducationOrganizationAssociationDisplacedStudent, IValidatableObject { @@ -192085,6 +199507,7 @@ private CrisisEvent.EdFi.CrisisEventReference ImplicitCrisisEventReference } [DataMember(Name="crisisEventReference")] + [Key(0)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public CrisisEvent.EdFi.CrisisEventReference CrisisEventReference { @@ -192117,6 +199540,7 @@ Entities.Common.EdFi.IStudentEducationOrganizationAssociation IStudentEducationO set { SetStudentEducationOrganizationAssociation(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStudentEducationOrganizationAssociation StudentEducationOrganizationAssociation { set { SetStudentEducationOrganizationAssociation(value); } @@ -192219,6 +199643,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="crisisHomelessnessIndicator")] + [Key(1)] public bool? CrisisHomelessnessIndicator { get; set; } /// @@ -192226,6 +199651,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="displacedStudentEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(2)] public DateTime? DisplacedStudentEndDate { get; set; } /// @@ -192233,6 +199659,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="displacedStudentStartDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? DisplacedStudentStartDate { get; set; } /// @@ -192242,7 +199669,15 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="displacedStudentStatusDescriptor")][DescriptorExists("DisplacedStudentStatusDescriptor")] + [IgnoreMember] public string DisplacedStudentStatusDescriptor { get; set; } + + [Key(4)][JsonIgnore] + public int DisplacedStudentStatusDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("DisplacedStudentStatusDescriptor", DisplacedStudentStatusDescriptor); } + set { DisplacedStudentStatusDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("DisplacedStudentStatusDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -192264,6 +199699,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StudentEducationOrganizationAssociation", "StudentEducationOrganizationAssociationDisplacedStudent")] + [Key(5)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -192414,7 +199850,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.StudentEducationOrganizationAssociationElectronicMail table of the StudentEducationOrganizationAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentEducationOrganizationAssociationElectronicMail : Entities.Common.EdFi.IStudentEducationOrganizationAssociationElectronicMail, IValidatableObject { @@ -192457,6 +199893,7 @@ Entities.Common.EdFi.IStudentEducationOrganizationAssociation IStudentEducationO set { SetStudentEducationOrganizationAssociation(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStudentEducationOrganizationAssociation StudentEducationOrganizationAssociation { set { SetStudentEducationOrganizationAssociation(value); } @@ -192474,6 +199911,7 @@ private void SetStudentEducationOrganizationAssociation(Entities.Common.EdFi.ISt [RequiredWithNonDefault] [NonDefaultStringLength(128, MinimumLength=7, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="electronicMailAddress")] + [Key(0)] public string ElectronicMailAddress { get; set; } /// @@ -192483,7 +199921,15 @@ private void SetStudentEducationOrganizationAssociation(Entities.Common.EdFi.ISt [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="electronicMailTypeDescriptor")][DescriptorExists("ElectronicMailTypeDescriptor")] + [IgnoreMember] public string ElectronicMailTypeDescriptor { get; set; } + + [Key(1)][JsonIgnore] + public int ElectronicMailTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ElectronicMailTypeDescriptor", ElectronicMailTypeDescriptor); } + set { ElectronicMailTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ElectronicMailTypeDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -192562,6 +200008,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="doNotPublishIndicator")] + [Key(2)] public bool? DoNotPublishIndicator { get; set; } /// @@ -192569,6 +200016,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="primaryEmailAddressIndicator")] + [Key(3)] public bool? PrimaryEmailAddressIndicator { get; set; } // ------------------------------------------------------------- @@ -192591,6 +200039,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StudentEducationOrganizationAssociation", "StudentEducationOrganizationAssociationElectronicMail")] + [Key(4)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -192727,7 +200176,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.StudentEducationOrganizationAssociationInternationalAddress table of the StudentEducationOrganizationAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentEducationOrganizationAssociationInternationalAddress : Entities.Common.EdFi.IStudentEducationOrganizationAssociationInternationalAddress, IValidatableObject { @@ -192770,6 +200219,7 @@ Entities.Common.EdFi.IStudentEducationOrganizationAssociation IStudentEducationO set { SetStudentEducationOrganizationAssociation(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStudentEducationOrganizationAssociation StudentEducationOrganizationAssociation { set { SetStudentEducationOrganizationAssociation(value); } @@ -192787,7 +200237,15 @@ private void SetStudentEducationOrganizationAssociation(Entities.Common.EdFi.ISt [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="addressTypeDescriptor")][DescriptorExists("AddressTypeDescriptor")] + [IgnoreMember] public string AddressTypeDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int AddressTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("AddressTypeDescriptor", AddressTypeDescriptor); } + set { AddressTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("AddressTypeDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -192859,6 +200317,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(150, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="addressLine1")] + [Key(1)] public string AddressLine1 { get; set; } /// @@ -192867,6 +200326,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(150, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="addressLine2")] + [Key(2)] public string AddressLine2 { get; set; } /// @@ -192875,6 +200335,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(150, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="addressLine3")] + [Key(3)] public string AddressLine3 { get; set; } /// @@ -192883,6 +200344,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(150, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="addressLine4")] + [Key(4)] public string AddressLine4 { get; set; } /// @@ -192890,6 +200352,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="beginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(5)] public DateTime? BeginDate { get; set; } /// @@ -192899,13 +200362,22 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="countryDescriptor")][DescriptorExists("CountryDescriptor")] + [IgnoreMember] public string CountryDescriptor { get; set; } + [Key(6)][JsonIgnore] + public int CountryDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("CountryDescriptor", CountryDescriptor); } + set { CountryDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("CountryDescriptor", value); } + } + /// /// The last date the address is valid. For physical addresses, the date the individual moved from that address. Note: Date interpretation may vary. Ed-Fi recommends inclusive dates, but states may define dates as inclusive or exclusive. For calculations, align with local guidelines. /// // NOT in a reference, NOT a lookup column [DataMember(Name="endDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(7)] public DateTime? EndDate { get; set; } /// @@ -192914,6 +200386,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(20, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="latitude")] + [Key(8)] public string Latitude { get; set; } /// @@ -192922,6 +200395,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(20, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="longitude")] + [Key(9)] public string Longitude { get; set; } // ------------------------------------------------------------- @@ -192944,6 +200418,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StudentEducationOrganizationAssociation", "StudentEducationOrganizationAssociationInternationalAddress")] + [Key(10)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -193080,7 +200555,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.StudentEducationOrganizationAssociationLanguage table of the StudentEducationOrganizationAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentEducationOrganizationAssociationLanguage : Entities.Common.EdFi.IStudentEducationOrganizationAssociationLanguage, IValidatableObject { @@ -193127,6 +200602,7 @@ Entities.Common.EdFi.IStudentEducationOrganizationAssociation IStudentEducationO set { SetStudentEducationOrganizationAssociation(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStudentEducationOrganizationAssociation StudentEducationOrganizationAssociation { set { SetStudentEducationOrganizationAssociation(value); } @@ -193144,7 +200620,15 @@ private void SetStudentEducationOrganizationAssociation(Entities.Common.EdFi.ISt [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="languageDescriptor")][DescriptorExists("LanguageDescriptor")] + [IgnoreMember] public string LanguageDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int LanguageDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("LanguageDescriptor", LanguageDescriptor); } + set { LanguageDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("LanguageDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -193229,6 +200713,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StudentEducationOrganizationAssociation", "StudentEducationOrganizationAssociationLanguage")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -193240,6 +200725,7 @@ public override int GetHashCode() [NoDuplicateMembers] [DataMember(Name="uses")] + [Key(2)] public ICollection StudentEducationOrganizationAssociationLanguageUses { get { return _studentEducationOrganizationAssociationLanguageUses; } @@ -193445,7 +200931,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.StudentEducationOrganizationAssociationLanguageUse table of the StudentEducationOrganizationAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentEducationOrganizationAssociationLanguageUse : Entities.Common.EdFi.IStudentEducationOrganizationAssociationLanguageUse, IValidatableObject { @@ -193488,6 +200974,7 @@ Entities.Common.EdFi.IStudentEducationOrganizationAssociationLanguage IStudentEd set { SetStudentEducationOrganizationAssociationLanguage(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStudentEducationOrganizationAssociationLanguage StudentEducationOrganizationAssociationLanguage { set { SetStudentEducationOrganizationAssociationLanguage(value); } @@ -193505,7 +200992,15 @@ private void SetStudentEducationOrganizationAssociationLanguage(Entities.Common. [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="languageUseDescriptor")][DescriptorExists("LanguageUseDescriptor")] + [IgnoreMember] public string LanguageUseDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int LanguageUseDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("LanguageUseDescriptor", LanguageUseDescriptor); } + set { LanguageUseDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("LanguageUseDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -193590,6 +201085,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StudentEducationOrganizationAssociation", "StudentEducationOrganizationAssociationLanguageUse")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -193726,7 +201222,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.StudentEducationOrganizationAssociationRace table of the StudentEducationOrganizationAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentEducationOrganizationAssociationRace : Entities.Common.EdFi.IStudentEducationOrganizationAssociationRace, IValidatableObject { @@ -193769,6 +201265,7 @@ Entities.Common.EdFi.IStudentEducationOrganizationAssociation IStudentEducationO set { SetStudentEducationOrganizationAssociation(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStudentEducationOrganizationAssociation StudentEducationOrganizationAssociation { set { SetStudentEducationOrganizationAssociation(value); } @@ -193786,7 +201283,15 @@ private void SetStudentEducationOrganizationAssociation(Entities.Common.EdFi.ISt [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="raceDescriptor")][DescriptorExists("RaceDescriptor")] + [IgnoreMember] public string RaceDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int RaceDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("RaceDescriptor", RaceDescriptor); } + set { RaceDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("RaceDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -193871,6 +201376,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StudentEducationOrganizationAssociation", "StudentEducationOrganizationAssociationRace")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -194007,7 +201513,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.StudentEducationOrganizationAssociationStudentCharacteristic table of the StudentEducationOrganizationAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentEducationOrganizationAssociationStudentCharacteristic : Entities.Common.EdFi.IStudentEducationOrganizationAssociationStudentCharacteristic, IValidatableObject { @@ -194054,6 +201560,7 @@ Entities.Common.EdFi.IStudentEducationOrganizationAssociation IStudentEducationO set { SetStudentEducationOrganizationAssociation(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStudentEducationOrganizationAssociation StudentEducationOrganizationAssociation { set { SetStudentEducationOrganizationAssociation(value); } @@ -194071,7 +201578,15 @@ private void SetStudentEducationOrganizationAssociation(Entities.Common.EdFi.ISt [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="studentCharacteristicDescriptor")][DescriptorExists("StudentCharacteristicDescriptor")] + [IgnoreMember] public string StudentCharacteristicDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int StudentCharacteristicDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("StudentCharacteristicDescriptor", StudentCharacteristicDescriptor); } + set { StudentCharacteristicDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("StudentCharacteristicDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -194142,6 +201657,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(60, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="designatedBy")] + [Key(1)] public string DesignatedBy { get; set; } // ------------------------------------------------------------- @@ -194164,6 +201680,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StudentEducationOrganizationAssociation", "StudentEducationOrganizationAssociationStudentCharacteristic")] + [Key(2)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -194175,6 +201692,7 @@ public override int GetHashCode() [NoDuplicateMembers] [DataMember(Name="periods")] + [Key(3)] public ICollection StudentEducationOrganizationAssociationStudentCharacteristicPeriods { get { return _studentEducationOrganizationAssociationStudentCharacteristicPeriods; } @@ -194380,7 +201898,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.StudentEducationOrganizationAssociationStudentCharacteristicPeriod table of the StudentEducationOrganizationAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentEducationOrganizationAssociationStudentCharacteristicPeriod : Entities.Common.EdFi.IStudentEducationOrganizationAssociationStudentCharacteristicPeriod, IValidatableObject { @@ -194423,6 +201941,7 @@ Entities.Common.EdFi.IStudentEducationOrganizationAssociationStudentCharacterist set { SetStudentEducationOrganizationAssociationStudentCharacteristic(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStudentEducationOrganizationAssociationStudentCharacteristic StudentEducationOrganizationAssociationStudentCharacteristic { set { SetStudentEducationOrganizationAssociationStudentCharacteristic(value); } @@ -194439,6 +201958,7 @@ private void SetStudentEducationOrganizationAssociationStudentCharacteristic(Ent // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] [DataMember(Name="beginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(0)] public DateTime BeginDate { get; set; } // ------------------------------------------------------------- @@ -194509,6 +202029,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="endDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(1)] public DateTime? EndDate { get; set; } // ------------------------------------------------------------- @@ -194531,6 +202052,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StudentEducationOrganizationAssociation", "StudentEducationOrganizationAssociationStudentCharacteristicPeriod")] + [Key(2)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -194667,7 +202189,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.StudentEducationOrganizationAssociationStudentIdentificationCode table of the StudentEducationOrganizationAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentEducationOrganizationAssociationStudentIdentificationCode : Entities.Common.EdFi.IStudentEducationOrganizationAssociationStudentIdentificationCode, IValidatableObject { @@ -194710,6 +202232,7 @@ Entities.Common.EdFi.IStudentEducationOrganizationAssociation IStudentEducationO set { SetStudentEducationOrganizationAssociation(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStudentEducationOrganizationAssociation StudentEducationOrganizationAssociation { set { SetStudentEducationOrganizationAssociation(value); } @@ -194727,6 +202250,7 @@ private void SetStudentEducationOrganizationAssociation(Entities.Common.EdFi.ISt [RequiredWithNonDefault] [NonDefaultStringLength(60, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="assigningOrganizationIdentificationCode")] + [Key(0)] public string AssigningOrganizationIdentificationCode { get; set; } /// @@ -194736,7 +202260,15 @@ private void SetStudentEducationOrganizationAssociation(Entities.Common.EdFi.ISt [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="studentIdentificationSystemDescriptor")][DescriptorExists("StudentIdentificationSystemDescriptor")] + [IgnoreMember] public string StudentIdentificationSystemDescriptor { get; set; } + + [Key(1)][JsonIgnore] + public int StudentIdentificationSystemDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("StudentIdentificationSystemDescriptor", StudentIdentificationSystemDescriptor); } + set { StudentIdentificationSystemDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("StudentIdentificationSystemDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -194817,6 +202349,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(60, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="identificationCode")] + [Key(2)] public string IdentificationCode { get; set; } // ------------------------------------------------------------- @@ -194839,6 +202372,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StudentEducationOrganizationAssociation", "StudentEducationOrganizationAssociationStudentIdentificationCode")] + [Key(3)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -194975,7 +202509,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.StudentEducationOrganizationAssociationStudentIndicator table of the StudentEducationOrganizationAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentEducationOrganizationAssociationStudentIndicator : Entities.Common.EdFi.IStudentEducationOrganizationAssociationStudentIndicator, IValidatableObject { @@ -195022,6 +202556,7 @@ Entities.Common.EdFi.IStudentEducationOrganizationAssociation IStudentEducationO set { SetStudentEducationOrganizationAssociation(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStudentEducationOrganizationAssociation StudentEducationOrganizationAssociation { set { SetStudentEducationOrganizationAssociation(value); } @@ -195039,6 +202574,7 @@ private void SetStudentEducationOrganizationAssociation(Entities.Common.EdFi.ISt [RequiredWithNonDefault] [NonDefaultStringLength(200, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="indicatorName")] + [Key(0)] public string IndicatorName { get; set; } // ------------------------------------------------------------- @@ -195110,6 +202646,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(60, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="designatedBy")] + [Key(1)] public string DesignatedBy { get; set; } /// @@ -195119,6 +202656,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(60, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="indicator")] + [Key(2)] public string Indicator { get; set; } /// @@ -195127,6 +202665,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(200, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="indicatorGroup")] + [Key(3)] public string IndicatorGroup { get; set; } // ------------------------------------------------------------- @@ -195149,6 +202688,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StudentEducationOrganizationAssociation", "StudentEducationOrganizationAssociationStudentIndicator")] + [Key(4)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -195160,6 +202700,7 @@ public override int GetHashCode() [NoDuplicateMembers] [DataMember(Name="periods")] + [Key(5)] public ICollection StudentEducationOrganizationAssociationStudentIndicatorPeriods { get { return _studentEducationOrganizationAssociationStudentIndicatorPeriods; } @@ -195365,7 +202906,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.StudentEducationOrganizationAssociationStudentIndicatorPeriod table of the StudentEducationOrganizationAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentEducationOrganizationAssociationStudentIndicatorPeriod : Entities.Common.EdFi.IStudentEducationOrganizationAssociationStudentIndicatorPeriod, IValidatableObject { @@ -195408,6 +202949,7 @@ Entities.Common.EdFi.IStudentEducationOrganizationAssociationStudentIndicator IS set { SetStudentEducationOrganizationAssociationStudentIndicator(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStudentEducationOrganizationAssociationStudentIndicator StudentEducationOrganizationAssociationStudentIndicator { set { SetStudentEducationOrganizationAssociationStudentIndicator(value); } @@ -195424,6 +202966,7 @@ private void SetStudentEducationOrganizationAssociationStudentIndicator(Entities // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] [DataMember(Name="beginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(0)] public DateTime BeginDate { get; set; } // ------------------------------------------------------------- @@ -195494,6 +203037,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="endDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(1)] public DateTime? EndDate { get; set; } // ------------------------------------------------------------- @@ -195516,6 +203060,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StudentEducationOrganizationAssociation", "StudentEducationOrganizationAssociationStudentIndicatorPeriod")] + [Key(2)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -195652,7 +203197,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.StudentEducationOrganizationAssociationTelephone table of the StudentEducationOrganizationAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentEducationOrganizationAssociationTelephone : Entities.Common.EdFi.IStudentEducationOrganizationAssociationTelephone, IValidatableObject { @@ -195695,6 +203240,7 @@ Entities.Common.EdFi.IStudentEducationOrganizationAssociation IStudentEducationO set { SetStudentEducationOrganizationAssociation(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStudentEducationOrganizationAssociation StudentEducationOrganizationAssociation { set { SetStudentEducationOrganizationAssociation(value); } @@ -195712,6 +203258,7 @@ private void SetStudentEducationOrganizationAssociation(Entities.Common.EdFi.ISt [RequiredWithNonDefault] [NonDefaultStringLength(24, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="telephoneNumber")] + [Key(0)] public string TelephoneNumber { get; set; } /// @@ -195721,7 +203268,15 @@ private void SetStudentEducationOrganizationAssociation(Entities.Common.EdFi.ISt [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="telephoneNumberTypeDescriptor")][DescriptorExists("TelephoneNumberTypeDescriptor")] + [IgnoreMember] public string TelephoneNumberTypeDescriptor { get; set; } + + [Key(1)][JsonIgnore] + public int TelephoneNumberTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("TelephoneNumberTypeDescriptor", TelephoneNumberTypeDescriptor); } + set { TelephoneNumberTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("TelephoneNumberTypeDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -195800,6 +203355,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="doNotPublishIndicator")] + [Key(2)] public bool? DoNotPublishIndicator { get; set; } /// @@ -195808,6 +203364,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(1, 2147483647, ErrorMessage=ValidationHelpers.RangeMinOnlyMessageFormat)] [DataMember(Name="orderOfPriority")] + [Key(3)] public int? OrderOfPriority { get; set; } /// @@ -195815,6 +203372,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="textMessageCapabilityIndicator")] + [Key(4)] public bool? TextMessageCapabilityIndicator { get; set; } // ------------------------------------------------------------- @@ -195837,6 +203395,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StudentEducationOrganizationAssociation", "StudentEducationOrganizationAssociationTelephone")] + [Key(5)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -195973,7 +203532,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.StudentEducationOrganizationAssociationTribalAffiliation table of the StudentEducationOrganizationAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentEducationOrganizationAssociationTribalAffiliation : Entities.Common.EdFi.IStudentEducationOrganizationAssociationTribalAffiliation, IValidatableObject { @@ -196016,6 +203575,7 @@ Entities.Common.EdFi.IStudentEducationOrganizationAssociation IStudentEducationO set { SetStudentEducationOrganizationAssociation(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStudentEducationOrganizationAssociation StudentEducationOrganizationAssociation { set { SetStudentEducationOrganizationAssociation(value); } @@ -196033,7 +203593,15 @@ private void SetStudentEducationOrganizationAssociation(Entities.Common.EdFi.ISt [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="tribalAffiliationDescriptor")][DescriptorExists("TribalAffiliationDescriptor")] + [IgnoreMember] public string TribalAffiliationDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int TribalAffiliationDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("TribalAffiliationDescriptor", TribalAffiliationDescriptor); } + set { TribalAffiliationDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("TribalAffiliationDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -196118,6 +203686,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StudentEducationOrganizationAssociation", "StudentEducationOrganizationAssociationTribalAffiliation")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -196259,19 +203828,29 @@ namespace EdFi.Ods.Api.Common.Models.Resources.StudentEducationOrganizationRespo /// /// Represents a reference to the StudentEducationOrganizationResponsibilityAssociation resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentEducationOrganizationResponsibilityAssociationReference : IResourceReference { [DataMember(Name="beginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(0)] public DateTime BeginDate { get; set; } [DataMember(Name="educationOrganizationId")] + [Key(1)] public long EducationOrganizationId { get; set; } [DataMember(Name="responsibilityDescriptor")][DescriptorExists("ResponsibilityDescriptor")] + [IgnoreMember] public string ResponsibilityDescriptor { get; set; } + [Key(2)][JsonIgnore] + public int ResponsibilityDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ResponsibilityDescriptor", ResponsibilityDescriptor); } + set { ResponsibilityDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ResponsibilityDescriptor", value); } + } + [DataMember(Name="studentUniqueId")] public string StudentUniqueId { @@ -196287,17 +203866,22 @@ public string StudentUniqueId /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(3)] 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. /// + [Key(4)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(5)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -196381,7 +203965,7 @@ private Link CreateLink() /// /// A class which represents the edfi.StudentEducationOrganizationResponsibilityAssociation table of the StudentEducationOrganizationResponsibilityAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentEducationOrganizationResponsibilityAssociation : Entities.Common.EdFi.IStudentEducationOrganizationResponsibilityAssociation, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -196410,6 +203994,7 @@ public class StudentEducationOrganizationResponsibilityAssociation : Entities.Co /// The unique identifier for the StudentEducationOrganizationResponsibilityAssociation resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -196433,6 +204018,7 @@ private EducationOrganization.EdFi.EducationOrganizationReference ImplicitEducat } [DataMember(Name="educationOrganizationReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public EducationOrganization.EdFi.EducationOrganizationReference EducationOrganizationReference { @@ -196466,6 +204052,7 @@ private Student.EdFi.StudentReference ImplicitStudentReference } [DataMember(Name="studentReference")] + [Key(2)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Student.EdFi.StudentReference StudentReference { @@ -196496,6 +204083,7 @@ public Student.EdFi.StudentReference StudentReference // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] [DataMember(Name="beginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime BeginDate { get; set; } /// @@ -196530,8 +204118,16 @@ long Entities.Common.EdFi.IStudentEducationOrganizationResponsibilityAssociation [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="responsibilityDescriptor")][DescriptorExists("ResponsibilityDescriptor")] + [IgnoreMember] public string ResponsibilityDescriptor { get; set; } + [Key(4)][JsonIgnore] + public int ResponsibilityDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ResponsibilityDescriptor", ResponsibilityDescriptor); } + set { ResponsibilityDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ResponsibilityDescriptor", value); } + } + /// /// A unique alphanumeric code assigned to a student. /// @@ -196644,6 +204240,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="endDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(5)] public DateTime? EndDate { get; set; } // ------------------------------------------------------------- @@ -196666,6 +204263,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StudentEducationOrganizationResponsibilityAssociation", "StudentEducationOrganizationResponsibilityAssociation")] + [Key(6)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -196679,9 +204277,11 @@ public override int GetHashCode() // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -196841,14 +204441,16 @@ namespace EdFi.Ods.Api.Common.Models.Resources.StudentGradebookEntry.EdFi /// /// Represents a reference to the StudentGradebookEntry resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentGradebookEntryReference : IResourceReference { [DataMember(Name="gradebookEntryIdentifier")] + [Key(0)] public string GradebookEntryIdentifier { get; set; } [DataMember(Name="namespace")] + [Key(1)] public string Namespace { get; set; } [DataMember(Name="studentUniqueId")] @@ -196866,17 +204468,22 @@ public string StudentUniqueId /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(2)] 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. /// + [Key(3)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(4)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -196955,7 +204562,7 @@ private Link CreateLink() /// /// A class which represents the edfi.StudentGradebookEntry table of the StudentGradebookEntry aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentGradebookEntry : Entities.Common.EdFi.IStudentGradebookEntry, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -196984,6 +204591,7 @@ public class StudentGradebookEntry : Entities.Common.EdFi.IStudentGradebookEntry /// The unique identifier for the StudentGradebookEntry resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -197007,6 +204615,7 @@ private GradebookEntry.EdFi.GradebookEntryReference ImplicitGradebookEntryRefere } [DataMember(Name="gradebookEntryReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public GradebookEntry.EdFi.GradebookEntryReference GradebookEntryReference { @@ -197040,6 +204649,7 @@ private Student.EdFi.StudentReference ImplicitStudentReference } [DataMember(Name="studentReference")] + [Key(2)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Student.EdFi.StudentReference StudentReference { @@ -197217,21 +204827,38 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="assignmentLateStatusDescriptor")][DescriptorExists("AssignmentLateStatusDescriptor")] + [IgnoreMember] public string AssignmentLateStatusDescriptor { get; set; } + [Key(3)][JsonIgnore] + public int AssignmentLateStatusDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("AssignmentLateStatusDescriptor", AssignmentLateStatusDescriptor); } + set { AssignmentLateStatusDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("AssignmentLateStatusDescriptor", value); } + } + /// /// The competency level assessed for the student for the referenced learning objective. /// // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="competencyLevelDescriptor")][DescriptorExists("CompetencyLevelDescriptor")] + [IgnoreMember] public string CompetencyLevelDescriptor { get; set; } + [Key(4)][JsonIgnore] + public int CompetencyLevelDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("CompetencyLevelDescriptor", CompetencyLevelDescriptor); } + set { CompetencyLevelDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("CompetencyLevelDescriptor", value); } + } + /// /// The date an assignment was turned in or the date of an assessment. /// // NOT in a reference, NOT a lookup column [DataMember(Name="dateFulfilled")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(5)] public DateTime? DateFulfilled { get; set; } /// @@ -197240,6 +204867,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="diagnosticStatement")] + [Key(6)] public string DiagnosticStatement { get; set; } /// @@ -197248,6 +204876,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(20, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="letterGradeEarned")] + [Key(7)] public string LetterGradeEarned { get; set; } /// @@ -197256,6 +204885,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-9999999.99", "9999999.99", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="numericGradeEarned")] + [Key(8)] public decimal? NumericGradeEarned { get; set; } /// @@ -197264,6 +204894,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-9999999.99", "9999999.99", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="pointsEarned")] + [Key(9)] public decimal? PointsEarned { get; set; } /// @@ -197272,13 +204903,22 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="submissionStatusDescriptor")][DescriptorExists("SubmissionStatusDescriptor")] + [IgnoreMember] public string SubmissionStatusDescriptor { get; set; } + [Key(10)][JsonIgnore] + public int SubmissionStatusDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("SubmissionStatusDescriptor", SubmissionStatusDescriptor); } + set { SubmissionStatusDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("SubmissionStatusDescriptor", value); } + } + /// /// The time an assignment was turned in on the date fulfilled. /// // NOT in a reference, NOT a lookup column [DataMember(Name="timeFulfilled")][JsonConverter(typeof(UtcTimeConverter))] + [Key(11)] public TimeSpan? TimeFulfilled { get; set; } // ------------------------------------------------------------- @@ -197301,6 +204941,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StudentGradebookEntry", "StudentGradebookEntry")] + [Key(12)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -197314,9 +204955,11 @@ public override int GetHashCode() // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(13)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(14)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -197476,11 +205119,12 @@ namespace EdFi.Ods.Api.Common.Models.Resources.StudentHealth.EdFi /// /// Represents a reference to the StudentHealth resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentHealthReference : IResourceReference { [DataMember(Name="educationOrganizationId")] + [Key(0)] public long EducationOrganizationId { get; set; } [DataMember(Name="studentUniqueId")] @@ -197498,17 +205142,22 @@ public string StudentUniqueId /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(1)] 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. /// + [Key(2)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(3)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -197582,7 +205231,7 @@ private Link CreateLink() /// /// A class which represents the edfi.StudentHealth table of the StudentHealth aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentHealth : Entities.Common.EdFi.IStudentHealth, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -197616,6 +205265,7 @@ public StudentHealth() /// The unique identifier for the StudentHealth resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -197639,6 +205289,7 @@ private EducationOrganization.EdFi.EducationOrganizationReference ImplicitEducat } [DataMember(Name="educationOrganizationReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public EducationOrganization.EdFi.EducationOrganizationReference EducationOrganizationReference { @@ -197672,6 +205323,7 @@ private Student.EdFi.StudentReference ImplicitStudentReference } [DataMember(Name="studentReference")] + [Key(2)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Student.EdFi.StudentReference StudentReference { @@ -197816,6 +205468,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] [DataMember(Name="asOfDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime AsOfDate { get; set; } /// @@ -197823,6 +205476,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="nonMedicalImmunizationExemptionDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? NonMedicalImmunizationExemptionDate { get; set; } /// @@ -197831,7 +205485,15 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="nonMedicalImmunizationExemptionDescriptor")][DescriptorExists("NonMedicalImmunizationExemptionDescriptor")] + [IgnoreMember] public string NonMedicalImmunizationExemptionDescriptor { get; set; } + + [Key(5)][JsonIgnore] + public int NonMedicalImmunizationExemptionDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("NonMedicalImmunizationExemptionDescriptor", NonMedicalImmunizationExemptionDescriptor); } + set { NonMedicalImmunizationExemptionDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("NonMedicalImmunizationExemptionDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -197853,6 +205515,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StudentHealth", "StudentHealth")] + [Key(6)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -197864,6 +205527,7 @@ public override int GetHashCode() [NoDuplicateMembers] [DataMember(Name="additionalImmunizations")] + [Key(7)] public ICollection StudentHealthAdditionalImmunizations { get { return _studentHealthAdditionalImmunizations; } @@ -197894,6 +205558,7 @@ public ICollection StudentHealthAdditionalI [NoDuplicateMembers] [DataMember(Name="requiredImmunizations")] + [Key(8)] public ICollection StudentHealthRequiredImmunizations { get { return _studentHealthRequiredImmunizations; } @@ -197926,9 +205591,11 @@ public ICollection StudentHealthRequiredImmun // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(9)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(10)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -198162,7 +205829,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.StudentHealthAdditionalImmunization table of the StudentHealth aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentHealthAdditionalImmunization : Entities.Common.EdFi.IStudentHealthAdditionalImmunization, IValidatableObject { @@ -198209,6 +205876,7 @@ Entities.Common.EdFi.IStudentHealth IStudentHealthAdditionalImmunization.Student set { SetStudentHealth(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStudentHealth StudentHealth { set { SetStudentHealth(value); } @@ -198226,6 +205894,7 @@ private void SetStudentHealth(Entities.Common.EdFi.IStudentHealth value) [RequiredWithNonDefault] [NonDefaultStringLength(100, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="immunizationName")] + [Key(0)] public string ImmunizationName { get; set; } // ------------------------------------------------------------- @@ -198311,6 +205980,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StudentHealth", "StudentHealthAdditionalImmunization")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -198322,6 +205992,7 @@ public override int GetHashCode() [NoDuplicateMembers] [DataMember(Name="dates")] + [Key(2)] public ICollection StudentHealthAdditionalImmunizationDates { get { return _studentHealthAdditionalImmunizationDates; } @@ -198527,7 +206198,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.StudentHealthAdditionalImmunizationDate table of the StudentHealth aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentHealthAdditionalImmunizationDate : Entities.Common.EdFi.IStudentHealthAdditionalImmunizationDate, IValidatableObject { @@ -198570,6 +206241,7 @@ Entities.Common.EdFi.IStudentHealthAdditionalImmunization IStudentHealthAddition set { SetStudentHealthAdditionalImmunization(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStudentHealthAdditionalImmunization StudentHealthAdditionalImmunization { set { SetStudentHealthAdditionalImmunization(value); } @@ -198586,6 +206258,7 @@ private void SetStudentHealthAdditionalImmunization(Entities.Common.EdFi.IStuden // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] [DataMember(Name="immunizationDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(0)] public DateTime ImmunizationDate { get; set; } // ------------------------------------------------------------- @@ -198671,6 +206344,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StudentHealth", "StudentHealthAdditionalImmunizationDate")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -198807,7 +206481,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.StudentHealthRequiredImmunization table of the StudentHealth aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentHealthRequiredImmunization : Entities.Common.EdFi.IStudentHealthRequiredImmunization, IValidatableObject { @@ -198854,6 +206528,7 @@ Entities.Common.EdFi.IStudentHealth IStudentHealthRequiredImmunization.StudentHe set { SetStudentHealth(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStudentHealth StudentHealth { set { SetStudentHealth(value); } @@ -198871,7 +206546,15 @@ private void SetStudentHealth(Entities.Common.EdFi.IStudentHealth value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="immunizationTypeDescriptor")][DescriptorExists("ImmunizationTypeDescriptor")] + [IgnoreMember] public string ImmunizationTypeDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int ImmunizationTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ImmunizationTypeDescriptor", ImmunizationTypeDescriptor); } + set { ImmunizationTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ImmunizationTypeDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -198942,6 +206625,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="medicalExemption")] + [Key(1)] public string MedicalExemption { get; set; } /// @@ -198949,6 +206633,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="medicalExemptionDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(2)] public DateTime? MedicalExemptionDate { get; set; } // ------------------------------------------------------------- @@ -198971,6 +206656,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StudentHealth", "StudentHealthRequiredImmunization")] + [Key(3)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -198982,6 +206668,7 @@ public override int GetHashCode() [NoDuplicateMembers] [DataMember(Name="dates")] + [Key(4)] public ICollection StudentHealthRequiredImmunizationDates { get { return _studentHealthRequiredImmunizationDates; } @@ -199187,7 +206874,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.StudentHealthRequiredImmunizationDate table of the StudentHealth aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentHealthRequiredImmunizationDate : Entities.Common.EdFi.IStudentHealthRequiredImmunizationDate, IValidatableObject { @@ -199230,6 +206917,7 @@ Entities.Common.EdFi.IStudentHealthRequiredImmunization IStudentHealthRequiredIm set { SetStudentHealthRequiredImmunization(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStudentHealthRequiredImmunization StudentHealthRequiredImmunization { set { SetStudentHealthRequiredImmunization(value); } @@ -199246,6 +206934,7 @@ private void SetStudentHealthRequiredImmunization(Entities.Common.EdFi.IStudentH // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] [DataMember(Name="immunizationDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(0)] public DateTime ImmunizationDate { get; set; } // ------------------------------------------------------------- @@ -199331,6 +207020,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StudentHealth", "StudentHealthRequiredImmunizationDate")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -199472,25 +207162,37 @@ namespace EdFi.Ods.Api.Common.Models.Resources.StudentHomelessProgramAssociation /// /// Represents a reference to the StudentHomelessProgramAssociation resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentHomelessProgramAssociationReference : IResourceReference { [DataMember(Name="beginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(0)] public DateTime BeginDate { get; set; } [DataMember(Name="educationOrganizationId")] + [Key(1)] public long EducationOrganizationId { get; set; } [DataMember(Name="programEducationOrganizationId")] + [Key(2)] public long ProgramEducationOrganizationId { get; set; } [DataMember(Name="programName")] + [Key(3)] public string ProgramName { get; set; } [DataMember(Name="programTypeDescriptor")][DescriptorExists("ProgramTypeDescriptor")] + [IgnoreMember] public string ProgramTypeDescriptor { get; set; } + [Key(4)][JsonIgnore] + public int ProgramTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ProgramTypeDescriptor", ProgramTypeDescriptor); } + set { ProgramTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ProgramTypeDescriptor", value); } + } + [DataMember(Name="studentUniqueId")] public string StudentUniqueId { @@ -199506,11 +207208,15 @@ public string StudentUniqueId /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(5)] public Guid ResourceId { get; set; } - private Link _link; + [JsonIgnore] + [Key(6)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -199585,7 +207291,7 @@ private Link CreateLink() /// /// A class which represents the edfi.StudentHomelessProgramAssociation table of the StudentHomelessProgramAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentHomelessProgramAssociation : Entities.Common.EdFi.IStudentHomelessProgramAssociation, Entities.Common.EdFi.IGeneralStudentProgramAssociation, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -199621,6 +207327,7 @@ public StudentHomelessProgramAssociation() /// The unique identifier for the StudentHomelessProgramAssociation resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -199644,6 +207351,7 @@ private EducationOrganization.EdFi.EducationOrganizationReference ImplicitEducat } [DataMember(Name="educationOrganizationReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public EducationOrganization.EdFi.EducationOrganizationReference EducationOrganizationReference { @@ -199677,6 +207385,7 @@ private Program.EdFi.ProgramReference ImplicitProgramReference } [DataMember(Name="programReference")] + [Key(2)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Program.EdFi.ProgramReference ProgramReference { @@ -199710,6 +207419,7 @@ private Student.EdFi.StudentReference ImplicitStudentReference } [DataMember(Name="studentReference")] + [Key(3)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Student.EdFi.StudentReference StudentReference { @@ -199740,6 +207450,7 @@ public Student.EdFi.StudentReference StudentReference // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] [DataMember(Name="beginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime BeginDate { get; set; } /// @@ -199961,6 +207672,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="endDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(5)] public DateTime? EndDate { get; set; } /// @@ -199969,13 +207681,22 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="reasonExitedDescriptor")][DescriptorExists("ReasonExitedDescriptor")] + [IgnoreMember] public string ReasonExitedDescriptor { get; set; } + [Key(6)][JsonIgnore] + public int ReasonExitedDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ReasonExitedDescriptor", ReasonExitedDescriptor); } + set { ReasonExitedDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ReasonExitedDescriptor", value); } + } + /// /// Indicates whether the student received services during the summer session or between sessions. /// // NOT in a reference, NOT a lookup column [DataMember(Name="servedOutsideOfRegularSession")] + [Key(7)] public bool? ServedOutsideOfRegularSession { get; set; } // ------------------------------------------------------------- @@ -199988,6 +207709,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="awaitingFosterCare")] + [Key(8)] public bool? AwaitingFosterCare { get; set; } /// @@ -199996,13 +207718,22 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="homelessPrimaryNighttimeResidenceDescriptor")][DescriptorExists("HomelessPrimaryNighttimeResidenceDescriptor")] + [IgnoreMember] public string HomelessPrimaryNighttimeResidenceDescriptor { get; set; } + [Key(9)][JsonIgnore] + public int HomelessPrimaryNighttimeResidenceDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("HomelessPrimaryNighttimeResidenceDescriptor", HomelessPrimaryNighttimeResidenceDescriptor); } + set { HomelessPrimaryNighttimeResidenceDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("HomelessPrimaryNighttimeResidenceDescriptor", value); } + } + /// /// A homeless unaccompanied youth is a youth who is not in the physical custody of a parent or guardian and who fits the McKinney-Vento definition of homeless. Students must be both unaccompanied and homeless to be included as an unaccompanied homeless youth. /// // NOT in a reference, NOT a lookup column [DataMember(Name="homelessUnaccompaniedYouth")] + [Key(10)] public bool? HomelessUnaccompaniedYouth { get; set; } // ------------------------------------------------------------- @@ -200024,6 +207755,7 @@ public override int GetHashCode() [NoDuplicateMembers] [DataMember(Name="programParticipationStatuses")] + [Key(11)] public ICollection GeneralStudentProgramAssociationProgramParticipationStatuses { get { return _generalStudentProgramAssociationProgramParticipationStatuses; } @@ -200046,6 +207778,7 @@ public ICollection StudentHomelessProgramAssociationHomelessProgramServices { get { return _studentHomelessProgramAssociationHomelessProgramServices; } @@ -200089,9 +207823,11 @@ public ICollection Stud // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(14)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(15)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -200339,7 +208075,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.StudentHomelessProgramAssociationHomelessProgramService table of the StudentHomelessProgramAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentHomelessProgramAssociationHomelessProgramService : Entities.Common.EdFi.IStudentHomelessProgramAssociationHomelessProgramService, IValidatableObject { @@ -200382,6 +208118,7 @@ Entities.Common.EdFi.IStudentHomelessProgramAssociation IStudentHomelessProgramA set { SetStudentHomelessProgramAssociation(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStudentHomelessProgramAssociation StudentHomelessProgramAssociation { set { SetStudentHomelessProgramAssociation(value); } @@ -200399,7 +208136,15 @@ private void SetStudentHomelessProgramAssociation(Entities.Common.EdFi.IStudentH [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="homelessProgramServiceDescriptor")][DescriptorExists("HomelessProgramServiceDescriptor")] + [IgnoreMember] public string HomelessProgramServiceDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int HomelessProgramServiceDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("HomelessProgramServiceDescriptor", HomelessProgramServiceDescriptor); } + set { HomelessProgramServiceDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("HomelessProgramServiceDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -200469,6 +208214,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="primaryIndicator")] + [Key(1)] public bool? PrimaryIndicator { get; set; } /// @@ -200476,6 +208222,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="serviceBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(2)] public DateTime? ServiceBeginDate { get; set; } /// @@ -200483,6 +208230,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="serviceEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? ServiceEndDate { get; set; } // ------------------------------------------------------------- @@ -200505,6 +208253,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StudentHomelessProgramAssociation", "StudentHomelessProgramAssociationHomelessProgramService")] + [Key(4)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -200646,7 +208395,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.StudentIdentificationSystemDescri /// /// A class which represents the edfi.StudentIdentificationSystemDescriptor table of the StudentIdentificationSystemDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentIdentificationSystemDescriptor : Entities.Common.EdFi.IStudentIdentificationSystemDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -200675,6 +208424,7 @@ public class StudentIdentificationSystemDescriptor : Entities.Common.EdFi.IStude /// The unique identifier for the StudentIdentificationSystemDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -200759,6 +208509,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -200767,6 +208518,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -200774,6 +208526,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -200781,6 +208534,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -200790,6 +208544,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -200799,6 +208554,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -200842,9 +208598,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -200917,14 +208675,16 @@ namespace EdFi.Ods.Api.Common.Models.Resources.StudentInterventionAssociation.Ed /// /// Represents a reference to the StudentInterventionAssociation resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentInterventionAssociationReference : IResourceReference { [DataMember(Name="educationOrganizationId")] + [Key(0)] public long EducationOrganizationId { get; set; } [DataMember(Name="interventionIdentificationCode")] + [Key(1)] public string InterventionIdentificationCode { get; set; } [DataMember(Name="studentUniqueId")] @@ -200942,17 +208702,22 @@ public string StudentUniqueId /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(2)] 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. /// + [Key(3)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(4)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -201031,7 +208796,7 @@ private Link CreateLink() /// /// A class which represents the edfi.StudentInterventionAssociation table of the StudentInterventionAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentInterventionAssociation : Entities.Common.EdFi.IStudentInterventionAssociation, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -201064,6 +208829,7 @@ public StudentInterventionAssociation() /// The unique identifier for the StudentInterventionAssociation resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -201087,6 +208853,7 @@ private Cohort.EdFi.CohortReference ImplicitCohortReference } [DataMember(Name="cohortReference")] + [Key(1)] [FullyDefinedReference] public Cohort.EdFi.CohortReference CohortReference { @@ -201120,6 +208887,7 @@ private Intervention.EdFi.InterventionReference ImplicitInterventionReference } [DataMember(Name="interventionReference")] + [Key(2)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Intervention.EdFi.InterventionReference InterventionReference { @@ -201153,6 +208921,7 @@ private Student.EdFi.StudentReference ImplicitStudentReference } [DataMember(Name="studentReference")] + [Key(3)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Student.EdFi.StudentReference StudentReference { @@ -201384,6 +209153,7 @@ string Entities.Common.EdFi.IStudentInterventionAssociation.CohortIdentifier // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="diagnosticStatement")] + [Key(4)] public string DiagnosticStatement { get; set; } /// @@ -201391,6 +209161,7 @@ string Entities.Common.EdFi.IStudentInterventionAssociation.CohortIdentifier /// // NOT in a reference, NOT a lookup column [DataMember(Name="dosage")] + [Key(5)] public int? Dosage { get; set; } // ------------------------------------------------------------- @@ -201413,6 +209184,7 @@ string Entities.Common.EdFi.IStudentInterventionAssociation.CohortIdentifier // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StudentInterventionAssociation", "StudentInterventionAssociation")] + [Key(6)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -201424,6 +209196,7 @@ string Entities.Common.EdFi.IStudentInterventionAssociation.CohortIdentifier [NoDuplicateMembers] [DataMember(Name="interventionEffectivenesses")] + [Key(7)] public ICollection StudentInterventionAssociationInterventionEffectivenesses { get { return _studentInterventionAssociationInterventionEffectivenesses; } @@ -201456,9 +209229,11 @@ public ICollection Stud // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(8)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(9)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -201677,7 +209452,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.StudentInterventionAssociationInterventionEffectiveness table of the StudentInterventionAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentInterventionAssociationInterventionEffectiveness : Entities.Common.EdFi.IStudentInterventionAssociationInterventionEffectiveness, IValidatableObject { @@ -201720,6 +209495,7 @@ Entities.Common.EdFi.IStudentInterventionAssociation IStudentInterventionAssocia set { SetStudentInterventionAssociation(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStudentInterventionAssociation StudentInterventionAssociation { set { SetStudentInterventionAssociation(value); } @@ -201737,8 +209513,16 @@ private void SetStudentInterventionAssociation(Entities.Common.EdFi.IStudentInte [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="diagnosisDescriptor")][DescriptorExists("DiagnosisDescriptor")] + [IgnoreMember] public string DiagnosisDescriptor { get; set; } + [Key(0)][JsonIgnore] + public int DiagnosisDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("DiagnosisDescriptor", DiagnosisDescriptor); } + set { DiagnosisDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("DiagnosisDescriptor", value); } + } + /// /// Grade level for which effectiveness is measured. /// @@ -201746,8 +209530,16 @@ private void SetStudentInterventionAssociation(Entities.Common.EdFi.IStudentInte [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="gradeLevelDescriptor")][DescriptorExists("GradeLevelDescriptor")] + [IgnoreMember] public string GradeLevelDescriptor { get; set; } + [Key(1)][JsonIgnore] + public int GradeLevelDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("GradeLevelDescriptor", GradeLevelDescriptor); } + set { GradeLevelDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("GradeLevelDescriptor", value); } + } + /// /// Population for which effectiveness is measured. /// @@ -201755,7 +209547,15 @@ private void SetStudentInterventionAssociation(Entities.Common.EdFi.IStudentInte [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="populationServedDescriptor")][DescriptorExists("PopulationServedDescriptor")] + [IgnoreMember] public string PopulationServedDescriptor { get; set; } + + [Key(2)][JsonIgnore] + public int PopulationServedDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("PopulationServedDescriptor", PopulationServedDescriptor); } + set { PopulationServedDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("PopulationServedDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -201843,6 +209643,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="improvementIndex")] + [Key(3)] public int? ImprovementIndex { get; set; } /// @@ -201852,7 +209653,15 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="interventionEffectivenessRatingDescriptor")][DescriptorExists("InterventionEffectivenessRatingDescriptor")] + [IgnoreMember] public string InterventionEffectivenessRatingDescriptor { get; set; } + + [Key(4)][JsonIgnore] + public int InterventionEffectivenessRatingDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("InterventionEffectivenessRatingDescriptor", InterventionEffectivenessRatingDescriptor); } + set { InterventionEffectivenessRatingDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("InterventionEffectivenessRatingDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -201874,6 +209683,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StudentInterventionAssociation", "StudentInterventionAssociationInterventionEffectiveness")] + [Key(5)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -202015,20 +209825,31 @@ namespace EdFi.Ods.Api.Common.Models.Resources.StudentInterventionAttendanceEven /// /// Represents a reference to the StudentInterventionAttendanceEvent resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentInterventionAttendanceEventReference : IResourceReference { [DataMember(Name="attendanceEventCategoryDescriptor")][DescriptorExists("AttendanceEventCategoryDescriptor")] + [IgnoreMember] public string AttendanceEventCategoryDescriptor { get; set; } + [Key(0)][JsonIgnore] + public int AttendanceEventCategoryDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("AttendanceEventCategoryDescriptor", AttendanceEventCategoryDescriptor); } + set { AttendanceEventCategoryDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("AttendanceEventCategoryDescriptor", value); } + } + [DataMember(Name="educationOrganizationId")] + [Key(1)] public long EducationOrganizationId { get; set; } [DataMember(Name="eventDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(2)] public DateTime EventDate { get; set; } [DataMember(Name="interventionIdentificationCode")] + [Key(3)] public string InterventionIdentificationCode { get; set; } [DataMember(Name="studentUniqueId")] @@ -202046,17 +209867,22 @@ public string StudentUniqueId /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(4)] 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. /// + [Key(5)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(6)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -202145,7 +209971,7 @@ private Link CreateLink() /// /// A class which represents the edfi.StudentInterventionAttendanceEvent table of the StudentInterventionAttendanceEvent aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentInterventionAttendanceEvent : Entities.Common.EdFi.IStudentInterventionAttendanceEvent, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -202174,6 +210000,7 @@ public class StudentInterventionAttendanceEvent : Entities.Common.EdFi.IStudentI /// The unique identifier for the StudentInterventionAttendanceEvent resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -202197,6 +210024,7 @@ private Intervention.EdFi.InterventionReference ImplicitInterventionReference } [DataMember(Name="interventionReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Intervention.EdFi.InterventionReference InterventionReference { @@ -202230,6 +210058,7 @@ private Student.EdFi.StudentReference ImplicitStudentReference } [DataMember(Name="studentReference")] + [Key(2)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Student.EdFi.StudentReference StudentReference { @@ -202261,8 +210090,16 @@ public Student.EdFi.StudentReference StudentReference [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="attendanceEventCategoryDescriptor")][DescriptorExists("AttendanceEventCategoryDescriptor")] + [IgnoreMember] public string AttendanceEventCategoryDescriptor { get; set; } + [Key(3)][JsonIgnore] + public int AttendanceEventCategoryDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("AttendanceEventCategoryDescriptor", AttendanceEventCategoryDescriptor); } + set { AttendanceEventCategoryDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("AttendanceEventCategoryDescriptor", value); } + } + /// /// The identifier assigned to an education organization. /// @@ -202294,6 +210131,7 @@ long Entities.Common.EdFi.IStudentInterventionAttendanceEvent.EducationOrganizat // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] [DataMember(Name="eventDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime EventDate { get; set; } /// @@ -202442,6 +210280,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="attendanceEventReason")] + [Key(5)] public string AttendanceEventReason { get; set; } /// @@ -202450,14 +210289,23 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="educationalEnvironmentDescriptor")][DescriptorExists("EducationalEnvironmentDescriptor")] + [IgnoreMember] public string EducationalEnvironmentDescriptor { get; set; } + [Key(6)][JsonIgnore] + public int EducationalEnvironmentDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("EducationalEnvironmentDescriptor", EducationalEnvironmentDescriptor); } + set { EducationalEnvironmentDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("EducationalEnvironmentDescriptor", value); } + } + /// /// The amount of time in days for the event as recognized by the school: 1 day = 1, 1/2 day = 0.5, 1/3 day = 0.33. /// // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "0", "1", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="eventDuration")] + [Key(7)] public decimal? EventDuration { get; set; } /// @@ -202466,6 +210314,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(0, 1440, ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="interventionDuration")] + [Key(8)] public int? InterventionDuration { get; set; } // ------------------------------------------------------------- @@ -202488,6 +210337,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StudentInterventionAttendanceEvent", "StudentInterventionAttendanceEvent")] + [Key(9)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -202501,9 +210351,11 @@ public override int GetHashCode() // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(10)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(11)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -202663,25 +210515,37 @@ namespace EdFi.Ods.Api.Common.Models.Resources.StudentLanguageInstructionProgram /// /// Represents a reference to the StudentLanguageInstructionProgramAssociation resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentLanguageInstructionProgramAssociationReference : IResourceReference { [DataMember(Name="beginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(0)] public DateTime BeginDate { get; set; } [DataMember(Name="educationOrganizationId")] + [Key(1)] public long EducationOrganizationId { get; set; } [DataMember(Name="programEducationOrganizationId")] + [Key(2)] public long ProgramEducationOrganizationId { get; set; } [DataMember(Name="programName")] + [Key(3)] public string ProgramName { get; set; } [DataMember(Name="programTypeDescriptor")][DescriptorExists("ProgramTypeDescriptor")] + [IgnoreMember] public string ProgramTypeDescriptor { get; set; } + [Key(4)][JsonIgnore] + public int ProgramTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ProgramTypeDescriptor", ProgramTypeDescriptor); } + set { ProgramTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ProgramTypeDescriptor", value); } + } + [DataMember(Name="studentUniqueId")] public string StudentUniqueId { @@ -202697,11 +210561,15 @@ public string StudentUniqueId /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(5)] public Guid ResourceId { get; set; } - private Link _link; + [JsonIgnore] + [Key(6)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -202776,7 +210644,7 @@ private Link CreateLink() /// /// A class which represents the edfi.StudentLanguageInstructionProgramAssociation table of the StudentLanguageInstructionProgramAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentLanguageInstructionProgramAssociation : Entities.Common.EdFi.IStudentLanguageInstructionProgramAssociation, Entities.Common.EdFi.IGeneralStudentProgramAssociation, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -202813,6 +210681,7 @@ public StudentLanguageInstructionProgramAssociation() /// The unique identifier for the StudentLanguageInstructionProgramAssociation resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -202836,6 +210705,7 @@ private EducationOrganization.EdFi.EducationOrganizationReference ImplicitEducat } [DataMember(Name="educationOrganizationReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public EducationOrganization.EdFi.EducationOrganizationReference EducationOrganizationReference { @@ -202869,6 +210739,7 @@ private Program.EdFi.ProgramReference ImplicitProgramReference } [DataMember(Name="programReference")] + [Key(2)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Program.EdFi.ProgramReference ProgramReference { @@ -202902,6 +210773,7 @@ private Student.EdFi.StudentReference ImplicitStudentReference } [DataMember(Name="studentReference")] + [Key(3)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Student.EdFi.StudentReference StudentReference { @@ -202932,6 +210804,7 @@ public Student.EdFi.StudentReference StudentReference // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] [DataMember(Name="beginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime BeginDate { get; set; } /// @@ -203153,6 +211026,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="endDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(5)] public DateTime? EndDate { get; set; } /// @@ -203161,13 +211035,22 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="reasonExitedDescriptor")][DescriptorExists("ReasonExitedDescriptor")] + [IgnoreMember] public string ReasonExitedDescriptor { get; set; } + [Key(6)][JsonIgnore] + public int ReasonExitedDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ReasonExitedDescriptor", ReasonExitedDescriptor); } + set { ReasonExitedDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ReasonExitedDescriptor", value); } + } + /// /// Indicates whether the student received services during the summer session or between sessions. /// // NOT in a reference, NOT a lookup column [DataMember(Name="servedOutsideOfRegularSession")] + [Key(7)] public bool? ServedOutsideOfRegularSession { get; set; } // ------------------------------------------------------------- @@ -203180,6 +211063,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="dosage")] + [Key(8)] public int? Dosage { get; set; } /// @@ -203187,6 +211071,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="englishLearnerParticipation")] + [Key(9)] public bool? EnglishLearnerParticipation { get; set; } // ------------------------------------------------------------- @@ -203208,6 +211093,7 @@ public override int GetHashCode() [NoDuplicateMembers] [DataMember(Name="programParticipationStatuses")] + [Key(10)] public ICollection GeneralStudentProgramAssociationProgramParticipationStatuses { get { return _generalStudentProgramAssociationProgramParticipationStatuses; } @@ -203230,6 +211116,7 @@ public ICollection StudentLanguageInstructionProgramAssociationEnglishLanguageProficiencyAssessments { get { return _studentLanguageInstructionProgramAssociationEnglishLanguageProficiencyAssessments; } @@ -203271,6 +211159,7 @@ public ICollection StudentLanguageInstructionProgramAssociationLanguageInstructionProgramServices { get { return _studentLanguageInstructionProgramAssociationLanguageInstructionProgramServices; } @@ -203303,9 +211192,11 @@ public ICollection /// A class which represents the edfi.StudentLanguageInstructionProgramAssociationEnglishLanguageProficiencyAssessment table of the StudentLanguageInstructionProgramAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentLanguageInstructionProgramAssociationEnglishLanguageProficiencyAssessment : Entities.Common.EdFi.IStudentLanguageInstructionProgramAssociationEnglishLanguageProficiencyAssessment, IValidatableObject { @@ -203627,6 +211518,7 @@ private SchoolYearType.EdFi.SchoolYearTypeReference ImplicitSchoolYearTypeRefere } [DataMember(Name="schoolYearTypeReference")] + [Key(0)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public SchoolYearType.EdFi.SchoolYearTypeReference SchoolYearTypeReference { @@ -203659,6 +211551,7 @@ Entities.Common.EdFi.IStudentLanguageInstructionProgramAssociation IStudentLangu set { SetStudentLanguageInstructionProgramAssociation(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStudentLanguageInstructionProgramAssociation StudentLanguageInstructionProgramAssociation { set { SetStudentLanguageInstructionProgramAssociation(value); } @@ -203762,31 +211655,63 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="monitoredDescriptor")][DescriptorExists("MonitoredDescriptor")] + [IgnoreMember] public string MonitoredDescriptor { get; set; } + [Key(1)][JsonIgnore] + public int MonitoredDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("MonitoredDescriptor", MonitoredDescriptor); } + set { MonitoredDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("MonitoredDescriptor", value); } + } + /// /// Field indicating the participation in the yearly English language assessment. /// // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="participationDescriptor")][DescriptorExists("ParticipationDescriptor")] + [IgnoreMember] public string ParticipationDescriptor { get; set; } + [Key(2)][JsonIgnore] + public int ParticipationDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ParticipationDescriptor", ParticipationDescriptor); } + set { ParticipationDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ParticipationDescriptor", value); } + } + /// /// The proficiency level for the yearly English language assessment. /// // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="proficiencyDescriptor")][DescriptorExists("ProficiencyDescriptor")] + [IgnoreMember] public string ProficiencyDescriptor { get; set; } + [Key(3)][JsonIgnore] + public int ProficiencyDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ProficiencyDescriptor", ProficiencyDescriptor); } + set { ProficiencyDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ProficiencyDescriptor", value); } + } + /// /// The yearly progress or growth from last year's assessment. /// // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="progressDescriptor")][DescriptorExists("ProgressDescriptor")] + [IgnoreMember] public string ProgressDescriptor { get; set; } + + [Key(4)][JsonIgnore] + public int ProgressDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ProgressDescriptor", ProgressDescriptor); } + set { ProgressDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ProgressDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -203808,6 +211733,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StudentLanguageInstructionProgramAssociation", "StudentLanguageInstructionProgramAssociationEnglishLanguageProficiencyAssessment")] + [Key(5)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -203951,7 +211877,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.StudentLanguageInstructionProgramAssociationLanguageInstructionProgramService table of the StudentLanguageInstructionProgramAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentLanguageInstructionProgramAssociationLanguageInstructionProgramService : Entities.Common.EdFi.IStudentLanguageInstructionProgramAssociationLanguageInstructionProgramService, IValidatableObject { @@ -203994,6 +211920,7 @@ Entities.Common.EdFi.IStudentLanguageInstructionProgramAssociation IStudentLangu set { SetStudentLanguageInstructionProgramAssociation(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStudentLanguageInstructionProgramAssociation StudentLanguageInstructionProgramAssociation { set { SetStudentLanguageInstructionProgramAssociation(value); } @@ -204011,7 +211938,15 @@ private void SetStudentLanguageInstructionProgramAssociation(Entities.Common.EdF [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="languageInstructionProgramServiceDescriptor")][DescriptorExists("LanguageInstructionProgramServiceDescriptor")] + [IgnoreMember] public string LanguageInstructionProgramServiceDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int LanguageInstructionProgramServiceDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("LanguageInstructionProgramServiceDescriptor", LanguageInstructionProgramServiceDescriptor); } + set { LanguageInstructionProgramServiceDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("LanguageInstructionProgramServiceDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -204081,6 +212016,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="primaryIndicator")] + [Key(1)] public bool? PrimaryIndicator { get; set; } /// @@ -204088,6 +212024,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="serviceBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(2)] public DateTime? ServiceBeginDate { get; set; } /// @@ -204095,6 +212032,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="serviceEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? ServiceEndDate { get; set; } // ------------------------------------------------------------- @@ -204117,6 +212055,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StudentLanguageInstructionProgramAssociation", "StudentLanguageInstructionProgramAssociationLanguageInstructionProgramService")] + [Key(4)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -204258,25 +212197,37 @@ namespace EdFi.Ods.Api.Common.Models.Resources.StudentMigrantEducationProgramAss /// /// Represents a reference to the StudentMigrantEducationProgramAssociation resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentMigrantEducationProgramAssociationReference : IResourceReference { [DataMember(Name="beginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(0)] public DateTime BeginDate { get; set; } [DataMember(Name="educationOrganizationId")] + [Key(1)] public long EducationOrganizationId { get; set; } [DataMember(Name="programEducationOrganizationId")] + [Key(2)] public long ProgramEducationOrganizationId { get; set; } [DataMember(Name="programName")] + [Key(3)] public string ProgramName { get; set; } [DataMember(Name="programTypeDescriptor")][DescriptorExists("ProgramTypeDescriptor")] + [IgnoreMember] public string ProgramTypeDescriptor { get; set; } + [Key(4)][JsonIgnore] + public int ProgramTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ProgramTypeDescriptor", ProgramTypeDescriptor); } + set { ProgramTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ProgramTypeDescriptor", value); } + } + [DataMember(Name="studentUniqueId")] public string StudentUniqueId { @@ -204292,11 +212243,15 @@ public string StudentUniqueId /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(5)] public Guid ResourceId { get; set; } - private Link _link; + [JsonIgnore] + [Key(6)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -204371,7 +212326,7 @@ private Link CreateLink() /// /// A class which represents the edfi.StudentMigrantEducationProgramAssociation table of the StudentMigrantEducationProgramAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] [NoUnsuppliedRequiredMembersWithMeaningfulDefaults] public class StudentMigrantEducationProgramAssociation : Entities.Common.EdFi.IStudentMigrantEducationProgramAssociation, Entities.Common.EdFi.IGeneralStudentProgramAssociation, IHasETag, IDateVersionedEntity, IHasRequiredMembersWithMeaningfulDefaultValues, IValidatableObject @@ -204408,6 +212363,7 @@ public StudentMigrantEducationProgramAssociation() /// The unique identifier for the StudentMigrantEducationProgramAssociation resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -204431,6 +212387,7 @@ private EducationOrganization.EdFi.EducationOrganizationReference ImplicitEducat } [DataMember(Name="educationOrganizationReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public EducationOrganization.EdFi.EducationOrganizationReference EducationOrganizationReference { @@ -204464,6 +212421,7 @@ private Program.EdFi.ProgramReference ImplicitProgramReference } [DataMember(Name="programReference")] + [Key(2)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Program.EdFi.ProgramReference ProgramReference { @@ -204497,6 +212455,7 @@ private Student.EdFi.StudentReference ImplicitStudentReference } [DataMember(Name="studentReference")] + [Key(3)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Student.EdFi.StudentReference StudentReference { @@ -204527,6 +212486,7 @@ public Student.EdFi.StudentReference StudentReference // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] [DataMember(Name="beginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime BeginDate { get; set; } /// @@ -204748,6 +212708,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="endDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(5)] public DateTime? EndDate { get; set; } /// @@ -204756,13 +212717,22 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="reasonExitedDescriptor")][DescriptorExists("ReasonExitedDescriptor")] + [IgnoreMember] public string ReasonExitedDescriptor { get; set; } + [Key(6)][JsonIgnore] + public int ReasonExitedDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ReasonExitedDescriptor", ReasonExitedDescriptor); } + set { ReasonExitedDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ReasonExitedDescriptor", value); } + } + /// /// Indicates whether the student received services during the summer session or between sessions. /// // NOT in a reference, NOT a lookup column [DataMember(Name="servedOutsideOfRegularSession")] + [Key(7)] public bool? ServedOutsideOfRegularSession { get; set; } // ------------------------------------------------------------- @@ -204776,13 +212746,22 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="continuationOfServicesReasonDescriptor")][DescriptorExists("ContinuationOfServicesReasonDescriptor")] + [IgnoreMember] public string ContinuationOfServicesReasonDescriptor { get; set; } + [Key(8)][JsonIgnore] + public int ContinuationOfServicesReasonDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ContinuationOfServicesReasonDescriptor", ContinuationOfServicesReasonDescriptor); } + set { ContinuationOfServicesReasonDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ContinuationOfServicesReasonDescriptor", value); } + } + /// /// The eligibility expiration date is used to determine end of eligibility and to account for a child's eligibility expiring earlier than 36 months from the child's QAD. A child's eligibility would end earlier than 36 months from the child's QAD, if the child is no longer entitled to a free public education (e.g., graduated with a high school diploma, obtained a high school equivalency diploma (HSED), or for other reasons as determined by states' requirements), or if the child passes away. /// // NOT in a reference, NOT a lookup column [DataMember(Name="eligibilityExpirationDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(9)] public DateTime? EligibilityExpirationDate { get; set; } /// @@ -204791,6 +212770,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] [DataMember(Name="lastQualifyingMove")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(10)] public DateTime LastQualifyingMove { get; set; } private bool _priorityForServicesExplicitlyAssigned = false; @@ -204801,6 +212781,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="priorityForServices")] + [Key(11)] public bool PriorityForServices { get => _priorityForServices; @@ -204817,6 +212798,7 @@ public bool PriorityForServices /// // NOT in a reference, NOT a lookup column [DataMember(Name="qualifyingArrivalDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(12)] public DateTime? QualifyingArrivalDate { get; set; } /// @@ -204824,6 +212806,7 @@ public bool PriorityForServices /// // NOT in a reference, NOT a lookup column [DataMember(Name="stateResidencyDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(13)] public DateTime? StateResidencyDate { get; set; } /// @@ -204831,6 +212814,7 @@ public bool PriorityForServices /// // NOT in a reference, NOT a lookup column [DataMember(Name="usInitialEntry")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(14)] public DateTime? USInitialEntry { get; set; } /// @@ -204838,6 +212822,7 @@ public bool PriorityForServices /// // NOT in a reference, NOT a lookup column [DataMember(Name="usInitialSchoolEntry")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(15)] public DateTime? USInitialSchoolEntry { get; set; } /// @@ -204845,6 +212830,7 @@ public bool PriorityForServices /// // NOT in a reference, NOT a lookup column [DataMember(Name="usMostRecentEntry")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(16)] public DateTime? USMostRecentEntry { get; set; } // ------------------------------------------------------------- @@ -204874,6 +212860,7 @@ IEnumerable IHasRequiredMembersWithMeaningfulDefaultValues.GetUnassigned [NoDuplicateMembers] [DataMember(Name="programParticipationStatuses")] + [Key(17)] public ICollection GeneralStudentProgramAssociationProgramParticipationStatuses { get { return _generalStudentProgramAssociationProgramParticipationStatuses; } @@ -204896,6 +212883,7 @@ public ICollection StudentMigrantEducationProgramAssociationMigrantEducationProgramServices { get { return _studentMigrantEducationProgramAssociationMigrantEducationProgramServices; } @@ -204939,9 +212928,11 @@ public ICollection /// A class which represents the edfi.StudentMigrantEducationProgramAssociationMigrantEducationProgramService table of the StudentMigrantEducationProgramAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentMigrantEducationProgramAssociationMigrantEducationProgramService : Entities.Common.EdFi.IStudentMigrantEducationProgramAssociationMigrantEducationProgramService, IValidatableObject { @@ -205232,6 +213223,7 @@ Entities.Common.EdFi.IStudentMigrantEducationProgramAssociation IStudentMigrantE set { SetStudentMigrantEducationProgramAssociation(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStudentMigrantEducationProgramAssociation StudentMigrantEducationProgramAssociation { set { SetStudentMigrantEducationProgramAssociation(value); } @@ -205249,7 +213241,15 @@ private void SetStudentMigrantEducationProgramAssociation(Entities.Common.EdFi.I [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="migrantEducationProgramServiceDescriptor")][DescriptorExists("MigrantEducationProgramServiceDescriptor")] + [IgnoreMember] public string MigrantEducationProgramServiceDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int MigrantEducationProgramServiceDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("MigrantEducationProgramServiceDescriptor", MigrantEducationProgramServiceDescriptor); } + set { MigrantEducationProgramServiceDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("MigrantEducationProgramServiceDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -205319,6 +213319,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="primaryIndicator")] + [Key(1)] public bool? PrimaryIndicator { get; set; } /// @@ -205326,6 +213327,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="serviceBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(2)] public DateTime? ServiceBeginDate { get; set; } /// @@ -205333,6 +213335,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="serviceEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? ServiceEndDate { get; set; } // ------------------------------------------------------------- @@ -205355,6 +213358,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StudentMigrantEducationProgramAssociation", "StudentMigrantEducationProgramAssociationMigrantEducationProgramService")] + [Key(4)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -205496,25 +213500,37 @@ namespace EdFi.Ods.Api.Common.Models.Resources.StudentNeglectedOrDelinquentProgr /// /// Represents a reference to the StudentNeglectedOrDelinquentProgramAssociation resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentNeglectedOrDelinquentProgramAssociationReference : IResourceReference { [DataMember(Name="beginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(0)] public DateTime BeginDate { get; set; } [DataMember(Name="educationOrganizationId")] + [Key(1)] public long EducationOrganizationId { get; set; } [DataMember(Name="programEducationOrganizationId")] + [Key(2)] public long ProgramEducationOrganizationId { get; set; } [DataMember(Name="programName")] + [Key(3)] public string ProgramName { get; set; } [DataMember(Name="programTypeDescriptor")][DescriptorExists("ProgramTypeDescriptor")] + [IgnoreMember] public string ProgramTypeDescriptor { get; set; } + [Key(4)][JsonIgnore] + public int ProgramTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ProgramTypeDescriptor", ProgramTypeDescriptor); } + set { ProgramTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ProgramTypeDescriptor", value); } + } + [DataMember(Name="studentUniqueId")] public string StudentUniqueId { @@ -205530,11 +213546,15 @@ public string StudentUniqueId /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(5)] public Guid ResourceId { get; set; } - private Link _link; + [JsonIgnore] + [Key(6)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -205609,7 +213629,7 @@ private Link CreateLink() /// /// A class which represents the edfi.StudentNeglectedOrDelinquentProgramAssociation table of the StudentNeglectedOrDelinquentProgramAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentNeglectedOrDelinquentProgramAssociation : Entities.Common.EdFi.IStudentNeglectedOrDelinquentProgramAssociation, Entities.Common.EdFi.IGeneralStudentProgramAssociation, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -205645,6 +213665,7 @@ public StudentNeglectedOrDelinquentProgramAssociation() /// The unique identifier for the StudentNeglectedOrDelinquentProgramAssociation resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -205668,6 +213689,7 @@ private EducationOrganization.EdFi.EducationOrganizationReference ImplicitEducat } [DataMember(Name="educationOrganizationReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public EducationOrganization.EdFi.EducationOrganizationReference EducationOrganizationReference { @@ -205701,6 +213723,7 @@ private Program.EdFi.ProgramReference ImplicitProgramReference } [DataMember(Name="programReference")] + [Key(2)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Program.EdFi.ProgramReference ProgramReference { @@ -205734,6 +213757,7 @@ private Student.EdFi.StudentReference ImplicitStudentReference } [DataMember(Name="studentReference")] + [Key(3)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Student.EdFi.StudentReference StudentReference { @@ -205764,6 +213788,7 @@ public Student.EdFi.StudentReference StudentReference // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] [DataMember(Name="beginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime BeginDate { get; set; } /// @@ -205985,6 +214010,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="endDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(5)] public DateTime? EndDate { get; set; } /// @@ -205993,13 +214019,22 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="reasonExitedDescriptor")][DescriptorExists("ReasonExitedDescriptor")] + [IgnoreMember] public string ReasonExitedDescriptor { get; set; } + [Key(6)][JsonIgnore] + public int ReasonExitedDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ReasonExitedDescriptor", ReasonExitedDescriptor); } + set { ReasonExitedDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ReasonExitedDescriptor", value); } + } + /// /// Indicates whether the student received services during the summer session or between sessions. /// // NOT in a reference, NOT a lookup column [DataMember(Name="servedOutsideOfRegularSession")] + [Key(7)] public bool? ServedOutsideOfRegularSession { get; set; } // ------------------------------------------------------------- @@ -206013,23 +214048,47 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="elaProgressLevelDescriptor")][DescriptorExists("ProgressLevelDescriptor")] + [IgnoreMember] public string ELAProgressLevelDescriptor { get; set; } + [Key(8)][JsonIgnore] + public int ELAProgressLevelDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ProgressLevelDescriptor", ELAProgressLevelDescriptor); } + set { ELAProgressLevelDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ProgressLevelDescriptor", value); } + } + /// /// The progress measured from pre- to post-test for Mathematics. /// // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="mathematicsProgressLevelDescriptor")][DescriptorExists("ProgressLevelDescriptor")] + [IgnoreMember] public string MathematicsProgressLevelDescriptor { get; set; } + [Key(9)][JsonIgnore] + public int MathematicsProgressLevelDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ProgressLevelDescriptor", MathematicsProgressLevelDescriptor); } + set { MathematicsProgressLevelDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ProgressLevelDescriptor", value); } + } + /// /// The type of program under ESEA Title I, Part D, Subpart 1 (state programs) or Subpart 2 (LEA). /// // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="neglectedOrDelinquentProgramDescriptor")][DescriptorExists("NeglectedOrDelinquentProgramDescriptor")] + [IgnoreMember] public string NeglectedOrDelinquentProgramDescriptor { get; set; } + + [Key(10)][JsonIgnore] + public int NeglectedOrDelinquentProgramDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("NeglectedOrDelinquentProgramDescriptor", NeglectedOrDelinquentProgramDescriptor); } + set { NeglectedOrDelinquentProgramDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("NeglectedOrDelinquentProgramDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -206050,6 +214109,7 @@ public override int GetHashCode() [NoDuplicateMembers] [DataMember(Name="programParticipationStatuses")] + [Key(11)] public ICollection GeneralStudentProgramAssociationProgramParticipationStatuses { get { return _generalStudentProgramAssociationProgramParticipationStatuses; } @@ -206072,6 +214132,7 @@ public ICollection StudentNeglectedOrDelinquentProgramAssociationNeglectedOrDelinquentProgramServices { get { return _studentNeglectedOrDelinquentProgramAssociationNeglectedOrDelinquentProgramServices; } @@ -206115,9 +214177,11 @@ public ICollection /// A class which represents the edfi.StudentNeglectedOrDelinquentProgramAssociationNeglectedOrDelinquentProgramService table of the StudentNeglectedOrDelinquentProgramAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentNeglectedOrDelinquentProgramAssociationNeglectedOrDelinquentProgramService : Entities.Common.EdFi.IStudentNeglectedOrDelinquentProgramAssociationNeglectedOrDelinquentProgramService, IValidatableObject { @@ -206408,6 +214472,7 @@ Entities.Common.EdFi.IStudentNeglectedOrDelinquentProgramAssociation IStudentNeg set { SetStudentNeglectedOrDelinquentProgramAssociation(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStudentNeglectedOrDelinquentProgramAssociation StudentNeglectedOrDelinquentProgramAssociation { set { SetStudentNeglectedOrDelinquentProgramAssociation(value); } @@ -206425,7 +214490,15 @@ private void SetStudentNeglectedOrDelinquentProgramAssociation(Entities.Common.E [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="neglectedOrDelinquentProgramServiceDescriptor")][DescriptorExists("NeglectedOrDelinquentProgramServiceDescriptor")] + [IgnoreMember] public string NeglectedOrDelinquentProgramServiceDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int NeglectedOrDelinquentProgramServiceDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("NeglectedOrDelinquentProgramServiceDescriptor", NeglectedOrDelinquentProgramServiceDescriptor); } + set { NeglectedOrDelinquentProgramServiceDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("NeglectedOrDelinquentProgramServiceDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -206495,6 +214568,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="primaryIndicator")] + [Key(1)] public bool? PrimaryIndicator { get; set; } /// @@ -206502,6 +214576,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="serviceBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(2)] public DateTime? ServiceBeginDate { get; set; } /// @@ -206509,6 +214584,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="serviceEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? ServiceEndDate { get; set; } // ------------------------------------------------------------- @@ -206531,6 +214607,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StudentNeglectedOrDelinquentProgramAssociation", "StudentNeglectedOrDelinquentProgramAssociationNeglectedOrDelinquentProgramService")] + [Key(4)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -206672,25 +214749,37 @@ namespace EdFi.Ods.Api.Common.Models.Resources.StudentProgramAssociation.EdFi /// /// Represents a reference to the StudentProgramAssociation resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentProgramAssociationReference : IResourceReference { [DataMember(Name="beginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(0)] public DateTime BeginDate { get; set; } [DataMember(Name="educationOrganizationId")] + [Key(1)] public long EducationOrganizationId { get; set; } [DataMember(Name="programEducationOrganizationId")] + [Key(2)] public long ProgramEducationOrganizationId { get; set; } [DataMember(Name="programName")] + [Key(3)] public string ProgramName { get; set; } [DataMember(Name="programTypeDescriptor")][DescriptorExists("ProgramTypeDescriptor")] + [IgnoreMember] public string ProgramTypeDescriptor { get; set; } + [Key(4)][JsonIgnore] + public int ProgramTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ProgramTypeDescriptor", ProgramTypeDescriptor); } + set { ProgramTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ProgramTypeDescriptor", value); } + } + [DataMember(Name="studentUniqueId")] public string StudentUniqueId { @@ -206706,11 +214795,15 @@ public string StudentUniqueId /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(5)] public Guid ResourceId { get; set; } - private Link _link; + [JsonIgnore] + [Key(6)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -206785,7 +214878,7 @@ private Link CreateLink() /// /// A class which represents the edfi.StudentProgramAssociation table of the StudentProgramAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentProgramAssociation : Entities.Common.EdFi.IStudentProgramAssociation, Entities.Common.EdFi.IGeneralStudentProgramAssociation, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -206821,6 +214914,7 @@ public StudentProgramAssociation() /// The unique identifier for the StudentProgramAssociation resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -206844,6 +214938,7 @@ private EducationOrganization.EdFi.EducationOrganizationReference ImplicitEducat } [DataMember(Name="educationOrganizationReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public EducationOrganization.EdFi.EducationOrganizationReference EducationOrganizationReference { @@ -206877,6 +214972,7 @@ private Program.EdFi.ProgramReference ImplicitProgramReference } [DataMember(Name="programReference")] + [Key(2)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Program.EdFi.ProgramReference ProgramReference { @@ -206910,6 +215006,7 @@ private Student.EdFi.StudentReference ImplicitStudentReference } [DataMember(Name="studentReference")] + [Key(3)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Student.EdFi.StudentReference StudentReference { @@ -206940,6 +215037,7 @@ public Student.EdFi.StudentReference StudentReference // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] [DataMember(Name="beginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime BeginDate { get; set; } /// @@ -207161,6 +215259,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="endDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(5)] public DateTime? EndDate { get; set; } /// @@ -207169,13 +215268,22 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="reasonExitedDescriptor")][DescriptorExists("ReasonExitedDescriptor")] + [IgnoreMember] public string ReasonExitedDescriptor { get; set; } + [Key(6)][JsonIgnore] + public int ReasonExitedDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ReasonExitedDescriptor", ReasonExitedDescriptor); } + set { ReasonExitedDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ReasonExitedDescriptor", value); } + } + /// /// Indicates whether the student received services during the summer session or between sessions. /// // NOT in a reference, NOT a lookup column [DataMember(Name="servedOutsideOfRegularSession")] + [Key(7)] public bool? ServedOutsideOfRegularSession { get; set; } // ------------------------------------------------------------- @@ -207202,6 +215310,7 @@ public override int GetHashCode() [NoDuplicateMembers] [DataMember(Name="programParticipationStatuses")] + [Key(8)] public ICollection GeneralStudentProgramAssociationProgramParticipationStatuses { get { return _generalStudentProgramAssociationProgramParticipationStatuses; } @@ -207224,6 +215333,7 @@ public ICollection StudentProgramAssociationServices { get { return _studentProgramAssociationServices; } @@ -207267,9 +215378,11 @@ public ICollection StudentProgramAssociationSe // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(11)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(12)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -207517,7 +215630,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.StudentProgramAssociationService table of the StudentProgramAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentProgramAssociationService : Entities.Common.EdFi.IStudentProgramAssociationService, IValidatableObject { @@ -207560,6 +215673,7 @@ Entities.Common.EdFi.IStudentProgramAssociation IStudentProgramAssociationServic set { SetStudentProgramAssociation(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStudentProgramAssociation StudentProgramAssociation { set { SetStudentProgramAssociation(value); } @@ -207577,7 +215691,15 @@ private void SetStudentProgramAssociation(Entities.Common.EdFi.IStudentProgramAs [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="serviceDescriptor")][DescriptorExists("ServiceDescriptor")] + [IgnoreMember] public string ServiceDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int ServiceDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ServiceDescriptor", ServiceDescriptor); } + set { ServiceDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ServiceDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -207647,6 +215769,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="primaryIndicator")] + [Key(1)] public bool? PrimaryIndicator { get; set; } /// @@ -207654,6 +215777,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="serviceBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(2)] public DateTime? ServiceBeginDate { get; set; } /// @@ -207661,6 +215785,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="serviceEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? ServiceEndDate { get; set; } // ------------------------------------------------------------- @@ -207683,6 +215808,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StudentProgramAssociation", "StudentProgramAssociationService")] + [Key(4)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -207824,28 +215950,48 @@ namespace EdFi.Ods.Api.Common.Models.Resources.StudentProgramAttendanceEvent.EdF /// /// Represents a reference to the StudentProgramAttendanceEvent resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentProgramAttendanceEventReference : IResourceReference { [DataMember(Name="attendanceEventCategoryDescriptor")][DescriptorExists("AttendanceEventCategoryDescriptor")] + [IgnoreMember] public string AttendanceEventCategoryDescriptor { get; set; } + [Key(0)][JsonIgnore] + public int AttendanceEventCategoryDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("AttendanceEventCategoryDescriptor", AttendanceEventCategoryDescriptor); } + set { AttendanceEventCategoryDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("AttendanceEventCategoryDescriptor", value); } + } + [DataMember(Name="educationOrganizationId")] + [Key(1)] public long EducationOrganizationId { get; set; } [DataMember(Name="eventDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(2)] public DateTime EventDate { get; set; } [DataMember(Name="programEducationOrganizationId")] + [Key(3)] public long ProgramEducationOrganizationId { get; set; } [DataMember(Name="programName")] + [Key(4)] public string ProgramName { get; set; } [DataMember(Name="programTypeDescriptor")][DescriptorExists("ProgramTypeDescriptor")] + [IgnoreMember] public string ProgramTypeDescriptor { get; set; } + [Key(5)][JsonIgnore] + public int ProgramTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ProgramTypeDescriptor", ProgramTypeDescriptor); } + set { ProgramTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ProgramTypeDescriptor", value); } + } + [DataMember(Name="studentUniqueId")] public string StudentUniqueId { @@ -207861,17 +216007,22 @@ public string StudentUniqueId /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(6)] 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. /// + [Key(7)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(8)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -207970,7 +216121,7 @@ private Link CreateLink() /// /// A class which represents the edfi.StudentProgramAttendanceEvent table of the StudentProgramAttendanceEvent aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentProgramAttendanceEvent : Entities.Common.EdFi.IStudentProgramAttendanceEvent, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -207999,6 +216150,7 @@ public class StudentProgramAttendanceEvent : Entities.Common.EdFi.IStudentProgra /// The unique identifier for the StudentProgramAttendanceEvent resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -208022,6 +216174,7 @@ private EducationOrganization.EdFi.EducationOrganizationReference ImplicitEducat } [DataMember(Name="educationOrganizationReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public EducationOrganization.EdFi.EducationOrganizationReference EducationOrganizationReference { @@ -208055,6 +216208,7 @@ private Program.EdFi.ProgramReference ImplicitProgramReference } [DataMember(Name="programReference")] + [Key(2)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Program.EdFi.ProgramReference ProgramReference { @@ -208088,6 +216242,7 @@ private Student.EdFi.StudentReference ImplicitStudentReference } [DataMember(Name="studentReference")] + [Key(3)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Student.EdFi.StudentReference StudentReference { @@ -208119,8 +216274,16 @@ public Student.EdFi.StudentReference StudentReference [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="attendanceEventCategoryDescriptor")][DescriptorExists("AttendanceEventCategoryDescriptor")] + [IgnoreMember] public string AttendanceEventCategoryDescriptor { get; set; } + [Key(4)][JsonIgnore] + public int AttendanceEventCategoryDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("AttendanceEventCategoryDescriptor", AttendanceEventCategoryDescriptor); } + set { AttendanceEventCategoryDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("AttendanceEventCategoryDescriptor", value); } + } + /// /// The identifier assigned to an education organization. /// @@ -208152,6 +216315,7 @@ long Entities.Common.EdFi.IStudentProgramAttendanceEvent.EducationOrganizationId // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] [DataMember(Name="eventDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(5)] public DateTime EventDate { get; set; } /// @@ -208363,6 +216527,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="attendanceEventReason")] + [Key(6)] public string AttendanceEventReason { get; set; } /// @@ -208371,14 +216536,23 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="educationalEnvironmentDescriptor")][DescriptorExists("EducationalEnvironmentDescriptor")] + [IgnoreMember] public string EducationalEnvironmentDescriptor { get; set; } + [Key(7)][JsonIgnore] + public int EducationalEnvironmentDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("EducationalEnvironmentDescriptor", EducationalEnvironmentDescriptor); } + set { EducationalEnvironmentDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("EducationalEnvironmentDescriptor", value); } + } + /// /// The amount of time in days for the event as recognized by the school: 1 day = 1, 1/2 day = 0.5, 1/3 day = 0.33. /// // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "0", "1", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="eventDuration")] + [Key(8)] public decimal? EventDuration { get; set; } /// @@ -208387,6 +216561,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(0, 1440, ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="programAttendanceDuration")] + [Key(9)] public int? ProgramAttendanceDuration { get; set; } // ------------------------------------------------------------- @@ -208409,6 +216584,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StudentProgramAttendanceEvent", "StudentProgramAttendanceEvent")] + [Key(10)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -208422,9 +216598,11 @@ public override int GetHashCode() // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(11)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(12)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -208598,31 +216776,59 @@ namespace EdFi.Ods.Api.Common.Models.Resources.StudentProgramEvaluation.EdFi /// /// Represents a reference to the StudentProgramEvaluation resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentProgramEvaluationReference : IResourceReference { [DataMember(Name="evaluationDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(0)] public DateTime EvaluationDate { get; set; } [DataMember(Name="programEducationOrganizationId")] + [Key(1)] public long ProgramEducationOrganizationId { get; set; } [DataMember(Name="programEvaluationPeriodDescriptor")][DescriptorExists("ProgramEvaluationPeriodDescriptor")] + [IgnoreMember] public string ProgramEvaluationPeriodDescriptor { get; set; } + [Key(2)][JsonIgnore] + public int ProgramEvaluationPeriodDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ProgramEvaluationPeriodDescriptor", ProgramEvaluationPeriodDescriptor); } + set { ProgramEvaluationPeriodDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ProgramEvaluationPeriodDescriptor", value); } + } + [DataMember(Name="programEvaluationTitle")] + [Key(3)] public string ProgramEvaluationTitle { get; set; } [DataMember(Name="programEvaluationTypeDescriptor")][DescriptorExists("ProgramEvaluationTypeDescriptor")] + [IgnoreMember] public string ProgramEvaluationTypeDescriptor { get; set; } + [Key(4)][JsonIgnore] + public int ProgramEvaluationTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ProgramEvaluationTypeDescriptor", ProgramEvaluationTypeDescriptor); } + set { ProgramEvaluationTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ProgramEvaluationTypeDescriptor", value); } + } + [DataMember(Name="programName")] + [Key(5)] public string ProgramName { get; set; } [DataMember(Name="programTypeDescriptor")][DescriptorExists("ProgramTypeDescriptor")] + [IgnoreMember] public string ProgramTypeDescriptor { get; set; } + [Key(6)][JsonIgnore] + public int ProgramTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ProgramTypeDescriptor", ProgramTypeDescriptor); } + set { ProgramTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ProgramTypeDescriptor", value); } + } + [DataMember(Name="studentUniqueId")] public string StudentUniqueId { @@ -208638,17 +216844,22 @@ public string StudentUniqueId /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(7)] 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. /// + [Key(8)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(9)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -208752,7 +216963,7 @@ private Link CreateLink() /// /// A class which represents the edfi.StudentProgramEvaluation table of the StudentProgramEvaluation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentProgramEvaluation : Entities.Common.EdFi.IStudentProgramEvaluation, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -208787,6 +216998,7 @@ public StudentProgramEvaluation() /// The unique identifier for the StudentProgramEvaluation resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -208810,6 +217022,7 @@ private EducationOrganization.EdFi.EducationOrganizationReference ImplicitEducat } [DataMember(Name="educationOrganizationReference")] + [Key(1)] [FullyDefinedReference] public EducationOrganization.EdFi.EducationOrganizationReference EducationOrganizationReference { @@ -208843,6 +217056,7 @@ private ProgramEvaluation.EdFi.ProgramEvaluationReference ImplicitProgramEvaluat } [DataMember(Name="programEvaluationReference")] + [Key(2)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public ProgramEvaluation.EdFi.ProgramEvaluationReference ProgramEvaluationReference { @@ -208876,6 +217090,7 @@ private Staff.EdFi.StaffReference ImplicitStaffEvaluatorStaffReference } [DataMember(Name="staffEvaluatorStaffReference")] + [Key(3)] [FullyDefinedReference] public Staff.EdFi.StaffReference StaffEvaluatorStaffReference { @@ -208909,6 +217124,7 @@ private Student.EdFi.StudentReference ImplicitStudentReference } [DataMember(Name="studentReference")] + [Key(4)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Student.EdFi.StudentReference StudentReference { @@ -208939,6 +217155,7 @@ public Student.EdFi.StudentReference StudentReference // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] [DataMember(Name="evaluationDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(5)] public DateTime EvaluationDate { get; set; } /// @@ -209253,6 +217470,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(1, 2147483647, ErrorMessage=ValidationHelpers.RangeMinOnlyMessageFormat)] [DataMember(Name="evaluationDuration")] + [Key(6)] public int? EvaluationDuration { get; set; } /// @@ -209289,6 +217507,7 @@ string Entities.Common.EdFi.IStudentProgramEvaluation.StaffEvaluatorStaffUniqueI // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="summaryEvaluationComment")] + [Key(7)] public string SummaryEvaluationComment { get; set; } /// @@ -209297,6 +217516,7 @@ string Entities.Common.EdFi.IStudentProgramEvaluation.StaffEvaluatorStaffUniqueI // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-999.999", "999.999", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="summaryEvaluationNumericRating")] + [Key(8)] public decimal? SummaryEvaluationNumericRating { get; set; } /// @@ -209305,7 +217525,15 @@ string Entities.Common.EdFi.IStudentProgramEvaluation.StaffEvaluatorStaffUniqueI // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="summaryEvaluationRatingLevelDescriptor")][DescriptorExists("RatingLevelDescriptor")] + [IgnoreMember] public string SummaryEvaluationRatingLevelDescriptor { get; set; } + + [Key(9)][JsonIgnore] + public int SummaryEvaluationRatingLevelDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("RatingLevelDescriptor", SummaryEvaluationRatingLevelDescriptor); } + set { SummaryEvaluationRatingLevelDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("RatingLevelDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -209327,6 +217555,7 @@ string Entities.Common.EdFi.IStudentProgramEvaluation.StaffEvaluatorStaffUniqueI // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StudentProgramEvaluation", "StudentProgramEvaluation")] + [Key(10)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -209338,6 +217567,7 @@ string Entities.Common.EdFi.IStudentProgramEvaluation.StaffEvaluatorStaffUniqueI [NoDuplicateMembers] [DataMember(Name="externalEvaluators")] + [Key(11)] public ICollection StudentProgramEvaluationExternalEvaluators { get { return _studentProgramEvaluationExternalEvaluators; } @@ -209368,6 +217598,7 @@ public ICollection StudentProgramEval [NoDuplicateMembers] [DataMember(Name="studentEvaluationElements")] + [Key(12)] public ICollection StudentProgramEvaluationStudentEvaluationElements { get { return _studentProgramEvaluationStudentEvaluationElements; } @@ -209398,6 +217629,7 @@ public ICollection StudentProg [NoDuplicateMembers] [DataMember(Name="studentEvaluationObjectives")] + [Key(13)] public ICollection StudentProgramEvaluationStudentEvaluationObjectives { get { return _studentProgramEvaluationStudentEvaluationObjectives; } @@ -209430,9 +217662,11 @@ public ICollection StudentPr // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(14)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(15)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -209723,7 +217957,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.StudentProgramEvaluationExternalEvaluator table of the StudentProgramEvaluation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentProgramEvaluationExternalEvaluator : Entities.Common.EdFi.IStudentProgramEvaluationExternalEvaluator, IValidatableObject { @@ -209766,6 +218000,7 @@ Entities.Common.EdFi.IStudentProgramEvaluation IStudentProgramEvaluationExternal set { SetStudentProgramEvaluation(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStudentProgramEvaluation StudentProgramEvaluation { set { SetStudentProgramEvaluation(value); } @@ -209783,6 +218018,7 @@ private void SetStudentProgramEvaluation(Entities.Common.EdFi.IStudentProgramEva [RequiredWithNonDefault] [NonDefaultStringLength(150, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="externalEvaluator")] + [Key(0)] public string ExternalEvaluator { get; set; } // ------------------------------------------------------------- @@ -209868,6 +218104,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StudentProgramEvaluation", "StudentProgramEvaluationExternalEvaluator")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -210004,7 +218241,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.StudentProgramEvaluationStudentEvaluationElement table of the StudentProgramEvaluation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentProgramEvaluationStudentEvaluationElement : Entities.Common.EdFi.IStudentProgramEvaluationStudentEvaluationElement, IValidatableObject { @@ -210049,6 +218286,7 @@ private ProgramEvaluationElement.EdFi.ProgramEvaluationElementReference Implicit } [DataMember(Name="programEvaluationElementReference")] + [Key(0)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public ProgramEvaluationElement.EdFi.ProgramEvaluationElementReference ProgramEvaluationElementReference { @@ -210081,6 +218319,7 @@ Entities.Common.EdFi.IStudentProgramEvaluation IStudentProgramEvaluationStudentE set { SetStudentProgramEvaluation(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStudentProgramEvaluation StudentProgramEvaluation { set { SetStudentProgramEvaluation(value); } @@ -210195,6 +218434,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-999.999", "999.999", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="evaluationElementNumericRating")] + [Key(1)] public decimal? EvaluationElementNumericRating { get; set; } /// @@ -210203,7 +218443,15 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="evaluationElementRatingLevelDescriptor")][DescriptorExists("RatingLevelDescriptor")] + [IgnoreMember] public string EvaluationElementRatingLevelDescriptor { get; set; } + + [Key(2)][JsonIgnore] + public int EvaluationElementRatingLevelDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("RatingLevelDescriptor", EvaluationElementRatingLevelDescriptor); } + set { EvaluationElementRatingLevelDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("RatingLevelDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -210225,6 +218473,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StudentProgramEvaluation", "StudentProgramEvaluationStudentEvaluationElement")] + [Key(3)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -210550,7 +218799,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.StudentProgramEvaluationStudentEvaluationObjective table of the StudentProgramEvaluation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentProgramEvaluationStudentEvaluationObjective : Entities.Common.EdFi.IStudentProgramEvaluationStudentEvaluationObjective, IValidatableObject { @@ -210595,6 +218844,7 @@ private ProgramEvaluationObjective.EdFi.ProgramEvaluationObjectiveReference Impl } [DataMember(Name="programEvaluationObjectiveReference")] + [Key(0)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public ProgramEvaluationObjective.EdFi.ProgramEvaluationObjectiveReference ProgramEvaluationObjectiveReference { @@ -210627,6 +218877,7 @@ Entities.Common.EdFi.IStudentProgramEvaluation IStudentProgramEvaluationStudentE set { SetStudentProgramEvaluation(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStudentProgramEvaluation StudentProgramEvaluation { set { SetStudentProgramEvaluation(value); } @@ -210741,6 +218992,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-999.999", "999.999", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="evaluationObjectiveNumericRating")] + [Key(1)] public decimal? EvaluationObjectiveNumericRating { get; set; } /// @@ -210749,7 +219001,15 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="evaluationObjectiveRatingLevelDescriptor")][DescriptorExists("RatingLevelDescriptor")] + [IgnoreMember] public string EvaluationObjectiveRatingLevelDescriptor { get; set; } + + [Key(2)][JsonIgnore] + public int EvaluationObjectiveRatingLevelDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("RatingLevelDescriptor", EvaluationObjectiveRatingLevelDescriptor); } + set { EvaluationObjectiveRatingLevelDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("RatingLevelDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -210771,6 +219031,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StudentProgramEvaluation", "StudentProgramEvaluationStudentEvaluationObjective")] + [Key(3)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -211101,14 +219362,16 @@ namespace EdFi.Ods.Api.Common.Models.Resources.StudentSchoolAssociation.EdFi /// /// Represents a reference to the StudentSchoolAssociation resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentSchoolAssociationReference : IResourceReference { [DataMember(Name="entryDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(0)] public DateTime EntryDate { get; set; } [DataMember(Name="schoolId")] + [Key(1)] public long SchoolId { get; set; } [DataMember(Name="studentUniqueId")] @@ -211126,17 +219389,22 @@ public string StudentUniqueId /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(2)] 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. /// + [Key(3)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(4)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -211215,7 +219483,7 @@ private Link CreateLink() /// /// A class which represents the edfi.StudentSchoolAssociation table of the StudentSchoolAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentSchoolAssociation : Entities.Common.EdFi.IStudentSchoolAssociation, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -211249,6 +219517,7 @@ public StudentSchoolAssociation() /// The unique identifier for the StudentSchoolAssociation resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -211272,6 +219541,7 @@ private Calendar.EdFi.CalendarReference ImplicitCalendarReference } [DataMember(Name="calendarReference")] + [Key(1)] [FullyDefinedReference] public Calendar.EdFi.CalendarReference CalendarReference { @@ -211305,6 +219575,7 @@ private SchoolYearType.EdFi.SchoolYearTypeReference ImplicitClassOfSchoolYearTyp } [DataMember(Name="classOfSchoolYearTypeReference")] + [Key(2)] [FullyDefinedReference] public SchoolYearType.EdFi.SchoolYearTypeReference ClassOfSchoolYearTypeReference { @@ -211338,6 +219609,7 @@ private GraduationPlan.EdFi.GraduationPlanReference ImplicitGraduationPlanRefere } [DataMember(Name="graduationPlanReference")] + [Key(3)] [FullyDefinedReference] public GraduationPlan.EdFi.GraduationPlanReference GraduationPlanReference { @@ -211371,6 +219643,7 @@ private School.EdFi.SchoolReference ImplicitNextYearSchoolReference } [DataMember(Name="nextYearSchoolReference")] + [Key(4)] [FullyDefinedReference] public School.EdFi.SchoolReference NextYearSchoolReference { @@ -211404,6 +219677,7 @@ private School.EdFi.SchoolReference ImplicitSchoolReference } [DataMember(Name="schoolReference")] + [Key(5)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public School.EdFi.SchoolReference SchoolReference { @@ -211437,6 +219711,7 @@ private SchoolYearType.EdFi.SchoolYearTypeReference ImplicitSchoolYearTypeRefere } [DataMember(Name="schoolYearTypeReference")] + [Key(6)] [FullyDefinedReference] public SchoolYearType.EdFi.SchoolYearTypeReference SchoolYearTypeReference { @@ -211470,6 +219745,7 @@ private Student.EdFi.StudentReference ImplicitStudentReference } [DataMember(Name="studentReference")] + [Key(7)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Student.EdFi.StudentReference StudentReference { @@ -211500,6 +219776,7 @@ public Student.EdFi.StudentReference StudentReference // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] [DataMember(Name="entryDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(8)] public DateTime EntryDate { get; set; } /// @@ -211715,6 +219992,7 @@ string Entities.Common.EdFi.IStudentSchoolAssociation.CalendarCode /// // NOT in a reference, NOT a lookup column [DataMember(Name="employedWhileEnrolled")] + [Key(9)] public bool? EmployedWhileEnrolled { get; set; } /// @@ -211723,8 +220001,16 @@ string Entities.Common.EdFi.IStudentSchoolAssociation.CalendarCode // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="enrollmentTypeDescriptor")][DescriptorExists("EnrollmentTypeDescriptor")] + [IgnoreMember] public string EnrollmentTypeDescriptor { get; set; } + [Key(10)][JsonIgnore] + public int EnrollmentTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("EnrollmentTypeDescriptor", EnrollmentTypeDescriptor); } + set { EnrollmentTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("EnrollmentTypeDescriptor", value); } + } + /// /// The grade level or primary instructional level at which a student enters and receives services in a school or an educational institution during a given academic session. /// @@ -211732,29 +220018,54 @@ string Entities.Common.EdFi.IStudentSchoolAssociation.CalendarCode [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="entryGradeLevelDescriptor")][DescriptorExists("GradeLevelDescriptor")] + [IgnoreMember] public string EntryGradeLevelDescriptor { get; set; } + [Key(11)][JsonIgnore] + public int EntryGradeLevelDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("GradeLevelDescriptor", EntryGradeLevelDescriptor); } + set { EntryGradeLevelDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("GradeLevelDescriptor", value); } + } + /// /// The primary reason as to why a staff member determined that a student should be promoted or not (or be demoted) at the end of a given school term. /// // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="entryGradeLevelReasonDescriptor")][DescriptorExists("EntryGradeLevelReasonDescriptor")] + [IgnoreMember] public string EntryGradeLevelReasonDescriptor { get; set; } + [Key(12)][JsonIgnore] + public int EntryGradeLevelReasonDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("EntryGradeLevelReasonDescriptor", EntryGradeLevelReasonDescriptor); } + set { EntryGradeLevelReasonDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("EntryGradeLevelReasonDescriptor", value); } + } + /// /// The process by which a student enters a school during a given academic session. /// // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="entryTypeDescriptor")][DescriptorExists("EntryTypeDescriptor")] + [IgnoreMember] public string EntryTypeDescriptor { get; set; } + [Key(13)][JsonIgnore] + public int EntryTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("EntryTypeDescriptor", EntryTypeDescriptor); } + set { EntryTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("EntryTypeDescriptor", value); } + } + /// /// The recorded exit or withdraw date for the student. Note: Date interpretation may vary. Ed-Fi recommends inclusive dates, but states may define dates as inclusive or exclusive. For calculations, align with local guidelines. /// // NOT in a reference, NOT a lookup column [DataMember(Name="exitWithdrawDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(14)] public DateTime? ExitWithdrawDate { get; set; } /// @@ -211763,14 +220074,23 @@ string Entities.Common.EdFi.IStudentSchoolAssociation.CalendarCode // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="exitWithdrawTypeDescriptor")][DescriptorExists("ExitWithdrawTypeDescriptor")] + [IgnoreMember] public string ExitWithdrawTypeDescriptor { get; set; } + [Key(15)][JsonIgnore] + public int ExitWithdrawTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ExitWithdrawTypeDescriptor", ExitWithdrawTypeDescriptor); } + set { ExitWithdrawTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ExitWithdrawTypeDescriptor", value); } + } + /// /// The full-time equivalent ratio for the student s assignment to a school for services or instruction. For example, a full-time student would have an FTE value of 1 while a half-time student would have an FTE value of 0.5. /// // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "0", "9.9999", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="fullTimeEquivalency")] + [Key(16)] public decimal? FullTimeEquivalency { get; set; } /// @@ -211830,8 +220150,16 @@ string Entities.Common.EdFi.IStudentSchoolAssociation.GraduationPlanTypeDescript // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="nextYearGradeLevelDescriptor")][DescriptorExists("GradeLevelDescriptor")] + [IgnoreMember] public string NextYearGradeLevelDescriptor { get; set; } + [Key(17)][JsonIgnore] + public int NextYearGradeLevelDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("GradeLevelDescriptor", NextYearGradeLevelDescriptor); } + set { NextYearGradeLevelDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("GradeLevelDescriptor", value); } + } + /// /// The identifier assigned to a school. It must be distinct from any other identifier assigned to educational organizations, such as a LocalEducationAgencyId, to prevent duplication. /// @@ -211864,6 +220192,7 @@ string Entities.Common.EdFi.IStudentSchoolAssociation.GraduationPlanTypeDescript /// // NOT in a reference, NOT a lookup column [DataMember(Name="primarySchool")] + [Key(18)] public bool? PrimarySchool { get; set; } /// @@ -211871,6 +220200,7 @@ string Entities.Common.EdFi.IStudentSchoolAssociation.GraduationPlanTypeDescript /// // NOT in a reference, NOT a lookup column [DataMember(Name="repeatGradeIndicator")] + [Key(19)] public bool? RepeatGradeIndicator { get; set; } /// @@ -211879,13 +220209,22 @@ string Entities.Common.EdFi.IStudentSchoolAssociation.GraduationPlanTypeDescript // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="residencyStatusDescriptor")][DescriptorExists("ResidencyStatusDescriptor")] + [IgnoreMember] public string ResidencyStatusDescriptor { get; set; } + [Key(20)][JsonIgnore] + public int ResidencyStatusDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ResidencyStatusDescriptor", ResidencyStatusDescriptor); } + set { ResidencyStatusDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ResidencyStatusDescriptor", value); } + } + /// /// An indication of whether the student enrolled in this school under the provisions for public school choice /// // NOT in a reference, NOT a lookup column [DataMember(Name="schoolChoice")] + [Key(21)] public bool? SchoolChoice { get; set; } /// @@ -211894,13 +220233,22 @@ string Entities.Common.EdFi.IStudentSchoolAssociation.GraduationPlanTypeDescript // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="schoolChoiceBasisDescriptor")][DescriptorExists("SchoolChoiceBasisDescriptor")] + [IgnoreMember] public string SchoolChoiceBasisDescriptor { get; set; } + [Key(22)][JsonIgnore] + public int SchoolChoiceBasisDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("SchoolChoiceBasisDescriptor", SchoolChoiceBasisDescriptor); } + set { SchoolChoiceBasisDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("SchoolChoiceBasisDescriptor", value); } + } + /// /// An indication of whether students transferred in or out of the school did so during the school year under the provisions for public school choice in accordance with Title I, Part A, Section 1116. /// // NOT in a reference, NOT a lookup column [DataMember(Name="schoolChoiceTransfer")] + [Key(23)] public bool? SchoolChoiceTransfer { get; set; } /// @@ -211945,6 +220293,7 @@ string Entities.Common.EdFi.IStudentSchoolAssociation.GraduationPlanTypeDescript /// // NOT in a reference, NOT a lookup column [DataMember(Name="termCompletionIndicator")] + [Key(24)] public bool? TermCompletionIndicator { get; set; } // ------------------------------------------------------------- @@ -211967,6 +220316,7 @@ string Entities.Common.EdFi.IStudentSchoolAssociation.GraduationPlanTypeDescript // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StudentSchoolAssociation", "StudentSchoolAssociation")] + [Key(25)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -211978,6 +220328,7 @@ string Entities.Common.EdFi.IStudentSchoolAssociation.GraduationPlanTypeDescript [NoDuplicateMembers] [DataMember(Name="alternativeGraduationPlans")] + [Key(26)] public ICollection StudentSchoolAssociationAlternativeGraduationPlans { get { return _studentSchoolAssociationAlternativeGraduationPlans; } @@ -212008,6 +220359,7 @@ public ICollection StudentSch [NoDuplicateMembers] [DataMember(Name="educationPlans")] + [Key(27)] public ICollection StudentSchoolAssociationEducationPlans { get { return _studentSchoolAssociationEducationPlans; } @@ -212040,9 +220392,11 @@ public ICollection StudentSchoolAssociati // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(28)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(29)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -212389,7 +220743,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.StudentSchoolAssociationAlternativeGraduationPlan table of the StudentSchoolAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentSchoolAssociationAlternativeGraduationPlan : Entities.Common.EdFi.IStudentSchoolAssociationAlternativeGraduationPlan, IValidatableObject { @@ -212434,6 +220788,7 @@ private GraduationPlan.EdFi.GraduationPlanReference ImplicitAlternativeGraduatio } [DataMember(Name="alternativeGraduationPlanReference")] + [Key(0)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public GraduationPlan.EdFi.GraduationPlanReference AlternativeGraduationPlanReference { @@ -212466,6 +220821,7 @@ Entities.Common.EdFi.IStudentSchoolAssociation IStudentSchoolAssociationAlternat set { SetStudentSchoolAssociation(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStudentSchoolAssociation StudentSchoolAssociation { set { SetStudentSchoolAssociation(value); } @@ -212646,6 +221002,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StudentSchoolAssociation", "StudentSchoolAssociationAlternativeGraduationPlan")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -212796,7 +221153,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.StudentSchoolAssociationEducationPlan table of the StudentSchoolAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentSchoolAssociationEducationPlan : Entities.Common.EdFi.IStudentSchoolAssociationEducationPlan, IValidatableObject { @@ -212839,6 +221196,7 @@ Entities.Common.EdFi.IStudentSchoolAssociation IStudentSchoolAssociationEducatio set { SetStudentSchoolAssociation(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStudentSchoolAssociation StudentSchoolAssociation { set { SetStudentSchoolAssociation(value); } @@ -212856,7 +221214,15 @@ private void SetStudentSchoolAssociation(Entities.Common.EdFi.IStudentSchoolAsso [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="educationPlanDescriptor")][DescriptorExists("EducationPlanDescriptor")] + [IgnoreMember] public string EducationPlanDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int EducationPlanDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("EducationPlanDescriptor", EducationPlanDescriptor); } + set { EducationPlanDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("EducationPlanDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -212941,6 +221307,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StudentSchoolAssociation", "StudentSchoolAssociationEducationPlan")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -213082,23 +221449,35 @@ namespace EdFi.Ods.Api.Common.Models.Resources.StudentSchoolAttendanceEvent.EdFi /// /// Represents a reference to the StudentSchoolAttendanceEvent resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentSchoolAttendanceEventReference : IResourceReference { [DataMember(Name="attendanceEventCategoryDescriptor")][DescriptorExists("AttendanceEventCategoryDescriptor")] + [IgnoreMember] public string AttendanceEventCategoryDescriptor { get; set; } + [Key(0)][JsonIgnore] + public int AttendanceEventCategoryDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("AttendanceEventCategoryDescriptor", AttendanceEventCategoryDescriptor); } + set { AttendanceEventCategoryDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("AttendanceEventCategoryDescriptor", value); } + } + [DataMember(Name="eventDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(1)] public DateTime EventDate { get; set; } [DataMember(Name="schoolId")] + [Key(2)] public long SchoolId { get; set; } [DataMember(Name="schoolYear")] + [Key(3)] public short SchoolYear { get; set; } [DataMember(Name="sessionName")] + [Key(4)] public string SessionName { get; set; } [DataMember(Name="studentUniqueId")] @@ -213116,17 +221495,22 @@ public string StudentUniqueId /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(5)] 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. /// + [Key(6)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(7)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -213220,7 +221604,7 @@ private Link CreateLink() /// /// A class which represents the edfi.StudentSchoolAttendanceEvent table of the StudentSchoolAttendanceEvent aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentSchoolAttendanceEvent : Entities.Common.EdFi.IStudentSchoolAttendanceEvent, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -213249,6 +221633,7 @@ public class StudentSchoolAttendanceEvent : Entities.Common.EdFi.IStudentSchoolA /// The unique identifier for the StudentSchoolAttendanceEvent resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -213272,6 +221657,7 @@ private School.EdFi.SchoolReference ImplicitSchoolReference } [DataMember(Name="schoolReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public School.EdFi.SchoolReference SchoolReference { @@ -213305,6 +221691,7 @@ private Session.EdFi.SessionReference ImplicitSessionReference } [DataMember(Name="sessionReference")] + [Key(2)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Session.EdFi.SessionReference SessionReference { @@ -213338,6 +221725,7 @@ private Student.EdFi.StudentReference ImplicitStudentReference } [DataMember(Name="studentReference")] + [Key(3)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Student.EdFi.StudentReference StudentReference { @@ -213369,14 +221757,23 @@ public Student.EdFi.StudentReference StudentReference [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="attendanceEventCategoryDescriptor")][DescriptorExists("AttendanceEventCategoryDescriptor")] + [IgnoreMember] public string AttendanceEventCategoryDescriptor { get; set; } + [Key(4)][JsonIgnore] + public int AttendanceEventCategoryDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("AttendanceEventCategoryDescriptor", AttendanceEventCategoryDescriptor); } + set { AttendanceEventCategoryDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("AttendanceEventCategoryDescriptor", value); } + } + /// /// Date for this attendance event. /// // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] [DataMember(Name="eventDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(5)] public DateTime EventDate { get; set; } /// @@ -213586,6 +221983,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="arrivalTime")][JsonConverter(typeof(UtcTimeConverter))] + [Key(6)] public TimeSpan? ArrivalTime { get; set; } /// @@ -213594,6 +221992,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="attendanceEventReason")] + [Key(7)] public string AttendanceEventReason { get; set; } /// @@ -213601,6 +222000,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="departureTime")][JsonConverter(typeof(UtcTimeConverter))] + [Key(8)] public TimeSpan? DepartureTime { get; set; } /// @@ -213609,14 +222009,23 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="educationalEnvironmentDescriptor")][DescriptorExists("EducationalEnvironmentDescriptor")] + [IgnoreMember] public string EducationalEnvironmentDescriptor { get; set; } + [Key(9)][JsonIgnore] + public int EducationalEnvironmentDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("EducationalEnvironmentDescriptor", EducationalEnvironmentDescriptor); } + set { EducationalEnvironmentDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("EducationalEnvironmentDescriptor", value); } + } + /// /// The amount of time in days for the event as recognized by the school: 1 day = 1, 1/2 day = 0.5, 1/3 day = 0.33. /// // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "0", "1", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="eventDuration")] + [Key(10)] public decimal? EventDuration { get; set; } /// @@ -213625,6 +222034,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(0, 1440, ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="schoolAttendanceDuration")] + [Key(11)] public int? SchoolAttendanceDuration { get; set; } // ------------------------------------------------------------- @@ -213647,6 +222057,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StudentSchoolAttendanceEvent", "StudentSchoolAttendanceEvent")] + [Key(12)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -213660,9 +222071,11 @@ public override int GetHashCode() // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(13)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(14)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -213868,25 +222281,37 @@ namespace EdFi.Ods.Api.Common.Models.Resources.StudentSchoolFoodServiceProgramAs /// /// Represents a reference to the StudentSchoolFoodServiceProgramAssociation resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentSchoolFoodServiceProgramAssociationReference : IResourceReference { [DataMember(Name="beginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(0)] public DateTime BeginDate { get; set; } [DataMember(Name="educationOrganizationId")] + [Key(1)] public long EducationOrganizationId { get; set; } [DataMember(Name="programEducationOrganizationId")] + [Key(2)] public long ProgramEducationOrganizationId { get; set; } [DataMember(Name="programName")] + [Key(3)] public string ProgramName { get; set; } [DataMember(Name="programTypeDescriptor")][DescriptorExists("ProgramTypeDescriptor")] + [IgnoreMember] public string ProgramTypeDescriptor { get; set; } + [Key(4)][JsonIgnore] + public int ProgramTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ProgramTypeDescriptor", ProgramTypeDescriptor); } + set { ProgramTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ProgramTypeDescriptor", value); } + } + [DataMember(Name="studentUniqueId")] public string StudentUniqueId { @@ -213902,11 +222327,15 @@ public string StudentUniqueId /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(5)] public Guid ResourceId { get; set; } - private Link _link; + [JsonIgnore] + [Key(6)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -213981,7 +222410,7 @@ private Link CreateLink() /// /// A class which represents the edfi.StudentSchoolFoodServiceProgramAssociation table of the StudentSchoolFoodServiceProgramAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentSchoolFoodServiceProgramAssociation : Entities.Common.EdFi.IStudentSchoolFoodServiceProgramAssociation, Entities.Common.EdFi.IGeneralStudentProgramAssociation, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -214017,6 +222446,7 @@ public StudentSchoolFoodServiceProgramAssociation() /// The unique identifier for the StudentSchoolFoodServiceProgramAssociation resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -214040,6 +222470,7 @@ private EducationOrganization.EdFi.EducationOrganizationReference ImplicitEducat } [DataMember(Name="educationOrganizationReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public EducationOrganization.EdFi.EducationOrganizationReference EducationOrganizationReference { @@ -214073,6 +222504,7 @@ private Program.EdFi.ProgramReference ImplicitProgramReference } [DataMember(Name="programReference")] + [Key(2)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Program.EdFi.ProgramReference ProgramReference { @@ -214106,6 +222538,7 @@ private Student.EdFi.StudentReference ImplicitStudentReference } [DataMember(Name="studentReference")] + [Key(3)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Student.EdFi.StudentReference StudentReference { @@ -214136,6 +222569,7 @@ public Student.EdFi.StudentReference StudentReference // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] [DataMember(Name="beginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime BeginDate { get; set; } /// @@ -214357,6 +222791,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="endDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(5)] public DateTime? EndDate { get; set; } /// @@ -214365,13 +222800,22 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="reasonExitedDescriptor")][DescriptorExists("ReasonExitedDescriptor")] + [IgnoreMember] public string ReasonExitedDescriptor { get; set; } + [Key(6)][JsonIgnore] + public int ReasonExitedDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ReasonExitedDescriptor", ReasonExitedDescriptor); } + set { ReasonExitedDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ReasonExitedDescriptor", value); } + } + /// /// Indicates whether the student received services during the summer session or between sessions. /// // NOT in a reference, NOT a lookup column [DataMember(Name="servedOutsideOfRegularSession")] + [Key(7)] public bool? ServedOutsideOfRegularSession { get; set; } // ------------------------------------------------------------- @@ -214384,6 +222828,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="directCertification")] + [Key(8)] public bool? DirectCertification { get; set; } // ------------------------------------------------------------- @@ -214405,6 +222850,7 @@ public override int GetHashCode() [NoDuplicateMembers] [DataMember(Name="programParticipationStatuses")] + [Key(9)] public ICollection GeneralStudentProgramAssociationProgramParticipationStatuses { get { return _generalStudentProgramAssociationProgramParticipationStatuses; } @@ -214427,6 +222873,7 @@ public ICollection StudentSchoolFoodServiceProgramAssociationSchoolFoodServiceProgramServices { get { return _studentSchoolFoodServiceProgramAssociationSchoolFoodServiceProgramServices; } @@ -214470,9 +222918,11 @@ public ICollection /// A class which represents the edfi.StudentSchoolFoodServiceProgramAssociationSchoolFoodServiceProgramService table of the StudentSchoolFoodServiceProgramAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentSchoolFoodServiceProgramAssociationSchoolFoodServiceProgramService : Entities.Common.EdFi.IStudentSchoolFoodServiceProgramAssociationSchoolFoodServiceProgramService, IValidatableObject { @@ -214763,6 +223213,7 @@ Entities.Common.EdFi.IStudentSchoolFoodServiceProgramAssociation IStudentSchoolF set { SetStudentSchoolFoodServiceProgramAssociation(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStudentSchoolFoodServiceProgramAssociation StudentSchoolFoodServiceProgramAssociation { set { SetStudentSchoolFoodServiceProgramAssociation(value); } @@ -214780,7 +223231,15 @@ private void SetStudentSchoolFoodServiceProgramAssociation(Entities.Common.EdFi. [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="schoolFoodServiceProgramServiceDescriptor")][DescriptorExists("SchoolFoodServiceProgramServiceDescriptor")] + [IgnoreMember] public string SchoolFoodServiceProgramServiceDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int SchoolFoodServiceProgramServiceDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("SchoolFoodServiceProgramServiceDescriptor", SchoolFoodServiceProgramServiceDescriptor); } + set { SchoolFoodServiceProgramServiceDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("SchoolFoodServiceProgramServiceDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -214850,6 +223309,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="primaryIndicator")] + [Key(1)] public bool? PrimaryIndicator { get; set; } /// @@ -214857,6 +223317,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="serviceBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(2)] public DateTime? ServiceBeginDate { get; set; } /// @@ -214864,6 +223325,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="serviceEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? ServiceEndDate { get; set; } // ------------------------------------------------------------- @@ -214886,6 +223348,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StudentSchoolFoodServiceProgramAssociation", "StudentSchoolFoodServiceProgramAssociationSchoolFoodServiceProgramService")] + [Key(4)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -215027,26 +223490,32 @@ namespace EdFi.Ods.Api.Common.Models.Resources.StudentSectionAssociation.EdFi /// /// Represents a reference to the StudentSectionAssociation resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentSectionAssociationReference : IResourceReference { [DataMember(Name="beginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(0)] public DateTime BeginDate { get; set; } [DataMember(Name="localCourseCode")] + [Key(1)] public string LocalCourseCode { get; set; } [DataMember(Name="schoolId")] + [Key(2)] public long SchoolId { get; set; } [DataMember(Name="schoolYear")] + [Key(3)] public short SchoolYear { get; set; } [DataMember(Name="sectionIdentifier")] + [Key(4)] public string SectionIdentifier { get; set; } [DataMember(Name="sessionName")] + [Key(5)] public string SessionName { get; set; } [DataMember(Name="studentUniqueId")] @@ -215064,17 +223533,22 @@ public string StudentUniqueId /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(6)] 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. /// + [Key(7)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(8)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -215173,7 +223647,7 @@ private Link CreateLink() /// /// A class which represents the edfi.StudentSectionAssociation table of the StudentSectionAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentSectionAssociation : Entities.Common.EdFi.IStudentSectionAssociation, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -215206,6 +223680,7 @@ public StudentSectionAssociation() /// The unique identifier for the StudentSectionAssociation resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -215229,6 +223704,7 @@ private Section.EdFi.SectionReference ImplicitSectionReference } [DataMember(Name="sectionReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Section.EdFi.SectionReference SectionReference { @@ -215262,6 +223738,7 @@ private Student.EdFi.StudentReference ImplicitStudentReference } [DataMember(Name="studentReference")] + [Key(2)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Student.EdFi.StudentReference StudentReference { @@ -215292,6 +223769,7 @@ public Student.EdFi.StudentReference StudentReference // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] [DataMember(Name="beginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime BeginDate { get; set; } /// @@ -215555,13 +224033,22 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="attemptStatusDescriptor")][DescriptorExists("AttemptStatusDescriptor")] + [IgnoreMember] public string AttemptStatusDescriptor { get; set; } + [Key(4)][JsonIgnore] + public int AttemptStatusDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("AttemptStatusDescriptor", AttemptStatusDescriptor); } + set { AttemptStatusDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("AttemptStatusDescriptor", value); } + } + /// /// Month, day, and year of the withdrawal or exit of the student from the section. Note: Date interpretation may vary. Ed-Fi recommends inclusive dates, but states may define dates as inclusive or exclusive. For calculations, align with local guidelines. /// // NOT in a reference, NOT a lookup column [DataMember(Name="endDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(5)] public DateTime? EndDate { get; set; } /// @@ -215569,6 +224056,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="homeroomIndicator")] + [Key(6)] public bool? HomeroomIndicator { get; set; } /// @@ -215577,13 +224065,22 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="repeatIdentifierDescriptor")][DescriptorExists("RepeatIdentifierDescriptor")] + [IgnoreMember] public string RepeatIdentifierDescriptor { get; set; } + [Key(7)][JsonIgnore] + public int RepeatIdentifierDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("RepeatIdentifierDescriptor", RepeatIdentifierDescriptor); } + set { RepeatIdentifierDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("RepeatIdentifierDescriptor", value); } + } + /// /// Indicates that the student-section combination is excluded from calculation of value-added or growth attribution calculations used for a particular teacher evaluation. /// // NOT in a reference, NOT a lookup column [DataMember(Name="teacherStudentDataLinkExclusion")] + [Key(8)] public bool? TeacherStudentDataLinkExclusion { get; set; } // ------------------------------------------------------------- @@ -215606,6 +224103,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StudentSectionAssociation", "StudentSectionAssociation")] + [Key(9)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -215617,6 +224115,7 @@ public override int GetHashCode() [NoDuplicateMembers] [DataMember(Name="programs")] + [Key(10)] public ICollection StudentSectionAssociationPrograms { get { return _studentSectionAssociationPrograms; } @@ -215649,9 +224148,11 @@ public ICollection StudentSectionAssociationPr // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(11)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(12)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -215856,7 +224357,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.StudentSectionAssociationProgram table of the StudentSectionAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentSectionAssociationProgram : Entities.Common.EdFi.IStudentSectionAssociationProgram, IValidatableObject { @@ -215901,6 +224402,7 @@ private Program.EdFi.ProgramReference ImplicitProgramReference } [DataMember(Name="programReference")] + [Key(0)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Program.EdFi.ProgramReference ProgramReference { @@ -215933,6 +224435,7 @@ Entities.Common.EdFi.IStudentSectionAssociation IStudentSectionAssociationProgra set { SetStudentSectionAssociation(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStudentSectionAssociation StudentSectionAssociation { set { SetStudentSectionAssociation(value); } @@ -216113,6 +224616,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StudentSectionAssociation", "StudentSectionAssociationProgram")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -216268,29 +224772,43 @@ namespace EdFi.Ods.Api.Common.Models.Resources.StudentSectionAttendanceEvent.EdF /// /// Represents a reference to the StudentSectionAttendanceEvent resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentSectionAttendanceEventReference : IResourceReference { [DataMember(Name="attendanceEventCategoryDescriptor")][DescriptorExists("AttendanceEventCategoryDescriptor")] + [IgnoreMember] public string AttendanceEventCategoryDescriptor { get; set; } + [Key(0)][JsonIgnore] + public int AttendanceEventCategoryDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("AttendanceEventCategoryDescriptor", AttendanceEventCategoryDescriptor); } + set { AttendanceEventCategoryDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("AttendanceEventCategoryDescriptor", value); } + } + [DataMember(Name="eventDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(1)] public DateTime EventDate { get; set; } [DataMember(Name="localCourseCode")] + [Key(2)] public string LocalCourseCode { get; set; } [DataMember(Name="schoolId")] + [Key(3)] public long SchoolId { get; set; } [DataMember(Name="schoolYear")] + [Key(4)] public short SchoolYear { get; set; } [DataMember(Name="sectionIdentifier")] + [Key(5)] public string SectionIdentifier { get; set; } [DataMember(Name="sessionName")] + [Key(6)] public string SessionName { get; set; } [DataMember(Name="studentUniqueId")] @@ -216308,17 +224826,22 @@ public string StudentUniqueId /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(7)] 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. /// + [Key(8)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(9)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -216422,7 +224945,7 @@ private Link CreateLink() /// /// A class which represents the edfi.StudentSectionAttendanceEvent table of the StudentSectionAttendanceEvent aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentSectionAttendanceEvent : Entities.Common.EdFi.IStudentSectionAttendanceEvent, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -216455,6 +224978,7 @@ public StudentSectionAttendanceEvent() /// The unique identifier for the StudentSectionAttendanceEvent resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -216478,6 +225002,7 @@ private Section.EdFi.SectionReference ImplicitSectionReference } [DataMember(Name="sectionReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Section.EdFi.SectionReference SectionReference { @@ -216511,6 +225036,7 @@ private Student.EdFi.StudentReference ImplicitStudentReference } [DataMember(Name="studentReference")] + [Key(2)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Student.EdFi.StudentReference StudentReference { @@ -216542,14 +225068,23 @@ public Student.EdFi.StudentReference StudentReference [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="attendanceEventCategoryDescriptor")][DescriptorExists("AttendanceEventCategoryDescriptor")] + [IgnoreMember] public string AttendanceEventCategoryDescriptor { get; set; } + [Key(3)][JsonIgnore] + public int AttendanceEventCategoryDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("AttendanceEventCategoryDescriptor", AttendanceEventCategoryDescriptor); } + set { AttendanceEventCategoryDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("AttendanceEventCategoryDescriptor", value); } + } + /// /// Date for this attendance event. /// // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] [DataMember(Name="eventDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime EventDate { get; set; } /// @@ -216821,6 +225356,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="arrivalTime")][JsonConverter(typeof(UtcTimeConverter))] + [Key(5)] public TimeSpan? ArrivalTime { get; set; } /// @@ -216829,6 +225365,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="attendanceEventReason")] + [Key(6)] public string AttendanceEventReason { get; set; } /// @@ -216836,6 +225373,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="departureTime")][JsonConverter(typeof(UtcTimeConverter))] + [Key(7)] public TimeSpan? DepartureTime { get; set; } /// @@ -216844,14 +225382,23 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="educationalEnvironmentDescriptor")][DescriptorExists("EducationalEnvironmentDescriptor")] + [IgnoreMember] public string EducationalEnvironmentDescriptor { get; set; } + [Key(8)][JsonIgnore] + public int EducationalEnvironmentDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("EducationalEnvironmentDescriptor", EducationalEnvironmentDescriptor); } + set { EducationalEnvironmentDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("EducationalEnvironmentDescriptor", value); } + } + /// /// The amount of time in days for the event as recognized by the school: 1 day = 1, 1/2 day = 0.5, 1/3 day = 0.33. /// // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "0", "1", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="eventDuration")] + [Key(9)] public decimal? EventDuration { get; set; } /// @@ -216860,6 +225407,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(0, 1440, ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="sectionAttendanceDuration")] + [Key(10)] public int? SectionAttendanceDuration { get; set; } // ------------------------------------------------------------- @@ -216882,6 +225430,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StudentSectionAttendanceEvent", "StudentSectionAttendanceEvent")] + [Key(11)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -216893,6 +225442,7 @@ public override int GetHashCode() [NoDuplicateMembers] [DataMember(Name="classPeriods")] + [Key(12)] public ICollection StudentSectionAttendanceEventClassPeriods { get { return _studentSectionAttendanceEventClassPeriods; } @@ -216925,9 +225475,11 @@ public ICollection StudentSectionAtten // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(13)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(14)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -217132,7 +225684,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.StudentSectionAttendanceEventClassPeriod table of the StudentSectionAttendanceEvent aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentSectionAttendanceEventClassPeriod : Entities.Common.EdFi.IStudentSectionAttendanceEventClassPeriod, IValidatableObject { @@ -217177,6 +225729,7 @@ private ClassPeriod.EdFi.ClassPeriodReference ImplicitClassPeriodReference } [DataMember(Name="classPeriodReference")] + [Key(0)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public ClassPeriod.EdFi.ClassPeriodReference ClassPeriodReference { @@ -217209,6 +225762,7 @@ Entities.Common.EdFi.IStudentSectionAttendanceEvent IStudentSectionAttendanceEve set { SetStudentSectionAttendanceEvent(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStudentSectionAttendanceEvent StudentSectionAttendanceEvent { set { SetStudentSectionAttendanceEvent(value); } @@ -217332,6 +225886,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StudentSectionAttendanceEvent", "StudentSectionAttendanceEventClassPeriod")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -217527,25 +226082,37 @@ namespace EdFi.Ods.Api.Common.Models.Resources.StudentSpecialEducationProgramAss /// /// Represents a reference to the StudentSpecialEducationProgramAssociation resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentSpecialEducationProgramAssociationReference : IResourceReference { [DataMember(Name="beginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(0)] public DateTime BeginDate { get; set; } [DataMember(Name="educationOrganizationId")] + [Key(1)] public long EducationOrganizationId { get; set; } [DataMember(Name="programEducationOrganizationId")] + [Key(2)] public long ProgramEducationOrganizationId { get; set; } [DataMember(Name="programName")] + [Key(3)] public string ProgramName { get; set; } [DataMember(Name="programTypeDescriptor")][DescriptorExists("ProgramTypeDescriptor")] + [IgnoreMember] public string ProgramTypeDescriptor { get; set; } + [Key(4)][JsonIgnore] + public int ProgramTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ProgramTypeDescriptor", ProgramTypeDescriptor); } + set { ProgramTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ProgramTypeDescriptor", value); } + } + [DataMember(Name="studentUniqueId")] public string StudentUniqueId { @@ -217561,11 +226128,15 @@ public string StudentUniqueId /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(5)] public Guid ResourceId { get; set; } - private Link _link; + [JsonIgnore] + [Key(6)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -217640,7 +226211,7 @@ private Link CreateLink() /// /// A class which represents the edfi.StudentSpecialEducationProgramAssociation table of the StudentSpecialEducationProgramAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentSpecialEducationProgramAssociation : Entities.Common.EdFi.IStudentSpecialEducationProgramAssociation, Entities.Common.EdFi.IGeneralStudentProgramAssociation, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -217678,6 +226249,7 @@ public StudentSpecialEducationProgramAssociation() /// The unique identifier for the StudentSpecialEducationProgramAssociation resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -217701,6 +226273,7 @@ private EducationOrganization.EdFi.EducationOrganizationReference ImplicitEducat } [DataMember(Name="educationOrganizationReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public EducationOrganization.EdFi.EducationOrganizationReference EducationOrganizationReference { @@ -217734,6 +226307,7 @@ private Program.EdFi.ProgramReference ImplicitProgramReference } [DataMember(Name="programReference")] + [Key(2)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Program.EdFi.ProgramReference ProgramReference { @@ -217767,6 +226341,7 @@ private Student.EdFi.StudentReference ImplicitStudentReference } [DataMember(Name="studentReference")] + [Key(3)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Student.EdFi.StudentReference StudentReference { @@ -217797,6 +226372,7 @@ public Student.EdFi.StudentReference StudentReference // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] [DataMember(Name="beginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime BeginDate { get; set; } /// @@ -218018,6 +226594,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="endDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(5)] public DateTime? EndDate { get; set; } /// @@ -218026,13 +226603,22 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="reasonExitedDescriptor")][DescriptorExists("ReasonExitedDescriptor")] + [IgnoreMember] public string ReasonExitedDescriptor { get; set; } + [Key(6)][JsonIgnore] + public int ReasonExitedDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ReasonExitedDescriptor", ReasonExitedDescriptor); } + set { ReasonExitedDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ReasonExitedDescriptor", value); } + } + /// /// Indicates whether the student received services during the summer session or between sessions. /// // NOT in a reference, NOT a lookup column [DataMember(Name="servedOutsideOfRegularSession")] + [Key(7)] public bool? ServedOutsideOfRegularSession { get; set; } // ------------------------------------------------------------- @@ -218045,6 +226631,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="ideaEligibility")] + [Key(8)] public bool? IdeaEligibility { get; set; } /// @@ -218052,6 +226639,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="iepBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(9)] public DateTime? IEPBeginDate { get; set; } /// @@ -218059,6 +226647,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="iepEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(10)] public DateTime? IEPEndDate { get; set; } /// @@ -218066,6 +226655,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="iepReviewDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(11)] public DateTime? IEPReviewDate { get; set; } /// @@ -218073,6 +226663,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="lastEvaluationDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(12)] public DateTime? LastEvaluationDate { get; set; } /// @@ -218080,6 +226671,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="medicallyFragile")] + [Key(13)] public bool? MedicallyFragile { get; set; } /// @@ -218087,6 +226679,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="multiplyDisabled")] + [Key(14)] public bool? MultiplyDisabled { get; set; } /// @@ -218095,6 +226688,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-999.99", "999.99", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="schoolHoursPerWeek")] + [Key(15)] public decimal? SchoolHoursPerWeek { get; set; } /// @@ -218102,6 +226696,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="specialEducationExitDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(16)] public DateTime? SpecialEducationExitDate { get; set; } /// @@ -218110,6 +226705,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="specialEducationExitExplained")] + [Key(17)] public string SpecialEducationExitExplained { get; set; } /// @@ -218118,14 +226714,23 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="specialEducationExitReasonDescriptor")][DescriptorExists("SpecialEducationExitReasonDescriptor")] + [IgnoreMember] public string SpecialEducationExitReasonDescriptor { get; set; } + [Key(18)][JsonIgnore] + public int SpecialEducationExitReasonDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("SpecialEducationExitReasonDescriptor", SpecialEducationExitReasonDescriptor); } + set { SpecialEducationExitReasonDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("SpecialEducationExitReasonDescriptor", value); } + } + /// /// The number of hours per week for special education instruction and therapy. /// // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-999.99", "999.99", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="specialEducationHoursPerWeek")] + [Key(19)] public decimal? SpecialEducationHoursPerWeek { get; set; } /// @@ -218134,7 +226739,15 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="specialEducationSettingDescriptor")][DescriptorExists("SpecialEducationSettingDescriptor")] + [IgnoreMember] public string SpecialEducationSettingDescriptor { get; set; } + + [Key(20)][JsonIgnore] + public int SpecialEducationSettingDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("SpecialEducationSettingDescriptor", SpecialEducationSettingDescriptor); } + set { SpecialEducationSettingDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("SpecialEducationSettingDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -218155,6 +226768,7 @@ public override int GetHashCode() [NoDuplicateMembers] [DataMember(Name="programParticipationStatuses")] + [Key(21)] public ICollection GeneralStudentProgramAssociationProgramParticipationStatuses { get { return _generalStudentProgramAssociationProgramParticipationStatuses; } @@ -218177,6 +226791,7 @@ public ICollection StudentSpecialEducationProgramAssociationDisabilities { get { return _studentSpecialEducationProgramAssociationDisabilities; } @@ -218218,6 +226834,7 @@ public ICollection StudentS [NoDuplicateMembers] [DataMember(Name="serviceProviders")] + [Key(24)] public ICollection StudentSpecialEducationProgramAssociationServiceProviders { get { return _studentSpecialEducationProgramAssociationServiceProviders; } @@ -218248,6 +226865,7 @@ public ICollection Stu [NoDuplicateMembers] [DataMember(Name="specialEducationProgramServices")] + [Key(25)] public ICollection StudentSpecialEducationProgramAssociationSpecialEducationProgramServices { get { return _studentSpecialEducationProgramAssociationSpecialEducationProgramServices; } @@ -218280,9 +226898,11 @@ public ICollection /// A class which represents the edfi.StudentSpecialEducationProgramAssociationDisability table of the StudentSpecialEducationProgramAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentSpecialEducationProgramAssociationDisability : Entities.Common.EdFi.IStudentSpecialEducationProgramAssociationDisability, IValidatableObject { @@ -218635,6 +227255,7 @@ Entities.Common.EdFi.IStudentSpecialEducationProgramAssociation IStudentSpecialE set { SetStudentSpecialEducationProgramAssociation(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStudentSpecialEducationProgramAssociation StudentSpecialEducationProgramAssociation { set { SetStudentSpecialEducationProgramAssociation(value); } @@ -218652,7 +227273,15 @@ private void SetStudentSpecialEducationProgramAssociation(Entities.Common.EdFi.I [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="disabilityDescriptor")][DescriptorExists("DisabilityDescriptor")] + [IgnoreMember] public string DisabilityDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int DisabilityDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("DisabilityDescriptor", DisabilityDescriptor); } + set { DisabilityDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("DisabilityDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -218723,14 +227352,23 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="disabilityDeterminationSourceTypeDescriptor")][DescriptorExists("DisabilityDeterminationSourceTypeDescriptor")] + [IgnoreMember] public string DisabilityDeterminationSourceTypeDescriptor { get; set; } + [Key(1)][JsonIgnore] + public int DisabilityDeterminationSourceTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("DisabilityDeterminationSourceTypeDescriptor", DisabilityDeterminationSourceTypeDescriptor); } + set { DisabilityDeterminationSourceTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("DisabilityDeterminationSourceTypeDescriptor", value); } + } + /// /// A description of the disability diagnosis. /// // NOT in a reference, NOT a lookup column [NonDefaultStringLength(80, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="disabilityDiagnosis")] + [Key(2)] public string DisabilityDiagnosis { get; set; } /// @@ -218738,6 +227376,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="orderOfDisability")] + [Key(3)] public int? OrderOfDisability { get; set; } // ------------------------------------------------------------- @@ -218760,6 +227399,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StudentSpecialEducationProgramAssociation", "StudentSpecialEducationProgramAssociationDisability")] + [Key(4)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -218771,6 +227411,7 @@ public override int GetHashCode() [NoDuplicateMembers] [DataMember(Name="designations")] + [Key(5)] public ICollection StudentSpecialEducationProgramAssociationDisabilityDesignations { get { return _studentSpecialEducationProgramAssociationDisabilityDesignations; } @@ -218976,7 +227617,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.StudentSpecialEducationProgramAssociationDisabilityDesignation table of the StudentSpecialEducationProgramAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentSpecialEducationProgramAssociationDisabilityDesignation : Entities.Common.EdFi.IStudentSpecialEducationProgramAssociationDisabilityDesignation, IValidatableObject { @@ -219019,6 +227660,7 @@ Entities.Common.EdFi.IStudentSpecialEducationProgramAssociationDisability IStude set { SetStudentSpecialEducationProgramAssociationDisability(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStudentSpecialEducationProgramAssociationDisability StudentSpecialEducationProgramAssociationDisability { set { SetStudentSpecialEducationProgramAssociationDisability(value); } @@ -219036,7 +227678,15 @@ private void SetStudentSpecialEducationProgramAssociationDisability(Entities.Com [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="disabilityDesignationDescriptor")][DescriptorExists("DisabilityDesignationDescriptor")] + [IgnoreMember] public string DisabilityDesignationDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int DisabilityDesignationDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("DisabilityDesignationDescriptor", DisabilityDesignationDescriptor); } + set { DisabilityDesignationDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("DisabilityDesignationDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -219121,6 +227771,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StudentSpecialEducationProgramAssociation", "StudentSpecialEducationProgramAssociationDisabilityDesignation")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -219257,7 +227908,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.StudentSpecialEducationProgramAssociationServiceProvider table of the StudentSpecialEducationProgramAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentSpecialEducationProgramAssociationServiceProvider : Entities.Common.EdFi.IStudentSpecialEducationProgramAssociationServiceProvider, IValidatableObject { @@ -219302,6 +227953,7 @@ private Staff.EdFi.StaffReference ImplicitStaffReference } [DataMember(Name="staffReference")] + [Key(0)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Staff.EdFi.StaffReference StaffReference { @@ -219334,6 +227986,7 @@ Entities.Common.EdFi.IStudentSpecialEducationProgramAssociation IStudentSpecialE set { SetStudentSpecialEducationProgramAssociation(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStudentSpecialEducationProgramAssociation StudentSpecialEducationProgramAssociation { set { SetStudentSpecialEducationProgramAssociation(value); } @@ -219437,6 +228090,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="primaryProvider")] + [Key(1)] public bool? PrimaryProvider { get; set; } // ------------------------------------------------------------- @@ -219459,6 +228113,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StudentSpecialEducationProgramAssociation", "StudentSpecialEducationProgramAssociationServiceProvider")] + [Key(2)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -219609,7 +228264,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.StudentSpecialEducationProgramAssociationSpecialEducationProgramService table of the StudentSpecialEducationProgramAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentSpecialEducationProgramAssociationSpecialEducationProgramService : Entities.Common.EdFi.IStudentSpecialEducationProgramAssociationSpecialEducationProgramService, IValidatableObject { @@ -219656,6 +228311,7 @@ Entities.Common.EdFi.IStudentSpecialEducationProgramAssociation IStudentSpecialE set { SetStudentSpecialEducationProgramAssociation(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStudentSpecialEducationProgramAssociation StudentSpecialEducationProgramAssociation { set { SetStudentSpecialEducationProgramAssociation(value); } @@ -219673,7 +228329,15 @@ private void SetStudentSpecialEducationProgramAssociation(Entities.Common.EdFi.I [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="specialEducationProgramServiceDescriptor")][DescriptorExists("SpecialEducationProgramServiceDescriptor")] + [IgnoreMember] public string SpecialEducationProgramServiceDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int SpecialEducationProgramServiceDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("SpecialEducationProgramServiceDescriptor", SpecialEducationProgramServiceDescriptor); } + set { SpecialEducationProgramServiceDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("SpecialEducationProgramServiceDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -219743,6 +228407,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="primaryIndicator")] + [Key(1)] public bool? PrimaryIndicator { get; set; } /// @@ -219750,6 +228415,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="serviceBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(2)] public DateTime? ServiceBeginDate { get; set; } /// @@ -219757,6 +228423,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="serviceEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? ServiceEndDate { get; set; } // ------------------------------------------------------------- @@ -219779,6 +228446,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StudentSpecialEducationProgramAssociation", "StudentSpecialEducationProgramAssociationSpecialEducationProgramService")] + [Key(4)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -219790,6 +228458,7 @@ public override int GetHashCode() [NoDuplicateMembers] [DataMember(Name="providers")] + [Key(5)] public ICollection StudentSpecialEducationProgramAssociationSpecialEducationProgramServiceProviders { get { return _studentSpecialEducationProgramAssociationSpecialEducationProgramServiceProviders; } @@ -219995,7 +228664,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.StudentSpecialEducationProgramAssociationSpecialEducationProgramServiceProvider table of the StudentSpecialEducationProgramAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentSpecialEducationProgramAssociationSpecialEducationProgramServiceProvider : Entities.Common.EdFi.IStudentSpecialEducationProgramAssociationSpecialEducationProgramServiceProvider, IValidatableObject { @@ -220040,6 +228709,7 @@ private Staff.EdFi.StaffReference ImplicitStaffReference } [DataMember(Name="staffReference")] + [Key(0)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Staff.EdFi.StaffReference StaffReference { @@ -220072,6 +228742,7 @@ Entities.Common.EdFi.IStudentSpecialEducationProgramAssociationSpecialEducationP set { SetStudentSpecialEducationProgramAssociationSpecialEducationProgramService(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStudentSpecialEducationProgramAssociationSpecialEducationProgramService StudentSpecialEducationProgramAssociationSpecialEducationProgramService { set { SetStudentSpecialEducationProgramAssociationSpecialEducationProgramService(value); } @@ -220175,6 +228846,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="primaryProvider")] + [Key(1)] public bool? PrimaryProvider { get; set; } // ------------------------------------------------------------- @@ -220197,6 +228869,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StudentSpecialEducationProgramAssociation", "StudentSpecialEducationProgramAssociationSpecialEducationProgramServiceProvider")] + [Key(2)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -220352,22 +229025,33 @@ namespace EdFi.Ods.Api.Common.Models.Resources.StudentSpecialEducationProgramEli /// /// Represents a reference to the StudentSpecialEducationProgramEligibilityAssociation resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentSpecialEducationProgramEligibilityAssociationReference : IResourceReference { [DataMember(Name="consentToEvaluationReceivedDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(0)] public DateTime ConsentToEvaluationReceivedDate { get; set; } [DataMember(Name="educationOrganizationId")] + [Key(1)] public long EducationOrganizationId { get; set; } [DataMember(Name="programName")] + [Key(2)] public string ProgramName { get; set; } [DataMember(Name="programTypeDescriptor")][DescriptorExists("ProgramTypeDescriptor")] + [IgnoreMember] public string ProgramTypeDescriptor { get; set; } + [Key(3)][JsonIgnore] + public int ProgramTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ProgramTypeDescriptor", ProgramTypeDescriptor); } + set { ProgramTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ProgramTypeDescriptor", value); } + } + [DataMember(Name="studentUniqueId")] public string StudentUniqueId { @@ -220383,17 +229067,22 @@ public string StudentUniqueId /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(4)] 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. /// + [Key(5)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(6)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -220482,7 +229171,7 @@ private Link CreateLink() /// /// A class which represents the edfi.StudentSpecialEducationProgramEligibilityAssociation table of the StudentSpecialEducationProgramEligibilityAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentSpecialEducationProgramEligibilityAssociation : Entities.Common.EdFi.IStudentSpecialEducationProgramEligibilityAssociation, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -220511,6 +229200,7 @@ public class StudentSpecialEducationProgramEligibilityAssociation : Entities.Com /// The unique identifier for the StudentSpecialEducationProgramEligibilityAssociation resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -220534,6 +229224,7 @@ private EducationOrganization.EdFi.EducationOrganizationReference ImplicitEducat } [DataMember(Name="educationOrganizationReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public EducationOrganization.EdFi.EducationOrganizationReference EducationOrganizationReference { @@ -220567,6 +229258,7 @@ private Program.EdFi.ProgramReference ImplicitProgramReference } [DataMember(Name="programReference")] + [Key(2)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Program.EdFi.ProgramReference ProgramReference { @@ -220600,6 +229292,7 @@ private Student.EdFi.StudentReference ImplicitStudentReference } [DataMember(Name="studentReference")] + [Key(3)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Student.EdFi.StudentReference StudentReference { @@ -220630,6 +229323,7 @@ public Student.EdFi.StudentReference StudentReference // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] [DataMember(Name="consentToEvaluationReceivedDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime ConsentToEvaluationReceivedDate { get; set; } /// @@ -220827,6 +229521,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="consentToEvaluationDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(5)] public DateTime? ConsentToEvaluationDate { get; set; } /// @@ -220834,6 +229529,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="eligibilityConferenceDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(6)] public DateTime? EligibilityConferenceDate { get; set; } /// @@ -220842,13 +229538,22 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="eligibilityDelayReasonDescriptor")][DescriptorExists("EligibilityDelayReasonDescriptor")] + [IgnoreMember] public string EligibilityDelayReasonDescriptor { get; set; } + [Key(7)][JsonIgnore] + public int EligibilityDelayReasonDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("EligibilityDelayReasonDescriptor", EligibilityDelayReasonDescriptor); } + set { EligibilityDelayReasonDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("EligibilityDelayReasonDescriptor", value); } + } + /// /// Indicates the month, day, and year the local education agency (LEA) held the admission, review, and dismissal committee meeting regarding the child's eligibility determination for special education and related services. An individualized education plan (IEP) would be developed and implemented for a child admitted into special education on this same date. /// // NOT in a reference, NOT a lookup column [DataMember(Name="eligibilityDeterminationDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(8)] public DateTime? EligibilityDeterminationDate { get; set; } /// @@ -220856,6 +229561,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="eligibilityEvaluationDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(9)] public DateTime? EligibilityEvaluationDate { get; set; } /// @@ -220864,13 +229570,22 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="eligibilityEvaluationTypeDescriptor")][DescriptorExists("EligibilityEvaluationTypeDescriptor")] + [IgnoreMember] public string EligibilityEvaluationTypeDescriptor { get; set; } + [Key(10)][JsonIgnore] + public int EligibilityEvaluationTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("EligibilityEvaluationTypeDescriptor", EligibilityEvaluationTypeDescriptor); } + set { EligibilityEvaluationTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("EligibilityEvaluationTypeDescriptor", value); } + } + /// /// Indicates the evaluation completed status. /// // NOT in a reference, NOT a lookup column [DataMember(Name="evaluationCompleteIndicator")] + [Key(11)] public bool? EvaluationCompleteIndicator { get; set; } /// @@ -220878,6 +229593,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="evaluationDelayDays")] + [Key(12)] public int? EvaluationDelayDays { get; set; } /// @@ -220886,14 +229602,23 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="evaluationDelayReasonDescriptor")][DescriptorExists("EvaluationDelayReasonDescriptor")] + [IgnoreMember] public string EvaluationDelayReasonDescriptor { get; set; } + [Key(13)][JsonIgnore] + public int EvaluationDelayReasonDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("EvaluationDelayReasonDescriptor", EvaluationDelayReasonDescriptor); } + set { EvaluationDelayReasonDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("EvaluationDelayReasonDescriptor", value); } + } + /// /// Refers to additional information for delay in doing the evaluation. /// // NOT in a reference, NOT a lookup column [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="evaluationLateReason")] + [Key(14)] public string EvaluationLateReason { get; set; } /// @@ -220901,6 +229626,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="ideaIndicator")] + [Key(15)] public bool? IDEAIndicator { get; set; } /// @@ -220910,13 +229636,22 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="ideaPartDescriptor")][DescriptorExists("IDEAPartDescriptor")] + [IgnoreMember] public string IDEAPartDescriptor { get; set; } + [Key(16)][JsonIgnore] + public int IDEAPartDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("IDEAPartDescriptor", IDEAPartDescriptor); } + set { IDEAPartDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("IDEAPartDescriptor", value); } + } + /// /// The month, date, and year when an infant or toddler, from birth through age 2, began participating in the early childhood intervention (ECI) program. /// // NOT in a reference, NOT a lookup column [DataMember(Name="originalECIServicesDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(17)] public DateTime? OriginalECIServicesDate { get; set; } /// @@ -220924,6 +229659,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="transitionConferenceDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(18)] public DateTime? TransitionConferenceDate { get; set; } /// @@ -220931,6 +229667,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="transitionNotificationDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(19)] public DateTime? TransitionNotificationDate { get; set; } // ------------------------------------------------------------- @@ -220953,6 +229690,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StudentSpecialEducationProgramEligibilityAssociation", "StudentSpecialEducationProgramEligibilityAssociation")] + [Key(20)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -220966,9 +229704,11 @@ public override int GetHashCode() // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(21)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(22)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -221181,25 +229921,37 @@ namespace EdFi.Ods.Api.Common.Models.Resources.StudentTitleIPartAProgramAssociat /// /// Represents a reference to the StudentTitleIPartAProgramAssociation resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentTitleIPartAProgramAssociationReference : IResourceReference { [DataMember(Name="beginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(0)] public DateTime BeginDate { get; set; } [DataMember(Name="educationOrganizationId")] + [Key(1)] public long EducationOrganizationId { get; set; } [DataMember(Name="programEducationOrganizationId")] + [Key(2)] public long ProgramEducationOrganizationId { get; set; } [DataMember(Name="programName")] + [Key(3)] public string ProgramName { get; set; } [DataMember(Name="programTypeDescriptor")][DescriptorExists("ProgramTypeDescriptor")] + [IgnoreMember] public string ProgramTypeDescriptor { get; set; } + [Key(4)][JsonIgnore] + public int ProgramTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ProgramTypeDescriptor", ProgramTypeDescriptor); } + set { ProgramTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ProgramTypeDescriptor", value); } + } + [DataMember(Name="studentUniqueId")] public string StudentUniqueId { @@ -221215,11 +229967,15 @@ public string StudentUniqueId /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(5)] public Guid ResourceId { get; set; } - private Link _link; + [JsonIgnore] + [Key(6)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -221294,7 +230050,7 @@ private Link CreateLink() /// /// A class which represents the edfi.StudentTitleIPartAProgramAssociation table of the StudentTitleIPartAProgramAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentTitleIPartAProgramAssociation : Entities.Common.EdFi.IStudentTitleIPartAProgramAssociation, Entities.Common.EdFi.IGeneralStudentProgramAssociation, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -221330,6 +230086,7 @@ public StudentTitleIPartAProgramAssociation() /// The unique identifier for the StudentTitleIPartAProgramAssociation resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -221353,6 +230110,7 @@ private EducationOrganization.EdFi.EducationOrganizationReference ImplicitEducat } [DataMember(Name="educationOrganizationReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public EducationOrganization.EdFi.EducationOrganizationReference EducationOrganizationReference { @@ -221386,6 +230144,7 @@ private Program.EdFi.ProgramReference ImplicitProgramReference } [DataMember(Name="programReference")] + [Key(2)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Program.EdFi.ProgramReference ProgramReference { @@ -221419,6 +230178,7 @@ private Student.EdFi.StudentReference ImplicitStudentReference } [DataMember(Name="studentReference")] + [Key(3)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Student.EdFi.StudentReference StudentReference { @@ -221449,6 +230209,7 @@ public Student.EdFi.StudentReference StudentReference // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] [DataMember(Name="beginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime BeginDate { get; set; } /// @@ -221670,6 +230431,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="endDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(5)] public DateTime? EndDate { get; set; } /// @@ -221678,13 +230440,22 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="reasonExitedDescriptor")][DescriptorExists("ReasonExitedDescriptor")] + [IgnoreMember] public string ReasonExitedDescriptor { get; set; } + [Key(6)][JsonIgnore] + public int ReasonExitedDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ReasonExitedDescriptor", ReasonExitedDescriptor); } + set { ReasonExitedDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ReasonExitedDescriptor", value); } + } + /// /// Indicates whether the student received services during the summer session or between sessions. /// // NOT in a reference, NOT a lookup column [DataMember(Name="servedOutsideOfRegularSession")] + [Key(7)] public bool? ServedOutsideOfRegularSession { get; set; } // ------------------------------------------------------------- @@ -221699,7 +230470,15 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="titleIPartAParticipantDescriptor")][DescriptorExists("TitleIPartAParticipantDescriptor")] + [IgnoreMember] public string TitleIPartAParticipantDescriptor { get; set; } + + [Key(8)][JsonIgnore] + public int TitleIPartAParticipantDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("TitleIPartAParticipantDescriptor", TitleIPartAParticipantDescriptor); } + set { TitleIPartAParticipantDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("TitleIPartAParticipantDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -221720,6 +230499,7 @@ public override int GetHashCode() [NoDuplicateMembers] [DataMember(Name="programParticipationStatuses")] + [Key(9)] public ICollection GeneralStudentProgramAssociationProgramParticipationStatuses { get { return _generalStudentProgramAssociationProgramParticipationStatuses; } @@ -221742,6 +230522,7 @@ public ICollection StudentTitleIPartAProgramAssociationTitleIPartAProgramServices { get { return _studentTitleIPartAProgramAssociationTitleIPartAProgramServices; } @@ -221785,9 +230567,11 @@ public ICollection /// A class which represents the edfi.StudentTitleIPartAProgramAssociationTitleIPartAProgramService table of the StudentTitleIPartAProgramAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentTitleIPartAProgramAssociationTitleIPartAProgramService : Entities.Common.EdFi.IStudentTitleIPartAProgramAssociationTitleIPartAProgramService, IValidatableObject { @@ -222078,6 +230862,7 @@ Entities.Common.EdFi.IStudentTitleIPartAProgramAssociation IStudentTitleIPartAPr set { SetStudentTitleIPartAProgramAssociation(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStudentTitleIPartAProgramAssociation StudentTitleIPartAProgramAssociation { set { SetStudentTitleIPartAProgramAssociation(value); } @@ -222095,7 +230880,15 @@ private void SetStudentTitleIPartAProgramAssociation(Entities.Common.EdFi.IStude [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="titleIPartAProgramServiceDescriptor")][DescriptorExists("TitleIPartAProgramServiceDescriptor")] + [IgnoreMember] public string TitleIPartAProgramServiceDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int TitleIPartAProgramServiceDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("TitleIPartAProgramServiceDescriptor", TitleIPartAProgramServiceDescriptor); } + set { TitleIPartAProgramServiceDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("TitleIPartAProgramServiceDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -222165,6 +230958,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="primaryIndicator")] + [Key(1)] public bool? PrimaryIndicator { get; set; } /// @@ -222172,6 +230966,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="serviceBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(2)] public DateTime? ServiceBeginDate { get; set; } /// @@ -222179,6 +230974,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="serviceEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? ServiceEndDate { get; set; } // ------------------------------------------------------------- @@ -222201,6 +230997,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StudentTitleIPartAProgramAssociation", "StudentTitleIPartAProgramAssociationTitleIPartAProgramService")] + [Key(4)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -222342,7 +231139,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.StudentTransportation.EdFi /// /// Represents a reference to the StudentTransportation resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentTransportationReference : IResourceReference { @@ -222359,22 +231156,28 @@ public string StudentUniqueId private string _studentUniqueId; [DataMember(Name="transportationEducationOrganizationId")] + [Key(0)] public long TransportationEducationOrganizationId { get; set; } /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(1)] 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. /// + [Key(2)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(3)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -222448,7 +231251,7 @@ private Link CreateLink() /// /// A class which represents the edfi.StudentTransportation table of the StudentTransportation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentTransportation : Entities.Common.EdFi.IStudentTransportation, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -222477,6 +231280,7 @@ public class StudentTransportation : Entities.Common.EdFi.IStudentTransportation /// The unique identifier for the StudentTransportation resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -222500,6 +231304,7 @@ private Student.EdFi.StudentReference ImplicitStudentReference } [DataMember(Name="studentReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Student.EdFi.StudentReference StudentReference { @@ -222533,6 +231338,7 @@ private EducationOrganization.EdFi.EducationOrganizationReference ImplicitTransp } [DataMember(Name="transportationEducationOrganizationReference")] + [Key(2)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public EducationOrganization.EdFi.EducationOrganizationReference TransportationEducationOrganizationReference { @@ -222677,6 +231483,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="specialAccomodationRequirements")] + [Key(3)] public string SpecialAccomodationRequirements { get; set; } /// @@ -222685,15 +231492,31 @@ public override int GetHashCode() // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="transportationPublicExpenseEligibilityTypeDescriptor")][DescriptorExists("TransportationPublicExpenseEligibilityTypeDescriptor")] + [IgnoreMember] public string TransportationPublicExpenseEligibilityTypeDescriptor { get; set; } + [Key(4)][JsonIgnore] + public int TransportationPublicExpenseEligibilityTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("TransportationPublicExpenseEligibilityTypeDescriptor", TransportationPublicExpenseEligibilityTypeDescriptor); } + set { TransportationPublicExpenseEligibilityTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("TransportationPublicExpenseEligibilityTypeDescriptor", value); } + } + /// /// The mode or type of transportation utilized by a student to commute to and from school /// // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="transportationTypeDescriptor")][DescriptorExists("TransportationTypeDescriptor")] + [IgnoreMember] public string TransportationTypeDescriptor { get; set; } + + [Key(5)][JsonIgnore] + public int TransportationTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("TransportationTypeDescriptor", TransportationTypeDescriptor); } + set { TransportationTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("TransportationTypeDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -222704,6 +231527,7 @@ public override int GetHashCode() /// [DataMember(Name = "studentBusDetails")] + [Key(6)] public StudentTransportationStudentBusDetails StudentTransportationStudentBusDetails { get; set; } Entities.Common.EdFi.IStudentTransportationStudentBusDetails Entities.Common.EdFi.IStudentTransportation.StudentTransportationStudentBusDetails @@ -222728,6 +231552,7 @@ Entities.Common.EdFi.IStudentTransportationStudentBusDetails Entities.Common.EdF // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StudentTransportation", "StudentTransportation")] + [Key(7)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -222741,9 +231566,11 @@ Entities.Common.EdFi.IStudentTransportationStudentBusDetails Entities.Common.EdF // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(8)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(9)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -222910,7 +231737,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.StudentTransportationStudentBusDetails table of the StudentTransportation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentTransportationStudentBusDetails : Entities.Common.EdFi.IStudentTransportationStudentBusDetails, IValidatableObject { @@ -222958,6 +231785,7 @@ Entities.Common.EdFi.IStudentTransportation IStudentTransportationStudentBusDeta set { SetStudentTransportation(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStudentTransportation StudentTransportation { set { SetStudentTransportation(value); } @@ -223029,6 +231857,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(36, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="busNumber")] + [Key(0)] public string BusNumber { get; set; } /// @@ -223038,14 +231867,23 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="busRouteDescriptor")][DescriptorExists("BusRouteDescriptor")] + [IgnoreMember] public string BusRouteDescriptor { get; set; } + [Key(1)][JsonIgnore] + public int BusRouteDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("BusRouteDescriptor", BusRouteDescriptor); } + set { BusRouteDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("BusRouteDescriptor", value); } + } + /// /// The distance, typically measured in miles, that a student was transported along the route of the bus during a single trip. /// // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "-999.99", "999.99", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="mileage")] + [Key(2)] public decimal? Mileage { get; set; } // ------------------------------------------------------------- @@ -223068,6 +231906,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StudentTransportation", "StudentTransportationStudentBusDetails")] + [Key(3)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -223079,6 +231918,7 @@ public override int GetHashCode() [NoDuplicateMembers] [DataMember(Name="travelDayofWeeks")] + [Key(4)] public ICollection StudentTransportationStudentBusDetailsTravelDayofWeeks { get { return _studentTransportationStudentBusDetailsTravelDayofWeeks; } @@ -223109,6 +231949,7 @@ public ICollection Studen [NoDuplicateMembers] [DataMember(Name="travelDirections")] + [Key(5)] public ICollection StudentTransportationStudentBusDetailsTravelDirections { get { return _studentTransportationStudentBusDetailsTravelDirections; } @@ -223343,7 +232184,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.StudentTransportationStudentBusDetailsTravelDayofWeek table of the StudentTransportation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentTransportationStudentBusDetailsTravelDayofWeek : Entities.Common.EdFi.IStudentTransportationStudentBusDetailsTravelDayofWeek, IValidatableObject { @@ -223386,6 +232227,7 @@ Entities.Common.EdFi.IStudentTransportationStudentBusDetails IStudentTransportat set { SetStudentTransportationStudentBusDetails(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStudentTransportationStudentBusDetails StudentTransportationStudentBusDetails { set { SetStudentTransportationStudentBusDetails(value); } @@ -223403,7 +232245,15 @@ private void SetStudentTransportationStudentBusDetails(Entities.Common.EdFi.IStu [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="travelDayofWeekDescriptor")][DescriptorExists("TravelDayofWeekDescriptor")] + [IgnoreMember] public string TravelDayofWeekDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int TravelDayofWeekDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("TravelDayofWeekDescriptor", TravelDayofWeekDescriptor); } + set { TravelDayofWeekDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("TravelDayofWeekDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -223488,6 +232338,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StudentTransportation", "StudentTransportationStudentBusDetailsTravelDayofWeek")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -223624,7 +232475,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.StudentTransportationStudentBusDetailsTravelDirection table of the StudentTransportation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class StudentTransportationStudentBusDetailsTravelDirection : Entities.Common.EdFi.IStudentTransportationStudentBusDetailsTravelDirection, IValidatableObject { @@ -223667,6 +232518,7 @@ Entities.Common.EdFi.IStudentTransportationStudentBusDetails IStudentTransportat set { SetStudentTransportationStudentBusDetails(value); } } + [IgnoreMember] public Entities.Common.EdFi.IStudentTransportationStudentBusDetails StudentTransportationStudentBusDetails { set { SetStudentTransportationStudentBusDetails(value); } @@ -223684,7 +232536,15 @@ private void SetStudentTransportationStudentBusDetails(Entities.Common.EdFi.IStu [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="travelDirectionDescriptor")][DescriptorExists("TravelDirectionDescriptor")] + [IgnoreMember] public string TravelDirectionDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int TravelDirectionDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("TravelDirectionDescriptor", TravelDirectionDescriptor); } + set { TravelDirectionDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("TravelDirectionDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -223769,6 +232629,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "StudentTransportation", "StudentTransportationStudentBusDetailsTravelDirection")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -223910,7 +232771,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.SubmissionStatusDescriptor.EdFi /// /// A class which represents the edfi.SubmissionStatusDescriptor table of the SubmissionStatusDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class SubmissionStatusDescriptor : Entities.Common.EdFi.ISubmissionStatusDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -223939,6 +232800,7 @@ public class SubmissionStatusDescriptor : Entities.Common.EdFi.ISubmissionStatus /// The unique identifier for the SubmissionStatusDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -224023,6 +232885,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -224031,6 +232894,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -224038,6 +232902,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -224045,6 +232910,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -224054,6 +232920,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -224063,6 +232930,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -224106,9 +232974,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -224181,7 +233051,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.SupporterMilitaryConnectionDescri /// /// A class which represents the edfi.SupporterMilitaryConnectionDescriptor table of the SupporterMilitaryConnectionDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class SupporterMilitaryConnectionDescriptor : Entities.Common.EdFi.ISupporterMilitaryConnectionDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -224210,6 +233080,7 @@ public class SupporterMilitaryConnectionDescriptor : Entities.Common.EdFi.ISuppo /// The unique identifier for the SupporterMilitaryConnectionDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -224294,6 +233165,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -224302,6 +233174,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -224309,6 +233182,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -224316,6 +233190,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -224325,6 +233200,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -224334,6 +233210,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -224377,9 +233254,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -224452,30 +233331,37 @@ namespace EdFi.Ods.Api.Common.Models.Resources.Survey.EdFi /// /// Represents a reference to the Survey resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class SurveyReference : IResourceReference { [DataMember(Name="namespace")] + [Key(0)] public string Namespace { get; set; } [DataMember(Name="surveyIdentifier")] + [Key(1)] public string SurveyIdentifier { get; set; } /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(2)] 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. /// + [Key(3)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(4)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -224549,7 +233435,7 @@ private Link CreateLink() /// /// A class which represents the edfi.Survey table of the Survey aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class Survey : Entities.Common.EdFi.ISurvey, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -224578,6 +233464,7 @@ public class Survey : Entities.Common.EdFi.ISurvey, IHasETag, IDateVersionedEnti /// The unique identifier for the Survey resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -224601,6 +233488,7 @@ private EducationOrganization.EdFi.EducationOrganizationReference ImplicitEducat } [DataMember(Name="educationOrganizationReference")] + [Key(1)] [FullyDefinedReference] public EducationOrganization.EdFi.EducationOrganizationReference EducationOrganizationReference { @@ -224634,6 +233522,7 @@ private SchoolYearType.EdFi.SchoolYearTypeReference ImplicitSchoolYearTypeRefere } [DataMember(Name="schoolYearTypeReference")] + [Key(2)] [FullyDefinedReference][RequiredReference("edfi", "Survey")] public SchoolYearType.EdFi.SchoolYearTypeReference SchoolYearTypeReference { @@ -224667,6 +233556,7 @@ private Session.EdFi.SessionReference ImplicitSessionReference } [DataMember(Name="sessionReference")] + [Key(3)] [FullyDefinedReference] public Session.EdFi.SessionReference SessionReference { @@ -224698,6 +233588,7 @@ public Session.EdFi.SessionReference SessionReference [RequiredWithNonDefault] [NonDefaultStringLength(255, MinimumLength=5, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="namespace")] + [Key(4)] public string Namespace { get; set; } /// @@ -224707,6 +233598,7 @@ public Session.EdFi.SessionReference SessionReference [RequiredWithNonDefault] [NonDefaultStringLength(60, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="surveyIdentifier")] + [Key(5)] public string SurveyIdentifier { get; set; } // ------------------------------------------------------------- @@ -224806,6 +233698,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="numberAdministered")] + [Key(6)] public int? NumberAdministered { get; set; } /// @@ -224905,8 +233798,16 @@ string Entities.Common.EdFi.ISurvey.SessionName // NOT in a reference, IS a lookup column [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="surveyCategoryDescriptor")][DescriptorExists("SurveyCategoryDescriptor")] + [IgnoreMember] public string SurveyCategoryDescriptor { get; set; } + [Key(7)][JsonIgnore] + public int SurveyCategoryDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("SurveyCategoryDescriptor", SurveyCategoryDescriptor); } + set { SurveyCategoryDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("SurveyCategoryDescriptor", value); } + } + /// /// The title of the survey. /// @@ -224914,6 +233815,7 @@ string Entities.Common.EdFi.ISurvey.SessionName [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="surveyTitle")] + [Key(8)] public string SurveyTitle { get; set; } // ------------------------------------------------------------- @@ -224936,6 +233838,7 @@ string Entities.Common.EdFi.ISurvey.SessionName // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "Survey", "Survey")] + [Key(9)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -224949,9 +233852,11 @@ string Entities.Common.EdFi.ISurvey.SessionName // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(10)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(11)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -225157,7 +234062,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.SurveyCategoryDescriptor.EdFi /// /// A class which represents the edfi.SurveyCategoryDescriptor table of the SurveyCategoryDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class SurveyCategoryDescriptor : Entities.Common.EdFi.ISurveyCategoryDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -225186,6 +234091,7 @@ public class SurveyCategoryDescriptor : Entities.Common.EdFi.ISurveyCategoryDesc /// The unique identifier for the SurveyCategoryDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -225270,6 +234176,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -225278,6 +234185,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -225285,6 +234193,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -225292,6 +234201,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -225301,6 +234211,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -225310,6 +234221,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -225353,9 +234265,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -225428,36 +234342,45 @@ namespace EdFi.Ods.Api.Common.Models.Resources.SurveyCourseAssociation.EdFi /// /// Represents a reference to the SurveyCourseAssociation resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class SurveyCourseAssociationReference : IResourceReference { [DataMember(Name="courseCode")] + [Key(0)] public string CourseCode { get; set; } [DataMember(Name="educationOrganizationId")] + [Key(1)] public long EducationOrganizationId { get; set; } [DataMember(Name="namespace")] + [Key(2)] public string Namespace { get; set; } [DataMember(Name="surveyIdentifier")] + [Key(3)] public string SurveyIdentifier { get; set; } /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(4)] 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. /// + [Key(5)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(6)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -225541,7 +234464,7 @@ private Link CreateLink() /// /// A class which represents the edfi.SurveyCourseAssociation table of the SurveyCourseAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class SurveyCourseAssociation : Entities.Common.EdFi.ISurveyCourseAssociation, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -225570,6 +234493,7 @@ public class SurveyCourseAssociation : Entities.Common.EdFi.ISurveyCourseAssocia /// The unique identifier for the SurveyCourseAssociation resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -225593,6 +234517,7 @@ private Course.EdFi.CourseReference ImplicitCourseReference } [DataMember(Name="courseReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Course.EdFi.CourseReference CourseReference { @@ -225626,6 +234551,7 @@ private Survey.EdFi.SurveyReference ImplicitSurveyReference } [DataMember(Name="surveyReference")] + [Key(2)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Survey.EdFi.SurveyReference SurveyReference { @@ -225849,6 +234775,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "SurveyCourseAssociation", "SurveyCourseAssociation")] + [Key(3)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -225862,9 +234789,11 @@ public override int GetHashCode() // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(4)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(5)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -226024,7 +234953,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.SurveyLevelDescriptor.EdFi /// /// A class which represents the edfi.SurveyLevelDescriptor table of the SurveyLevelDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class SurveyLevelDescriptor : Entities.Common.EdFi.ISurveyLevelDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -226053,6 +234982,7 @@ public class SurveyLevelDescriptor : Entities.Common.EdFi.ISurveyLevelDescriptor /// The unique identifier for the SurveyLevelDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -226137,6 +235067,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -226145,6 +235076,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -226152,6 +235084,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -226159,6 +235092,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -226168,6 +235102,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -226177,6 +235112,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -226220,9 +235156,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -226295,39 +235233,56 @@ namespace EdFi.Ods.Api.Common.Models.Resources.SurveyProgramAssociation.EdFi /// /// Represents a reference to the SurveyProgramAssociation resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class SurveyProgramAssociationReference : IResourceReference { [DataMember(Name="educationOrganizationId")] + [Key(0)] public long EducationOrganizationId { get; set; } [DataMember(Name="namespace")] + [Key(1)] public string Namespace { get; set; } [DataMember(Name="programName")] + [Key(2)] public string ProgramName { get; set; } [DataMember(Name="programTypeDescriptor")][DescriptorExists("ProgramTypeDescriptor")] + [IgnoreMember] public string ProgramTypeDescriptor { get; set; } + [Key(3)][JsonIgnore] + public int ProgramTypeDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("ProgramTypeDescriptor", ProgramTypeDescriptor); } + set { ProgramTypeDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("ProgramTypeDescriptor", value); } + } + [DataMember(Name="surveyIdentifier")] + [Key(4)] public string SurveyIdentifier { get; set; } /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(5)] 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. /// + [Key(6)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(7)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -226416,7 +235371,7 @@ private Link CreateLink() /// /// A class which represents the edfi.SurveyProgramAssociation table of the SurveyProgramAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class SurveyProgramAssociation : Entities.Common.EdFi.ISurveyProgramAssociation, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -226445,6 +235400,7 @@ public class SurveyProgramAssociation : Entities.Common.EdFi.ISurveyProgramAssoc /// The unique identifier for the SurveyProgramAssociation resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -226468,6 +235424,7 @@ private Program.EdFi.ProgramReference ImplicitProgramReference } [DataMember(Name="programReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Program.EdFi.ProgramReference ProgramReference { @@ -226501,6 +235458,7 @@ private Survey.EdFi.SurveyReference ImplicitSurveyReference } [DataMember(Name="surveyReference")] + [Key(2)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Survey.EdFi.SurveyReference SurveyReference { @@ -226754,6 +235712,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "SurveyProgramAssociation", "SurveyProgramAssociation")] + [Key(3)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -226767,9 +235726,11 @@ public override int GetHashCode() // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(4)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(5)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -226929,33 +235890,41 @@ namespace EdFi.Ods.Api.Common.Models.Resources.SurveyQuestion.EdFi /// /// Represents a reference to the SurveyQuestion resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class SurveyQuestionReference : IResourceReference { [DataMember(Name="namespace")] + [Key(0)] public string Namespace { get; set; } [DataMember(Name="questionCode")] + [Key(1)] public string QuestionCode { get; set; } [DataMember(Name="surveyIdentifier")] + [Key(2)] public string SurveyIdentifier { get; set; } /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(3)] 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. /// + [Key(4)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(5)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -227034,7 +236003,7 @@ private Link CreateLink() /// /// A class which represents the edfi.SurveyQuestion table of the SurveyQuestion aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class SurveyQuestion : Entities.Common.EdFi.ISurveyQuestion, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -227068,6 +236037,7 @@ public SurveyQuestion() /// The unique identifier for the SurveyQuestion resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -227091,6 +236061,7 @@ private Survey.EdFi.SurveyReference ImplicitSurveyReference } [DataMember(Name="surveyReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Survey.EdFi.SurveyReference SurveyReference { @@ -227124,6 +236095,7 @@ private SurveySection.EdFi.SurveySectionReference ImplicitSurveySectionReference } [DataMember(Name="surveySectionReference")] + [Key(2)] [FullyDefinedReference] public SurveySection.EdFi.SurveySectionReference SurveySectionReference { @@ -227184,6 +236156,7 @@ string Entities.Common.EdFi.ISurveyQuestion.Namespace [RequiredWithNonDefault] [NonDefaultStringLength(60, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="questionCode")] + [Key(3)] public string QuestionCode { get; set; } /// @@ -227294,8 +236267,16 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="questionFormDescriptor")][DescriptorExists("QuestionFormDescriptor")] + [IgnoreMember] public string QuestionFormDescriptor { get; set; } + [Key(4)][JsonIgnore] + public int QuestionFormDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("QuestionFormDescriptor", QuestionFormDescriptor); } + set { QuestionFormDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("QuestionFormDescriptor", value); } + } + /// /// The text of the question. /// @@ -227303,6 +236284,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="questionText")] + [Key(5)] public string QuestionText { get; set; } /// @@ -227352,6 +236334,7 @@ string Entities.Common.EdFi.ISurveyQuestion.SurveySectionTitle // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "SurveyQuestion", "SurveyQuestion")] + [Key(6)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -227363,6 +236346,7 @@ string Entities.Common.EdFi.ISurveyQuestion.SurveySectionTitle [NoDuplicateMembers] [DataMember(Name="matrices")] + [Key(7)] public ICollection SurveyQuestionMatrices { get { return _surveyQuestionMatrices; } @@ -227393,6 +236377,7 @@ public ICollection SurveyQuestionMatrices [NoDuplicateMembers] [DataMember(Name="responseChoices")] + [Key(8)] public ICollection SurveyQuestionResponseChoices { get { return _surveyQuestionResponseChoices; } @@ -227425,9 +236410,11 @@ public ICollection SurveyQuestionResponseChoices // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(9)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(10)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -227732,7 +236719,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.SurveyQuestionMatrix table of the SurveyQuestion aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class SurveyQuestionMatrix : Entities.Common.EdFi.ISurveyQuestionMatrix, IValidatableObject { @@ -227775,6 +236762,7 @@ Entities.Common.EdFi.ISurveyQuestion ISurveyQuestionMatrix.SurveyQuestion set { SetSurveyQuestion(value); } } + [IgnoreMember] public Entities.Common.EdFi.ISurveyQuestion SurveyQuestion { set { SetSurveyQuestion(value); } @@ -227792,6 +236780,7 @@ private void SetSurveyQuestion(Entities.Common.EdFi.ISurveyQuestion value) [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="matrixElement")] + [Key(0)] public string MatrixElement { get; set; } // ------------------------------------------------------------- @@ -227862,6 +236851,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="maxRawScore")] + [Key(1)] public int? MaxRawScore { get; set; } /// @@ -227869,6 +236859,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="minRawScore")] + [Key(2)] public int? MinRawScore { get; set; } // ------------------------------------------------------------- @@ -227891,6 +236882,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "SurveyQuestion", "SurveyQuestionMatrix")] + [Key(3)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -228027,7 +237019,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.SurveyQuestionResponseChoice table of the SurveyQuestion aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] [NoUnsuppliedRequiredMembersWithMeaningfulDefaults] public class SurveyQuestionResponseChoice : Entities.Common.EdFi.ISurveyQuestionResponseChoice, IHasRequiredMembersWithMeaningfulDefaultValues, IValidatableObject @@ -228071,6 +237063,7 @@ Entities.Common.EdFi.ISurveyQuestion ISurveyQuestionResponseChoice.SurveyQuestio set { SetSurveyQuestion(value); } } + [IgnoreMember] public Entities.Common.EdFi.ISurveyQuestion SurveyQuestion { set { SetSurveyQuestion(value); } @@ -228089,6 +237082,7 @@ private void SetSurveyQuestion(Entities.Common.EdFi.ISurveyQuestion value) /// // NOT in a reference, NOT a lookup column [DataMember(Name="sortOrder")] + [Key(0)] public int SortOrder { get => _sortOrder; @@ -228169,6 +237163,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(0, 100, ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="numericValue")] + [Key(1)] public int? NumericValue { get; set; } /// @@ -228177,6 +237172,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="textValue")] + [Key(2)] public string TextValue { get; set; } // ------------------------------------------------------------- @@ -228207,6 +237203,7 @@ IEnumerable IHasRequiredMembersWithMeaningfulDefaultValues.GetUnassigned // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "SurveyQuestion", "SurveyQuestionResponseChoice")] + [Key(3)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -228348,36 +237345,45 @@ namespace EdFi.Ods.Api.Common.Models.Resources.SurveyQuestionResponse.EdFi /// /// Represents a reference to the SurveyQuestionResponse resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class SurveyQuestionResponseReference : IResourceReference { [DataMember(Name="namespace")] + [Key(0)] public string Namespace { get; set; } [DataMember(Name="questionCode")] + [Key(1)] public string QuestionCode { get; set; } [DataMember(Name="surveyIdentifier")] + [Key(2)] public string SurveyIdentifier { get; set; } [DataMember(Name="surveyResponseIdentifier")] + [Key(3)] public string SurveyResponseIdentifier { get; set; } /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(4)] 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. /// + [Key(5)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(6)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -228461,7 +237467,7 @@ private Link CreateLink() /// /// A class which represents the edfi.SurveyQuestionResponse table of the SurveyQuestionResponse aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class SurveyQuestionResponse : Entities.Common.EdFi.ISurveyQuestionResponse, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -228495,6 +237501,7 @@ public SurveyQuestionResponse() /// The unique identifier for the SurveyQuestionResponse resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -228518,6 +237525,7 @@ private SurveyQuestion.EdFi.SurveyQuestionReference ImplicitSurveyQuestionRefere } [DataMember(Name="surveyQuestionReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public SurveyQuestion.EdFi.SurveyQuestionReference SurveyQuestionReference { @@ -228551,6 +237559,7 @@ private SurveyResponse.EdFi.SurveyResponseReference ImplicitSurveyResponseRefere } [DataMember(Name="surveyResponseReference")] + [Key(2)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public SurveyResponse.EdFi.SurveyResponseReference SurveyResponseReference { @@ -228768,6 +237777,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="comment")] + [Key(3)] public string Comment { get; set; } /// @@ -228775,6 +237785,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="noResponse")] + [Key(4)] public bool? NoResponse { get; set; } // ------------------------------------------------------------- @@ -228797,6 +237808,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "SurveyQuestionResponse", "SurveyQuestionResponse")] + [Key(5)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -228808,6 +237820,7 @@ public override int GetHashCode() [NoDuplicateMembers] [DataMember(Name="surveyQuestionMatrixElementResponses")] + [Key(6)] public ICollection SurveyQuestionResponseSurveyQuestionMatrixElementResponses { get { return _surveyQuestionResponseSurveyQuestionMatrixElementResponses; } @@ -228838,6 +237851,7 @@ public ICollection Su [NoDuplicateMembers] [DataMember(Name="values")] + [Key(7)] public ICollection SurveyQuestionResponseValues { get { return _surveyQuestionResponseValues; } @@ -228870,9 +237884,11 @@ public ICollection SurveyQuestionResponseValues // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(8)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(9)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -229177,7 +238193,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.SurveyQuestionResponseSurveyQuestionMatrixElementResponse table of the SurveyQuestionResponse aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class SurveyQuestionResponseSurveyQuestionMatrixElementResponse : Entities.Common.EdFi.ISurveyQuestionResponseSurveyQuestionMatrixElementResponse, IValidatableObject { @@ -229220,6 +238236,7 @@ Entities.Common.EdFi.ISurveyQuestionResponse ISurveyQuestionResponseSurveyQuesti set { SetSurveyQuestionResponse(value); } } + [IgnoreMember] public Entities.Common.EdFi.ISurveyQuestionResponse SurveyQuestionResponse { set { SetSurveyQuestionResponse(value); } @@ -229237,6 +238254,7 @@ private void SetSurveyQuestionResponse(Entities.Common.EdFi.ISurveyQuestionRespo [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="matrixElement")] + [Key(0)] public string MatrixElement { get; set; } // ------------------------------------------------------------- @@ -229307,6 +238325,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="maxNumericResponse")] + [Key(1)] public int? MaxNumericResponse { get; set; } /// @@ -229314,6 +238333,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="minNumericResponse")] + [Key(2)] public int? MinNumericResponse { get; set; } /// @@ -229321,6 +238341,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="noResponse")] + [Key(3)] public bool? NoResponse { get; set; } /// @@ -229329,6 +238350,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(0, 100, ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="numericResponse")] + [Key(4)] public int? NumericResponse { get; set; } /// @@ -229337,6 +238359,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(2048, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="textResponse")] + [Key(5)] public string TextResponse { get; set; } // ------------------------------------------------------------- @@ -229359,6 +238382,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "SurveyQuestionResponse", "SurveyQuestionResponseSurveyQuestionMatrixElementResponse")] + [Key(6)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -229495,7 +238519,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.SurveyQuestionResponseValue table of the SurveyQuestionResponse aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] [NoUnsuppliedRequiredMembersWithMeaningfulDefaults] public class SurveyQuestionResponseValue : Entities.Common.EdFi.ISurveyQuestionResponseValue, IHasRequiredMembersWithMeaningfulDefaultValues, IValidatableObject @@ -229539,6 +238563,7 @@ Entities.Common.EdFi.ISurveyQuestionResponse ISurveyQuestionResponseValue.Survey set { SetSurveyQuestionResponse(value); } } + [IgnoreMember] public Entities.Common.EdFi.ISurveyQuestionResponse SurveyQuestionResponse { set { SetSurveyQuestionResponse(value); } @@ -229557,6 +238582,7 @@ private void SetSurveyQuestionResponse(Entities.Common.EdFi.ISurveyQuestionRespo /// // NOT in a reference, NOT a lookup column [DataMember(Name="surveyQuestionResponseValueIdentifier")] + [Key(0)] public int SurveyQuestionResponseValueIdentifier { get => _surveyQuestionResponseValueIdentifier; @@ -229637,6 +238663,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(0, 100, ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="numericResponse")] + [Key(1)] public int? NumericResponse { get; set; } /// @@ -229645,6 +238672,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(2048, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="textResponse")] + [Key(2)] public string TextResponse { get; set; } // ------------------------------------------------------------- @@ -229675,6 +238703,7 @@ IEnumerable IHasRequiredMembersWithMeaningfulDefaultValues.GetUnassigned // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "SurveyQuestionResponse", "SurveyQuestionResponseValue")] + [Key(3)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -229816,33 +238845,41 @@ namespace EdFi.Ods.Api.Common.Models.Resources.SurveyResponse.EdFi /// /// Represents a reference to the SurveyResponse resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class SurveyResponseReference : IResourceReference { [DataMember(Name="namespace")] + [Key(0)] public string Namespace { get; set; } [DataMember(Name="surveyIdentifier")] + [Key(1)] public string SurveyIdentifier { get; set; } [DataMember(Name="surveyResponseIdentifier")] + [Key(2)] public string SurveyResponseIdentifier { get; set; } /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(3)] 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. /// + [Key(4)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(5)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -229921,7 +238958,7 @@ private Link CreateLink() /// /// A class which represents the edfi.SurveyResponse table of the SurveyResponse aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class SurveyResponse : Entities.Common.EdFi.ISurveyResponse, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -229954,6 +238991,7 @@ public SurveyResponse() /// The unique identifier for the SurveyResponse resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -229977,6 +239015,7 @@ private Contact.EdFi.ContactReference ImplicitContactReference } [DataMember(Name="contactReference")] + [Key(1)] [FullyDefinedReference] public Contact.EdFi.ContactReference ContactReference { @@ -230010,6 +239049,7 @@ private Staff.EdFi.StaffReference ImplicitStaffReference } [DataMember(Name="staffReference")] + [Key(2)] [FullyDefinedReference] public Staff.EdFi.StaffReference StaffReference { @@ -230043,6 +239083,7 @@ private Student.EdFi.StudentReference ImplicitStudentReference } [DataMember(Name="studentReference")] + [Key(3)] [FullyDefinedReference] public Student.EdFi.StudentReference StudentReference { @@ -230076,6 +239117,7 @@ private Survey.EdFi.SurveyReference ImplicitSurveyReference } [DataMember(Name="surveyReference")] + [Key(4)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Survey.EdFi.SurveyReference SurveyReference { @@ -230157,6 +239199,7 @@ string Entities.Common.EdFi.ISurveyResponse.SurveyIdentifier [RequiredWithNonDefault] [NonDefaultStringLength(60, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="surveyResponseIdentifier")] + [Key(5)] public string SurveyResponseIdentifier { get; set; } // ------------------------------------------------------------- @@ -230265,6 +239308,7 @@ string Entities.Common.EdFi.ISurveyResponse.ContactUniqueId // NOT in a reference, NOT a lookup column [NonDefaultStringLength(128, MinimumLength=7, ErrorMessage=ValidationHelpers.StringLengthWithMinimumMessageFormat), NoDangerousText] [DataMember(Name="electronicMailAddress")] + [Key(6)] public string ElectronicMailAddress { get; set; } /// @@ -230273,6 +239317,7 @@ string Entities.Common.EdFi.ISurveyResponse.ContactUniqueId // NOT in a reference, NOT a lookup column [NonDefaultStringLength(80, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="fullName")] + [Key(7)] public string FullName { get; set; } /// @@ -230281,6 +239326,7 @@ string Entities.Common.EdFi.ISurveyResponse.ContactUniqueId // NOT in a reference, NOT a lookup column [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="location")] + [Key(8)] public string Location { get; set; } /// @@ -230289,6 +239335,7 @@ string Entities.Common.EdFi.ISurveyResponse.ContactUniqueId // NOT in a reference, NOT a lookup column [RequiredWithNonDefault] [DataMember(Name="responseDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(9)] public DateTime ResponseDate { get; set; } /// @@ -230296,6 +239343,7 @@ string Entities.Common.EdFi.ISurveyResponse.ContactUniqueId /// // NOT in a reference, NOT a lookup column [DataMember(Name="responseTime")] + [Key(10)] public int? ResponseTime { get; set; } /// @@ -230374,6 +239422,7 @@ string Entities.Common.EdFi.ISurveyResponse.StudentUniqueId // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "SurveyResponse", "SurveyResponse")] + [Key(11)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -230385,6 +239434,7 @@ string Entities.Common.EdFi.ISurveyResponse.StudentUniqueId [NoDuplicateMembers] [DataMember(Name="surveyLevels")] + [Key(12)] public ICollection SurveyResponseSurveyLevels { get { return _surveyResponseSurveyLevels; } @@ -230417,9 +239467,11 @@ public ICollection SurveyResponseSurveyLevels // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(13)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(14)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -230652,7 +239704,7 @@ protected override bool PreValidate(FluentValidation.ValidationContext /// A class which represents the edfi.SurveyResponseSurveyLevel table of the SurveyResponse aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class SurveyResponseSurveyLevel : Entities.Common.EdFi.ISurveyResponseSurveyLevel, IValidatableObject { @@ -230695,6 +239747,7 @@ Entities.Common.EdFi.ISurveyResponse ISurveyResponseSurveyLevel.SurveyResponse set { SetSurveyResponse(value); } } + [IgnoreMember] public Entities.Common.EdFi.ISurveyResponse SurveyResponse { set { SetSurveyResponse(value); } @@ -230712,7 +239765,15 @@ private void SetSurveyResponse(Entities.Common.EdFi.ISurveyResponse value) [RequiredWithNonDefault] [NonDefaultStringLength(306, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="surveyLevelDescriptor")][DescriptorExists("SurveyLevelDescriptor")] + [IgnoreMember] public string SurveyLevelDescriptor { get; set; } + + [Key(0)][JsonIgnore] + public int SurveyLevelDescriptorId + { + get { return GeneratedArtifactStaticDependencies.DescriptorResolver.GetDescriptorId("SurveyLevelDescriptor", SurveyLevelDescriptor); } + set { SurveyLevelDescriptor = GeneratedArtifactStaticDependencies.DescriptorResolver.GetUri("SurveyLevelDescriptor", value); } + } // ------------------------------------------------------------- // ============================================================= @@ -230797,6 +239858,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "SurveyResponse", "SurveyResponseSurveyLevel")] + [Key(1)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -230938,36 +240000,45 @@ namespace EdFi.Ods.Api.Common.Models.Resources.SurveyResponseEducationOrganizati /// /// Represents a reference to the SurveyResponseEducationOrganizationTargetAssociation resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class SurveyResponseEducationOrganizationTargetAssociationReference : IResourceReference { [DataMember(Name="educationOrganizationId")] + [Key(0)] public long EducationOrganizationId { get; set; } [DataMember(Name="namespace")] + [Key(1)] public string Namespace { get; set; } [DataMember(Name="surveyIdentifier")] + [Key(2)] public string SurveyIdentifier { get; set; } [DataMember(Name="surveyResponseIdentifier")] + [Key(3)] public string SurveyResponseIdentifier { get; set; } /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(4)] 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. /// + [Key(5)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(6)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -231051,7 +240122,7 @@ private Link CreateLink() /// /// A class which represents the edfi.SurveyResponseEducationOrganizationTargetAssociation table of the SurveyResponseEducationOrganizationTargetAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class SurveyResponseEducationOrganizationTargetAssociation : Entities.Common.EdFi.ISurveyResponseEducationOrganizationTargetAssociation, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -231080,6 +240151,7 @@ public class SurveyResponseEducationOrganizationTargetAssociation : Entities.Com /// The unique identifier for the SurveyResponseEducationOrganizationTargetAssociation resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -231103,6 +240175,7 @@ private EducationOrganization.EdFi.EducationOrganizationReference ImplicitEducat } [DataMember(Name="educationOrganizationReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public EducationOrganization.EdFi.EducationOrganizationReference EducationOrganizationReference { @@ -231136,6 +240209,7 @@ private SurveyResponse.EdFi.SurveyResponseReference ImplicitSurveyResponseRefere } [DataMember(Name="surveyResponseReference")] + [Key(2)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public SurveyResponse.EdFi.SurveyResponseReference SurveyResponseReference { @@ -231359,6 +240433,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "SurveyResponseEducationOrganizationTargetAssociation", "SurveyResponseEducationOrganizationTargetAssociation")] + [Key(3)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -231372,9 +240447,11 @@ public override int GetHashCode() // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(4)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(5)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -231534,11 +240611,12 @@ namespace EdFi.Ods.Api.Common.Models.Resources.SurveyResponseStaffTargetAssociat /// /// Represents a reference to the SurveyResponseStaffTargetAssociation resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class SurveyResponseStaffTargetAssociationReference : IResourceReference { [DataMember(Name="namespace")] + [Key(0)] public string Namespace { get; set; } [DataMember(Name="staffUniqueId")] @@ -231554,25 +240632,32 @@ public string StaffUniqueId private string _staffUniqueId; [DataMember(Name="surveyIdentifier")] + [Key(1)] public string SurveyIdentifier { get; set; } [DataMember(Name="surveyResponseIdentifier")] + [Key(2)] public string SurveyResponseIdentifier { get; set; } /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(3)] 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. /// + [Key(4)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(5)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -231656,7 +240741,7 @@ private Link CreateLink() /// /// A class which represents the edfi.SurveyResponseStaffTargetAssociation table of the SurveyResponseStaffTargetAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class SurveyResponseStaffTargetAssociation : Entities.Common.EdFi.ISurveyResponseStaffTargetAssociation, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -231685,6 +240770,7 @@ public class SurveyResponseStaffTargetAssociation : Entities.Common.EdFi.ISurvey /// The unique identifier for the SurveyResponseStaffTargetAssociation resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -231708,6 +240794,7 @@ private Staff.EdFi.StaffReference ImplicitStaffReference } [DataMember(Name="staffReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Staff.EdFi.StaffReference StaffReference { @@ -231741,6 +240828,7 @@ private SurveyResponse.EdFi.SurveyResponseReference ImplicitSurveyResponseRefere } [DataMember(Name="surveyResponseReference")] + [Key(2)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public SurveyResponse.EdFi.SurveyResponseReference SurveyResponseReference { @@ -231965,6 +241053,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "SurveyResponseStaffTargetAssociation", "SurveyResponseStaffTargetAssociation")] + [Key(3)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -231978,9 +241067,11 @@ public override int GetHashCode() // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(4)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(5)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -232140,33 +241231,41 @@ namespace EdFi.Ods.Api.Common.Models.Resources.SurveySection.EdFi /// /// Represents a reference to the SurveySection resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class SurveySectionReference : IResourceReference { [DataMember(Name="namespace")] + [Key(0)] public string Namespace { get; set; } [DataMember(Name="surveyIdentifier")] + [Key(1)] public string SurveyIdentifier { get; set; } [DataMember(Name="surveySectionTitle")] + [Key(2)] public string SurveySectionTitle { get; set; } /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(3)] 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. /// + [Key(4)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(5)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -232245,7 +241344,7 @@ private Link CreateLink() /// /// A class which represents the edfi.SurveySection table of the SurveySection aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class SurveySection : Entities.Common.EdFi.ISurveySection, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -232274,6 +241373,7 @@ public class SurveySection : Entities.Common.EdFi.ISurveySection, IHasETag, IDat /// The unique identifier for the SurveySection resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -232297,6 +241397,7 @@ private Survey.EdFi.SurveyReference ImplicitSurveyReference } [DataMember(Name="surveyReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Survey.EdFi.SurveyReference SurveyReference { @@ -232378,6 +241479,7 @@ string Entities.Common.EdFi.ISurveySection.SurveyIdentifier [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText, NoWhitespace] [DataMember(Name="surveySectionTitle")] + [Key(2)] public string SurveySectionTitle { get; set; } // ------------------------------------------------------------- @@ -232472,6 +241574,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "SurveySection", "SurveySection")] + [Key(3)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -232485,9 +241588,11 @@ public override int GetHashCode() // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(4)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(5)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -232633,45 +241738,57 @@ namespace EdFi.Ods.Api.Common.Models.Resources.SurveySectionAssociation.EdFi /// /// Represents a reference to the SurveySectionAssociation resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class SurveySectionAssociationReference : IResourceReference { [DataMember(Name="localCourseCode")] + [Key(0)] public string LocalCourseCode { get; set; } [DataMember(Name="namespace")] + [Key(1)] public string Namespace { get; set; } [DataMember(Name="schoolId")] + [Key(2)] public long SchoolId { get; set; } [DataMember(Name="schoolYear")] + [Key(3)] public short SchoolYear { get; set; } [DataMember(Name="sectionIdentifier")] + [Key(4)] public string SectionIdentifier { get; set; } [DataMember(Name="sessionName")] + [Key(5)] public string SessionName { get; set; } [DataMember(Name="surveyIdentifier")] + [Key(6)] public string SurveyIdentifier { get; set; } /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(7)] 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. /// + [Key(8)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(9)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -232770,7 +241887,7 @@ private Link CreateLink() /// /// A class which represents the edfi.SurveySectionAssociation table of the SurveySectionAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class SurveySectionAssociation : Entities.Common.EdFi.ISurveySectionAssociation, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -232799,6 +241916,7 @@ public class SurveySectionAssociation : Entities.Common.EdFi.ISurveySectionAssoc /// The unique identifier for the SurveySectionAssociation resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -232822,6 +241940,7 @@ private Section.EdFi.SectionReference ImplicitSectionReference } [DataMember(Name="sectionReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Section.EdFi.SectionReference SectionReference { @@ -232855,6 +241974,7 @@ private Survey.EdFi.SurveyReference ImplicitSurveyReference } [DataMember(Name="surveyReference")] + [Key(2)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Survey.EdFi.SurveyReference SurveyReference { @@ -233177,6 +242297,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "SurveySectionAssociation", "SurveySectionAssociation")] + [Key(3)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -233190,9 +242311,11 @@ public override int GetHashCode() // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(4)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(5)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -233352,36 +242475,45 @@ namespace EdFi.Ods.Api.Common.Models.Resources.SurveySectionResponse.EdFi /// /// Represents a reference to the SurveySectionResponse resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class SurveySectionResponseReference : IResourceReference { [DataMember(Name="namespace")] + [Key(0)] public string Namespace { get; set; } [DataMember(Name="surveyIdentifier")] + [Key(1)] public string SurveyIdentifier { get; set; } [DataMember(Name="surveyResponseIdentifier")] + [Key(2)] public string SurveyResponseIdentifier { get; set; } [DataMember(Name="surveySectionTitle")] + [Key(3)] public string SurveySectionTitle { get; set; } /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(4)] 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. /// + [Key(5)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(6)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -233465,7 +242597,7 @@ private Link CreateLink() /// /// A class which represents the edfi.SurveySectionResponse table of the SurveySectionResponse aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class SurveySectionResponse : Entities.Common.EdFi.ISurveySectionResponse, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -233494,6 +242626,7 @@ public class SurveySectionResponse : Entities.Common.EdFi.ISurveySectionResponse /// The unique identifier for the SurveySectionResponse resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -233517,6 +242650,7 @@ private SurveyResponse.EdFi.SurveyResponseReference ImplicitSurveyResponseRefere } [DataMember(Name="surveyResponseReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public SurveyResponse.EdFi.SurveyResponseReference SurveyResponseReference { @@ -233550,6 +242684,7 @@ private SurveySection.EdFi.SurveySectionReference ImplicitSurveySectionReference } [DataMember(Name="surveySectionReference")] + [Key(2)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public SurveySection.EdFi.SurveySectionReference SurveySectionReference { @@ -233767,6 +242902,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [Range(typeof(decimal), "0", "999999.999", ErrorMessage=ValidationHelpers.RangeMessageFormat)] [DataMember(Name="sectionRating")] + [Key(3)] public decimal? SectionRating { get; set; } // ------------------------------------------------------------- @@ -233789,6 +242925,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "SurveySectionResponse", "SurveySectionResponse")] + [Key(4)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -233802,9 +242939,11 @@ public override int GetHashCode() // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(5)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(6)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -234035,39 +243174,49 @@ namespace EdFi.Ods.Api.Common.Models.Resources.SurveySectionResponseEducationOrg /// /// Represents a reference to the SurveySectionResponseEducationOrganizationTargetAssociation resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class SurveySectionResponseEducationOrganizationTargetAssociationReference : IResourceReference { [DataMember(Name="educationOrganizationId")] + [Key(0)] public long EducationOrganizationId { get; set; } [DataMember(Name="namespace")] + [Key(1)] public string Namespace { get; set; } [DataMember(Name="surveyIdentifier")] + [Key(2)] public string SurveyIdentifier { get; set; } [DataMember(Name="surveyResponseIdentifier")] + [Key(3)] public string SurveyResponseIdentifier { get; set; } [DataMember(Name="surveySectionTitle")] + [Key(4)] public string SurveySectionTitle { get; set; } /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(5)] 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. /// + [Key(6)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(7)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -234156,7 +243305,7 @@ private Link CreateLink() /// /// A class which represents the edfi.SurveySectionResponseEducationOrganizationTargetAssociation table of the SurveySectionResponseEducationOrganizationTargetAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class SurveySectionResponseEducationOrganizationTargetAssociation : Entities.Common.EdFi.ISurveySectionResponseEducationOrganizationTargetAssociation, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -234185,6 +243334,7 @@ public class SurveySectionResponseEducationOrganizationTargetAssociation : Entit /// The unique identifier for the SurveySectionResponseEducationOrganizationTargetAssociation resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -234208,6 +243358,7 @@ private EducationOrganization.EdFi.EducationOrganizationReference ImplicitEducat } [DataMember(Name="educationOrganizationReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public EducationOrganization.EdFi.EducationOrganizationReference EducationOrganizationReference { @@ -234241,6 +243392,7 @@ private SurveySectionResponse.EdFi.SurveySectionResponseReference ImplicitSurvey } [DataMember(Name="surveySectionResponseReference")] + [Key(2)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public SurveySectionResponse.EdFi.SurveySectionResponseReference SurveySectionResponseReference { @@ -234497,6 +243649,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "SurveySectionResponseEducationOrganizationTargetAssociation", "SurveySectionResponseEducationOrganizationTargetAssociation")] + [Key(3)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -234510,9 +243663,11 @@ public override int GetHashCode() // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(4)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(5)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -234672,11 +243827,12 @@ namespace EdFi.Ods.Api.Common.Models.Resources.SurveySectionResponseStaffTargetA /// /// Represents a reference to the SurveySectionResponseStaffTargetAssociation resource. /// - [DataContract] + [DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class SurveySectionResponseStaffTargetAssociationReference : IResourceReference { [DataMember(Name="namespace")] + [Key(0)] public string Namespace { get; set; } [DataMember(Name="staffUniqueId")] @@ -234692,28 +243848,36 @@ public string StaffUniqueId private string _staffUniqueId; [DataMember(Name="surveyIdentifier")] + [Key(1)] public string SurveyIdentifier { get; set; } [DataMember(Name="surveyResponseIdentifier")] + [Key(2)] public string SurveyResponseIdentifier { get; set; } [DataMember(Name="surveySectionTitle")] + [Key(3)] public string SurveySectionTitle { get; set; } /// /// Gets or sets the resource identifier of the referenced resource. /// + [Key(4)] 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. /// + [Key(5)] public string Discriminator { get; set; } - private Link _link; + [JsonIgnore] + [Key(6)] + public Link _link; + [IgnoreMember] [DataMember(Name="link")] public Link Link { @@ -234802,7 +243966,7 @@ private Link CreateLink() /// /// A class which represents the edfi.SurveySectionResponseStaffTargetAssociation table of the SurveySectionResponseStaffTargetAssociation aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class SurveySectionResponseStaffTargetAssociation : Entities.Common.EdFi.ISurveySectionResponseStaffTargetAssociation, IHasETag, IDateVersionedEntity, IValidatableObject { @@ -234831,6 +243995,7 @@ public class SurveySectionResponseStaffTargetAssociation : Entities.Common.EdFi. /// The unique identifier for the SurveySectionResponseStaffTargetAssociation resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -234854,6 +244019,7 @@ private Staff.EdFi.StaffReference ImplicitStaffReference } [DataMember(Name="staffReference")] + [Key(1)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public Staff.EdFi.StaffReference StaffReference { @@ -234887,6 +244053,7 @@ private SurveySectionResponse.EdFi.SurveySectionResponseReference ImplicitSurvey } [DataMember(Name="surveySectionResponseReference")] + [Key(2)] [FullyDefinedReference][RequiredReference(isIdentifying: true)] public SurveySectionResponse.EdFi.SurveySectionResponseReference SurveySectionResponseReference { @@ -235144,6 +244311,7 @@ public override int GetHashCode() // Extensions // ------------------------------------------------------------- [JsonProperty("_ext")][JsonConverter(typeof(ExtensionsConverter), "SurveySectionResponseStaffTargetAssociation", "SurveySectionResponseStaffTargetAssociation")] + [Key(3)] public System.Collections.IDictionary Extensions { get; set; } // ------------------------------------------------------------- @@ -235157,9 +244325,11 @@ public override int GetHashCode() // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(4)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(5)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -235319,7 +244489,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.TeachingCredentialBasisDescriptor /// /// A class which represents the edfi.TeachingCredentialBasisDescriptor table of the TeachingCredentialBasisDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class TeachingCredentialBasisDescriptor : Entities.Common.EdFi.ITeachingCredentialBasisDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -235348,6 +244518,7 @@ public class TeachingCredentialBasisDescriptor : Entities.Common.EdFi.ITeachingC /// The unique identifier for the TeachingCredentialBasisDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -235432,6 +244603,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -235440,6 +244612,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -235447,6 +244620,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -235454,6 +244628,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -235463,6 +244638,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -235472,6 +244648,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -235515,9 +244692,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -235590,7 +244769,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.TeachingCredentialDescriptor.EdFi /// /// A class which represents the edfi.TeachingCredentialDescriptor table of the TeachingCredentialDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class TeachingCredentialDescriptor : Entities.Common.EdFi.ITeachingCredentialDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -235619,6 +244798,7 @@ public class TeachingCredentialDescriptor : Entities.Common.EdFi.ITeachingCreden /// The unique identifier for the TeachingCredentialDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -235703,6 +244883,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -235711,6 +244892,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -235718,6 +244900,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -235725,6 +244908,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -235734,6 +244918,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -235743,6 +244928,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -235786,9 +244972,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -235861,7 +245049,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.TechnicalSkillsAssessmentDescript /// /// A class which represents the edfi.TechnicalSkillsAssessmentDescriptor table of the TechnicalSkillsAssessmentDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class TechnicalSkillsAssessmentDescriptor : Entities.Common.EdFi.ITechnicalSkillsAssessmentDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -235890,6 +245078,7 @@ public class TechnicalSkillsAssessmentDescriptor : Entities.Common.EdFi.ITechnic /// The unique identifier for the TechnicalSkillsAssessmentDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -235974,6 +245163,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -235982,6 +245172,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -235989,6 +245180,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -235996,6 +245188,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -236005,6 +245198,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -236014,6 +245208,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -236057,9 +245252,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -236132,7 +245329,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.TelephoneNumberTypeDescriptor.EdF /// /// A class which represents the edfi.TelephoneNumberTypeDescriptor table of the TelephoneNumberTypeDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class TelephoneNumberTypeDescriptor : Entities.Common.EdFi.ITelephoneNumberTypeDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -236161,6 +245358,7 @@ public class TelephoneNumberTypeDescriptor : Entities.Common.EdFi.ITelephoneNumb /// The unique identifier for the TelephoneNumberTypeDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -236245,6 +245443,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -236253,6 +245452,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -236260,6 +245460,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -236267,6 +245468,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -236276,6 +245478,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -236285,6 +245488,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -236328,9 +245532,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -236403,7 +245609,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.TermDescriptor.EdFi /// /// A class which represents the edfi.TermDescriptor table of the TermDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class TermDescriptor : Entities.Common.EdFi.ITermDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -236432,6 +245638,7 @@ public class TermDescriptor : Entities.Common.EdFi.ITermDescriptor, Entities.Com /// The unique identifier for the TermDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -236516,6 +245723,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -236524,6 +245732,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -236531,6 +245740,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -236538,6 +245748,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -236547,6 +245758,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -236556,6 +245768,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -236599,9 +245812,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -236674,7 +245889,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.TitleIPartAParticipantDescriptor. /// /// A class which represents the edfi.TitleIPartAParticipantDescriptor table of the TitleIPartAParticipantDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class TitleIPartAParticipantDescriptor : Entities.Common.EdFi.ITitleIPartAParticipantDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -236703,6 +245918,7 @@ public class TitleIPartAParticipantDescriptor : Entities.Common.EdFi.ITitleIPart /// The unique identifier for the TitleIPartAParticipantDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -236787,6 +246003,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -236795,6 +246012,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -236802,6 +246020,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -236809,6 +246028,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -236818,6 +246038,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -236827,6 +246048,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -236870,9 +246092,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -236945,7 +246169,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.TitleIPartAProgramServiceDescript /// /// A class which represents the edfi.TitleIPartAProgramServiceDescriptor table of the TitleIPartAProgramServiceDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class TitleIPartAProgramServiceDescriptor : Entities.Common.EdFi.ITitleIPartAProgramServiceDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -236974,6 +246198,7 @@ public class TitleIPartAProgramServiceDescriptor : Entities.Common.EdFi.ITitleIP /// The unique identifier for the TitleIPartAProgramServiceDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -237058,6 +246283,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -237066,6 +246292,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -237073,6 +246300,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -237080,6 +246308,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -237089,6 +246318,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -237098,6 +246328,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -237141,9 +246372,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -237216,7 +246449,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.TitleIPartASchoolDesignationDescr /// /// A class which represents the edfi.TitleIPartASchoolDesignationDescriptor table of the TitleIPartASchoolDesignationDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class TitleIPartASchoolDesignationDescriptor : Entities.Common.EdFi.ITitleIPartASchoolDesignationDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -237245,6 +246478,7 @@ public class TitleIPartASchoolDesignationDescriptor : Entities.Common.EdFi.ITitl /// The unique identifier for the TitleIPartASchoolDesignationDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -237329,6 +246563,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -237337,6 +246572,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -237344,6 +246580,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -237351,6 +246588,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -237360,6 +246598,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -237369,6 +246608,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -237412,9 +246652,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -237487,7 +246729,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.TransportationPublicExpenseEligib /// /// A class which represents the edfi.TransportationPublicExpenseEligibilityTypeDescriptor table of the TransportationPublicExpenseEligibilityTypeDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class TransportationPublicExpenseEligibilityTypeDescriptor : Entities.Common.EdFi.ITransportationPublicExpenseEligibilityTypeDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -237516,6 +246758,7 @@ public class TransportationPublicExpenseEligibilityTypeDescriptor : Entities.Com /// The unique identifier for the TransportationPublicExpenseEligibilityTypeDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -237600,6 +246843,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -237608,6 +246852,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -237615,6 +246860,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -237622,6 +246868,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -237631,6 +246878,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -237640,6 +246888,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -237683,9 +246932,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -237758,7 +247009,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.TransportationTypeDescriptor.EdFi /// /// A class which represents the edfi.TransportationTypeDescriptor table of the TransportationTypeDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class TransportationTypeDescriptor : Entities.Common.EdFi.ITransportationTypeDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -237787,6 +247038,7 @@ public class TransportationTypeDescriptor : Entities.Common.EdFi.ITransportation /// The unique identifier for the TransportationTypeDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -237871,6 +247123,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -237879,6 +247132,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -237886,6 +247140,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -237893,6 +247148,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -237902,6 +247158,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -237911,6 +247168,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -237954,9 +247212,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -238029,7 +247289,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.TravelDayofWeekDescriptor.EdFi /// /// A class which represents the edfi.TravelDayofWeekDescriptor table of the TravelDayofWeekDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class TravelDayofWeekDescriptor : Entities.Common.EdFi.ITravelDayofWeekDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -238058,6 +247318,7 @@ public class TravelDayofWeekDescriptor : Entities.Common.EdFi.ITravelDayofWeekDe /// The unique identifier for the TravelDayofWeekDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -238142,6 +247403,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -238150,6 +247412,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -238157,6 +247420,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -238164,6 +247428,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -238173,6 +247438,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -238182,6 +247448,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -238225,9 +247492,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -238300,7 +247569,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.TravelDirectionDescriptor.EdFi /// /// A class which represents the edfi.TravelDirectionDescriptor table of the TravelDirectionDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class TravelDirectionDescriptor : Entities.Common.EdFi.ITravelDirectionDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -238329,6 +247598,7 @@ public class TravelDirectionDescriptor : Entities.Common.EdFi.ITravelDirectionDe /// The unique identifier for the TravelDirectionDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -238413,6 +247683,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -238421,6 +247692,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -238428,6 +247700,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -238435,6 +247708,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -238444,6 +247718,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -238453,6 +247728,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -238496,9 +247772,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -238571,7 +247849,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.TribalAffiliationDescriptor.EdFi /// /// A class which represents the edfi.TribalAffiliationDescriptor table of the TribalAffiliationDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class TribalAffiliationDescriptor : Entities.Common.EdFi.ITribalAffiliationDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -238600,6 +247878,7 @@ public class TribalAffiliationDescriptor : Entities.Common.EdFi.ITribalAffiliati /// The unique identifier for the TribalAffiliationDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -238684,6 +247963,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -238692,6 +247972,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -238699,6 +247980,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -238706,6 +247988,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -238715,6 +247998,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -238724,6 +248008,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -238767,9 +248052,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -238842,7 +248129,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.VisaDescriptor.EdFi /// /// A class which represents the edfi.VisaDescriptor table of the VisaDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class VisaDescriptor : Entities.Common.EdFi.IVisaDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -238871,6 +248158,7 @@ public class VisaDescriptor : Entities.Common.EdFi.IVisaDescriptor, Entities.Com /// The unique identifier for the VisaDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -238955,6 +248243,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -238963,6 +248252,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -238970,6 +248260,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -238977,6 +248268,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -238986,6 +248278,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -238995,6 +248288,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -239038,9 +248332,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // ------------------------------------------------------------- @@ -239113,7 +248409,7 @@ namespace EdFi.Ods.Api.Common.Models.Resources.WeaponDescriptor.EdFi /// /// A class which represents the edfi.WeaponDescriptor table of the WeaponDescriptor aggregate in the ODS Database. /// - [Serializable, DataContract] + [Serializable, DataContract, MessagePackObject] [ExcludeFromCodeCoverage] public class WeaponDescriptor : Entities.Common.EdFi.IWeaponDescriptor, Entities.Common.EdFi.IDescriptor, IHasETag, IDateVersionedEntity { @@ -239142,6 +248438,7 @@ public class WeaponDescriptor : Entities.Common.EdFi.IWeaponDescriptor, Entities /// The unique identifier for the WeaponDescriptor resource. /// [DataMember(Name="id")] + [Key(0)] [JsonConverter(typeof(GuidConverter))] public Guid Id { get; set; } // ------------------------------------------------------------ @@ -239226,6 +248523,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(50, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="codeValue")] + [Key(1)] public string CodeValue { get; set; } /// @@ -239234,6 +248532,7 @@ public override int GetHashCode() // NOT in a reference, NOT a lookup column [NonDefaultStringLength(1024, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="description")] + [Key(2)] public string Description { get; set; } /// @@ -239241,6 +248540,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveBeginDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(3)] public DateTime? EffectiveBeginDate { get; set; } /// @@ -239248,6 +248548,7 @@ public override int GetHashCode() /// // NOT in a reference, NOT a lookup column [DataMember(Name="effectiveEndDate")][JsonConverter(typeof(Iso8601UtcDateOnlyConverter))] + [Key(4)] public DateTime? EffectiveEndDate { get; set; } /// @@ -239257,6 +248558,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(255, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="namespace")] + [Key(5)] public string Namespace { get; set; } /// @@ -239266,6 +248568,7 @@ public override int GetHashCode() [RequiredWithNonDefault] [NonDefaultStringLength(75, ErrorMessage=ValidationHelpers.StringLengthMessageFormat), NoDangerousText] [DataMember(Name="shortDescription")] + [Key(6)] public string ShortDescription { get; set; } // ------------------------------------------------------------- @@ -239309,9 +248612,11 @@ public System.Collections.IDictionary Extensions { // ------------------------------------------------------------- [DataMember(Name="_etag")] + [Key(7)] public virtual string ETag { get; set; } [DataMember(Name="_lastModifiedDate")] + [Key(8)] public virtual DateTime LastModifiedDate { get; set; } // -------------------------------------------------------------