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

@ -5,15 +5,15 @@ namespace WGneu.Models {
[Table("postal_dest"), PrimaryKey("CountryCode", "Id")]
public class PostalDest {
[Column("country")]
public string CountryCode { get; set; }
public string CountryCode { get; private set; }
[Column("id")]
public string Id { get; set; }
public string Id { get; private set; }
[ForeignKey("CountryCode")]
public virtual Country Country { get; set; }
public virtual Country Country { get; private set; }
[ForeignKey("Id")]
public virtual AT_PlzDest? AtPlz { get; set; }
public virtual AT_PlzDest? AtPlz { get; private set; }
}
}