OfType fails with polymorphism

Description

The OfType operation fails in a number of instances that the developer might expect it to work. For example, using OfType<ISomeEntity>() when the ISomeEntity interface is mapped to the SomeEntity class causes an exception at query execution time.

Test case and pull request are forthcoming.

Environment

None

Status

Assignee

Unassigned

Reporter

Andrew Brobston

Components

Fix versions

Affects versions

4.0.4

Priority

Major
Configure