如何使用linq到EF避免使用linq到object.
var query = context.Users.Select(u => u.Name.ToLower());
实体框架可以将String.ToLower转换为sql.此查询将翻译为:
SELECT LOWER([Extent1].[Name]) AS [C1] FROM [dbo].[Users] AS [Extent1]