Entity Framework Model with inheritance and RIA Services
        Posted  
        
            by TimothyP
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by TimothyP
        
        
        
        Published on 2010-03-26T12:39:45Z
        Indexed on 
            2010/03/26
            12:43 UTC
        
        
        Read the original article
        Hit count: 533
        
Hi,
We have an entity framework model with has some inheritance in it.
The following example is not the actuall model, but just to make my point...
Let's say
Base class: Person Child classes: Employee, Customer
The database has been generated, the DomainService has been created and we can get to the data:
lstCustomers.ItemsSource = context.Persons;
EntityQuery<Person> query = context.GetPeopleQuery().Take(4);
context.Load(query);
But how can I modify the query to only return Customers ?
© Stack Overflow or respective owner