asp.net mvc - Is OData suitable for a big MVC5/WebAPI application -


i working following stack mvc5 + webapi 2.2 + ef6 + angularjs web application. today, tried incorporate odata , angular breezejs application , worked fine 1 of entities.

currently, have around 45 tables translate 45 model classes.

in web api, have have 5-10 controllers handle crud operations 45 models using switch statement based on variables pass entityname, operationname.

but, in odata need 45 controllers scaffold-ed vs. there way can use benefits of odata such querying/paging/patching without having create controller each model class ?

do work entity framework ? if so, can try restier. restier built upon web api odata, , need 1 controller make basic crud (including queries) work.

you can learn more tutorial http://odata.github.io/restier/getting-started-part-1/ , sample northwind locates @ https://github.com/odata/restier/tree/master/src/microsoft.restier.samples.northwind.


Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -