Compare commits
2 Commits
bfe6363d95
...
f49f7534e9
Author | SHA1 | Date | |
---|---|---|---|
f49f7534e9 | |||
b70608966d |
@@ -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; }
|
||||
|
@@ -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")]
|
||||
|
Reference in New Issue
Block a user