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
query:
var query = ctx.Employees.Where(e => e.EmployeeID == 1) .GroupBy(e => e.EmployeeID) .Select(g => EF.Property<string>(g.First(), "Title")) .OrderBy(e => e); var result = query.ToList();
sql:
SELECT [e].[Title] FROM [Employees] AS [e] WHERE [e].[EmployeeID] = 1 GROUP BY [e].[EmployeeID] ORDER BY [e].[Title]
error: Column 'Employees.Title' is invalid in the select list because it is not contained in either an aggregate function or the GROUP BY clause.
The text was updated successfully, but these errors were encountered:
Related #12089
Sorry, something went wrong.
Merged into #13805
No branches or pull requests
query:
sql:
error:
Column 'Employees.Title' is invalid in the select list because it is not contained in either an aggregate function or the GROUP BY clause.
The text was updated successfully, but these errors were encountered: