Write a very large dataset in Xml format
DataSetWriter
00 Remarks
usually be used for dump the database table data to a xml file
the output xml file format is compatible with the .NET DataSet xml format
see also: https://docs.microsoft.com/en-us/dotnet/api/system.data.dataset.writexml?view=net-5.0
example:
Dim writer As New DataSetWriter(Of biocad_registryModel.molecule)("molecules.xml")
For Each mol As biocad_registryModel.molecule In registry.molecule.all(Of biocad_registryModel.molecule)()
Call writer.Write(mol)
Next
Call writer.Dispose()
01 Syntax
Microsoft.VisualBasic.Text.Xml.Linq.DataSetWriter`1
02 Methods
03 Fields
| Name | Overloads | Summary |
|---|---|---|
| DataSetPrefix | 1 |
04 Members
#ctor(
String, XmlEncodings)Create a new xml dataset writer
Parameters
| Name | Type | Description |
|---|---|---|
file | String | - |
encoding | XmlEncodings | - |
DataSetPrefix
Write(
T)Flush()
Dispose()