InvalidOperation Exception when trying to access Value of a bool? Property
Opened this issue · 1 comments
HeikoAdams commented
Hi,
code like this is raising an InvalidOperation Exception
this.auftragTemporaer.UrspruenglicheLieferungViaFks.Laender.Eu.Value
Eu is a nullable bool property .
HeikoAdams commented
Calling
this.auftragTemporaer.UrspruenglicheLieferungViaFks.Laender.Eu.GetValueOrDefault()
instead works fine