• 您的位置我爱Aspx >> 数据库 >> ADO.NET最佳实践(上)
  • ADO.NET最佳实践(上)

  • 作者:aspxer  来源:internet  日期:2007-5-22 0:30:03  关键字:.net
  • custDA.Fill(custDS, "Customers");

    SqlDataAdapter ordersDA = new SqlDataAdapter("SELECT * FROM Orders", nwindConn);

    ordersDA.Fill(custDS, "Orders");

    nwindConn.Close();

    custDS.Relations.Add("CustOrders",

    custDS.Tables["Customers"].Columns["CustomerID"],

    custDS.Tables["Orders"].Columns["CustomerID"]).Nested = true;

    XmlDataDocument xmlDoc = new XmlDataDocument(custDS);

    XslTransform xslTran = new XslTransform();

    xslTran.Load("transform.xsl");

    XmlTextWriter writer = new XmlTextWriter("xslt_output.html", System.Text.Encoding.UTF8);

    xslTran.Transform(xmlDoc, null, writer);

    writer.Close();

    }

    }

    ADO.NET最佳实践(中)

    http://www.csdn.net/Develop/read_article.asp?id=22663

    我对这篇文章有话说?
  • 广告位招租,广告代号:content_468_15
  • 上一篇:Apache上部署Pro*c常见的一个错误
    下一篇:神秘的DUAL