var res =(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
The cast to value type 'Double' failed because the materialized value is null. Either the result type's generic parameter or the query must use a nullable type
Share This!
Subscribe to:
Post Comments (Atom)
4 comments:
I believe there are many more pleasurable opportunities ahead for individuals that looked at your site. Dotnet developer
Authorized Dot Net training in chennai
I'm not sure ezactly why but this weblog is loading very slow for me.
Is anyone else having this problem or is it a issue on my end?
I'll check back later on and see if the problem still exists.
What's up, always i used to check weblog posts here ezrly in the morning, for the reason that i
enjoy to learn more and more.
I'd like to find out more? I'd love to find out more details.
Post a Comment