简体   繁体   中英

WebApi 2 + OData v4 complete example

I can't seem to find a complete working example of webapi2 + odata v4. Nothing works. Do you have a complete, working and standalone example to provide?

Thanks!

There are kinds of samples in github, refer to https://github.com/OData/ODataSamples/tree/master/WebApi/v4 which is based on Web Api odata library.

Also there is a library called restier which only requires several line of code to make a DB exposed via EF as OData service, refer to https://github.com/OData/ODataSamples/tree/master/RESTier for end to end examples.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM