Skip to content

Commit

Permalink
ApprovalTest CodeFix
Browse files Browse the repository at this point in the history
  • Loading branch information
semalaiappan committed Nov 20, 2024
1 parent 3fb95bc commit dbb6121
Show file tree
Hide file tree
Showing 13 changed files with 216 additions and 106 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10629,6 +10629,8 @@ protected override void MapAll(Api.Common.Models.Requests.StudentAssessmentRegis
specification.Namespace = request.Namespace;
specification.PlatformTypeDescriptor = request.PlatformTypeDescriptor;
specification.ReportingEducationOrganizationId = request.ReportingEducationOrganizationId;
specification.ScheduledEducationOrganizationId = request.ScheduledEducationOrganizationId;
specification.ScheduledStudentUniqueId = request.ScheduledStudentUniqueId;
specification.SchoolId = request.SchoolId;
specification.StudentUniqueId = request.StudentUniqueId;
specification.TestingEducationOrganizationId = request.TestingEducationOrganizationId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16519,6 +16519,8 @@
<property name="EntryDate" column="EntryDate" type="date" not-null="true" />
<property name="PlatformTypeDescriptorId" column="PlatformTypeDescriptorId" type="int" />
<property name="ReportingEducationOrganizationId" column="ReportingEducationOrganizationId" type="long" />
<property name="ScheduledEducationOrganizationId" column="ScheduledEducationOrganizationId" type="long" />
<property name="ScheduledStudentUSI" column="ScheduledStudentUSI" type="int" />
<property name="SchoolId" column="SchoolId" type="long" not-null="true" />
<property name="TestingEducationOrganizationId" column="TestingEducationOrganizationId" type="long" />

Expand All @@ -16532,9 +16534,9 @@
<many-to-one name="ReportingEducationOrganizationReferenceData" class="EdFi.Ods.Entities.NHibernate.EducationOrganizationAggregate.EdFi.EducationOrganizationReferenceData" fetch="join" insert="false" update="false" cascade="none" lazy="proxy">
<column name="ReportingEducationOrganizationId" />
</many-to-one>
<many-to-one name="StudentEducationOrganizationAssessmentAccommodationReferenceData" class="EdFi.Ods.Entities.NHibernate.StudentEducationOrganizationAssessmentAccommodationAggregate.EdFi.StudentEducationOrganizationAssessmentAccommodationReferenceData" fetch="join" insert="false" update="false" cascade="none" lazy="proxy">
<column name="EducationOrganizationId" />
<column name="StudentUSI" />
<many-to-one name="ScheduledStudentEducationOrganizationAssessmentAccommodationReferenceData" class="EdFi.Ods.Entities.NHibernate.StudentEducationOrganizationAssessmentAccommodationAggregate.EdFi.StudentEducationOrganizationAssessmentAccommodationReferenceData" fetch="join" insert="false" update="false" cascade="none" lazy="proxy">
<column name="ScheduledEducationOrganizationId" />
<column name="ScheduledStudentUSI" />
</many-to-one>
<many-to-one name="StudentEducationOrganizationAssociationReferenceData" class="EdFi.Ods.Entities.NHibernate.StudentEducationOrganizationAssociationAggregate.EdFi.StudentEducationOrganizationAssociationReferenceData" fetch="join" insert="false" update="false" cascade="none" lazy="proxy">
<column name="EducationOrganizationId" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21403,6 +21403,8 @@
<property name="EntryDate" column="EntryDate" type="date" not-null="true" />
<property name="PlatformTypeDescriptorId" column="PlatformTypeDescriptorId" type="int" />
<property name="ReportingEducationOrganizationId" column="ReportingEducationOrganizationId" type="long" />
<property name="ScheduledEducationOrganizationId" column="ScheduledEducationOrganizationId" type="long" />
<property name="ScheduledStudentUSI" column="ScheduledStudentUSI" type="int" />
<property name="SchoolId" column="SchoolId" type="long" not-null="true" />
<property name="TestingEducationOrganizationId" column="TestingEducationOrganizationId" type="long" />

Expand All @@ -21424,9 +21426,9 @@
<many-to-one name="ReportingEducationOrganization" class="EdFi.Ods.Entities.NHibernate.QueryModels.EducationOrganizationAggregate.EdFi.EducationOrganizationQ" fetch="join" insert="false" update="false" cascade="none" lazy="proxy">
<column name="ReportingEducationOrganizationId" />
</many-to-one>
<many-to-one name="StudentEducationOrganizationAssessmentAccommodation" class="EdFi.Ods.Entities.NHibernate.QueryModels.StudentEducationOrganizationAssessmentAccommodationAggregate.EdFi.StudentEducationOrganizationAssessmentAccommodationQ" fetch="join" insert="false" update="false" cascade="none" lazy="proxy">
<column name="EducationOrganizationId" />
<column name="StudentUSI" />
<many-to-one name="ScheduledStudentEducationOrganizationAssessmentAccommodation" class="EdFi.Ods.Entities.NHibernate.QueryModels.StudentEducationOrganizationAssessmentAccommodationAggregate.EdFi.StudentEducationOrganizationAssessmentAccommodationQ" fetch="join" insert="false" update="false" cascade="none" lazy="proxy">
<column name="ScheduledEducationOrganizationId" />
<column name="ScheduledStudentUSI" />
</many-to-one>
<many-to-one name="StudentEducationOrganizationAssociation" class="EdFi.Ods.Entities.NHibernate.QueryModels.StudentEducationOrganizationAssociationAggregate.EdFi.StudentEducationOrganizationAssociationQ" fetch="join" insert="false" update="false" cascade="none" lazy="proxy">
<column name="EducationOrganizationId" />
Expand Down Expand Up @@ -22264,8 +22266,8 @@
<!-- Collections -->
<set name="StudentAssessmentRegistrations" cascade="none" lazy="true">
<key>
<column name="EducationOrganizationId" />
<column name="StudentUSI" />
<column name="ScheduledEducationOrganizationId" />
<column name="ScheduledStudentUSI" />
</key>
<one-to-many class="EdFi.Ods.Entities.NHibernate.QueryModels.StudentAssessmentRegistrationAggregate.EdFi.StudentAssessmentRegistrationQ" />
</set>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16519,6 +16519,8 @@
<property name="EntryDate" column="EntryDate" type="date" not-null="true" />
<property name="PlatformTypeDescriptorId" column="PlatformTypeDescriptorId" type="int" />
<property name="ReportingEducationOrganizationId" column="ReportingEducationOrganizationId" type="long" />
<property name="ScheduledEducationOrganizationId" column="ScheduledEducationOrganizationId" type="long" />
<property name="ScheduledStudentUSI" column="ScheduledStudentUSI" type="int" />
<property name="SchoolId" column="SchoolId" type="long" not-null="true" />
<property name="TestingEducationOrganizationId" column="TestingEducationOrganizationId" type="long" />

Expand All @@ -16532,9 +16534,9 @@
<many-to-one name="ReportingEducationOrganizationReferenceData" class="EdFi.Ods.Entities.NHibernate.EducationOrganizationAggregate.EdFi.EducationOrganizationReferenceData" fetch="join" insert="false" update="false" cascade="none" lazy="proxy">
<column name="ReportingEducationOrganizationId" />
</many-to-one>
<many-to-one name="StudentEducationOrganizationAssessmentAccommodationReferenceData" class="EdFi.Ods.Entities.NHibernate.StudentEducationOrganizationAssessmentAccommodationAggregate.EdFi.StudentEducationOrganizationAssessmentAccommodationReferenceData" fetch="join" insert="false" update="false" cascade="none" lazy="proxy">
<column name="EducationOrganizationId" />
<column name="StudentUSI" />
<many-to-one name="ScheduledStudentEducationOrganizationAssessmentAccommodationReferenceData" class="EdFi.Ods.Entities.NHibernate.StudentEducationOrganizationAssessmentAccommodationAggregate.EdFi.StudentEducationOrganizationAssessmentAccommodationReferenceData" fetch="join" insert="false" update="false" cascade="none" lazy="proxy">
<column name="ScheduledEducationOrganizationId" />
<column name="ScheduledStudentUSI" />
</many-to-one>
<many-to-one name="StudentEducationOrganizationAssociationReferenceData" class="EdFi.Ods.Entities.NHibernate.StudentEducationOrganizationAssociationAggregate.EdFi.StudentEducationOrganizationAssociationReferenceData" fetch="join" insert="false" update="false" cascade="none" lazy="proxy">
<column name="EducationOrganizationId" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21403,6 +21403,8 @@
<property name="EntryDate" column="EntryDate" type="date" not-null="true" />
<property name="PlatformTypeDescriptorId" column="PlatformTypeDescriptorId" type="int" />
<property name="ReportingEducationOrganizationId" column="ReportingEducationOrganizationId" type="long" />
<property name="ScheduledEducationOrganizationId" column="ScheduledEducationOrganizationId" type="long" />
<property name="ScheduledStudentUSI" column="ScheduledStudentUSI" type="int" />
<property name="SchoolId" column="SchoolId" type="long" not-null="true" />
<property name="TestingEducationOrganizationId" column="TestingEducationOrganizationId" type="long" />

Expand All @@ -21424,9 +21426,9 @@
<many-to-one name="ReportingEducationOrganization" class="EdFi.Ods.Entities.NHibernate.QueryModels.EducationOrganizationAggregate.EdFi.EducationOrganizationQ" fetch="join" insert="false" update="false" cascade="none" lazy="proxy">
<column name="ReportingEducationOrganizationId" />
</many-to-one>
<many-to-one name="StudentEducationOrganizationAssessmentAccommodation" class="EdFi.Ods.Entities.NHibernate.QueryModels.StudentEducationOrganizationAssessmentAccommodationAggregate.EdFi.StudentEducationOrganizationAssessmentAccommodationQ" fetch="join" insert="false" update="false" cascade="none" lazy="proxy">
<column name="EducationOrganizationId" />
<column name="StudentUSI" />
<many-to-one name="ScheduledStudentEducationOrganizationAssessmentAccommodation" class="EdFi.Ods.Entities.NHibernate.QueryModels.StudentEducationOrganizationAssessmentAccommodationAggregate.EdFi.StudentEducationOrganizationAssessmentAccommodationQ" fetch="join" insert="false" update="false" cascade="none" lazy="proxy">
<column name="ScheduledEducationOrganizationId" />
<column name="ScheduledStudentUSI" />
</many-to-one>
<many-to-one name="StudentEducationOrganizationAssociation" class="EdFi.Ods.Entities.NHibernate.QueryModels.StudentEducationOrganizationAssociationAggregate.EdFi.StudentEducationOrganizationAssociationQ" fetch="join" insert="false" update="false" cascade="none" lazy="proxy">
<column name="EducationOrganizationId" />
Expand Down Expand Up @@ -22264,8 +22266,8 @@
<!-- Collections -->
<set name="StudentAssessmentRegistrations" cascade="none" lazy="true">
<key>
<column name="EducationOrganizationId" />
<column name="StudentUSI" />
<column name="ScheduledEducationOrganizationId" />
<column name="ScheduledStudentUSI" />
</key>
<one-to-many class="EdFi.Ods.Entities.NHibernate.QueryModels.StudentAssessmentRegistrationAggregate.EdFi.StudentAssessmentRegistrationQ" />
</set>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1255,7 +1255,7 @@ public IndexDetails GetIndexDetails(string indexName)
{ "FK_StudentAssessmentRegistration_EducationOrganization1", new IndexDetails { IndexName = "FK_StudentAssessmentRegistration_EducationOrganization1", TableName = "StudentAssessmentRegistration", ColumnNames = new List<string> { "TestingEducationOrganizationId" } } },
{ "FK_StudentAssessmentRegistration_GradeLevelDescriptor", new IndexDetails { IndexName = "FK_StudentAssessmentRegistration_GradeLevelDescriptor", TableName = "StudentAssessmentRegistration", ColumnNames = new List<string> { "AssessmentGradeLevelDescriptorId" } } },
{ "FK_StudentAssessmentRegistration_PlatformTypeDescriptor", new IndexDetails { IndexName = "FK_StudentAssessmentRegistration_PlatformTypeDescriptor", TableName = "StudentAssessmentRegistration", ColumnNames = new List<string> { "PlatformTypeDescriptorId" } } },
{ "FK_StudentAssessmentRegistration_StudentEducationOrganizationAssessmentAccommodation", new IndexDetails { IndexName = "FK_StudentAssessmentRegistration_StudentEducationOrganizationAssessmentAccommodation", TableName = "StudentAssessmentRegistration", ColumnNames = new List<string> { "EducationOrganizationId", "StudentUSI" } } },
{ "FK_StudentAssessmentRegistration_StudentEducationOrganizationAssessmentAccommodation", new IndexDetails { IndexName = "FK_StudentAssessmentRegistration_StudentEducationOrganizationAssessmentAccommodation", TableName = "StudentAssessmentRegistration", ColumnNames = new List<string> { "ScheduledEducationOrganizationId", "ScheduledStudentUSI" } } },
{ "FK_StudentAssessmentRegistration_StudentEducationOrganizationAssociation", new IndexDetails { IndexName = "FK_StudentAssessmentRegistration_StudentEducationOrganizationAssociation", TableName = "StudentAssessmentRegistration", ColumnNames = new List<string> { "EducationOrganizationId", "StudentUSI" } } },
{ "FK_StudentAssessmentRegistration_StudentSchoolAssociation", new IndexDetails { IndexName = "FK_StudentAssessmentRegistration_StudentSchoolAssociation", TableName = "StudentAssessmentRegistration", ColumnNames = new List<string> { "EntryDate", "SchoolId", "StudentUSI" } } },
{ "StudentAssessmentRegistration_PK", new IndexDetails { IndexName = "StudentAssessmentRegistration_PK", TableName = "StudentAssessmentRegistration", ColumnNames = new List<string> { "AdministrationIdentifier", "AssessmentIdentifier", "AssigningEducationOrganizationId", "EducationOrganizationId", "Namespace", "StudentUSI" } } },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125645,6 +125645,59 @@ public virtual string PlatformTypeDescriptor
}
}
public virtual long? ReportingEducationOrganizationId { get; set; }
public virtual long? ScheduledEducationOrganizationId { get; set; }
public virtual int? ScheduledStudentUSI
{
get
{
if (_scheduledStudentUSI == default(int?) && _scheduledStudentUniqueId != null)
{
if (GeneratedArtifactStaticDependencies.UsiLookupsByUniqueIdContextProvider.Get().UsiByUniqueIdByPersonType.TryGetValue("Student", out var usiByUniqueId)
&& usiByUniqueId.TryGetValue(_scheduledStudentUniqueId, out var usi))
{
_scheduledStudentUSI = usi;
}
}

return _scheduledStudentUSI;
}
set
{
_scheduledStudentUSI = value;

if (value != null)
{
GeneratedArtifactStaticDependencies.UniqueIdLookupsByUsiContextProvider.Get().AddLookup("Student", value.Value);
}
}
}

