EntitySpaces icon indicating copy to clipboard operation
EntitySpaces copied to clipboard

InvalidOperation Exception when trying to access Value of a bool? Property

Open HeikoAdams opened this issue 5 years ago • 1 comments

Hi, code like this is raising an InvalidOperation Exception this.auftragTemporaer.UrspruenglicheLieferungViaFks.Laender.Eu.Value Eu is a nullable bool property .

HeikoAdams avatar Feb 24 '20 07:02 HeikoAdams

Calling this.auftragTemporaer.UrspruenglicheLieferungViaFks.Laender.Eu.GetValueOrDefault() instead works fine

HeikoAdams avatar Feb 24 '20 07:02 HeikoAdams