I need to set LINQ query results to double array. After executing the next statement I get anonymous types, and I can't convert the Array to double type. How can I do that? Code:
var rls = context.Test
.GroupBy(cont => new
{
wd = System.Data.Objects.SqlClient.SqlFunctions.DatePart("weekday", cont.datetime),
hh = System.Data.Objects.SqlClient.SqlFunctions.DatePart("hour", cont.datetime)
})
.Select(rs => new
{
rs.Key.wd,
rs.Key.hh,
count = rs.Count()
}).Where(rs => rs.hh != null & rs.wd !=null).ToArray();
Thanks in advance.