ef null check

86

ef null check -

var result = from entry in table
             where entry.something.Equals(value)
             select entry;

ef null check -

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

Comments

Submit
0 Comments