Considering the following architecture:
- a base object 'Entity'
- a derived object 'Entry:Base'
- and a further derived object 'CancelledEntry:Entry'
In EntitySQL I can write the following:
[...] where it is of (only MyEntities.Entry) [...]
to return only objects of type Entry and no Entity or CancelledEntry.
In linq to sql, the following command will return objects of type Entry and CancelledEntry.
EntityContext.EntitySet.OfType<Entry>()
What is the syntax/function to use to return only objects of type Entry?