您的位置:知识库 » .NET技术

一步一步学Silverlight :数据与通信之ADO.NET Data Services

作者: TerryLee  来源: 博客园  发布时间: 2008-10-09 11:53  阅读: 9168 次  推荐: 0   原文链接   [收藏]  

 

现在还看不到所有的Posts,我们可以在地址栏中输入http://localhost:8081/BlogDataService.svc/Posts,浏览器会默认为Feed打开,可以查看源代码,将会看到所有内容,XML内容如下(只列出片段):

<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<feed xml:base="http://localhost:8081/BlogDataService.svc/" ......>
  <id>http://localhost:8081/BlogDataService.svc/Posts</id>
  <updated />
  <title>Posts</title>
  <link rel="self" href="Posts" title="Posts" />
  <entry adsm:type="TerryLee.SilverlightWithDataServiceDemoWeb.Post">
    <id>http://localhost:8081/BlogDataService.svc/Posts(1)</id>
    <updated />
    <title />
    <author>
      <name />
    </author>
    <link rel="edit" href="Posts(1)" title="Post" />
    <content type="application/xml">
      <ads:Id adsm:type="Int32">1</ads:Id>
      <ads:Title>一步一步学Silverlight 2系列(13):数据与通信之WebRequest</ads:Title>
      <ads:Author>TerryLee</ads:Author>
    </content>
  </entry>

如果要查看某一条文章的内容,可以输入http://localhost:8081/BlogDataService.svc/Posts(2)进行查看,如下图所示。

TerryLee_Silverlight2_0079

 

0
0
 

.NET技术热门文章

    .NET技术最新文章

      最新新闻

        热门新闻