Open ajcvickers opened 2 years ago
Splitting the unneeded subquery issue to #28214 as discussed.
Note: this only happens when using OfType
. When using a DbSet
for the requested type, the query is:
SELECT [c].[Id], [c].[Species], [c].[Name], [c].[EducationLevel]
FROM [Cats] AS [c]
WHERE [c].[Species] LIKE N'F%'
This is the kind of query that TPC mapping is really good for, so it would be nice to have really clean generated SQL for it. Used latest daily build as of this morning, UK time.
Query:
SQL:
Full repro: