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