so first my entities

the problem i want to have a page with all the story titles and their types
there are three stories LongStory , CoOpStory, GenericStory
the generic story is associated with StoryType for the type of the generic story
i have two problems
first when i want to check if the story is LongStory or CoOpStory i have to get all the entity and check the entity type if it is LongStory then do something , i don’t know how to retrieve some data [only the title] and check the type
my second problem like i said i want to have a page with all the story titles and their types i don’t know how to do that without making a lot of queries , i can’t make a join to the StoryType table because it must be GenericStory to be associated with that , so what i do first get all the stories then do an extra query for every GenericStory to get the type
You are looking of
OfTypeandConcatextension methods.To get only LongStory instances you just need to call:
To get your bigger query it is little bit more complex. You can either try:
Or you can do a projection: