ADO.NET最佳实践(下)[5]

[入库:2005年8月18日] [更新:2007年3月24日]

本文简介:选择自 spidertan 的 blog

      <customerid>arout</customerid>

      <companyname>around the horn</companyname>

    </customers>

  </customerdataset>

  <diffgr:before>

    <customers diffgr:id="customers1" msdata:roworder="0">

      <customerid>alfki</customerid>

      <companyname>alfreds futterkiste</companyname>

    </customers>

  </diffgr:before>

  <diffgr:errors>

    <customers diffgr:id="customers2" diffgr:error="an optimistic concurrency violation has occurred for this row."/>

  </diffgr:errors>

</diffgr:diffgram>

        注意:你可以在你的dataset中使用xpath查询和xslt转换来同步运用xml的功能性,或者提供一个相关的视图,或者创建一个xml文档数据的一个副本。

        ii.计划接口

            当你从一个xml文件载入一个dataset时,你可以从xsd计划载入dataset的计划,或者你可以在载入数据之前预先确定表和列。如果这里没有xsd计划或者你又不知道那个表和列是xml文件内容确定的,那么你可以使用基于xml文档结构推断计划。

            计划接口是一个很有用的移植工具,但是它应该限制在设计阶段的应用程序中,仅仅因为以下几点:

本文关键:数据库设计
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top