KEMBAR78
SqlServer: Translate string.IsNullOrEmpty with LIKE · Issue #23037 · dotnet/efcore · GitHub
Skip to content

SqlServer: Translate string.IsNullOrEmpty with LIKE #23037

@roji

Description

@roji

As suggested by @bricelam in #22916 (comment), we should translate string.IsNullOrEmpty using LIKE (`WHERE s IS NULL OR s LIKE '').

Our current implementation (which comes from Relational) is buggy, since it returns true for whitespace-only strings.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions