We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EF core 2.1.1 is generating incorrect SQL for order by columns.
await context.IndustryType .OrderBy(x => x.Name) .Select(x => new LookupValue { Id = x.IndustryTypeId, Text = x.Name, Code = x.Name }) .ToListAsync();
Generates : -
SELECT [e].[IndustryTypeId] AS [Id], [e].[Name] AS [Code] ## Missing Text Alias ## FROM [IndustryType] AS [e] ORDER BY [Text]
It should be
SELECT [e].[IndustryTypeId] AS [Id], [e].[Name] AS [Text], # This is Missing # [e].[Name] AS [Code] FROM [IndustryType] AS [e] ORDER BY [Text]
The text was updated successfully, but these errors were encountered:
Duplicate of #12180
Sorry, something went wrong.
No branches or pull requests
EF core 2.1.1 is generating incorrect SQL for order by columns.
Generates : -
It should be
The text was updated successfully, but these errors were encountered: