<output id="qn6qe"></output>

    1. <output id="qn6qe"><tt id="qn6qe"></tt></output>
    2. <strike id="qn6qe"></strike>

      亚洲 日本 欧洲 欧美 视频,日韩中文字幕有码av,一本一道av中文字幕无码,国产线播放免费人成视频播放,人妻少妇偷人无码视频,日夜啪啪一区二区三区,国产尤物精品自在拍视频首页,久热这里只有精品12

      OData 1-4 OData語法(上)

      假設目前提供OData的服務地址是

      http://localhost:9527/ODataService.svc

      提供的服務內容如下所示 (提供了一個WagerInformations)

       

      代碼
      <?xml version="1.0" encoding="utf-8" standalone="yes" ?>
      <service xml:base="http://localhost:9527/ODataService.svc/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:app="http://www.w3.org/2007/app" xmlns="http://www.w3.org/2007/app">
      <workspace>
      <atom:title>Default</atom:title>
      <collection href="WagerInformations">
      <atom:title>WagerInformations</atom:title>
      </collection>
      </workspace>
      </service>

       

       

       

      1.基礎查詢

        1)列出所有的??WagerInformations

          ?http://localhost:9527/ODataService.svc/WagerInformations

        2)按照主鍵查詢

          http://localhost:9527/ODataService.svc/WagerInformations(1)

           PS:在.net里面一般使用DataServiceKeyAttribute標識主鍵

        3)獲取某個對象的一個成員

          http://localhost:9527/ODataService.svc/WagerInformations(1)/EventName

          獲取主鍵為1的WagerInformations的EventName屬性

        4)如果這個屬性還有屬性 那么依此類推

          http://localhost:9527/ODataService.svc/WagerInformations(1)/Event/EventDateTime

          另外不要試圖獲取原始類型的一些屬性 - -# 例如返回 String的Length屬性

        5) $value 方案3返回對象的一個成員用的是Xml的數據格式.實際上我們很多時候不需要那么多的標簽,只想拿返回值

          那么使用url http://localhost:9527/ODataService.svc/WagerInformations(1)/EventName/$value

          方案3的數據 <?xml version="1.0" encoding="utf-8" standalone="yes" ?> <EventName xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices">test 1</EventName>

          方案5的數據 test 1

        6) $filter  條件表達式

          查詢EventName 等于 "test 1" 的表達式如下

          http://localhost:9527/ODataService.svc/WagerInformations?$filter=EventName  eq 'test 1'

          查詢時間:

          http://localhost:9527/ODataService.svc/WagerInformations?$filter=EventDateTime eq DateTime'2010-12-21T10:10:19.390625'

           組合查詢表達式: and操作

          http://localhost:9527/ODataService.svc/WagerInformations?$filter=(EventDateTime eq DateTime'2010-12-21T10:10:19.390625' ) and (BusinessUnitCode eq '2')

        

       

      以下是運算符列表 

      Operator

      Description

      C#         equivalent

      eq

      equals

      ==

      ne

      not equal

      !=

      gt

      greater than

      >

      ge

      greater than or equal

      >=

      lt

      less than

      <

      le

      less than or equal

      <=

      and

      and

      &&

      or

      or

      ||

      ()

      grouping

      ()

       

       

      原文地址:http://blogs.msdn.com/b/alexj/archive/2009/11/18/tip-44-how-to-navigate-an-odata-compliant-service.aspx

       

      posted on 2010-12-21 10:51  聽說讀寫  閱讀(26500)  評論(3)    收藏  舉報

      導航

      主站蜘蛛池模板: 亚洲精品尤物av在线网站| 国产av一区二区不卡| 亚洲人成小说网站色在线 | 福利成人午夜国产一区| 成人欧美一区在线视频| 动漫av网站免费观看| 国产精品久久人妻无码网站一区 | av色蜜桃一区二区三区| 蜜臀av黑人亚洲精品| 亚在线观看免费视频入口| 亚洲精品一区二区三区小| 国产成人精品亚洲一区二区| 18禁网站免费无遮挡无码中文 | 亚洲最大成人美女色av| 色欲色香天天天综合网站免费| 美女一区二区三区在线观看视频| 小伙无套内射老熟女精品| 国产乱沈阳女人高潮乱叫老 | 无码 人妻 在线 视频| 国产在线一区二区不卡| 无码AV无码天堂资源网影音先锋 | 久久被窝亚洲精品爽爽爽| 色欲狠狠躁天天躁无码中文字幕 | 亚洲中文字幕一二三四区| 日本熟妇人妻xxxxx人hd| 亚洲成年av天堂动漫网站| 亚洲人成网站77777在线观看 | 国产精品视频不卡一区二区| 国产二区三区不卡免费| 欧美白妞大战非洲大炮| 岛国最新亚洲伦理成人| 国产亚洲精品aaaa片app| 国产高清亚洲一区亚洲二区| 人人爽人人爽人人片a免费| 日韩av熟女人妻一区二| 国产精品色哟哟成人av| 国产精品成人aaaaa网站| 国产精品中文字幕二区| 韩国无码AV片午夜福利| 国产精品小粉嫩在线观看| 成av免费大片黄在线观看|