Skip to content

Commit

Permalink
Back out route models (#1704)
Browse files Browse the repository at this point in the history
  • Loading branch information
gunndabad authored Nov 22, 2024
1 parent 29532ad commit 950c48a
Show file tree
Hide file tree
Showing 15 changed files with 3,325 additions and 249 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ public void Configure(EntityTypeBuilder<Qualification> builder)
builder.HasKey(q => q.QualificationId);
builder.HasQueryFilter(q => EF.Property<DateTime?>(q, nameof(Qualification.DeletedOn)) == null);
builder.HasDiscriminator(q => q.QualificationType)
.HasValue<MandatoryQualification>(QualificationType.MandatoryQualification)
.HasValue<QualifiedTeacherStatusQualification>(QualificationType.QualifiedTeacherStatus)
.HasValue<EarlyYearsTeacherStatusQualification>(QualificationType.EarlyYearsTeacherStatus);
.HasValue<MandatoryQualification>(QualificationType.MandatoryQualification);
builder.HasOne<Person>(q => q.Person).WithMany(p => p.Qualifications).HasForeignKey(q => q.PersonId).HasConstraintName(Qualification.PersonForeignKeyName);
builder.HasIndex(q => q.PersonId);
builder.HasIndex(q => q.DqtQualificationId).HasFilter("dqt_qualification_id is not null").IsUnique();
Expand Down

This file was deleted.

This file was deleted.

Loading

0 comments on commit 950c48a

Please sign in to comment.