You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
varquery=(fromoin ctx.Orders
join c in ctx.Customers
on o.CustomerID equals c.CustomerID into grouping
fromcin grouping.DefaultIfEmpty()selecto).GroupBy(o => o.OrderID).Select(g =>new{ Value = g.Key + g.Key, Average = g.Average(o => o.OrderID)});varresult= query.ToList();
sql:
SELECT [o].[OrderID] AS [Key] + [o].[OrderID] AS [Key] AS [Value], AVG(CAST([o].[OrderID] AS float)) AS [Average]
FROM [Orders] AS [o]
LEFT JOIN [Customers] AS [c] ON [o].[CustomerID] = [c].[CustomerID]
GROUP BY [o].[OrderID]
Exception:
Incorrect syntax near '+'.
The text was updated successfully, but these errors were encountered:
query:
sql:
Exception:
Incorrect syntax near '+'.
The text was updated successfully, but these errors were encountered: