Linq-To-Sql Nullable Boolean
Posted: Wed 26 Apr 2017 09:56
I see that back in 2010 there was some issue with nullable Boolean comparisons.
I am running the lastest version of LinqConnect 1199.
The following query being performed against a MySQL Database (Ver 5.6.10), always returns false for the (x.editable ?? false) portion of the query. Editable is a nullable Boolean type.
Please could you explain why this is the case?
Regards
Les Brinkworth
I am running the lastest version of LinqConnect 1199.
The following query being performed against a MySQL Database (Ver 5.6.10), always returns false for the (x.editable ?? false) portion of the query. Editable is a nullable Boolean type.
Code: Select all
context.hosted_bundle_service_items.Where(x => x.i_hosted_bundle == i_bundle && (x.editable ?? false))
Regards
Les Brinkworth