private int? _scheduledStudentUSI;
private string _scheduledStudentUniqueId;

public virtual string ScheduledStudentUniqueId
{
get
{
if (_scheduledStudentUniqueId == null && _scheduledStudentUSI.HasValue)
{
if (GeneratedArtifactStaticDependencies.UniqueIdLookupsByUsiContextProvider.Get().UniqueIdByUsiByPersonType.TryGetValue("Student", out var uniqueIdByUsi)
&& uniqueIdByUsi.TryGetValue(_scheduledStudentUSI.Value, out var uniqueId))
{
_scheduledStudentUniqueId = uniqueId;
}
}

return _scheduledStudentUniqueId;
}
set
{
if (_scheduledStudentUniqueId != value)
_scheduledStudentUSI = default(int?);

_scheduledStudentUniqueId = value;
}
}
public virtual long SchoolId { get; set; }
public virtual long? TestingEducationOrganizationId { get; set; }
// -------------------------------------------------------------
Expand Down Expand Up @@ -125731,23 +125784,23 @@ string Entities.Common.EdFi.IStudentAssessmentRegistration.ReportingEducationOrg
set { }
}

public virtual NHibernate.StudentEducationOrganizationAssessmentAccommodationAggregate.EdFi.StudentEducationOrganizationAssessmentAccommodationReferenceData StudentEducationOrganizationAssessmentAccommodationReferenceData { get; set; }
public virtual NHibernate.StudentEducationOrganizationAssessmentAccommodationAggregate.EdFi.StudentEducationOrganizationAssessmentAccommodationReferenceData ScheduledStudentEducationOrganizationAssessmentAccommodationReferenceData { get; set; }

