mercredi 31 mai 2017

Add OData Route During Runtime

Is it possible to add OData Routes after the program is compiled? For example, if I want to be able to get a property without using $select, I would need to add the attribute [ODataRoute("Controller({key})/Property")] to the GET method. If I use reflection to get all of the property names, is it possible to create an ODataRoute like the above example without explicitly doing so in an attribute?





Aucun commentaire:

Enregistrer un commentaire