mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
fix(dir): 🐛 convention-generated constraint name
This commit is contained in:
parent
cd4c94f679
commit
6264350f9b
1 changed files with 4 additions and 0 deletions
|
|
@ -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()
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue