Rework models

This commit is contained in:
2023-03-14 11:23:03 +01:00
parent fe185ab516
commit 3614445cff
11 changed files with 60 additions and 60 deletions

View File

@ -6,27 +6,27 @@ namespace WGneu.Models {
[Table("AT_plz"), PrimaryKey("Plz")]
public class AT_Plz {
[Column("plz")]
public int Plz { get; set; }
public int Plz { get; private set; }
[Column("ort")]
public string Ort { get; set; }
public string Ort { get; private set; }
[Column("blnr")]
public int BlNr { get; }
public int BlNr { get; private set; }
[Column("type")]
public string Type { get; }
public string Type { get; private set; }
[Column("internal")]
public bool Internal { get; set; }
public bool IsInternal { get; private set; }
[Column("addressable")]
public bool Addressable { get; set; }
public bool IsAddressable { get; private set; }
[Column("po_box")]
public bool PoBox { get; set; }
public bool IsPoBox { get; private set; }
[InverseProperty("AtPlz")]
public virtual ISet<AT_PlzDest> Orte { get; set; }
public virtual ISet<AT_PlzDest> Orte { get; private set; }
}
}