Add telephone numbers

This commit is contained in:
2023-05-27 17:56:17 +02:00
parent 70ad8188c4
commit c1b8b68513
6 changed files with 195 additions and 34 deletions

View File

@ -128,15 +128,6 @@ namespace Elwig.Models {
[Column("email")]
public string? Email { get; set; }
[Column("phone_landline")]
public string? PhoneLandline { get; set; }
[Column("phone_mobile_1")]
public string? PhoneMobile1 { get; set; }
[Column("phone_mobile_2")]
public string? PhoneMobile2 { get; set; }
[Column("default_kgnr")]
public int? DefaultKgNr { get; set; }
@ -177,6 +168,9 @@ namespace Elwig.Models {
[InverseProperty("Member")]
public virtual ISet<Delivery> Deliveries { get; private set; }
[InverseProperty("Member")]
public virtual ISet<MemberTelNr> TelephoneNumbers { get; private set; }
public string FullAddress => $"{Address}, {PostalDest.AtPlz.Plz} {PostalDest.AtPlz.Ort.Name}";
public int SearchScore(IEnumerable<string> keywords) {