refactor(dir): ♻ rm unnecessary TODO

This commit is contained in:
Collin M. Barrett 2021-11-18 12:59:01 -06:00
parent a35047f2da
commit c8633b3a3c

View file

@ -22,13 +22,10 @@ public virtual void Configure(EntityTypeBuilder<FilterListLanguage> builder)
builder.ToTable($"{nr.RewriteName(nameof(FilterListLanguage))}s");
builder.HasKey(fll => new { fll.FilterListId, fll.Iso6391 });
// TODO: why does the convention-generated ConstraintName end w/'language_temp_id' (fk_filter_list_languages_languages_language_temp_id)
builder.HasOne(fll => fll.Language)
.WithMany(l => l.FilterListLanguages)
.HasForeignKey(fll => fll.Iso6391)
.HasConstraintName("fk_filter_list_languages_languages_iso6391");
builder.HasDataJsonFile<FilterListLanguage>();
}
}