LINQ Query and DateTimes....
Posted
by AlwaysBeCoding
on Stack Overflow
See other posts from Stack Overflow
or by AlwaysBeCoding
Published on 2010-05-31T17:19:41Z
Indexed on
2010/05/31
17:23 UTC
Read the original article
Hit count: 128
c#3.0
|linq-to-objects
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?
© Stack Overflow or respective owner