[CSHARP-2380] Projection doesn't work after OfType Created: 07/Sep/18 Updated: 16/Nov/21 Resolved: 14/Dec/18 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | Read Operations |
| Affects Version/s: | 2.7.0 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Max Drachsh | Assignee: | Vincent Kam (Inactive) |
| Resolution: | Cannot Reproduce | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Windows 10, x64. |
||
| Description |
|
I use polymorphism and have the following objects:
Then, I make query with `OfType` and `Project`:
I get error: "Element 'ConsumerKey' does not match any field or property of class Trader.Domain.Account2."
If I delete `Project` then all works fine.
|
| Comments |
| Comment by Vincent Kam (Inactive) [ 14/Nov/18 ] |
|
Hello Max, Kind regards, |