提供在 LINQ to Entities 查询中的一些static方法例如: EntityFunctions.CreateDateTimevar query = Database.Where(w => EntityFunctions.CreateDateTime(w.Created.Year, w.Created.Month, w.Created.Day, , , ) == created);