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

EditDbSetController.CreateLink missing attribute on key parameter #9

Open johncrim opened 9 years ago

johncrim commented 9 years ago

(originally http://entityrepository.codeplex.com/workitem/14)

In the base class EntitySetController, the CreateLink method is defined as follows:

public virtual void CreateLink([FromODataUri] TKey key, string navigationProperty, [FromBody] Uri link)

In EditDbSetController, it is defined without the attribute on the first parameter:

public override void CreateLink(TKey key, string navigationProperty, [FromBody] Uri link)

since attributes are not inherited, this method does not work correctly in EditDbSetController.