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
The projection is specified in the resultSelector.
In EF, the required 2 columns (and the key and a null identifier) are queried, which is correct:
SELECT
[Project1].[ProductID] AS [ProductID],
[Project1].[Name] AS [Name],
[Project1].[C1] AS [C1],
[Project1].[ActualCost] AS [ActualCost]
FROM ( SELECT
[Extent1].[ProductID] AS [ProductID],
[Extent1].[Name] AS [Name],
[Extent2].[ActualCost] AS [ActualCost],
CASE WHEN ([Extent2].[ProductID] IS NULL) THEN CAST(NULLASint) ELSE 1 END AS [C1]
FROM [Production].[Product] AS [Extent1]
LEFT OUTER JOIN [Production].[TransactionHistory] AS [Extent2] ON ([Extent2].[TransactionType] IN (N'P',N'S',N'W')) AND ([Extent1].[ProductID] = [Extent2].[ProductID])
) AS [Project1]
ORDER BY [Project1].[ProductID] ASC, [Project1].[C1] ASC
However, in EF Core, all columns of both tables are queried:
SELECT
[product].[ProductID],
[product].[ListPrice],
[product].[Name],
[product].[ProductSubcategoryID],
[product].[RowVersion],
[transaction].[TransactionID],
[transaction].[ActualCost],
[transaction].[ProductID],
[transaction].[Quantity],
[transaction].[TransactionDate],
[transaction].[TransactionType]
FROM [Production].[Product] AS [product]
LEFT JOIN [Production].[TransactionHistory] AS [transaction] ON [product].[ProductID] = [transaction].[ProductID]
ORDER BY [product].[ProductID]
It seems the resultSelector is not translated.
The text was updated successfully, but these errors were encountered:
GroupJoin does not translate resultSelector correctly:
The projection is specified in the resultSelector.
In EF, the required 2 columns (and the key and a null identifier) are queried, which is correct:
However, in EF Core, all columns of both tables are queried:
It seems the resultSelector is not translated.
The text was updated successfully, but these errors were encountered: