I determined that when executing the following expression:
int aNum = 52; var myArtifacts = mydbcontext.artifacts.Where(a => a.ParentID == aNum ).ToList();
in mysql, the executed query is executed:
SELECT `Extent1`.`ID`, `Extent1`.`ParentID` FROM `artifacts` AS `Extent1` WHERE ((`Extent1`.`ParentID` = 52) AND (52 IS NOT NULL));
Can someone explain why this last additional condition is added?
AND (52 NOT))
source share