|
using System;
using System.Data;
using System.Data.SqlClient;
namespace DBHelper
{
/// <summary>
/// Summary description for Dataset.
/// </summary>
public class DatasetTool
{
private DatasetTool()
{
}
public static void AddTableSchemaToDataSet(DataSet ds, DataTable table)
{
if (!ds.Tables.Contains(table.TableName))
{
ds.Tables.Add(table);
ds.WriteXmlSchema("../../" + ds.DataSetName + ".xsd");
}
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.