What is the correct eSQL syntax to compare dates?
The equivalent LINQ-to-Entities expression would look something like this:
var lastYearsShipments = from p in MyDataServiceContext.Products where p.ShipDate.Value.Year == DateTime.Now.Year - 1 select p;
They say it’s acceptable to answer your own question, so here goes …
See also: msdn documentation