1

Closed

Can't query with entity type which has multiple entity sets

description

If define same entity type in multiple entity sets:
modelBuilder.EntitySet<Order>("OnlineOrders");
modelBuilder.EntitySet<Order>("StoreOrders");

and specify the edm model by configuration.SetEdmModel(model).

User can't use query composition on Order. It will report error that Multiple Entity Set Matched ClrType error.
Closed Jan 18 at 11:07 PM by hongyes
Verified

comments

HongmeiG wrote Oct 4, 2012 at 10:39 PM

We can infer the correct entity set based on the url. We can use that logic in the queryable attribute when we are constructing the model.