Compare commits

...

2 Commits

Author SHA1 Message Date
f49f7534e9 Fix Member: Add ? to RdNr 2023-05-08 16:47:24 +02:00
b70608966d Remove virtual keyword in [NotMapped] 2023-05-08 16:34:20 +02:00
2 changed files with 2 additions and 2 deletions

View File

@@ -28,7 +28,7 @@ namespace Elwig.Models {
public string GstNr { get; set; }
[Column("rdnr")]
public int RdNr { get; set; }
public int? RdNr { get; set; }
[Column("year_from")]
public int YearFrom { get; set; }

View File

@@ -165,7 +165,7 @@ namespace Elwig.Models {
public virtual ISet<AreaCom> AreaCommitments { get; private set; }
[NotMapped]
public virtual IEnumerable<AreaCom> ActiveAreaCommitments => AreaCommitments
public IEnumerable<AreaCom> ActiveAreaCommitments => AreaCommitments
.Where(c => c.YearFrom <= Utils.CurrentSeason && (c.YearTo ?? int.MaxValue) >= Utils.CurrentSeason);
[InverseProperty("Member")]