dgvProfiles.DataSource = (from profile in dbModel.ProfileMasters
select new
{
ProfileID = profile.ProfileId,
Profile = profile.ClientName,
Tasks= profile.TaskMasters.Count(),
AverageTime = profile.TaskMasters.Select(x => EntityFunctions.DiffMinutes(x.StartTime, x.EndTime)).Average(y => (decimal?)y.Value),
LastTime = profile.TaskMasters.Max(x=>x.StartTime)
}).ToList();
Thursday, November 6, 2014
DbArithmeticExpression arguments must have a numeric common type
Share This!
Labels:
ASP.NET,
ASP.NET MVC,
C#.NET,
Lambda Expression,
LINQ
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment