fx\src\data\System\Data\Common\DataAdapter.cs (24)
323virtual public DataTable[] FillSchema(DataSet dataSet, SchemaType schemaType) { // V1.0.3300
327virtual protected DataTable[] FillSchema(DataSet dataSet, SchemaType schemaType, string srcTable, IDataReader dataReader) { // V1.2.3300
345return (DataTable[]) value;
352virtual protected DataTable FillSchema(DataTable dataTable, SchemaType schemaType, IDataReader dataReader) { // V1.2.3300
368return (DataTable) value;
375internal object FillSchemaFromReader(DataSet dataset, DataTable datatable, SchemaType schemaType, string srcTable, IDataReader dataReader) {
376DataTable[] dataTables = null;
399dataTables = new DataTable[1] { mapping.DataTable };
409value = new DataTable[0];
449virtual protected int Fill(DataTable dataTable, IDataReader dataReader) { // V1.2.3300, DbDataADapter V1.0.3300
450DataTable[] dataTables = new DataTable[] { dataTable };
454virtual protected int Fill(DataTable[] dataTables, IDataReader dataReader, int startRecord, int maxRecords) { // V1.2.3300
531internal int FillFromReader(DataSet dataset, DataTable datatable, string srcTable, DataReaderContainer dataReader, int startRecord, int maxRecords, DataColumn parentChapterColumn, object parentChapterValue) {
652private SchemaMapping FillMappingInternal(DataSet dataset, DataTable datatable, string srcTable, DataReaderContainer dataReader, int schemaCount, DataColumn parentChapterColumn, object parentChapterValue) {
661private SchemaMapping FillMapping(DataSet dataset, DataTable datatable, string srcTable, DataReaderContainer dataReader, int schemaCount, DataColumn parentChapterColumn, object parentChapterValue) {
730private void OnFillErrorHandler(Exception e, DataTable dataTable, object[] dataValues) {
748static private DataTable[] AddDataTableToArray(DataTable[] tables, DataTable newTable) {
754DataTable[] newTables = new DataTable[tables.Length+1]; // add unique data table
776internal int FillFromReader(DataTable[] dataTables, IDataReader dataReader, int startRecord, int maxRecords) {
fx\src\data\System\Data\Common\DataColumnMapping.cs (3)
85public DataColumn GetDataColumnBySchemaAction(DataTable dataTable, Type dataType, MissingSchemaAction schemaAction) {
90static public DataColumn GetDataColumnBySchemaAction(string sourceColumn, string dataSetColumn, DataTable dataTable, Type dataType, MissingSchemaAction schemaAction) {
137static internal DataColumn CreateDataColumnBySchemaAction(string sourceColumn, string dataSetColumn, DataTable dataTable, Type dataType, MissingSchemaAction schemaAction) {
fx\src\data\System\Data\Common\DbDataAdapter.cs (25)
256public DataTable FillSchema(DataTable dataTable, SchemaType schemaType) { // V1.0.3300
269override public DataTable[] FillSchema(DataSet dataSet, SchemaType schemaType) { // V1.0.3300
275return new DataTable[0]; // design-time support
285public DataTable[] FillSchema(DataSet dataSet, SchemaType schemaType, string srcTable) { // V1.0.3300
298virtual protected DataTable[] FillSchema(DataSet dataSet, SchemaType schemaType, IDbCommand command, string srcTable, CommandBehavior behavior) { // V1.0.3300
314return (DataTable[]) FillSchemaInternal(dataSet, null, schemaType, command, srcTable, behavior);
320virtual protected DataTable FillSchema(DataTable dataTable, SchemaType schemaType, IDbCommand command, CommandBehavior behavior) { // V1.0.3300
338return (DataTable) FillSchemaInternal(null, dataTable, schemaType, command, srcTableName, behavior | CommandBehavior.SingleResult);
344private object FillSchemaInternal(DataSet dataset, DataTable datatable, SchemaType schemaType, IDbCommand command, string srcTable, CommandBehavior behavior) {
443public int Fill(DataTable dataTable) { // V1.0.3300
448DataTable[] dataTables = new DataTable[1] { dataTable};
458public int Fill(int startRecord, int maxRecords, params DataTable[] dataTables) { // V1.2.3300
472virtual protected int Fill(DataTable dataTable, IDbCommand command, CommandBehavior behavior) { // V1.0.3300
477DataTable[] dataTables = new DataTable[1] { dataTable};
485virtual protected int Fill(DataTable[] dataTables, int startRecord, int maxRecords, IDbCommand command, CommandBehavior behavior) { // V1.2.3300
514private int FillInternal(DataSet dataset, DataTable[] datatables, int startRecord, int maxRecords, string srcTable, IDbCommand command, CommandBehavior behavior) {
600internal DataTableMapping GetTableMapping(DataTable dataTable) {
720DataTable dataTable = null;
741public int Update(DataTable dataTable) { // V1.0.3300
789DataTable dataTable = tableMapping.GetDataTableBySchemaAction(dataSet, schemaAction);
1257private int UpdateFromDataTable(DataTable dataTable, DataTableMapping tableMapping) {
fx\src\data\System\Data\DataSet.cs (61)
83internal readonly static DataTable[] zeroTables = new DataTable[0];
364DataTable dt = (DataTable)bf.Deserialize(memStream);
521/// comparisons within <see cref='System.Data.DataTable'/>
546foreach (DataTable table in Tables) {
617foreach (DataTable table in Tables) {
654DataTable conflicting = Tables[value, Namespace];
680foreach (DataTable dt in Tables) {
812foreach (DataTable table in Tables) {
822foreach (DataTable table in Tables) {
839foreach (DataTable table in Tables) {
1096/// <para>Clones the structure of the <see cref='System.Data.DataSet'/>, including all <see cref='System.Data.DataTable'/> schemas, relations, and
1125DataTable dt = tbls[i].Clone(ds);
1160foreach (DataTable table in Tables)
1189foreach (DataTable table in this.Tables)
1191DataTable destTable = dsNew.Tables[table.TableName, table.Namespace];
1211DataTable table = Tables[i];
1284DataTable table = this.Tables[i];
1285DataTable destTable = dsNew.Tables[table.TableName, table.Namespace];
1360internal string GetRemotingDiffGram(DataTable table)
1413internal string GetXmlSchemaForRemoting(DataTable table)
1460DataTable table = Tables[i];
1873treeGen.Save(this, (DataTable)null, writer, false, multipleTargetConverter);
1896DataTable.DSRowDiffIdUsageSection rowDiffIdUsage = new DataTable.DSRowDiffIdUsageSection();
2203foreach (DataTable table in this.Tables)
2227foreach (DataTable t in newDs.Tables) {
2277foreach (DataTable t in newDs.Tables) {
2285foreach (DataTable t in newDs.Tables) {
2335DataTable.DSRowDiffIdUsageSection rowDiffIdUsage = new DataTable.DSRowDiffIdUsageSection();
2701internal DataRelationCollection GetParentRelations(DataTable table)
2776/// Merges this <see cref='System.Data.DataTable'/> into a specified <see cref='System.Data.DataTable'/>.
2779public void Merge(DataTable table)
2793/// Merges this <see cref='System.Data.DataTable'/> into a specified <see cref='System.Data.DataTable'/>. with a value to preserve changes
2797public void Merge(DataTable table, bool preserveChanges, MissingSchemaAction missingSchemaAction)
2887internal void RaiseMergeFailed(DataTable table, string conflict, MissingSchemaAction missingSchemaAction)
2902internal void OnClearFunctionCalled(DataTable table) {
2916protected internal virtual void OnRemoveTable(DataTable table) {
2919internal void OnRemovedTable(DataTable table) {
2945internal DataTable[] TopLevelTables()
2950internal DataTable[] TopLevelTables(bool forSchema)
2954List<DataTable> topTables = new List<DataTable>();
2960DataTable table = Tables[i];
2967DataTable table = Tables[i];
3090internal DataTable FindTable(DataTable baseTable, PropertyDescriptor[] props, int propStart) {
3392public virtual void Load(IDataReader reader, LoadOption loadOption, FillErrorEventHandler errorHandler, params DataTable[] tables) {
3396foreach (DataTable dt in tables) {
3419public void Load(IDataReader reader, LoadOption loadOption, params DataTable[] tables) {
3425DataTable[] dataTables = new DataTable[tables.Length];
3427DataTable tempDT = this.Tables[tables[i]];
3442DataTable[] dataTables = new DataTable[Tables.Count];
3449public DataTableReader CreateDataReader(params DataTable[] dataTables) {
3570string typeName = isDataSet ? typeof(DataSet).FullName : typeof(DataTable).FullName;
fx\src\data\System\Data\DataTable.cs (92)
180/// <para>Initializes a new instance of the <see cref='System.Data.DataTable'/> class with no arguments.</para>
198/// <para>Intitalizes a new instance of the <see cref='System.Data.DataTable'/> class with the specified table
301DataTable table = ds.Tables[0];
342List<DataTable> list = new List<DataTable>();
578DataTable parentTable = (allConstraints == false) ? this : this.DataSet.Tables[parentInfo[0]];
585DataTable childTable = (allConstraints == false) ? this : this.DataSet.Tables[childInfo[0]];
941_isTypedDataTable = (byte)((this.GetType() != typeof(DataTable))? 1 : 2);
1049/// <para>Gets the collection of child relations for this <see cref='System.Data.DataTable'/>.</para>
1109/// Resets the <see cref='System.Data.DataTable.Constraints'/> property to its default state.
1441/// <para>Gets the collection of parent relations for this <see cref='System.Data.DataTable'/>.</para>
1621/// Indicates whether the <see cref='System.Data.DataTable.PrimaryKey'/> property should be persisted.
1630/// Resets the <see cref='System.Data.DataTable.PrimaryKey'/> property to its default state.
1725private string GetInheritedNamespace(List<DataTable> visitedTables){
1743DataTable parentTable = nestedRelations[j].ParentTable;
1760/// Gets or sets the namespace for the <see cref='System.Data.DataTable'/>.
1770return GetInheritedNamespace(new List<DataTable>());
1780string realNamespace = (value == null ? GetInheritedNamespace(new List<DataTable>()) : value);
1807DataTable childTable = rel.ChildTable;
1823rel.ChildTable.CheckNamespaceValidityForNestedParentRelations(GetInheritedNamespace(new List<DataTable>()), this);
1828this.CheckNamespaceValidityForNestedParentRelations(GetInheritedNamespace(new List<DataTable>()), this);
1832internal void CheckNamespaceValidityForNestedParentRelations(string ns, DataTable parentTable) {
1853DataTable childTable = rel.ChildTable;
1860/// Indicates whether the <see cref='System.Data.DataTable.Namespace'/> property should be persisted.
1869/// Resets the <see cref='System.Data.DataTable.Namespace'/> property to its default state.
2110/// <para>Commits all the changes made to this table since the last time <see cref='System.Data.DataTable.AcceptChanges'/> was called.</para>
2140protected virtual DataTable CreateInstance() {
2141return (DataTable) Activator.CreateInstance(this.GetType(), true);
2144public virtual DataTable Clone() {
2148internal DataTable Clone(DataSet cloneDS) {
2152DataTable clone = CreateInstance();
2163private DataTable IncrementalCloneTo (DataTable sourceTable, DataTable targetTable) {
2173private DataTable CloneHierarchy (DataTable sourceTable, DataSet ds, Hashtable visitedMap) {
2177return ((DataTable)visitedMap[sourceTable]);
2180DataTable destinationTable = ds.Tables[sourceTable.TableName, sourceTable.Namespace];
2199DataTable childTable = CloneHierarchy((DataTable)r.ChildTable, ds, visitedMap);
2206private DataTable CloneTo(DataTable clone, DataSet cloneDS, bool skipExpressionColumns) {
2314public DataTable Copy(){
2318DataTable destTable = this.Clone();
2742internal void CopyRow(DataTable table, DataRow row)
2833public DataTable GetChanges() {
2837DataTable dtChanges = this.Clone();
2856public DataTable GetChanges(DataRowState rowStates)
2861DataTable dtChanges = this.Clone();
3219return ((0 == size) ? DataTable.zeroRows : new DataRow[size]);
3258/// <para>Notifies the <see cref='System.Data.DataTable'/> that a <see cref='System.Data.DataColumn'/> is
3286/// Raises the <see cref='System.Data.DataTable.RowChanged'/> event.
3299/// Raises the <see cref='System.Data.DataTable.RowChanging'/> event.
3312/// Raises the <see cref='System.Data.DataTable.OnRowDeleting'/> event.
3325/// Raises the <see cref='System.Data.DataTable.OnRowDeleted'/> event.
3578/// since it was loaded, or the last time <see cref='System.Data.DataTable.AcceptChanges'/> was called.</para>
4116/// <para>Returns the <see cref='System.Data.DataTable.TableName'/> and <see cref='System.Data.DataTable.DisplayExpression'/>, if there is one as a concatenated string.</para>
4420public void Merge(DataTable table)
4425public void Merge(DataTable table, bool preserveChanges)
4430public void Merge(DataTable table, bool preserveChanges, MissingSchemaAction missingSchemaAction)
4478adapter.FillFromReader(new DataTable[] { this }, reader, 0, 0);
4941private bool CheckForClosureOnExpressions(DataTable dt, bool writeHierarchy) {
4942List<DataTable> tableList = new List<DataTable>();
4950private bool CheckForClosureOnExpressionTables(List<DataTable> tableList) {
4953foreach(DataTable datatable in tableList) {
5123DataTable.RowDiffIdUsageSection rowDiffIdUsage = new DataTable.RowDiffIdUsageSection();
5325DataTable.RowDiffIdUsageSection rowDiffIdUsage = new DataTable.RowDiffIdUsageSection();
5586DataTable newDt;
5647List<DataTable> tableList = new List<DataTable>();
5735DataTable currentTable = null;
5772List<DataTable> tableList = new List<DataTable>();
5780DataTable tempTable = currentTable;
5816DataTable targetTable = CloneHierarchy(currentTable, this.DataSet, null);
5818foreach(DataTable tempTable in tableList) {
5819DataTable destinationTable = this.DataSet.Tables[tempTable.tableName, tempTable.Namespace];
5820DataTable sourceTable = ds.Tables[tempTable.tableName, tempTable.Namespace];
5841foreach(DataTable tempTable in tableList) {
5867private void CreateTableList(DataTable currentTable, List<DataTable> tableList) {
5875private void CreateRelationList(List<DataTable> tableList, List<DataRelation> relationList) {
5876foreach(DataTable table in tableList) {
5942if (GetType() == typeof(DataTable)) {
6025DataTable _targetTable;
6027internal void Prepare(DataTable table)
6094DataTable table = ds.Tables[tableIndex];
6116DataTable table = _targetDS.Tables[tableIndex];
fx\src\data\System\Data\DataTableCollection.cs (56)
34private DataTable[] delayedAddRangeTables = null;
71public DataTable this[int index] {
74return(DataTable) _list[index];
85public DataTable this[string name] {
94return (index < 0) ? null : (DataTable)_list[index];
98public DataTable this[string name, string tableNamespace] {
106return (index < 0) ? null : (DataTable)_list[index];
111internal DataTable GetTable(string name, string ns)
114DataTable table = (DataTable) _list[i];
123internal DataTable GetTableSmart(string name, string ns){
125DataTable fTable = null;
127DataTable table = (DataTable) _list[i];
145public void Add(DataTable table) {
167public void AddRange(DataTable[] tables) {
177foreach(DataTable table in tables) {
195public DataTable Add(string name) {
196DataTable table = new DataTable(name);
202public DataTable Add(string name, string tableNamespace) {
203DataTable table = new DataTable(name, tableNamespace);
214public DataTable Add() {
215DataTable table = new DataTable();
255private void ArrayAdd(DataTable table) {
277private void BaseAdd(DataTable table) {
307private void BaseGroupSwitch(DataTable[] oldArray, int oldLength, DataTable[] newArray, int newLength) {
346private void BaseRemove(DataTable table) {
365public bool CanRemove(DataTable table) {
369internal bool CanRemove(DataTable table, bool fThrowException) {
434DataTable[] tables = new DataTable[_list.Count];
479DataTable table = (DataTable) _list[i];
495DataTable table = (DataTable) _list[i];
502public void CopyTo(DataTable[] array, int index) {
510array[index + i] = (DataTable)_list[i];
516/// Returns the index of a specified <see cref='System.Data.DataTable'/>.
519public int IndexOf(DataTable table) {
522if (table == (DataTable) _list[i]) {
556internal void ReplaceFromInference(System.Collections.Generic.List<DataTable> tableList) {
573DataTable table = (DataTable) _list[i];
580DataTable dupTable = (DataTable) _list[j];
605DataTable table = (DataTable) _list[i];
620foreach(DataTable table in delayedAddRangeTables) {
673DataTable table = (DataTable) _list[i];
675throw ExceptionBuilder.DuplicateTableName(((DataTable) _list[i]).TableName);
688public void Remove(DataTable table) {
711DataTable dt = this[index];
731DataTable dt = this[name];
746DataTable dt = this[name, tableNamespace];
fx\src\data\System\Data\DataView.cs (20)
20/// Represents a databindable, customized view of a <see cref='System.Data.DataTable'/>
32private DataTable table;
64private DataTable delayedTable = null;
105internal DataView(DataTable table, bool locked) {
124/// specified <see cref='System.Data.DataTable'/>.</para>
126public DataView(DataTable table) : this(table, false) {
132/// specified <see cref='System.Data.DataTable'/>.</para>
134public DataView(DataTable table, String RowFilter, string Sort, DataViewRowState RowState) {
170internal DataView(DataTable table, System.Predicate<DataRow> predicate, System.Comparison<DataRow> comparison, DataViewRowState RowState) {
327/// projecting views of data on the <see cref='System.Data.DataTable'/>.
529/// Gets or sets the source <see cref='System.Data.DataTable'/>.
539public DataTable Table {
1224DataTable foundTable = dataSet.FindTable(table, listAccessors, 0);
1243DataTable foundTable = dataSet.FindTable(table, listAccessors, 0);
1608DataTable _table = index != null ? index.Table : newIndex.Table;
1667public DataTable ToTable() {
1671public DataTable ToTable(string tableName){
1675public DataTable ToTable(bool distinct, params string[] columnNames){
1679public DataTable ToTable(string tableName, bool distinct, params string[] columnNames){
1686DataTable dt = new DataTable();
fx\src\data\System\Data\Filter\AggregateNode.cs (5)
36private DataTable childTable;
40internal AggregateNode(DataTable table, FunctionId aggregateType, string columnName) :
44internal AggregateNode(DataTable table, FunctionId aggregateType, string columnName, string relationName) :
48internal AggregateNode(DataTable table, FunctionId aggregateType, string columnName, bool local, string relationName) : base(table) {
74internal override void Bind(DataTable table, List<DataColumn> list) {
fx\src\data\System\Data\Odbc\odbcmetadatafactory.cs (33)
64DataTable metaDataCollectionsTable = CollectionDataSet.Tables[DbMetaDataCollectionNames.MetaDataCollections];
73DataTable restrictionsTable = CollectionDataSet.Tables[DbMetaDataCollectionNames.Restrictions];
166private DataTable DataTableFromDataReader(IDataReader reader, string tableName) {
170DataTable resultTable = NewDataTableFromReader(reader, out values, tableName);
180private void DataTableFromDataReaderDataTypes(DataTable dataTypesTable, OdbcDataReader dataReader, OdbcConnection connection) {
182DataTable schemaTable = null;
414private DataTable DataTableFromDataReaderIndex(IDataReader reader,
420DataTable resultTable = NewDataTableFromReader(reader, out values, tableName);
436private DataTable DataTableFromDataReaderProcedureColumns(IDataReader reader, string tableName,Boolean isColumn) {
440DataTable resultTable = NewDataTableFromReader(reader, out values, tableName);
457private DataTable DataTableFromDataReaderProcedures(IDataReader reader, string tableName,Int16 procedureType) {
463DataTable resultTable = NewDataTableFromReader(reader, out values, tableName);
506private DataTable GetColumnsCollection(String[] restrictions, OdbcConnection connection){
510DataTable resultTable = null;
535private DataTable GetDataSourceInformationCollection(string [] restrictions,
543DataTable dataSourceInformationTable = CollectionDataSet.Tables[DbMetaDataCollectionNames.DataSourceInformation];
742private DataTable GetDataTypesCollection(String[] restrictions, OdbcConnection connection){
751DataTable dataTypesTable = CollectionDataSet.Tables[DbMetaDataCollectionNames.DataTypes];
785private DataTable GetIndexCollection(String[] restrictions, OdbcConnection connection){
789DataTable resultTable = null;
833private DataTable GetProcedureColumnsCollection(String[] restrictions, OdbcConnection connection,Boolean isColumns){
837DataTable resultTable = null;
870private DataTable GetProceduresCollection(String[] restrictions, OdbcConnection connection){
874DataTable resultTable = null;
924private DataTable GetReservedWordsCollection(string[] restrictions, OdbcConnection connection){
931DataTable reservedWordsTable = CollectionDataSet.Tables[DbMetaDataCollectionNames.ReservedWords];
960private DataTable GetTablesCollection(String[] restrictions, OdbcConnection connection, Boolean isTables){
964DataTable resultTable = null;
1018private DataTable NewDataTableFromReader(IDataReader reader, out object[] values, string tableName){
1020DataTable resultTable = new DataTable(tableName);
1022DataTable schemaTable = reader.GetSchemaTable();
1031protected override DataTable PrepareCollection(String collectionName, String[] restrictions, DbConnection connection){
1033DataTable resultTable = null;
fx\src\data\System\Data\Selection.cs (5)
71private readonly DataTable table;
97public Index(DataTable table, IndexField[] indexFields, DataViewRowState recordStates, IFilter rowFilter)
100public Index(DataTable table, System.Comparison<DataRow> comparison, DataViewRowState recordStates, IFilter rowFilter)
112private Index(DataTable table, IndexField[] indexFields, System.Comparison<DataRow> comparison, DataViewRowState recordStates, IFilter rowFilter) {
935internal DataTable Table {
fx\src\data\System\Data\XmlDataLoader.cs (25)
33DataTable dataTable;
58internal XmlDataLoader( DataTable datatable, bool IsXdr, bool ignoreSchema) {
68internal XmlDataLoader( DataTable datatable, bool IsXdr, XmlElement topNode, bool ignoreSchema) {
314DataTable topTable = (DataTable) nodeToSchemaMap.GetSchemaForNode(e, FIgnoreNamespace(e));
341DataTable table = row.Table;
370if (schema is DataTable) {
465if (schema != null && schema is DataTable) {
472r = ((DataTable)schema).CreateEmptyRow();
502if (obj is DataTable) { // It's a table? Load it.
503DataTable table = (DataTable) obj;
588DataTable table = nodeToSchemaMap.GetSchemaForNode(topMostNode, FIgnoreNamespace(topMostNode)) as DataTable;
606DataTable table = nodeToSchemaMap.GetTableForNode(dataReader, FIgnoreNamespace(dataReader));
648private void LoadTopMostTable(DataTable table) {
727DataTable nestedTable = o as DataTable;
812private void LoadTable(DataTable table, bool isNested ) {
942DataTable nestedTable = o as DataTable;
958DataTable misplacedTable = nodeToSchemaMap.GetTableForNode(dataReader, FIgnoreNamespace(dataReader));
1218DataTable nestedTable = o as DataTable;
1228DataTable misplacedTable = nodeToSchemaMap.GetTableForNode(dataReader, FIgnoreNamespace(dataReader));
fx\src\data\System\Data\xmlsaver.cs (79)
109if (!((instance is DataSet) || (instance is DataTable) || (instance is DataColumn) || (instance is DataRelation))) {
255private void GenerateConstraintNames(DataTable table, bool fromTable) {
261if (!_tables.Contains((DataTable)(((ForeignKeyConstraint)constr).RelatedTable))) {
289GenerateConstraintNames((DataTable)tables[i], true);
294foreach(DataTable dt in ds.Tables) {
309DataTable table = ds.Tables[t];
364foreach (DataTable dt in ds.Tables)
370SetupAutoGenerated((DataTable)dt[i]);
374internal void SetupAutoGenerated(DataTable dt){
413private void CreateTablesHierarchy(DataTable dt) {
417if (! _tables.Contains((DataTable)r.ChildTable)) {
418_tables.Add((DataTable)r.ChildTable);
424private void CreateRelations(DataTable dt) {
434private DataTable[] CreateToplevelTables() {
437DataTable table =(DataTable) _tables[i];
456return (new DataTable[0]);
457DataTable[] temp = new DataTable[topTables.Count];
467internal void SchemaTree(XmlDocument xd, XmlWriter xmlWriter, DataSet ds, DataTable dt, bool writeHierarchy) {
474DataTable [] top;
477DataTable _dt = dt;
481foreach(DataTable table in ds.Tables) {
662CreateRelations((DataTable)_tables[0]);
801internal XmlElement SchemaTree(XmlDocument xd, DataTable dt) {
865internal XmlElement FillDataSetElement(XmlDocument xd, DataSet ds, DataTable dt) {
935Save(ds, (DataTable)null, xw);
938internal void Save(DataTable dt, XmlWriter xw) {
948internal void Save(DataSet ds, DataTable dt, XmlWriter xw) {
952internal void Save(DataSet ds, DataTable dt, XmlWriter xw, bool writeHierarchy) {
956internal void Save(DataSet ds, DataTable dt, XmlWriter xw, bool writeHierarchy, Converter<Type, string> multipleTargetConverter)
1178private string FindTargetNamespace(DataTable table) {
1184DataTable parentTable = nestedParentRelations[i].ParentTable;
1213DataTable _table = col.Table;
1355internal XmlElement HandleTable(DataTable table, XmlDocument dc, XmlElement schema) {
1362private bool HasMixedColumns(DataTable table) {
1473internal XmlElement HandleTable(DataTable table, XmlDocument dc, XmlElement schema, bool genNested) {
1485DataTable _table = table;
1653DataTable childTable = childRelations[j].ChildTable;
1963internal DataTable _dt;
1983internal NewDiffgramGen(DataTable dt, bool writeHierarchy) {
1996private void CreateTableHierarchy(DataTable dt) {
2000if (! _tables.Contains((DataTable)r.ChildTable)) {
2001_tables.Add((DataTable)r.ChildTable);
2012rows += ((DataTable)tables[i]).Rows.Count ;
2016DataTable dt = (DataTable)tables[i];
2026if (((DataTable)_tables[i]).Rows.Count > 0)
2036internal void Save(XmlWriter xmlw, DataTable table) {
2059GenerateTable((DataTable)_tables[i]);
2073GenerateTableErrors((DataTable)_tables[i]);
2085private void GenerateTable(DataTable table) {
2096private void GenerateTableErrors(DataTable table) {
2164DataTable table = row.Table;
2315DataTable _dt=null;
2318DataTable [] topLevelTables;
2330foreach(DataTable table in ds.Tables) {
2335internal XmlDataTreeWriter(DataSet ds, DataTable dt) { // need to modify this also
2343internal XmlDataTreeWriter(DataTable dt, bool writeHierarchy) {
2348topLevelTables = new DataTable[] {dt};
2359topLevelTables = new DataTable[] {dt};
2363private DataTable[] CreateToplevelTables() {
2366DataTable table =(DataTable) _dTables[i];
2385return (new DataTable[0]);
2386DataTable[] temp = new DataTable[topTables.Count];
2391private void CreateTablesHierarchy(DataTable dt) {
2395if (! _dTables.Contains((DataTable)r.ChildTable)) {
2396_dTables.Add((DataTable)r.ChildTable);
2440DataTable tempTable = ((DataTable)_dTables[i]);
2446DataTable tempDT = ((DataTable)_dTables[i]);
2488if (((DataTable)_dTables[i]).xmlText != null) {
2505foreach (DataRow row in ((DataTable)_dTables[i]).Rows) {
2510XmlDataRowWriter(row, ((DataTable)_dTables[i]).EncodedTableName);
2513DataTable dt = (DataTable)_dTables[i];
fx\src\data\System\Data\XMLSchema.cs (48)
96internal static string GenUniqueColumnName(string proposedName, DataTable table) {
114public DataTable table;
116public ConstraintTable(DataTable t, XmlSchemaIdentityConstraint c) {
139Dictionary <DataTable, List<DataTable>> tableDictionary;
359DataTable table = _ds.Tables.GetTable(XmlConvert.DecodeName(typeName), element.QualifiedName.Namespace);
379DataTable parent;
380DataTable child;
561public void LoadSchema(XmlSchemaSet schemaSet , DataTable dt) {
599tableDictionary = new Dictionary <DataTable, List<DataTable>>() ;
602foreach(DataTable dt in ds.Tables){
681DataTable table = HandleTable(element);
697foreach (DataTable dt in ds.Tables) {
709DataTable tmpTable = ds.Tables[ds.DataSetName, ds.Namespace];
769internal void HandleParticle(XmlSchemaParticle pt, DataTable table, ArrayList tableChildren, bool isBase){
782DataTable child = null;
842internal void HandleAttributes(XmlSchemaObjectCollection attributes, DataTable table, bool isBase) {
857private void HandleAttributeGroup(XmlSchemaAttributeGroup attributeGroup, DataTable table, bool isBase) {
877internal void HandleComplexType(XmlSchemaComplexType ct, DataTable table, ArrayList tableChildren, bool isNillable){
988internal DataColumn FindField(DataTable table, string field) {
1013internal DataColumn[] BuildKey(XmlSchemaIdentityConstraint keyNode, DataTable table){
1093DataTable table = _ds.Tables.GetTableSmart(tableName,tableNs);
1192DataTable table = _ds.Tables.GetTableSmart(tableName,tableNs);
1226internal DataTable InstantiateSimpleTable(XmlSchemaElement node) {
1227DataTable table;
1294tableDictionary.Add(table, new List<DataTable>());
1334internal DataTable InstantiateTable(XmlSchemaElement node, XmlSchemaComplexType typeNode, bool isRef) {
1335DataTable table;
1409tableDictionary.Add(table, new List<DataTable>());
1448foreach(DataTable _tableChild in tableChildren) {
1691internal void HandleSimpleTypeSimpleContentColumn(XmlSchemaSimpleType typeNode, string strType, DataTable table, bool isBase, XmlAttribute[] attrs, bool isNillable){
1809internal void HandleSimpleContentColumn(String strType, DataTable table, bool isBase, XmlAttribute[] attrs, bool isNillable){
1900internal void HandleAttributeColumn(XmlSchemaAttribute attrib, DataTable table, bool isBase){
2040internal void HandleElementColumn(XmlSchemaElement elem, DataTable table, bool isBase){
2218List<DataTable> tableSequenceList = new List<DataTable>();
2281DataTable tempTable = _ds.Tables.GetTable(XmlConvert.DecodeName(GetInstanceName((XmlSchemaElement)el)), node.QualifiedName.Namespace);
2296DataTable child = HandleTable ((XmlSchemaElement)el);
2315DataTable child = HandleTable ((XmlSchemaElement)choiceEl);
2344List<DataTable> _tableList = new List<DataTable>(_ds.Tables.Count);
2345foreach(DataTable dt in tableSequenceList) {
2352private void AddTablesToList(List<DataTable> tableList, DataTable dt) { // kind of depth _first travarsal
2355foreach(DataTable childTable in tableDictionary[dt]) {
2457internal DataTable HandleTable(XmlSchemaElement node) {
2468DataTable table = InstantiateTable(node,(XmlSchemaComplexType)typeNode, (node.RefName != null)); // this is wrong , correct check should be node.RefName.IsEmpty