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("AT_kg"), PrimaryKey("KgNr")]
public class AT_Kg {
[Column("kgnr")]
public int KgNr { get; set; }
public int KgNr { get; private set; }
[Column("gkz")]
public int Gkz { get; set; }
public int Gkz { get; private set; }
[Column("name")]
public string Name { get; set; }
public string Name { get; private set; }
[ForeignKey("Gkz")]
public virtual AT_Gem Gem { get; set; }
public virtual AT_Gem Gem { get; private set; }
}
}