Extension method Query<T> doesn't support entity names

Description

The new LinQ infrastructure doesn't support entity names. To add support an overload similar to the one of the old LinQ provider would be needed.

I attached a patch I used to add support for entity names to the new LinQ provider. It works as expected.

IMPORTANT: It is necessary to override ToString() because the query plans are different for each entity and the ToString representation is used within the query cache otherwise the cache only store one plan per entity type.

Environment

None

Attachments

2

Activity

Show:

Alex Zaytsev 
May 1, 2017 at 3:40 AM

Closing issues resolved in 4.1.0

Thomas Hotz 
August 26, 2010 at 7:30 AM

Added a unit test.

Fabio Maulo 
August 7, 2010 at 10:27 AM

I can't find a test in your patch.
Perhaps you have forgot to attach it.

Fixed

Details

Assignee

Reporter

Labels

Components

Fix versions

Affects versions

Priority

Who's Looking?

Open Who's Looking?
Created June 8, 2010 at 6:10 AM
Updated May 1, 2017 at 3:40 AM
Resolved February 29, 2016 at 1:45 PM
Who's Looking?