db.Entity1Set.Where(x => System.Data.Objects.EntityFunctions.DiffDays(DateTime.Now, x.date) > -10).ToList().ForEach(x => Console.WriteLine(x.Id)); //间隔小于10天