it:ad:ef:howto:queries_compare_null_or_empty_string

IT:AD:EF:HowTo:Queries/Compare Null or Empty Strings

The work around is to compare as follows:

var result = from entry in table
             where (value == null ? entry.something == null : entry.something == value)
             select entry;

  • /home/skysigal/public_html/data/pages/it/ad/ef/howto/queries_compare_null_or_empty_string.txt
  • Last modified: 2023/11/04 01:42
  • by 127.0.0.1