Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
HeikoAdams opened this issue Feb 24, 2020 · 1 comment

Comments

@HeikoAdams
Copy link

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

@HeikoAdams
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant