Datasets and xml
-
Làm việc với datasets và XML Đôi khi, tôi phải kéo các tài liệu XML thành datasets và ngược lại. Làm thế nào để thực hiện điều này bằng cách sử dụng. NET? Kỹ thuật. NET đã phát triển một số cách để sử dụng datasets và XML cùng
5p luvpro 06-08-2010 105 12 Download
-
[ Team LiB ] Recipe 8.3 Synchronizing a DataSet with an XML Document Problem You need to work with both a DataSet and its XML representation. Solution Use a synchronized DataSet and XmlDataDocument. The sample code contains two event handlers and one method:
9p luvpro 04-08-2010 83 7 Download
-
[ Team LiB ] Recipe 8.2 Saving and Loading a DataSet from XML Problem You need to save a DataSet as an XML file and create a DataSet from an XML file. Solution Use the XmlTextWriter and XmlTextReader classes. The sample code contains three event handlers
11p luvpro 04-08-2010 100 13 Download
-
[ Team LiB ] Recipe 5.10 Converting a DataSet to an ADO Recordset Problem You need to convert a DataSet to an ADO Recordset so that you can use it in a legacy application. Solution You must persist the DataSet to XML, transform it to ADO Recordset schema, and load it into an ADO Recordset using COM interop
15p luvpro 04-08-2010 109 15 Download
-
[ Team LiB ] Recipe 5.4 Serializing Data Problem You need to serialize the contents of a DataSet so that you can store the data on a disk or transfer it across a network. Solution You can serialize a DataSet into XML, binary, or SOAP formats and save the serialized DataSet to a stream (such as a file or network stream).
5p luvpro 04-08-2010 69 5 Download
-
[ Team LiB ] Recipe 4.11 Updating Server Data Using a Web Service Problem You want to update a data source using an XML web service and use the web service from your client application. Solution Use a DataSet object. The XML web service code contains two methods: LoadOrders( )
6p luvpro 04-08-2010 192 61 Download
-
[ Team LiB ] Recipe 8.8 Creating an XML File That Shows Changes Made to a DataSet Problem When you use the GetXML( ) method of the DataSet, you may see only the current values in the DataSet. You want to get the original values and see which rows were added, edited, or deleted. Solution Create an XML DiffGram
6p luvpro 04-08-2010 95 8 Download
-
[ Team LiB ] Recipe 2.18 Controlling the Names Used in a Strongly Typed DataSet Problem You want to assign your own names to the classes and properties for strongly typed DataSet classes. Solution Use annotations in the XML schema to control the names of classes and properties in strongly typed DataSet classes. The sample uses one XSD file: CategoriesDS_AnnotatedNa
5p luvpro 04-08-2010 90 7 Download
-
Writing and Reading XML Using a DataSet Object XML is a convenient format for moving information around. You can write out the contents of the DataTable objects contained in a DataSet to an XML file using the WriteXml() method
8p daisuphu 29-07-2010 143 10 Download