Dtos: Get rid of more warnings

This commit is contained in:
2024-02-29 16:13:46 +01:00
parent e693f83152
commit 247367d1bf
6 changed files with 27 additions and 27 deletions

@ -49,15 +49,15 @@ namespace Elwig.Models.Dtos {
[Column("mgnr")]
public int MgNr { get; set; }
[Column("family_name")]
public string Name { get; set; }
public required string Name { get; set; }
[Column("given_name")]
public string GivenName { get; set; }
public required string GivenName { get; set; }
[Column("address")]
public string Address { get; set; }
public required string Address { get; set; }
[Column("plz")]
public int Plz { get; set; }
[Column("ort")]
public string LocalityFull { get; set; }
public required string LocalityFull { get; set; }
[NotMapped]
public string Locality => LocalityFull.Split(",")[0];
[Column("business_shares")]