System\Data\Common\DataAdapter.cs (3)
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)
System\Data\Common\DataColumnMapping.cs (4)
74public DataColumn? GetDataColumnBySchemaAction(DataTable dataTable, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicProperties | DynamicallyAccessedMemberTypes.PublicFields)] Type? dataType, MissingSchemaAction schemaAction)
80public static DataColumn? GetDataColumnBySchemaAction(string? sourceColumn, string? dataSetColumn, DataTable dataTable, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicProperties | DynamicallyAccessedMemberTypes.PublicFields)] Type? dataType, MissingSchemaAction schemaAction)
96DataColumn dataColumn = columns[index];
115internal static DataColumn? CreateDataColumnBySchemaAction(string? sourceColumn, string? dataSetColumn, DataTable dataTable, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicProperties | DynamicallyAccessedMemberTypes.PublicFields)] Type? dataType, MissingSchemaAction schemaAction)
System\Data\Common\DataStorage.cs (5)
113internal readonly DataColumn _column;
130protected DataStorage(DataColumn column, Type type, object? defaultValue, StorageType storageType)
135protected DataStorage(DataColumn column, Type type, object? defaultValue, object nullValue, StorageType storageType)
140protected DataStorage(DataColumn column, Type type, object? defaultValue, object nullValue, bool isICloneable, StorageType storageType)
295public static DataStorage CreateStorage(DataColumn column, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicProperties | DynamicallyAccessedMemberTypes.PublicFields)] Type dataType, StorageType typeCode)
System\Data\ConstraintCollection.cs (19)
149/// specified array of <see cref='System.Data.DataColumn'/>
152public Constraint Add(string? name, DataColumn[] columns, bool primaryKey)
163/// specified <see cref='System.Data.DataColumn'/> and adds it to the collection.
165public Constraint Add(string? name, DataColumn column, bool primaryKey)
180public Constraint Add(string? name, DataColumn primaryKeyColumn, DataColumn foreignKeyColumn)
191public Constraint Add(string? name, DataColumn[] primaryKeyColumns, DataColumn[] foreignKeyColumns)
222DataColumn[] columns = constraint.ColumnsReference;
516internal UniqueConstraint? FindKeyConstraint(DataColumn[] columns)
533internal UniqueConstraint? FindKeyConstraint(DataColumn column)
548internal ForeignKeyConstraint? FindForeignKeyConstraint(DataColumn[] parentColumns, DataColumn[] childColumns)
562private static bool CompareArrays(DataColumn[] a1, DataColumn[] a2)
752DataColumn[] parents, childs;
767parents = new DataColumn[colCount];
804parents = new DataColumn[colCount];
805childs = new DataColumn[colCount];
System\Data\DataColumnCollection.cs (76)
14/// Represents a collection of <see cref='System.Data.DataColumn'/>
25private DataColumn?[]? _delayedAddRangeColumns;
27private readonly Dictionary<string, DataColumn?> _columnFromName; // Links names to columns
31private DataColumn[] _columnsImplementingIChangeTracking = Array.Empty<DataColumn>();
41_columnFromName = new Dictionary<string, DataColumn?>();
49internal DataColumn[] ColumnsImplementingIChangeTracking => _columnsImplementingIChangeTracking;
56/// Gets the <see cref='System.Data.DataColumn'/>
59public DataColumn this[int index]
66return (DataColumn)_list[index]!;
76/// Gets the <see cref='System.Data.DataColumn'/> from the collection with the specified name.
78public DataColumn? this[string name]
87DataColumn? column;
94column = (DataColumn)_list[index]!;
106internal DataColumn? this[string name, string ns]
110DataColumn? column;
129/// Adds the specified <see cref='System.Data.DataColumn'/>
132public void Add(DataColumn column)
137internal void AddAt(int index, DataColumn column)
190public void AddRange(DataColumn[] columns)
200foreach (DataColumn column in columns)
211/// Creates and adds a <see cref='System.Data.DataColumn'/>
215public DataColumn Add(string? columnName, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicProperties | DynamicallyAccessedMemberTypes.PublicFields)] Type type, string expression)
217var column = new DataColumn(columnName, type, expression);
223/// Creates and adds a <see cref='System.Data.DataColumn'/>
227public DataColumn Add(string? columnName, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicProperties | DynamicallyAccessedMemberTypes.PublicFields)] Type type)
229var column = new DataColumn(columnName, type);
235/// Creates and adds a <see cref='System.Data.DataColumn'/>
238public DataColumn Add(string? columnName)
240var column = new DataColumn(columnName);
246/// Creates and adds a <see cref='System.Data.DataColumn'/> to a columns collection.
248public DataColumn Add()
250var column = new DataColumn();
267private void ArrayAdd(DataColumn column)
274private void ArrayAdd(int index, DataColumn column)
280private void ArrayRemove(DataColumn column)
288((DataColumn)_list[i]!).SetOrdinalInternal(i);
319private void BaseAdd([NotNull] DataColumn? column)
373private void BaseGroupSwitch(DataColumn[] oldArray, int oldLength, DataColumn[] newArray, int newLength)
425private void BaseRemove(DataColumn column)
445public bool CanRemove(DataColumn? column) => CanRemove(column, false);
447internal bool CanRemove(DataColumn? column, bool fThrowException)
537DataColumn col = column._dependentColumns[i];
569private void CheckIChangeTracking(DataColumn column)
591DataColumn[] columns = new DataColumn[_list.Count];
605BaseGroupSwitch(columns, oldLength, Array.Empty<DataColumn>(), 0);
612BaseGroupSwitch(Array.Empty<DataColumn>(), 0, columns, oldLength);
631DataColumn? column;
642DataColumn? column;
652public void CopyTo(DataColumn[] array, int index)
669array[index + i] = (DataColumn)_list[i]!;
674/// Returns the index of a specified <see cref='System.Data.DataColumn'/>.
676public int IndexOf(DataColumn? column)
681if (column == (DataColumn)_list[i]!)
697DataColumn? column;
723DataColumn column = (DataColumn)_list[i]!;
744foreach (DataColumn? column in _delayedAddRangeColumns)
752foreach (DataColumn? column in _delayedAddRangeColumns)
768internal void MoveTo(DataColumn column, int newPosition)
785((DataColumn)_list[i]!).SetOrdinalInternal(i);
819internal void RegisterColumnName(string name, DataColumn? column)
866/// Removes the specified <see cref='System.Data.DataColumn'/>
869public void Remove(DataColumn column)
887DataColumn dc = this[index];
900DataColumn? dc = this[name];
926private void AddColumnsImplementingIChangeTrackingList(DataColumn dataColumn)
928DataColumn[] columns = _columnsImplementingIChangeTracking;
929DataColumn[] tempColumns = new DataColumn[columns.Length + 1];
935private void RemoveColumnsImplementingIChangeTrackingList(DataColumn dataColumn)
937DataColumn[] columns = _columnsImplementingIChangeTracking;
938DataColumn[] tempColumns = new DataColumn[columns.Length - 1];
System\Data\DataException.cs (10)
439public static string UniqueConstraintViolationText(DataColumn[] columns, object[] values)
456public static Exception ConstraintViolation(DataColumn[] columns, object[] values) => _Constraint(UniqueConstraintViolationText(columns, values));
494public static Exception ExpressionAndConstraint(DataColumn column, Constraint constraint) => _Argument(SR.Format(SR.DataColumn_ExpressionAndConstraint, column.ColumnName, constraint.ConstraintName));
495public static Exception ExpressionInConstraint(DataColumn column) => _Argument(SR.Format(SR.DataColumn_ExpressionInConstraint, column.ColumnName));
503public static Exception SetFailed(object? value, DataColumn column, Type type, Exception innerException) => _Argument(innerException.Message + SR.Format(SR.DataColumn_SetFailed, value?.ToString(), column.ColumnName, type.Name), innerException);
504public static Exception CannotSetToNull(DataColumn column) => _Argument(SR.Format(SR.DataColumn_CannotSetToNull, column.ColumnName));
505public static Exception LongerThanMaxLength(DataColumn column) => _Argument(SR.Format(SR.DataColumn_LongerThanMaxLength, column.ColumnName));
506public static Exception CannotSetMaxLength(DataColumn column, int value) => _Argument(SR.Format(SR.DataColumn_CannotSetMaxLength, column.ColumnName, value.ToString(CultureInfo.InvariantCulture)));
507public static Exception CannotSetMaxLength2(DataColumn column) => _Argument(SR.Format(SR.DataColumn_CannotSetMaxLength2, column.ColumnName));
511public static Exception HasToBeStringType(DataColumn column) => _Argument(SR.Format(SR.DataColumn_HasToBeStringType, column.ColumnName));
System\Data\DataRelation.cs (24)
77public DataRelation(string? relationName, DataColumn parentColumn, DataColumn childColumn) :
86public DataRelation(string? relationName, DataColumn parentColumn, DataColumn childColumn, bool createConstraints)
92DataColumn[] parentColumns = new DataColumn[1];
94DataColumn[] childColumns = new DataColumn[1];
103public DataRelation(string? relationName, DataColumn[] parentColumns, DataColumn[] childColumns) :
112public DataRelation(string? relationName, DataColumn[] parentColumns, DataColumn[] childColumns, bool createConstraints)
144public virtual DataColumn[] ChildColumns
153internal DataColumn[] ChildColumnsReference
309public virtual DataColumn[] ParentColumns
318internal DataColumn[] ParentColumnsReference => _parentKey.ColumnsReference;
681private void Create(string? relationName, DataColumn[] parentColumns, DataColumn[] childColumns, bool createConstraints)
722DataColumn[] parentColumns = new DataColumn[keyLength];
723DataColumn[] childColumns = new DataColumn[keyLength];
780DataColumn[] childCols = ChildColumns;
812private bool IsAutoGenerated(DataColumn col)
System\Data\DataRelationCollection.cs (15)
94public virtual DataRelation Add(string? name, DataColumn[] parentColumns, DataColumn[] childColumns)
109public virtual DataRelation Add(string? name, DataColumn[] parentColumns, DataColumn[] childColumns, bool createConstraints)
123public virtual DataRelation Add(DataColumn[] parentColumns, DataColumn[] childColumns)
139public virtual DataRelation Add(string? name, DataColumn parentColumn, DataColumn childColumn)
155public virtual DataRelation Add(string? name, DataColumn parentColumn, DataColumn childColumn, bool createConstraints)
169public virtual DataRelation Add(DataColumn parentColumn, DataColumn childColumn)
874DataColumn[] parents, childs;
885parents = new DataColumn[colCount];
886childs = new DataColumn[colCount];
System\Data\DataTable.cs (66)
89internal DataColumn? _xmlText; // text values of a complex xml element
90internal DataColumn? _colUnique;
99private DataColumn[]? _delayedSetPrimaryKey;
126internal List<DataColumn>? _dependentColumns;
460DataColumn dc = new DataColumn();
609DataColumn[] keyColumns = new DataColumn[keyColumnIndexes.Length];
635DataColumn[] parentkeyColumns = new DataColumn[parentInfo.Length - 1];
643DataColumn[] childkeyColumns = new DataColumn[childInfo.Length - 1];
908DataColumn[] dcArr = row.GetColumnsInError();
1335foreach (DataColumn column in Columns)
1488foreach (DataColumn column in Columns)
1629public DataColumn[] PrimaryKey
1639return Array.Empty<DataColumn>();
1670DataColumn[] newValue = value;
1673newValue = new DataColumn[count];
1994foreach (DataColumn col in Columns)
2035foreach (DataColumn dc in Columns)
2081internal DataColumn? XmlText
2269DataColumn[] cols = row.GetColumnsInError();
2273DataColumn col = targetRow.Table.Columns[cols[i].ColumnName]!;
2349foreach (DataColumn dc in sourceTable.Columns)
2441DataColumn[] pkey = PrimaryKey;
2444DataColumn[] key = new DataColumn[pkey.Length];
2810DataColumn column = _columnCollection[i];
2884foreach (DataColumn column in Columns)
3009DataColumn[] cols = row.GetColumnsInError();
3013DataColumn col = targetRow.Table.Columns[cols[i].ColumnName]!;
3269DataColumn[] cols = row.GetColumnsInError();
3273DataColumn col = targetRow.Table.Columns[cols[i].ColumnName]!;
3469foreach (DataColumn c in Columns)
3583internal void OnRemoveColumnInternal(DataColumn column) => OnRemoveColumn(column);
3586/// Notifies the <see cref='System.Data.DataTable'/> that a <see cref='System.Data.DataColumn'/> is
3589protected virtual void OnRemoveColumn(DataColumn column) { }
3744DataColumn? column = Columns[current];
3929internal static void SilentlySetValue(DataRow dr, DataColumn dc, DataRowVersion version, object newValue)
4063internal void ResetInternalIndexes(DataColumn? column)
4183DataColumn column = _columnCollection[i];
4832internal DataColumn AddUniqueKey(int position)
4838DataColumn[] pkey = PrimaryKey;
4848DataColumn key = new DataColumn(keyName, typeof(int), null, MappingType.Hidden);
4870PrimaryKey = new DataColumn[] { key };
4877internal DataColumn AddUniqueKey() => AddUniqueKey(-1);
4881internal DataColumn AddForeignKey(DataColumn parentKey)
4886DataColumn foreignKey = new DataColumn(keyName, parentKey.DataType, null, MappingType.Hidden);
5116foreach (DataColumn dc in Columns)
5155foreach (DataColumn dc in dataRow.Table.Columns)
5287foreach (DataColumn dc in Columns)
5541foreach (DataColumn dc in datatable.Columns)
5545DataColumn[] dependency = dc.DataExpression!.GetDependency();
6632foreach (DataColumn dc in tempTable.Columns)
6637DataColumn[] dependency = dc.DataExpression!.GetDependency();
6943internal void AddDependentColumn(DataColumn expressionColumn)
6945_dependentColumns ??= new List<DataColumn>();
6954internal void RemoveDependentColumn(DataColumn expressionColumn)
7012foreach (DataColumn col in _dependentColumns)
7072internal void EvaluateExpressions(DataColumn column)
7126internal void EvaluateDependentExpressions(DataColumn column)
7131foreach (DataColumn dc in column._dependentColumns)
7141internal void EvaluateDependentExpressions(List<DataColumn>? columns, DataRow row, DataRowVersion version, List<DataRow>? cachedRows)
7155DataColumn dc = columns[i];
7205DataColumn dc = columns[i];
System\Data\DataTableReader.cs (30)
626DataColumn? dc = _currentDataTable.Columns[name];
715DataColumn ColumnName = new DataColumn(SchemaTableColumn.ColumnName, typeof(string));
716DataColumn ColumnOrdinal = new DataColumn(SchemaTableColumn.ColumnOrdinal, typeof(int));
717DataColumn ColumnSize = new DataColumn(SchemaTableColumn.ColumnSize, typeof(int));
718DataColumn NumericPrecision = new DataColumn(SchemaTableColumn.NumericPrecision, typeof(short));
719DataColumn NumericScale = new DataColumn(SchemaTableColumn.NumericScale, typeof(short));
720DataColumn DataType = GetSystemTypeDataColumn();
725static DataColumn GetSystemTypeDataColumn() =>
728DataColumn ProviderType = new DataColumn(SchemaTableColumn.ProviderType, typeof(int));
729DataColumn IsLong = new DataColumn(SchemaTableColumn.IsLong, typeof(bool));
730DataColumn AllowDBNull = new DataColumn(SchemaTableColumn.AllowDBNull, typeof(bool));
731DataColumn IsReadOnly = new DataColumn(SchemaTableOptionalColumn.IsReadOnly, typeof(bool));
732DataColumn IsRowVersion = new DataColumn(SchemaTableOptionalColumn.IsRowVersion, typeof(bool));
733DataColumn IsUnique = new DataColumn(SchemaTableColumn.IsUnique, typeof(bool));
734DataColumn IsKeyColumn = new DataColumn(SchemaTableColumn.IsKey, typeof(bool));
735DataColumn IsAutoIncrement = new DataColumn(SchemaTableOptionalColumn.IsAutoIncrement, typeof(bool));
736DataColumn BaseSchemaName = new DataColumn(SchemaTableColumn.BaseSchemaName, typeof(string));
737DataColumn BaseCatalogName = new DataColumn(SchemaTableOptionalColumn.BaseCatalogName, typeof(string));
738DataColumn BaseTableName = new DataColumn(SchemaTableColumn.BaseTableName, typeof(string));
739DataColumn BaseColumnName = new DataColumn(SchemaTableColumn.BaseColumnName, typeof(string));
740DataColumn AutoIncrementSeed = new DataColumn(SchemaTableOptionalColumn.AutoIncrementSeed, typeof(long));
741DataColumn AutoIncrementStep = new DataColumn(SchemaTableOptionalColumn.AutoIncrementStep, typeof(long));
742DataColumn DefaultValue = new DataColumn(SchemaTableOptionalColumn.DefaultValue, typeof(object));
743DataColumn Expression = new DataColumn(SchemaTableOptionalColumn.Expression, typeof(string));
744DataColumn ColumnMapping = new DataColumn(SchemaTableOptionalColumn.ColumnMapping, typeof(MappingType));
745DataColumn BaseTableNamespace = new DataColumn(SchemaTableOptionalColumn.BaseTableNamespace, typeof(string));
746DataColumn BaseColumnNamespace = new DataColumn(SchemaTableOptionalColumn.BaseColumnNamespace, typeof(string));
793foreach (DataColumn dc in table.Columns)
825DataColumn[] dependency = dc.DataExpression!.GetDependency();
847foreach (DataColumn key in table.PrimaryKey)
System\Data\ForeignKeyConstraint.cs (33)
40/// child <see cref='System.Data.DataColumn'/> objects.
42public ForeignKeyConstraint(DataColumn parentColumn, DataColumn childColumn) : this(null, parentColumn, childColumn)
48/// parent and child <see cref='System.Data.DataColumn'/> objects.
50public ForeignKeyConstraint(string? constraintName, DataColumn parentColumn, DataColumn childColumn)
52DataColumn[] parentColumns = new DataColumn[] { parentColumn };
53DataColumn[] childColumns = new DataColumn[] { childColumn };
59/// of parent and child <see cref='System.Data.DataColumn'/> objects.
61public ForeignKeyConstraint(DataColumn[] parentColumns, DataColumn[] childColumns) : this(null, parentColumns, childColumns)
67/// and arrays of parent and child <see cref='System.Data.DataColumn'/> objects.
69public ForeignKeyConstraint(string? constraintName, DataColumn[] parentColumns, DataColumn[] childColumns)
119public virtual DataColumn[] Columns
605DataColumn column = _parentKey.ColumnsReference[lo];
681internal override bool ContainsColumn(DataColumn column) =>
721DataColumn[] columns = new DataColumn[keys];
722DataColumn[] relatedColumns = new DataColumn[keys];
726DataColumn src = Columns[i];
761DataColumn[] columns = new DataColumn[keys];
762DataColumn[] relatedColumns = new DataColumn[keys];
766DataColumn src = Columns[i];
796private void Create(string? relationName, DataColumn[] parentColumns, DataColumn[] childColumns)
875public virtual DataColumn[] RelatedColumns
884internal DataColumn[] RelatedColumnsReference
System\Data\ProviderBase\SchemaMapping.cs (23)
62DataColumn? parentChapterColumn, object? parentChapterValue)
475DataColumn parentChapterColumn;
521private static DataColumn[] ResizeColumnArray(DataColumn[] rgcol, int len)
525var tmp = new DataColumn[len];
548DataColumn? column = (items[i] as DataColumn);
564private object[]? SetupSchemaWithoutKeyInfo(MissingMappingAction mappingAction, MissingSchemaAction schemaAction, bool gettingData, DataColumn? parentChapterColumn, object? chapterValue)
623DataColumn? dataColumn;
699DataColumn? chapterColumn = null;
760private object[]? SetupSchemaWithKeyInfo(MissingMappingAction mappingAction, MissingSchemaAction schemaAction, bool gettingData, DataColumn? parentChapterColumn, object? chapterValue)
783DataColumn[]? keys = null;
848DataColumn? dataColumn = null;
945if (schemaRow.IsAutoIncrement && DataColumn.IsAutoIncrementType(fieldType))
1022keys ??= new DataColumn[schemaRows.Length];
1046DataColumn? chapterColumn = null;
1138private static void AddAdditionalProperties(DataColumn targetColumn, DataRow schemaRow)
1141DataColumn? column;
1200private void AddRelation(DataColumn parentChapterColumn, DataColumn chapterColumn)
1206DataRelation relation = new DataRelation(name, new DataColumn[] { parentChapterColumn }, new DataColumn[] { chapterColumn }, false);
1221private object[] SetupMapping(int count, DataColumnCollection columnCollection, DataColumn? chapterColumn, object? chapterValue)
System\Data\xmlsaver.cs (27)
119if (!((instance is DataSet) || (instance is DataTable) || (instance is DataColumn) || (instance is DataRelation)))
136DataColumn? col = null; // it may cause problem to assign null here, I will need to change this.
140if (instance is DataColumn)
142col = (DataColumn)instance;
433foreach (DataColumn col in dt.Columns)
1170DataColumn[] key = rel.ParentKey.ColumnsReference;
1241internal void HandleColumnType(DataColumn col, XmlDocument dc, XmlElement root, XmlElement schema)
1343internal void AddColumnProperties(DataColumn col, XmlElement root)
1423internal XmlElement HandleColumn(DataColumn col, XmlDocument dc, XmlElement schema, bool fWriteOrdinal)
1450if (col.GetType() != typeof(DataColumn))
1612foreach (DataColumn col in table.Columns)
1624internal static bool AutoGenerated(DataColumn col)
1802DataColumn col = columns[i];
1823DataColumn col = table.Columns[0];
1866DataColumn? colTxt = table.XmlText;
1872if (colTxt.GetType() != typeof(DataColumn))
1903DataColumn col = columns[i];
1999DataColumn[] fields;
2458DataColumn column = table.Columns[colNum];
2551private void GenerateColumn(DataRow row, DataColumn col, DataRowVersion version)
2583if (!col.IsCustomType || !DataColumn.IsValueCustomTypeInstance(columnValue) || (typeof(IXmlSerializable).IsAssignableFrom(columnValue.GetType())))
2604if (DataColumn.IsValueCustomTypeInstance(columnValue)/* && valuesType != typeof(Type)*/)
2786DataColumn column = row.Table.Columns[colNum];
2971foreach (DataColumn col in row.Table.Columns)
3000foreach (DataColumn col in row.Table.Columns)
3017if (!col.IsCustomType || !DataColumn.IsValueCustomTypeInstance(value) || (typeof(IXmlSerializable).IsAssignableFrom(value.GetType())))
3038if (DataColumn.IsValueCustomTypeInstance(value) /*&& !(value is Type) && valuesType != typeof(Type)*/)
System\Xml\DataPointer.cs (12)
16private DataColumn? _column;
104private void MoveTo(XmlNode node, DataColumn? column, bool fOnValue)
115private DataColumn? NextColumn(DataRow row, DataColumn? col, bool fAttribute, bool fNulls)
130DataColumn c = columns[iColumn];
140private DataColumn? NthColumn(DataRow row, bool fAttribute, int iColumn, bool fNulls)
142DataColumn? c = null;
157DataColumn? c = null;
188DataColumn? c = NextColumn(Row!, null, false, false);
220DataColumn? c = NextColumn(Row!, _column, false, false);
351DataColumn? c = NthColumn(Row!, true, i, false);
593bool IXmlDataVirtualNode.IsOnColumn(DataColumn? col)
System\Xml\XmlDataDocument.cs (31)
322foreach (DataColumn col in t.Columns)
368foreach (DataColumn col in dt.Columns)
672foreach (DataColumn col in row.Table.Columns)
745private XmlNode? GetColumnInsertAfterLocation(DataColumn col, XmlBoundElement rowElement)
773if (schema == null || !(schema is DataColumn))
777if (((DataColumn)schema).Ordinal > col.Ordinal)
813private DataColumn? GetTextOnlyColumn(DataRow row)
823DataColumn c = columns[iCol];
1118internal bool IsNotMapped(DataColumn c)
1123private bool IsSame(DataColumn c, int recNo1, int recNo2)
1131internal bool IsTextOnly(DataColumn c)
1404private void OnColumnValueChanged(DataRow row, DataColumn col, XmlBoundElement rowElement)
1600DataColumn? col = args.Column;
1629if (((DataColumn)(_columnChangeList[0]!)).Table == row.Table)
1631foreach (DataColumn c in _columnChangeList)
1636foreach (DataColumn c in row.Table.Columns)
1642foreach (DataColumn c in row.Table.Columns)
1710private DataColumn? FindAssociatedParentColumn(DataRelation relation, DataColumn childCol)
1712DataColumn[] columns = relation.ChildKey.ColumnsReference;
1722private void OnNestedParentChange(DataRow child, XmlBoundElement childElement, DataColumn? childCol)
1755DataColumn? colInParent = FindAssociatedParentColumn(relation, childCol);
2113foreach (DataColumn c in row.Table.Columns)
2130foreach (DataColumn c in row.Table.Columns)
2377internal static void SetRowValueToNull(DataRow row, DataColumn col)
2387internal static void SetRowValueFromXmlText(DataRow row, DataColumn col, string xmlText)
2469DataColumn? column = GetTextOnlyColumn(row);
2502DataColumn? c = _mapper.GetColumnSchemaForNode(rowElement, e);
2527DataColumn? c = _mapper.GetColumnSchemaForNode(rowElement, attr);
2540foreach (DataColumn c in row.Table.Columns)
2554foreach (DataColumn c in row.Table.Columns)
System\Xml\XPathNodePointer.cs (26)
18private DataColumn? _column;
105private XPathNodePointer(DataDocumentXPathNavigator owner, XmlDataDocument doc, XmlNode node, DataColumn? c, bool bOnValue, XmlBoundElement? parentOfNS)
405foreach (DataColumn col in row.Table.Columns)
485private void MoveTo(XmlNode node, DataColumn? column, bool fOnValue)
503DataColumn? c = null;
541internal DataColumn? NextColumn(DataRow row, DataColumn? col, bool fAttribute)
554DataColumn c = columns[iColumn];
562internal DataColumn? PreviousColumn(DataRow row, DataColumn? col, bool fAttribute)
574DataColumn c = columns[iColumn];
596DataColumn? c = null;
638DataColumn? c = _column;
710private static bool IsValidChild(XmlNode parent, DataColumn c)
737DataColumn? c = NextColumn(curRow, _column, false);
789DataColumn? c = PreviousColumn(curRow, _column, false);
824DataColumn? c = PreviousColumn(row, null, false);
861DataColumn? c = NextColumn(curRow, null, false);
906DataColumn? c = NextColumn(curRow, null, false);
947DataColumn? c = NextColumn(curRow, null, false);
1258bool IXmlDataVirtualNode.IsOnColumn(DataColumn? col)
1343DataColumn? curCol = PreviousColumn(curRow, null, true);
1428DataColumn? curCol = PreviousColumn(curRow, null, true);
1455private bool MoveToNextNamespace(XmlBoundElement? be, DataColumn? col, XmlAttribute? curAttr)
1491DataColumn? curCol = PreviousColumn(curRow, col, true);
1584DataColumn? curCol = PreviousColumn(curRow, _column, true);