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

Include/IncludeMany on nullable FK no longer throws exception. #516

Merged
merged 4 commits into from Feb 10, 2022

Conversation

User00015
Copy link
Contributor

When you use .Include on a nullable FK, an exception is thrown during the dynamicResult cast. Adding a guard here now allows mapping to continue as expected.

…ult causes an exception. Added a guard to ensure dynamic mapping no longer fails when running across a FK that is null.
…ult causes an exception. Added a guard to ensure dynamic mapping no longer fails when running across a FK that is null.
@ahmad-moussawi ahmad-moussawi merged commit 7bf1595 into sqlkata:master Feb 10, 2022
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

Successfully merging this pull request may close these issues.

None yet

2 participants