LINQ 2 Entities , howto check DateTime.HasValue within the linq query
- by Snoop Dogg
Hi all ... I have this method that is supposed to get the latest messages posted, from the Table (& EntitySet) called ENTRY
///method gets "days" as parameter, used in new TimeSpan(days,0,0,0);!!
using (Entities db = new Entities())
{
var entries = from ent in db.ENTRY
where ent.DATECREATE.Value >…