/// <summary>
/// Read-only property that allows the StudentEducationOrganizationAssessmentAccommodation discriminator value to be mapped to the resource reference.
/// Read-only property that allows the ScheduledStudentEducationOrganizationAssessmentAccommodation discriminator value to be mapped to the resource reference.
/// </summary>
string Entities.Common.EdFi.IStudentAssessmentRegistration.StudentEducationOrganizationAssessmentAccommodationDiscriminator
string Entities.Common.EdFi.IStudentAssessmentRegistration.ScheduledStudentEducationOrganizationAssessmentAccommodationDiscriminator
{
get { return StudentEducationOrganizationAssessmentAccommodationReferenceData?.Discriminator; }
get { return ScheduledStudentEducationOrganizationAssessmentAccommodationReferenceData?.Discriminator; }
set { }
}

/// <summary>
/// Read-only property that allows the StudentEducationOrganizationAssessmentAccommodation resource identifier value to be mapped to the resource reference.
/// Read-only property that allows the ScheduledStudentEducationOrganizationAssessmentAccommodation resource identifier value to be mapped to the resource reference.
/// </summary>
Guid? Entities.Common.EdFi.IStudentAssessmentRegistration.StudentEducationOrganizationAssessmentAccommodationResourceId
Guid? Entities.Common.EdFi.IStudentAssessmentRegistration.ScheduledStudentEducationOrganizationAssessmentAccommodationResourceId
{
get { return StudentEducationOrganizationAssessmentAccommodationReferenceData?.Id; }
get { return ScheduledStudentEducationOrganizationAssessmentAccommodationReferenceData?.Id; }
set { }
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23997,6 +23997,8 @@ public class StudentAssessmentRegistrationQ : AggregateRootWithCompositeKey
public virtual DateTime EntryDate { get; set; }
public virtual int? PlatformTypeDescriptorId { get; set; }
public virtual long? ReportingEducationOrganizationId { get; set; }
public virtual long? ScheduledEducationOrganizationId { get; set; }
public virtual int? ScheduledStudentUSI { get; set; }
public virtual long SchoolId { get; set; }
public virtual long? TestingEducationOrganizationId { get; set; }
// -------------------------------------------------------------
Expand All @@ -24023,7 +24025,7 @@ public class StudentAssessmentRegistrationQ : AggregateRootWithCompositeKey
protected virtual NHibernate.QueryModels.GradeLevelDescriptorAggregate.EdFi.GradeLevelDescriptorQ AssessmentGradeLevelDescriptor { get; set; }
protected virtual NHibernate.QueryModels.PlatformTypeDescriptorAggregate.EdFi.PlatformTypeDescriptorQ PlatformTypeDescriptor { get; set; }
protected virtual NHibernate.QueryModels.EducationOrganizationAggregate.EdFi.EducationOrganizationQ ReportingEducationOrganization { get; set; }
protected virtual NHibernate.QueryModels.StudentEducationOrganizationAssessmentAccommodationAggregate.EdFi.StudentEducationOrganizationAssessmentAccommodationQ StudentEducationOrganizationAssessmentAccommodation { get; set; }
protected virtual NHibernate.QueryModels.StudentEducationOrganizationAssessmentAccommodationAggregate.EdFi.StudentEducationOrganizationAssessmentAccommodationQ ScheduledStudentEducationOrganizationAssessmentAccommodation { get; set; }
protected virtual NHibernate.QueryModels.StudentEducationOrganizationAssociationAggregate.EdFi.StudentEducationOrganizationAssociationQ StudentEducationOrganizationAssociation { get; set; }
protected virtual NHibernate.QueryModels.StudentSchoolAssociationAggregate.EdFi.StudentSchoolAssociationQ StudentSchoolAssociation { get; set; }
protected virtual NHibernate.QueryModels.EducationOrganizationAggregate.EdFi.EducationOrganizationQ TestingEducationOrganization { get; set; }
Expand Down
Loading

0 comments on commit dbb6121

Please sign in to comment.