日期:2014-05-20 浏览次数:20770 次
var query=db.TableName.ToList().Where(d=>d.A.ToString().Contains("2011-01-01"));
------解决方案--------------------
DateTime? startTime =new DateTime(2011,1,1); var query = db.TableName.Where(w => System.Data.Objects.EntityFunctions.DiffDays(w.A, startTime) == 0);