I am trying to perform the following linq to entities query-
var data = DataContext.Employee.Where(e=>e.Date.Year>1986).ToList();
Now the problem is that Date
field is a nullable DateTime field and I can't access Year property and on the database side I can't change legacy code! ....anyways is there anyway possible to use the year property?