Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私はこのクエリを持っています:select lower(Name) from User
select lower(Name) from User
ユーザーlinq to objectを避けて、linq to EFで同じようにする方法。
var query = context.Users.Select(u => u.Name.ToLower());
Entity Framework は String.ToLower を SQL に変換できます。このクエリは次のように変換されます。
SELECT LOWER([Extent1].[Name]) AS [C1] FROM [dbo].[Users] AS [Extent1]