How can I express "IS NULL" sql syntax in Linq to Sql?
Where(r => (r.Level1.Equals(l[1] == "" ? null : l[1]))
In the above code linq to sql converts the linq expression into the following sql which is not what I want.
@p1=NULL
I want my linq to be converted into the following sql
@p1 is null
How can I achieve this?
WHERE @p1=null?