sqlkata / querybuilder

SQL query builder, written in c#, helps you build complex queries easily, supports SqlServer, MySql, PostgreSql, Oracle, Sqlite and Firebird
https://sqlkata.com
MIT License
3.12k stars 502 forks source link

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

Closed User00015 closed 2 years ago

User00015 commented 3 years ago

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.