I'm trying to find a record that I know exist in the database. When searching for it using this query nothing is found.
List<OrganizationALE> ales =
_ctx.OrganizationALEs.Where(c => c.OrganizationId.Equals(organizationId) && c.LastModified.Equals(modified) && c.StartDate.Equals(start)).ToList();
But when I search using this query it is clearly there in the result using watch.
And if I try pull it out on the very next line using
var found = ales.First(a => a.LastModified == modified);
I get an exception say Sequence contains no matching element