With EntityFramework, I use the <DefiningQuery> element to define the SQL that represents my model. When I hand-edit the .edmx file to code the SQL, I cannot use expressions that include the less than sign without breaking the XML doc:
WHERE SomeDate <= myColumnName
The XML doc is breaking because the parser thinks this is the start of a new tag. How could I encode the > symbol in the edmx file to ensure that the project compiles AND that the SQL runs as expected at runtime?
You need to use the appropriate entities for
<and>, which are<and>respectively:WHERE SomeDate <= myColumnName