Skip to content

Unnecessary null check for StartsWith #25010

@roji

Description

@roji
_ = await ctx.Blogs
    .Where(b => b.Name.StartsWith("hello"))
    .ToListAsync();

SQL:

SELECT [b].[id], [b].[name]
FROM [blogs] AS [b]
WHERE [b].[name] IS NOT NULL AND ([b].[name] LIKE N'hello%')

/cc @maumar

Metadata

Metadata

Assignees

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions