entityrepository / ODataServer

Enhances Web API OData functionality, featuring generic OData controllers that can be generated from a domain model, including any Entity Framework DbContext.
15 stars 4 forks source link

Support for multi-key entities #6

Open johncrim opened 9 years ago

johncrim commented 9 years ago

If an entity has multiple keys, the current implementation is broken. This is a relatively common use-case in real-world applications, so is a blocker for such use cases.

johncrim commented 9 years ago

As of 2/10/14 this is now partially fixed. The default controllers don't have support for multiple keys, but at least the app can run if there are multiple keys.

The ControllerTypeSelector passed to oDataServerConfigurer.AddStandardEntitySetControllers() should return null when multiple keys are passed in, if there is no controller to handle that type.