I am trying to convert the following line of SQL to LINQ code :
AND IsNull(Deleted,0) = 0
I have tried by doing this :
&&a
You can use
&& Deleted.GetValueOrDefault(false) == false
linq;
where !(u.Deleted ?? false)
sql output:
WHERE (CASE WHEN ([Extent1].[Deleted] IS NULL) THEN cast(0 as bit) ELSE [Extent1].[Deleted] END) <> cast(1 as bit)