I like to know if it is possible to return a list of items that only exist in the base type of a persistent class.
For example, assuming that Person is base for Musician:
var res1 = Scope.Extent<Musician>().ToList();
//Returns all musicians
var res2 = Scope.Extent<Person>().ToList();
//Returns all persons including musicians
My goal is to query only persons that don’t are musicians or other inherited classes of Person. I want only persons.
I know thatI could make a ‘not in’ clause (Person not in Musician) or create a new empty Class Based on persons, but I wonder if there is some easy way to achieve these purpose.