Simple.OData.Client是否支持打开属性? [英] Does Simple.OData.Client support open properties?

查看:85
本文介绍了Simple.OData.Client是否支持打开属性?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用简单Odata库

I am working with Simple Odata Library

https://github.com/object/Simple.OData.Client/wiki

我需要定义开放参数,但是我不想缝隙看到任何定义或文档.

I need to define open parameters, but i dont seam to see any definition or documentation for this.

示例说明:

随着我的oData调用,我发送了一个名为"mode"的参数,可以将其设置为0到10之间的任何数字.我的服务器将知道如何处理它.但是,此参数不是预定义的.

Along with my oData call, i send a parameter called "mode", which i can set to any number between 0-10. My server will know what to do with it. This parameter however is not pre-defined.

推荐答案

Simple.OData.Client的最新版本支持OData开放类型,请在此处查看示例:

Recent releases of Simple.OData.Client support OData open types, look at examples here:

https://github.com/object/Simple.OData.Client/blob/master/Simple.OData.Client.IntegrationTests/TripPinTests.cs

搜索包含"OpenProperty"的测试.

Search for tests containing "OpenProperty".

这篇关于Simple.OData.Client是否支持打开属性?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