Cómo EnableCaseInsensitive, EnableEnumPrefixFree y EnableUnqualifiedNameCall en OData v6.0.0
Recientemente actualicé OData de (v5.9.1) a la última versión estable (v6.0.0) y en la anterior solía configurar mi entorno de esta manera:
//Allows calling the Url like {entityAction}/{id}
config.SetUrlConventions(ODataUrlConventions.KeyAsSegment);
//Allows urls to be case insensitive
config.EnableCaseInsensitive(true);
// Remove the necessity of having to specify the namespace of enums.
config.EnableEnumPrefixFree(true);
//This allows call a function without using the full namespace.
config.EnableUnqualifiedNameCall(true);
config.MapODataServiceRoute("odata", "api/rest",
edmModel, new DefaultODataBatchHandler(GlobalConfiguration.DefaultServer));
Ahora, después de la actualización, ¿cómo puedo lograr el mismo resultado que antes? Ninguna de mis rutas, por ejemplo: 'localhost / odata / people /' está funcionando, muestra el siguiente mensaje:
The path template 'people/{parentId}/emails' on the action 'Get' in controller 'PersonEmails' is not a valid OData path template. The operation import overloads matching 'people' are invalid. This is most likely an error in the IEdmModel.
¿Algunas ideas? Gracias por adelantado.