I'm having trouble selecting MonthId and MonthName from a DateTime column in db. I've tried this. It compiles but runtime error "linq to entities does not recognize the method 'System.String.ToString()'"
var months = bookings.Select(c => new {
MonthId = c.ActualEta.Value.Month,
MonthName = c.ActualEta.Value.Month.ToString("MMMM")
}).ToList();
Anyone? ActualEta is an nullable datetime here.