Correct Generation of SQL for SELECT Statement with NULL Parameter
Implement a workaround for Entity Framework bug
( http://stackoverflow.com/questions/682429/how-can-i-query-for-null-values-in-entity-framework )
so that users don't need to write a more complex LINQ to Entities query to avoid this bug.
15
votes
![](https://secure.gravatar.com/avatar/d1f3a28af2a27cd30cc7fbbe47cc57b8?size=40&default=https%3A%2F%2Fassets.uvcdn.com%2Fpkg%2Fadmin%2Ficons%2Fuser_70-6bcf9e08938533adb9bac95c3e487cb2a6d4a32f890ca6fdc82e3072e0ea0368.png)
-
Yevhen Shch commented
The config.QueryOptions.UseCSharpNullComparisonBehavior configuration option for checking for NULL when comparing a nullable property (column) or an expression with a variable (parameter) in LINQ to Entities is implemented (by default, false).
( http://forums.devart.com/viewtopic.php?f=30&t=24668 )