Skip to content

EF should not produce differing newlines in SQL based on the OS it happens to run on #30775

@Varorbc

Description

@Varorbc

Ask a question

The same query statement code, slow query on linux, but normal on windows, I use SQL Server Profiler to monitor the query statement, found that the statement is exactly the same, the only difference is the newline character is different, and the execution plan is also different.

Linux

image
image

Windows

image
image

Include provider and version information

EF Core version: 6.0.12
Database provider: Microsoft.EntityFrameworkCore.SqlServer
Target framework: .NET 6.0
Operating system: win11
IDE: e.g. Visual Studio 2022 17.4

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions