Renamed WgContext to AppDbContext

This commit is contained in:
2023-03-11 15:33:05 +01:00
parent 8d61fdd35e
commit 40c158df36
6 changed files with 6 additions and 7 deletions

View File

@ -19,7 +19,7 @@ namespace WGneu.Models {
[ForeignKey("CountryCode")]
public virtual Country Country { get; set; }
public AT_Plz? Plz(WgContext ctx) {
public AT_Plz? Plz(AppDbContext ctx) {
// TODO getter
if (CountryCode != "AT") return null;
return ctx.Postleitzahlen.Where(p => p.Id == Id).FirstOrDefault();