update database for surveylib
This commit is contained in:
parent
c080e09cfb
commit
9b3faed8fc
4 changed files with 386 additions and 0 deletions
|
|
@ -24,5 +24,11 @@ public class ApplicationDbContext : SurveyDbContext
|
|||
.WithMany()
|
||||
.HasForeignKey(s => s.CreatedBy)
|
||||
.OnDelete(DeleteBehavior.SetNull);
|
||||
|
||||
modelBuilder.Entity<Completion>()
|
||||
.HasOne<User>()
|
||||
.WithMany()
|
||||
.HasForeignKey(c => c.CompletedBy)
|
||||
.OnDelete(DeleteBehavior.SetNull);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue