System\Data\Common\DataAdapter.cs (11)
252public virtual DataTable[] FillSchema(DataSet dataSet, SchemaType schemaType)
258protected virtual DataTable[] FillSchema(DataSet dataSet, SchemaType schemaType, string srcTable, IDataReader dataReader)
320internal object? FillSchemaFromReader(DataSet? dataset, DataTable? datatable, SchemaType schemaType, string? srcTable, IDataReader dataReader)
368public virtual int Fill(DataSet dataSet)
373protected virtual int Fill(DataSet dataSet, string srcTable, IDataReader dataReader, int startRecord, int maxRecords)
439DataSet? commonDataSet = dataTables[0].DataSet;
512internal int FillFromReader(DataSet? dataset, DataTable? datatable, string? srcTable, DataReaderContainer dataReader, int startRecord, int maxRecords)
518internal int FillFromReader(DataSet? dataset, DataTable? datatable, string? srcTable, DataReaderContainer dataReader, int startRecord, int maxRecords, DataColumn? parentChapterColumn, object? parentChapterValue)
662private SchemaMapping FillMappingInternal(DataSet? dataset, DataTable? datatable, string? srcTable, DataReaderContainer dataReader, int schemaCount, DataColumn? parentChapterColumn, object? parentChapterValue)
674private SchemaMapping? FillMapping(DataSet? dataset, DataTable? datatable, string? srcTable, DataReaderContainer dataReader, int schemaCount, DataColumn? parentChapterColumn, object? parentChapterValue)
761public virtual int Update(DataSet dataSet)
System\Data\Common\DbDataAdapter.cs (11)
308public override DataTable[] FillSchema(DataSet dataSet, SchemaType schemaType)
328public DataTable[] FillSchema(DataSet dataSet, SchemaType schemaType, string srcTable)
344protected virtual DataTable[] FillSchema(DataSet dataSet, SchemaType schemaType, IDbCommand command, string srcTable, CommandBehavior behavior)
407private object? FillSchemaInternal(DataSet? dataset, DataTable? datatable, SchemaType schemaType, IDbCommand command, string srcTable, CommandBehavior behavior)
447public override int Fill(DataSet dataSet)
463public int Fill(DataSet dataSet, string srcTable)
479public int Fill(DataSet dataSet, int startRecord, int maxRecords, string srcTable)
495protected virtual int Fill(DataSet dataSet, int startRecord, int maxRecords, string srcTable, IDbCommand command, CommandBehavior behavior)
613private int FillInternal(DataSet? dataset, DataTable[]? datatables, int startRecord, int maxRecords, string? srcTable, IDbCommand command, CommandBehavior behavior)
842public override int Update(DataSet dataSet)
920public int Update(DataSet dataSet, string srcTable)
System\Data\DataSet.cs (56)
31[XmlRoot(nameof(DataSet))]
88/// Initializes a new instance of the <see cref='System.Data.DataSet'/> class.
102/// Initializes a new instance of a <see cref='System.Data.DataSet'/>
657/// Gets a custom view of the data contained by the <see cref='System.Data.DataSet'/> , one
750/// Gets or sets the name of this <see cref='System.Data.DataSet'/> .
849/// of the rows in any of the tables of this <see cref='System.Data.DataSet'/> .
1030/// Resets the <see cref='System.Data.DataSet.Relations'/> property to its default state.
1035/// Gets the collection of tables contained in the <see cref='System.Data.DataSet'/>.
1041/// Indicates whether <see cref='System.Data.DataSet.Tables'/> property should be persisted.
1046/// Resets the <see cref='System.Data.DataSet.Tables'/> property to its default state.
1057/// Commits all the changes made to this <see cref='System.Data.DataSet'/> since it was loaded or the last
1058/// time <see cref='System.Data.DataSet.AcceptChanges'/> was called.
1113/// Clears the <see cref='System.Data.DataSet'/> of any data by removing all rows in all tables.
1135private DataSet CreateInstanceOfThisType()
1137return (DataSet)Activator.CreateInstance(GetType(), true)!;
1141/// Clones the structure of the <see cref='System.Data.DataSet'/>, including all <see cref='System.Data.DataTable'/> schemas, relations, and
1146public virtual DataSet Clone()
1151DataSet ds = CreateInstanceOfThisType();
1246/// Copies both the structure and data for this <see cref='System.Data.DataSet'/>.
1248public DataSet Copy()
1253DataSet dsNew = Clone();
1295/// Returns a copy of the <see cref='System.Data.DataSet'/> that contains all changes made to
1296/// it since it was loaded or <see cref='System.Data.DataSet.AcceptChanges'/> was last called.
1298public DataSet? GetChanges() =>
1325public DataSet? GetChanges(DataRowState rowStates)
1330DataSet? dsNew = null;
1532/// Gets a value indicating whether the <see cref='System.Data.DataSet'/> has changes, including new,
1538/// Gets a value indicating whether the <see cref='System.Data.DataSet'/> has changes, including new,
1575/// Infer the XML schema from the specified <see cref='System.IO.TextReader'/> into the <see cref='System.Data.DataSet'/>.
1614/// Infer the XML schema from the specified <see cref='System.IO.TextReader'/> into the <see cref='System.Data.DataSet'/>.
1629/// Infer the XML schema from the specified <see cref='System.IO.TextReader'/> into the <see cref='System.Data.DataSet'/>.
1644/// Infer the XML schema from the specified file into the <see cref='System.Data.DataSet'/>.
1662/// Reads the XML schema from the specified <see cref="System.Xml.XmlReader" /> into the <see cref="System.Data.DataSet" />
1868/// <see cref='System.Data.DataSet'/>.
1883/// Reads the XML schema from the specified <see cref='System.IO.TextReader'/> into the <see cref='System.Data.DataSet'/>.
1898/// Reads the XML schema from the specified file into the <see cref='System.Data.DataSet'/>.
1916/// <summary>Writes the <see cref='DataSet'/> structure as an XML schema to using the specified <see cref='Stream'/> object.</summary>
1922/// <summary>Writes the <see cref='DataSet'/> structure as an XML schema to using the specified <see cref='Stream'/> object.</summary>
1933/// <summary>Writes the <see cref='DataSet'/> structure as an XML schema to a file.</summary>
1939/// <summary>Writes the <see cref='DataSet'/> structure as an XML schema to a file.</summary>
1950/// <summary>Writes the <see cref='DataSet'/> structure as an XML schema to a <see cref='TextWriter'/> object.</summary>
1956/// <summary>Writes the <see cref='DataSet'/> structure as an XML schema to a <see cref='TextWriter'/> object.</summary>
1967/// <summary>Writes the <see cref='DataSet'/> structure as an XML schema to an <see cref='XmlWriter'/> object.</summary>
1973/// <summary>Writes the <see cref='DataSet'/> structure as an XML schema to an <see cref='XmlWriter'/> object.</summary>
2459DataSet newDs;
3003/// Merges this <see cref='System.Data.DataSet'/> into a specified <see cref='System.Data.DataSet'/>.
3005public void Merge(DataSet dataSet)
3020/// Merges this <see cref='System.Data.DataSet'/> into a specified <see cref='System.Data.DataSet'/> preserving changes according to
3023public void Merge(DataSet dataSet, bool preserveChanges)
3038/// Merges this <see cref='System.Data.DataSet'/> into a specified <see cref='System.Data.DataSet'/> preserving changes according to
3042public void Merge(DataSet dataSet, bool preserveChanges, MissingSchemaAction missingSchemaAction)
3524if (GetType() == typeof(DataSet))
3542private static void WriteXmlSchema(DataSet ds, XmlWriter writer)
System\Data\xmlsaver.cs (54)
36private DataSet? _ds;
109[RequiresUnreferencedCode(DataSet.RequiresUnreferencedCodeMessage)]
119if (!((instance is DataSet) || (instance is DataTable) || (instance is DataColumn) || (instance is DataRelation)))
131[RequiresUnreferencedCode(DataSet.RequiresUnreferencedCodeMessage)]
330private void GenerateConstraintNames(DataSet ds)
344private static bool HaveExtendedProperties(DataSet ds)
417internal void SetupAutoGenerated(DataSet ds)
543[RequiresUnreferencedCode(DataSet.RequiresUnreferencedCodeMessage)]
544[RequiresDynamicCode(DataSet.RequiresDynamicCodeMessage)]
545internal void SchemaTree(XmlDocument xd, XmlWriter xmlWriter, DataSet? ds, DataTable? dt, bool writeHierarchy)
941[RequiresUnreferencedCode(DataSet.RequiresUnreferencedCodeMessage)]
942[RequiresDynamicCode(DataSet.RequiresDynamicCodeMessage)]
1016internal XmlElement FillDataSetElement(XmlDocument xd, DataSet? ds, DataTable? dt)
1021DataSet? dataSet = ds ?? dt!.DataSet;
1101[RequiresUnreferencedCode(DataSet.RequiresUnreferencedCodeMessage)]
1102[RequiresDynamicCode(DataSet.RequiresDynamicCodeMessage)]
1103internal void Save(DataSet ds, XmlWriter xw)
1108[RequiresUnreferencedCode(DataSet.RequiresUnreferencedCodeMessage)]
1109[RequiresDynamicCode(DataSet.RequiresDynamicCodeMessage)]
1122[RequiresUnreferencedCode(DataSet.RequiresUnreferencedCodeMessage)]
1123[RequiresDynamicCode(DataSet.RequiresDynamicCodeMessage)]
1124internal void Save(DataSet ds, DataTable? dt, XmlWriter xw)
1129[RequiresUnreferencedCode(DataSet.RequiresUnreferencedCodeMessage)]
1130[RequiresDynamicCode(DataSet.RequiresDynamicCodeMessage)]
1131internal void Save(DataSet? ds, DataTable? dt, XmlWriter xw, bool writeHierarchy)
1136[RequiresUnreferencedCode(DataSet.RequiresUnreferencedCodeMessage)]
1137[RequiresDynamicCode(DataSet.RequiresDynamicCodeMessage)]
1138internal void Save(DataSet? ds, DataTable? dt, XmlWriter xw, bool writeHierarchy, Converter<Type, string>? multipleTargetConverter)
1421[RequiresUnreferencedCode(DataSet.RequiresUnreferencedCodeMessage)]
1422[RequiresDynamicCode(DataSet.RequiresDynamicCodeMessage)]
1598[RequiresUnreferencedCode(DataSet.RequiresUnreferencedCodeMessage)]
1599[RequiresDynamicCode(DataSet.RequiresDynamicCodeMessage)]
1725[RequiresUnreferencedCode(DataSet.RequiresUnreferencedCodeMessage)]
1726[RequiresDynamicCode(DataSet.RequiresDynamicCodeMessage)]
2265internal DataSet? _ds;
2275internal NewDiffgramGen(DataSet ds)
2346[RequiresUnreferencedCode(DataSet.RequiresUnreferencedCodeMessage)]
2347[RequiresDynamicCode(DataSet.RequiresDynamicCodeMessage)]
2353[RequiresUnreferencedCode(DataSet.RequiresUnreferencedCodeMessage)]
2354[RequiresDynamicCode(DataSet.RequiresDynamicCodeMessage)]
2414[RequiresUnreferencedCode(DataSet.RequiresUnreferencedCodeMessage)]
2415[RequiresDynamicCode(DataSet.RequiresDynamicCodeMessage)]
2491[RequiresUnreferencedCode(DataSet.RequiresUnreferencedCodeMessage)]
2492[RequiresDynamicCode(DataSet.RequiresDynamicCodeMessage)]
2549[RequiresUnreferencedCode(DataSet.RequiresUnreferencedCodeMessage)]
2550[RequiresDynamicCode(DataSet.RequiresDynamicCodeMessage)]
2681private readonly DataSet? _ds;
2692internal XmlDataTreeWriter(DataSet ds)
2801[RequiresUnreferencedCode(DataSet.RequiresUnreferencedCodeMessage)]
2802[RequiresDynamicCode(DataSet.RequiresDynamicCodeMessage)]
2845[RequiresUnreferencedCode(DataSet.RequiresUnreferencedCodeMessage)]
2846[RequiresDynamicCode(DataSet.RequiresDynamicCodeMessage)]
2938[RequiresUnreferencedCode(DataSet.RequiresUnreferencedCodeMessage)]
2939[RequiresDynamicCode(DataSet.RequiresDynamicCodeMessage)]