Como habilitarCaseInsensitive, EnableEnumPrefixFree e EnableUnqualifiedNameCall no OData v6.0.0
Atualizei recentemente o OData da (v5.9.1) para a versão estável mais recente (v6.0.0) e, na antiga, usei para configurar meu ambiente da seguinte maneira:
//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));
Agora, após a atualização, como posso obter o mesmo resultado de antes? Nenhuma das minhas rotas, por exemplo: 'localhost / odata / people /' está funcionando, mostra a seguinte mensagem:
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.
Alguma ideia? Desde já, obrigado.