LINQ Query and DateTimes....
- by AlwaysBeCoding
Im trying to get the Sum() from an Entityset with the next query.
(from MyObject p in SelectedObject.MyObjectEntitySet
where p.AColumn.HasValue &&
(p.ADate >= dateTimeValue &&
p.ADate <= dateTimeValue2)
select p.AColumn.Value).Sum();
with no luck retrieving correct sum.
Any Ideas?