Getting started with EF and working on getting a basic inheritance set up, but it's not being agreeable. Am I missing something here?
contains 2 records, let's say their ContentItemId's are 101 and 102
contains 1 record, with ContentItemId of 101
In the VS2008 EF modeler I've done the following:
-Deleted the original relationship
-Made Event inherit from ContentItem
-Deleted the ContentItemId from Event and mapped it to the inherited value
then in the code:
public IQueryable<Event> GetCalendar()
var all = from e in context.ContentItem select e;
var query = from e in context.ContentItem.OfType<Event>()
When I break at the return statement I have 2 records in "all" and 0 records in "query"... I would expect their to be 1 record (id 101) in "query", am I missing something here?
View Complete Post