Remove virtual keyword in [NotMapped]

This commit is contained in:
2023-05-08 16:34:20 +02:00
parent bfe6363d95
commit b70608966d

View File

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