Add alias and display name to people.

This commit is contained in:
2019-06-30 21:42:34 +01:00
parent e40de9facd
commit 72bcb54032
11 changed files with 8336 additions and 15 deletions

View File

@@ -1076,6 +1076,10 @@ namespace Cicm.Database.Models
entity.HasIndex(e => e.Photo);
entity.HasIndex(e => e.Alias);
entity.HasIndex(e => e.DisplayName);
entity.HasOne(d => d.CountryOfBirth).WithMany(p => p.People).HasForeignKey(d => d.CountryOfBirthId);
entity.HasOne(d => d.DocumentPerson).WithOne(p => p.Person)