Linq to sql, summing timespan?

Posted by DaRKoN_ on Stack Overflow See other posts from Stack Overflow or by DaRKoN_
Published on 2009-03-02T07:40:12Z Indexed on 2010/04/01 12:43 UTC
Read the original article Hit count: 583

I have a time field in a mssql 2008 database that I want to do something to the effect of:

Timespent = x.sum(x => x.AmountOfTime);

Where AmountOfTime is a time MSSQL field. Sum seems to only work on decimals, how can I add these columns?

© Stack Overflow or respective owner

Related posts about linq-to-sql

Related posts about datetime