fix(dir): 🐛 convention-generated constraint name

This commit is contained in:
Collin M. Barrett 2021-11-18 14:52:22 -06:00
parent cd4c94f679
commit 6264350f9b

View file

@ -43,6 +43,10 @@ public virtual void Configure(EntityTypeBuilder<Change> builder)
builder
.Property(c => c.AggregateType)
.HasComputedColumnSql(BuildComputedAggregateTypeSql(), true);
builder.HasOne(c => c.Language)
.WithMany(l => l.Changes)
.HasForeignKey(c => c.LanguageIso6391)
.HasConstraintName("fk_changes_languages_language_iso6391");
static string BuildComputedAggregateTypeSql()
{