ODATA - how to generate odata service from Edmx file -
there odata lib can use edmx file generate odata service? providing edmx file create service can answer metadata calls...
i've found library
https://github.com/htammen/n-odata-server
but requires json not edmx/metadata.xml file...
i see olingo lib didn't find functionality can ...
any direction if possible?
i prefer use nodejs lib if there combination work, not mandatory
i've find lib https://github.com/jaystack/jaysvcutil
if happy use .net, try restier. follow instructions here: http://odata.github.io/restier/, except don't generate new ef data model class. instead add edmx model project.
then go section 'configure odata endpoint', , rather entering:
await config.maprestierroute<entityframeworkapi<adventureworkslt>>( "adventureworkslt", "api/adventureworkslt", new restierbatchhandler(globalconfiguration.defaultserver));
use data model class (the class inherits dbcontext) rather adventureworkslt in entityframeworkapi<adventureworkslt>
, , change route name , prefix more suitable.
Comments
Post a Comment