64 instantiations of DataColumn
System.Data.Common (45)
System\Data\Common\DataColumnMapping.cs (1)
127return new DataColumn(dataSetColumn, dataType!);
System\Data\Common\DbProviderFactories.cs (4)
85DataColumn nameColumn = new DataColumn(NameColumnName, typeof(string)) { ReadOnly = true }; 86DataColumn descriptionColumn = new DataColumn(DescriptionColumnName, typeof(string)) { ReadOnly = true }; 87DataColumn invariantNameColumn = new DataColumn(InvariantNameColumnName, typeof(string)) { ReadOnly = true }; 88DataColumn assemblyQualifiedNameColumn = new DataColumn(AssemblyQualifiedNameColumnName, typeof(string)) { ReadOnly = true };
System\Data\Common\DBSchemaRow.cs (1)
21sortindex = new DataColumn(SchemaMappingUnsortedIndex, typeof(int));
System\Data\DataColumnCollection.cs (4)
217var column = new DataColumn(columnName, type, expression); 229var column = new DataColumn(columnName, type); 240var column = new DataColumn(columnName); 250var column = new DataColumn();
System\Data\DataTable.cs (3)
460DataColumn dc = new DataColumn(); 4848DataColumn key = new DataColumn(keyName, typeof(int), null, MappingType.Hidden); 4886DataColumn foreignKey = new DataColumn(keyName, parentKey.DataType, null, MappingType.Hidden);
System\Data\DataTableReader.cs (25)
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)); 726new DataColumn(SchemaTableColumn.DataType, typeof(Type)); 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));
System\Data\XDRSchema.cs (1)
453column = new DataColumn(XmlConvert.DecodeName(instanceName), type, null,
System\Data\XMLSchema.cs (6)
2020column = new DataColumn(columnName, type, null, MappingType.SimpleContent); 2134column = new DataColumn(columnName, type, null, MappingType.SimpleContent); 2277column = new DataColumn(columnName, type, null, MappingType.Attribute); // this is to fix issue with Exception we used to throw for old inference engine if column 2284column = new DataColumn(columnName, type, null, MappingType.Attribute); 2463column = new DataColumn(columnName, type, null, MappingType.Element); // this is to fix issue with Exception we used to throw for old inference engine if column 2470column = new DataColumn(columnName, type, null, MappingType.Element);
System.Data.Odbc (19)
src\libraries\Common\src\System\Data\ProviderBase\DbMetaDataFactory.cs (1)
213DataColumn newDestinationColumn = new DataColumn(sourceColumn.ColumnName, sourceColumn.DataType);
System\Data\Odbc\OdbcDataReader.cs (18)
2192columns.Add(new DataColumn("ColumnName", typeof(string))); 2193columns.Add(new DataColumn("ColumnOrdinal", typeof(int))); // UInt32 2194columns.Add(new DataColumn("ColumnSize", typeof(int))); // UInt32 2195columns.Add(new DataColumn("NumericPrecision", typeof(short))); // UInt16 2196columns.Add(new DataColumn("NumericScale", typeof(short))); 2197columns.Add(new DataColumn("DataType", typeof(object))); 2198columns.Add(new DataColumn("ProviderType", typeof(int))); 2199columns.Add(new DataColumn("IsLong", typeof(bool))); 2200columns.Add(new DataColumn("AllowDBNull", typeof(bool))); 2201columns.Add(new DataColumn("IsReadOnly", typeof(bool))); 2202columns.Add(new DataColumn("IsRowVersion", typeof(bool))); 2203columns.Add(new DataColumn("IsUnique", typeof(bool))); 2204columns.Add(new DataColumn("IsKey", typeof(bool))); 2205columns.Add(new DataColumn("IsAutoIncrement", typeof(bool))); 2206columns.Add(new DataColumn("BaseSchemaName", typeof(string))); 2207columns.Add(new DataColumn("BaseCatalogName", typeof(string))); 2208columns.Add(new DataColumn("BaseTableName", typeof(string))); 2209columns.Add(new DataColumn("BaseColumnName", typeof(string)));
842 references to DataColumn
Microsoft.Data.Analysis.Tests (1)
DataFrame.IOTests.cs (1)
1191var resColumns = table.Columns.Cast<DataColumn>().Select(column => (column.ColumnName, column.DataType)).ToArray();
netstandard (1)
netstandard.cs (1)
486[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.DataColumn))]
PresentationFramework-SystemData (1)
SystemDataExtension.cs (1)
186DataColumn column = null;
System.Data (1)
src\libraries\shims\System.Data\ref\System.Data.cs (1)
60[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.DataColumn))]
System.Data.Common (775)
System\Data\Common\AdapterUtil.Common.cs (1)
312internal static InvalidOperationException ColumnSchemaMismatch(string? srcColumn, Type srcType, DataColumn column)
System\Data\Common\BigIntegerStorage.cs (1)
15internal BigIntegerStorage(DataColumn column) :
System\Data\Common\BooleanStorage.cs (1)
17internal BooleanStorage(DataColumn column) :
System\Data\Common\ByteStorage.cs (1)
17internal ByteStorage(DataColumn column) : base(column, typeof(byte), defaultValue, StorageType.Byte)
System\Data\Common\CharStorage.cs (1)
17internal CharStorage(DataColumn column) : base(column, typeof(char), defaultValue, StorageType.Char)
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\DataColumnMappingCollection.cs (1)
445public static DataColumn? GetDataColumn(DataColumnMappingCollection? columnMappings, string sourceColumn, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicProperties | DynamicallyAccessedMemberTypes.PublicFields)] Type? dataType, DataTable dataTable, MissingMappingAction mappingAction, 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\Common\DataTableMapping.cs (1)
115public DataColumn? GetDataColumn(string sourceColumn, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicProperties | DynamicallyAccessedMemberTypes.PublicFields)] Type? dataType, DataTable dataTable, MissingMappingAction mappingAction, MissingSchemaAction schemaAction)
System\Data\Common\DateTimeOffsetStorage.cs (1)
16internal DateTimeOffsetStorage(DataColumn column)
System\Data\Common\DateTimeStorage.cs (1)
16internal DateTimeStorage(DataColumn column)
System\Data\Common\DBCommandBuilder.cs (5)
844DataColumn? dataColumn = GetDataColumn(sourceColumn, mappings, dataRow); 933DataColumn? dataColumn = GetDataColumn(sourceColumn, mappings, dataRow); 1368private static object? GetColumnValue(DataRow row, DataColumn? column, DataRowVersion version) 1378private DataColumn? GetDataColumn(string columnName, DataTableMapping tablemapping, DataRow row) 1380DataColumn? column = null;
System\Data\Common\DbDataAdapter.cs (2)
761DataColumn? dataColumn = mappings.GetDataColumn(columnName, null, row.Table, missingMapping, missingSchema); 794DataColumn? dataColumn = mappings.GetDataColumn(columnName, null, row.Table, missingMapping, missingSchema);
System\Data\Common\DbProviderFactories.cs (5)
60DataColumn? assemblyQualifiedNameColumn = providerRow.Table.Columns[AssemblyQualifiedNameColumnName]; 85DataColumn nameColumn = new DataColumn(NameColumnName, typeof(string)) { ReadOnly = true }; 86DataColumn descriptionColumn = new DataColumn(DescriptionColumnName, typeof(string)) { ReadOnly = true }; 87DataColumn invariantNameColumn = new DataColumn(InvariantNameColumnName, typeof(string)) { ReadOnly = true }; 88DataColumn assemblyQualifiedNameColumn = new DataColumn(AssemblyQualifiedNameColumnName, typeof(string)) { ReadOnly = true };
System\Data\Common\DBSchemaRow.cs (1)
18DataColumn? sortindex = dataTable.Columns[SchemaMappingUnsortedIndex];
System\Data\Common\DBSchemaTable.cs (23)
59private readonly DataColumn?[] _columnCache = new DataColumn[s_DBCOLUMN_NAME.Length]; 69internal DataColumn? ColumnName { get { return CachedDataColumn(ColumnEnum.ColumnName); } } 70internal DataColumn? Size { get { return CachedDataColumn(ColumnEnum.ColumnSize); } } 71internal DataColumn? BaseServerName { get { return CachedDataColumn(ColumnEnum.BaseServerName); } } 72internal DataColumn? BaseColumnName { get { return CachedDataColumn(ColumnEnum.BaseColumnName); } } 73internal DataColumn? BaseTableName { get { return CachedDataColumn(ColumnEnum.BaseTableName); } } 74internal DataColumn? BaseCatalogName { get { return CachedDataColumn(ColumnEnum.BaseCatalogName); } } 75internal DataColumn? BaseSchemaName { get { return CachedDataColumn(ColumnEnum.BaseSchemaName); } } 76internal DataColumn? IsAutoIncrement { get { return CachedDataColumn(ColumnEnum.IsAutoIncrement); } } 77internal DataColumn? IsUnique { get { return CachedDataColumn(ColumnEnum.IsUnique); } } 78internal DataColumn? IsKey { get { return CachedDataColumn(ColumnEnum.IsKey); } } 79internal DataColumn? IsRowVersion { get { return CachedDataColumn(ColumnEnum.IsRowVersion); } } 81internal DataColumn? AllowDBNull { get { return CachedDataColumn(ColumnEnum.AllowDBNull); } } 82internal DataColumn? IsExpression { get { return CachedDataColumn(ColumnEnum.IsExpression); } } 83internal DataColumn? IsHidden { get { return CachedDataColumn(ColumnEnum.IsHidden); } } 84internal DataColumn? IsLong { get { return CachedDataColumn(ColumnEnum.IsLong); } } 85internal DataColumn? IsReadOnly { get { return CachedDataColumn(ColumnEnum.IsReadOnly); } } 87internal DataColumn? UnsortedIndex { get { return CachedDataColumn(ColumnEnum.SchemaMappingUnsortedIndex); } } 89internal DataColumn? DataType 101private DataColumn? CachedDataColumn(ColumnEnum column) 106private DataColumn? CachedDataColumn(ColumnEnum column, ColumnEnum column2) 108DataColumn? dataColumn = _columnCache[(int)column];
System\Data\Common\DecimalStorage.cs (1)
16internal DecimalStorage(DataColumn column)
System\Data\Common\DoubleStorage.cs (1)
16internal DoubleStorage(DataColumn column)
System\Data\Common\Int16Storage.cs (1)
16internal Int16Storage(DataColumn column)
System\Data\Common\Int32Storage.cs (1)
16internal Int32Storage(DataColumn column)
System\Data\Common\Int64Storage.cs (1)
16internal Int64Storage(DataColumn column)
System\Data\Common\ObjectStorage.cs (1)
30internal ObjectStorage(DataColumn column, Type type)
System\Data\Common\SByteStorage.cs (1)
16public SByteStorage(DataColumn column)
System\Data\Common\SingleStorage.cs (1)
16public SingleStorage(DataColumn column)
System\Data\Common\SQLTypes\SQLBinaryStorage.cs (1)
18public SqlBinaryStorage(DataColumn column) : base(column, typeof(SqlBinary), SqlBinary.Null, SqlBinary.Null, StorageType.SqlBinary)
System\Data\Common\SQLTypes\SQlBooleanStorage.cs (1)
18public SqlBooleanStorage(DataColumn column)
System\Data\Common\SQLTypes\SQLBytesStorage.cs (1)
18public SqlBytesStorage(DataColumn column)
System\Data\Common\SQLTypes\SQLByteStorage.cs (1)
18public SqlByteStorage(DataColumn column)
System\Data\Common\SQLTypes\SQLCharsStorage.cs (1)
18public SqlCharsStorage(DataColumn column)
System\Data\Common\SQLTypes\SQLDateTimeStorage.cs (1)
18public SqlDateTimeStorage(DataColumn column)
System\Data\Common\SQLTypes\SQLDecimalStorage.cs (1)
18public SqlDecimalStorage(DataColumn column)
System\Data\Common\SQLTypes\SQLDoubleStorage.cs (1)
18public SqlDoubleStorage(DataColumn column)
System\Data\Common\SQLTypes\SQLGuidStorage.cs (1)
18public SqlGuidStorage(DataColumn column)
System\Data\Common\SQLTypes\SQLInt16Storage.cs (1)
18public SqlInt16Storage(DataColumn column)
System\Data\Common\SQLTypes\SQLInt32Storage.cs (1)
18public SqlInt32Storage(DataColumn column)
System\Data\Common\SQLTypes\SQLInt64Storage.cs (1)
18public SqlInt64Storage(DataColumn column)
System\Data\Common\SQLTypes\SQLMoneyStorage.cs (1)
18public SqlMoneyStorage(DataColumn column)
System\Data\Common\SQLTypes\SQLSingleStorage.cs (1)
18public SqlSingleStorage(DataColumn column)
System\Data\Common\SQLTypes\SQLStringStorage.cs (1)
18public SqlStringStorage(DataColumn column)
System\Data\Common\SqlUDTStorage.cs (2)
25public SqlUdtStorage(DataColumn column, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicProperties | DynamicallyAccessedMemberTypes.PublicFields)] Type type) 30private SqlUdtStorage(DataColumn column, Type type, object nullValue)
System\Data\Common\StringStorage.cs (1)
15public StringStorage(DataColumn column)
System\Data\Common\TimeSpanStorage.cs (1)
16public TimeSpanStorage(DataColumn column)
System\Data\Common\UInt16Storage.cs (1)
16public UInt16Storage(DataColumn column)
System\Data\Common\UInt32Storage.cs (1)
16public UInt32Storage(DataColumn column)
System\Data\Common\UInt64Storage.cs (1)
16public UInt64Storage(DataColumn column)
System\Data\Constraint.cs (2)
11/// Represents a constraint that can be enforced on one or more <see cref='System.Data.DataColumn'/> objects. 93internal abstract bool ContainsColumn(DataColumn column);
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\DataColumn.cs (21)
59internal List<DataColumn>? _dependentColumns; // list of columns whose expression consume values from this column 78/// Initializes a new instance of a <see cref='System.Data.DataColumn'/> 88/// Initializes a new instance of the <see cref='System.Data.DataColumn'/> class 98/// Initializes a new instance of the <see cref='System.Data.DataColumn'/> class 109/// of the <see cref='System.Data.DataColumn'/> class 118/// Initializes a new instance of the <see cref='System.Data.DataColumn'/> class 277/// <see cref='System.Data.DataColumn.AutoIncrement'/> property set to <see langword='true'/>. 294/// Gets or sets the increment used by a column with its <see cref='System.Data.DataColumn.AutoIncrement'/> 331/// Resets the <see cref='System.Data.DataColumn.Caption'/> property to its previous value, or 343/// Gets a value indicating whether the <see cref='System.Data.DataColumn.Caption'/> has been explicitly set. 1521internal DataColumn Clone() 1523DataColumn clone = (DataColumn)Activator.CreateInstance(GetType())!; 1806internal void AddDependentColumn(DataColumn expressionColumn) 1808_dependentColumns ??= new List<DataColumn>(); 1815internal void RemoveDependentColumn(DataColumn expressionColumn) 1827DataColumn[] dependency; 1833foreach (DataColumn col in dependency) 1850foreach (DataColumn col in dependency) 1864internal void CopyExpressionFrom(DataColumn source) 1964Debug.Assert(null != value && DataColumn.IsAutoIncrementType(value.GetType()) && !(value is BigInteger), "unexpected value for autoincrement");
System\Data\DataColumnChangeEvent.cs (4)
8private DataColumn? _column; 18public DataColumnChangeEventArgs(DataRow row, DataColumn? column, object? value) 28public DataColumn? Column => _column; 40internal void InitializeColumnChangeEvent(DataColumn column, object value)
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\DataColumnPropertyDescriptor.cs (2)
13internal DataColumnPropertyDescriptor(DataColumn dataColumn) : base(dataColumn.ColumnName, null) 38internal DataColumn Column { get; }
System\Data\DataError.cs (7)
38internal void SetColumnError(DataColumn column, string? error) 61internal string GetColumnError(DataColumn column) 74internal void Clear(DataColumn column) 104internal DataColumn[] GetColumnsInError() 106var cols = new DataColumn[_count]; 128internal int IndexOf(DataColumn column) 151internal DataColumn _column;
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\DataKey.cs (12)
12private readonly DataColumn[] _columns; 14internal DataKey(DataColumn[] columns, bool copyColumns) 53_columns = new DataColumn[columns.Length]; 67internal DataColumn[] ColumnsReference => _columns; 96internal static bool ColumnsEqual(DataColumn[] column1, DataColumn[] column2) 133internal bool ContainsColumn(DataColumn column) 160DataColumn[] column1 = _columns; 161DataColumn[] column2 = value._columns; 227internal DataColumn[] ToArray() 229DataColumn[] values = new DataColumn[_columns.Length];
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\DataRow.cs (43)
31private DataColumn? _lastChangedColumn; // last successfully changed column 59internal DataColumn? LastChangedColumn 149foreach (DataColumn dc in _columns.ColumnsImplementingIChangeTracking) 186DataColumn column = _columns[columnIndex]; 194DataColumn column = _columns[columnIndex]; 258DataColumn column = GetDataColumn(columnName); 266DataColumn column = GetDataColumn(columnName); 272/// Gets or sets the data stored in the specified <see cref='System.Data.DataColumn'/>. 275public object this[DataColumn column] 371DataColumn column = _columns[columnIndex]; 387DataColumn column = GetDataColumn(columnName); 396/// Gets the specified version of data stored in the specified <see cref='System.Data.DataColumn'/>. 399public object this[DataColumn column, DataRowVersion version] 428DataColumn column = _columns[i]; 457DataColumn column = _columns[i]; 549foreach (DataColumn dc in _columns.ColumnsImplementingIChangeTracking) 630private void CheckColumn(DataColumn column) 708DataColumn column = _columns[columnIndex]; 721DataColumn column = GetDataColumn(columnName); 726/// Sets the error description for a column specified as a <see cref='System.Data.DataColumn'/>. 728public void SetColumnError(DataColumn column, string? error) 759/// Gets the error description of the specified <see cref='System.Data.DataColumn'/>. 761public string GetColumnError(DataColumn column) 770/// and errors set with <see cref='System.Data.DataRow.SetColumnError(DataColumn, string)'/> 781internal void ClearError(DataColumn column) 798public DataColumn[] GetColumnsInError() => _error == null ? 799Array.Empty<DataColumn>() : _error.GetColumnsInError(); 835internal DataColumn GetDataColumn(string columnName) 837DataColumn? column = _columns[columnName]; 943internal object[] GetColumnValues(DataColumn[] columns) => 946internal object[] GetColumnValues(DataColumn[] columns, DataRowVersion version) 1111foreach (DataColumn dc in Table.Columns) 1121internal bool HaveValuesChanged(DataColumn[] columns) => 1124internal bool HaveValuesChanged(DataColumn[] columns, DataRowVersion version1, DataRowVersion version2) 1140DataColumn column = _columns[columnIndex]; 1150DataColumn column = GetDataColumn(columnName); 1156/// Gets a value indicating whether the specified <see cref='System.Data.DataColumn'/> 1159public bool IsNull(DataColumn column) 1166public bool IsNull(DataColumn column, DataRowVersion version) 1186foreach (DataColumn dc in _columns.ColumnsImplementingIChangeTracking) 1205foreach (DataColumn dc in _columns.ColumnsImplementingIChangeTracking) 1263protected void SetNull(DataColumn column) 1435private void VerifyValueFromStorage(DataColumn column, DataRowVersion version, object valueFromStorage)
System\Data\DataRowExtensions.cs (3)
38public static T? Field<T>(this DataRow row, DataColumn column) 101public static T? Field<T>(this DataRow row, DataColumn column, DataRowVersion version) 137public static void SetField<T>(this DataRow row, DataColumn column, T? value)
System\Data\DataRowView.cs (4)
77DataColumn? column = _dataView.Table!.Columns[property]; 90DataColumn? column = _dataView.Table!.Columns[property]; 122internal object GetColumnValue(DataColumn column) => Row[column, RowVersionDefault]; 124internal void SetColumnValue(DataColumn column, object? value)
System\Data\DataSet.cs (6)
594DataColumn[] parentkeyColumns = new DataColumn[parentInfo.Length - 1]; 601DataColumn[] childkeyColumns = new DataColumn[childInfo.Length - 1]; 725foreach (DataColumn column in table.Columns) 1221foreach (DataColumn col in table.Columns)
System\Data\DataSetDateTime.cs (1)
7/// Gets the DateTimeMode of a DateTime <see cref='System.Data.DataColumn'/> object.
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\DataTableExtensions.cs (1)
127foreach (DataColumn column in current.Table.Columns)
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\DataView.cs (4)
1364DataColumn? col = null; 1658e.Action == CollectionChangeAction.Add ? new ListChangedEventArgs(ListChangedType.PropertyDescriptorAdded, new DataColumnPropertyDescriptor((System.Data.DataColumn)e.Element!)) : 1660e.Action == CollectionChangeAction.Remove ? new ListChangedEventArgs(ListChangedType.PropertyDescriptorDeleted, new DataColumnPropertyDescriptor((System.Data.DataColumn)e.Element!)) : 1708DataColumn? dc = Table!.Columns[columnNames[i]];
System\Data\Filter\AggregateNode.cs (7)
34private DataColumn? _column; 70internal override void Bind(DataTable table, List<DataColumn> list) 123DataColumn dataColumn = list[i]; 137internal static void Bind(DataRelation? relation, List<DataColumn> list) 142foreach (DataColumn c in relation.ChildColumnsReference) 149foreach (DataColumn c in relation.ParentColumnsReference) 258internal override bool DependsOn(DataColumn column)
System\Data\Filter\BinaryNode.cs (2)
27internal override void Bind(DataTable table, List<DataColumn> list) 72internal override bool DependsOn(DataColumn column)
System\Data\Filter\ConstNode.cs (1)
67internal override void Bind(DataTable table, List<DataColumn> list)
System\Data\Filter\DataExpression.cs (6)
22private DataColumn[] _dependency = Array.Empty<DataColumn>(); 95List<DataColumn> list = new List<DataColumn>(); 104internal bool DependsOn(DataColumn column) 218internal DataColumn[] GetDependency()
System\Data\Filter\ExpressionNode.cs (2)
46internal abstract void Bind(DataTable table, List<DataColumn> list); 59internal virtual bool DependsOn(DataColumn column)
System\Data\Filter\FunctionNode.cs (2)
85internal override void Bind(DataTable table, List<DataColumn> list) 239internal override bool DependsOn(DataColumn column)
System\Data\Filter\LookupNode.cs (4)
15private DataColumn? _column; 24internal override void Bind(DataTable table, List<DataColumn> list) 72DataColumn dataColumn = list[i]; 131internal override bool DependsOn(DataColumn column)
System\Data\Filter\NameNode.cs (4)
14internal DataColumn? _column; 34internal override void Bind(DataTable table, List<DataColumn> list) 67DataColumn dataColumn = list[i]; 145internal override bool DependsOn(DataColumn column)
System\Data\Filter\UnaryNode.cs (2)
24internal override void Bind(DataTable table, List<DataColumn> list) 172internal override bool DependsOn(DataColumn column)
System\Data\Filter\ZeroOpNode.cs (1)
24internal override void Bind(DataTable table, List<DataColumn> list)
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\Merger.cs (20)
53List<DataColumn>? existingColumns = null; // need to cache existing columns 57existingColumns = new List<DataColumn>(); // need to cache existing columns 60foreach (DataColumn dc in dt.Columns) 100foreach (DataColumn dc in sourceTable.Columns) 105DataColumn targetColumn = targetTable.Columns[dc.ColumnName]!; 357DataColumn src = table.Columns[i]; 358DataColumn? dest = (targetTable.Columns.Contains(src.ColumnName, true)) ? targetTable.Columns[src.ColumnName] : null; 403DataColumn[] targetPKey = targetTable.PrimaryKey; 404DataColumn[] tablePKey = table.PrimaryKey; 411DataColumn[] key = new DataColumn[tablePKey.Length]; 544DataColumn dest = destRelation.ParentKey.ColumnsReference[i]; 545DataColumn src = relation.ParentKey.ColumnsReference[i]; 578DataColumn[] parentColumns = new DataColumn[relation.ParentKey.ColumnsReference.Length]; 579DataColumn[] childColumns = new DataColumn[relation.ParentKey.ColumnsReference.Length]; 636DataColumn[] dstColumns = dst._primaryKey.Key.ColumnsReference; 637DataColumn[] srcColumns = new DataColumn[dstColumns.Length];
System\Data\PrimaryKeyTypeConverter.cs (2)
13public PrimaryKeyTypeConverter() : base(typeof(DataColumn[])) 28Array.Empty<DataColumn>().GetType().Name :
System\Data\PropertyCollection.cs (1)
11/// Represents a collection of properties that can be added to <see cref='System.Data.DataColumn'/>,
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\RecordManager.cs (3)
158DataColumn column = _table._columnCollection[i]; 228DataColumn dstColumn = _table.Columns[i]; 229DataColumn? srcColumn = src.Columns[dstColumn.ColumnName];
System\Data\RelatedView.cs (2)
16public RelatedView(DataColumn[] columns, object[] values) : base(columns[0].Table, false) 31public RelatedView(DataRowView parentRowView, DataKey parentKey, DataColumn[] childKeyColumns) : base(childKeyColumns[0].Table, false)
System\Data\Select.cs (1)
302DataColumn[] depColumns = _rowFilter.GetDependency();
System\Data\Selection.cs (3)
14public readonly DataColumn Column; 17internal IndexField(DataColumn column, bool isDescending) 548DataColumn column = _indexFields[0].Column;
System\Data\TypeLimiter.cs (3)
104/// Given a <see cref="DataTable"/>, returns all of the <see cref="DataColumn.DataType"/> 110? dataTable.Columns.Cast<DataColumn>().Select(column => column.DataType) 115/// Given a <see cref="DataSet"/>, returns all of the <see cref="DataColumn.DataType"/>
System\Data\UniqueConstraint.cs (37)
28/// <see cref='System.Data.DataColumn'/>. 30public UniqueConstraint(string? name, DataColumn column) 32DataColumn[] columns = new DataColumn[1]; 38/// Initializes a new instance of the <see cref='System.Data.UniqueConstraint'/> with the specified <see cref='System.Data.DataColumn'/>. 40public UniqueConstraint(DataColumn column) 42DataColumn[] columns = new DataColumn[1]; 49/// of <see cref='System.Data.DataColumn'/> objects. 51public UniqueConstraint(string? name, DataColumn[] columns) 57/// Initializes a new instance of the <see cref='System.Data.UniqueConstraint'/> with the given array of <see cref='System.Data.DataColumn'/> 60public UniqueConstraint(DataColumn[] columns) 76/// <see cref='System.Data.DataColumn'/>. 78public UniqueConstraint(string? name, DataColumn column, bool isPrimaryKey) 80DataColumn[] columns = new DataColumn[1]; 87/// Initializes a new instance of the <see cref='System.Data.UniqueConstraint'/> with the specified <see cref='System.Data.DataColumn'/>. 89public UniqueConstraint(DataColumn column, bool isPrimaryKey) 91DataColumn[] columns = new DataColumn[1]; 99/// of <see cref='System.Data.DataColumn'/> objects. 101public UniqueConstraint(string? name, DataColumn[] columns, bool isPrimaryKey) 108/// Initializes a new instance of the <see cref='System.Data.UniqueConstraint'/> with the given array of <see cref='System.Data.DataColumn'/> 111public UniqueConstraint(DataColumn[] columns, bool isPrimaryKey) 143DataColumn[] sortIndexColumns = new DataColumn[_constraintIndex._indexFields.Length]; 236foreach (DataColumn dataColumn in _key.ColumnsReference) 266internal override bool ContainsColumn(DataColumn column) 293DataColumn[] columns = new DataColumn[keys]; 297DataColumn src = ColumnsReference[i]; 318DataColumn[] columns = new DataColumn[keys]; 322DataColumn src = ColumnsReference[i]; 344public virtual DataColumn[] Columns 352internal DataColumn[] ColumnsReference 375private void Create(string? constraintName, DataColumn[] columns)
System\Data\XDRSchema.cs (5)
356DataColumn? column; 594var cols = new DataColumn[keyLength]; 598DataColumn? col = table.Columns[list[i], _schemaUri]; 625DataColumn parentKey = table.AddUniqueKey(); 627DataColumn childKey = _tableChild.AddForeignKey(parentKey);
System\Data\XmlDataLoader.cs (22)
200private static DataColumn? GetTextOnlyColumn(DataRow row) 206DataColumn c = columns[iCol]; 279internal static bool IsTextOnly(DataColumn c) 384DataColumn? column = GetTextOnlyColumn(row); 410if (schema == null || schema is DataColumn) 415if (schema != null && schema is DataColumn) 417DataColumn c = (DataColumn)schema; 456if (schema != null && schema is DataColumn) 458DataColumn c = (DataColumn)schema; 470foreach (DataColumn c in row.Table.Columns) 546private static void SetRowValueFromXmlText(DataRow row, DataColumn col, string xmlText) 713DataColumn? c; // Hold column here 724c = _nodeToSchemaMap!.GetColumnSchema(attr, FIgnoreNamespace(attr)) as DataColumn; 749c = o as DataColumn; // Perhaps, it's a column? 884DataColumn? c; // Hold column here 905c = _nodeToSchemaMap!.GetColumnSchema(table, _dataReader, FIgnoreNamespace(_dataReader)) as DataColumn; 978c = o as DataColumn; // Perhaps, it's a column? 1134private void LoadColumn(DataColumn column, object[] foundColumns) 1287DataColumn? c = o as DataColumn; // Perhaps, it's a column?
System\Data\XMLDiffLoader.cs (6)
205DataColumn col = table.Columns[XmlConvert.DecodeName(ssync.LocalName), ssync.NamespaceURI]!; 260DataColumn col = table.Columns[XmlConvert.DecodeName(ssync.LocalName), ssync.NamespaceURI]!; 322foreach (DataColumn col in table.Columns) 327foreach (DataColumn col in table.Columns) 369DataColumn col = table.XmlText; 378DataColumn? column = table.Columns[ln, ns];
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\Data\XMLSchema.cs (31)
39if (name == "Expression" && instance is DataColumn) 223DataColumn? dc = (DataColumn?)_existingSimpleTypeMap![type.QualifiedName.ToString()]; 275if (name == "Expression" && instance is DataColumn) // we will handle columnexpressions at HandleColumnExpression 280DataColumn? col = instance as DataColumn; 362DataColumn? dc = instance as DataColumn; 436DataColumn[] parentKey; 437DataColumn[] childKey; 474parentKey = new DataColumn[keyLength]; 475childKey = new DataColumn[keyLength]; 695foreach (DataColumn dc in dt.Columns) 806DataColumn dc = ((DataColumn)(_columnExpressions[i])!); 968foreach (DataColumn dc in table.Columns) 1172internal static DataColumn FindField(DataTable table, string field) 1187DataColumn? col = table.Columns[colName]; 1199internal static DataColumn[] BuildKey(XmlSchemaIdentityConstraint keyNode, DataTable table) 1208DataColumn[] key = new DataColumn[keyColumns.Count]; 1306DataColumn[] pKey = BuildKey(key.constraint, key.table); 1307DataColumn[] fKey = BuildKey(keyref, table); 1414DataColumn[] key = BuildKey(keyNode, table); 1726DataColumn parentKey; 1731foreach (DataColumn dc in table.Columns) 1747DataColumn childKey = _tableChild.AddForeignKey(parentKey); 1996DataColumn column; 2108DataColumn column; 2255DataColumn column; 2442DataColumn column;
System\Data\XmlToDatasetMap.cs (8)
138internal static bool IsMappedColumn(DataColumn c) 207private static bool AddColumnSchema(DataColumn col, XmlNameTable nameTable, XmlNodeIdHashtable columns) 228private static bool AddColumnSchema(XmlNameTable nameTable, DataColumn col, XmlNodeIdHashtable columns) 271foreach (DataColumn c in t.Columns) 307foreach (DataColumn c in t.Columns) 352foreach (DataColumn c in dataTable.Columns) 381foreach (DataColumn c in t.Columns) 503private static void HandleSpecialColumn(DataColumn col, XmlNameTable nameTable, XmlNodeIdHashtable columns)
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\DataSetMappper.cs (10)
51foreach (DataColumn c in t.Columns) 105DataColumn? col = GetColumnSchemaForNode(rowElem, elem); 149internal DataColumn? GetColumnSchemaForNode(XmlBoundElement rowElem, XmlNode node) 161DataColumn? col = (DataColumn?)(columns[cid]); 197internal static bool IsNotMapped(DataColumn c) => c.ColumnMapping == MappingType.Hidden; 265DataColumn? schema = GetColumnSchemaForNode(rowElem, attr); 304DataColumn? schema = GetColumnSchemaForNode(rowElem, e!); 355private void AddColumnSchema(DataColumn col) 375private static bool IsNextColumn(DataColumnCollection columns, ref int iColumn, DataColumn col)
System\Xml\IXmlDataVirtualNode.cs (1)
11bool 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);
System.Data.Odbc (63)
src\libraries\Common\src\System\Data\ProviderBase\DbMetaDataFactory.cs (21)
56DataColumn[] filteredSourceColumns; 107DataColumn populationStringColumn = metaDataCollectionsTable.Columns[_populationString]!; 108DataColumn numberOfRestrictionsColumn = metaDataCollectionsTable.Columns[_numberOfRestrictions]!; 109DataColumn collectionNameColumn = metaDataCollectionsTable.Columns[_collectionName]!; 190private static DataColumn[] FilterColumns(DataTable sourceTable, string[]? hiddenColumnNames, DataColumnCollection destinationColumns) 193foreach (DataColumn sourceColumn in sourceTable.Columns) 207DataColumn[] filteredSourceColumns = new DataColumn[columnCount]; 209foreach (DataColumn sourceColumn in sourceTable.Columns) 213DataColumn newDestinationColumn = new DataColumn(sourceColumn.ColumnName, sourceColumn.DataType); 235DataColumn? collectionNameColumn = metaDataCollectionsTable.Columns[DbMetaDataColumnNames.CollectionName]; 316DataColumn? versionColumn = dataSourceInfoTable.Columns[_dataSourceProductVersion]; 317DataColumn? normalizedVersionColumn = dataSourceInfoTable.Columns[_dataSourceProductVersionNormalized]; 342DataColumn? collectionName = null; 343DataColumn? parameterName = null; 344DataColumn? restrictionName = null; 345DataColumn? restrictionNumber = null; 393DataColumn populationMechanismColumn = metaDataCollectionsTable.Columns[_populationMechanism]!; 394DataColumn collectionNameColumn = metaDataCollectionsTable.Columns[DbMetaDataColumnNames.CollectionName]!; 465private static bool IncludeThisColumn(DataColumn sourceColumn, string[]? hiddenColumnNames) 507DataColumn? versionColumn;
System\Data\Odbc\OdbcDataReader.cs (19)
2212foreach (DataColumn column in columns) 2249DataColumn columnName = schematable.Columns["ColumnName"]!; 2250DataColumn columnOrdinal = schematable.Columns["ColumnOrdinal"]!; 2251DataColumn columnSize = schematable.Columns["ColumnSize"]!; 2252DataColumn numericPrecision = schematable.Columns["NumericPrecision"]!; 2253DataColumn numericScale = schematable.Columns["NumericScale"]!; 2254DataColumn dataType = schematable.Columns["DataType"]!; 2255DataColumn providerType = schematable.Columns["ProviderType"]!; 2256DataColumn isLong = schematable.Columns["IsLong"]!; 2257DataColumn allowDBNull = schematable.Columns["AllowDBNull"]!; 2258DataColumn isReadOnly = schematable.Columns["IsReadOnly"]!; 2259DataColumn isRowVersion = schematable.Columns["IsRowVersion"]!; 2260DataColumn isUnique = schematable.Columns["IsUnique"]!; 2261DataColumn isKey = schematable.Columns["IsKey"]!; 2262DataColumn isAutoIncrement = schematable.Columns["IsAutoIncrement"]!; 2263DataColumn baseSchemaName = schematable.Columns["BaseSchemaName"]!; 2264DataColumn baseCatalogName = schematable.Columns["BaseCatalogName"]!; 2265DataColumn baseTableName = schematable.Columns["BaseTableName"]!; 2266DataColumn baseColumnName = schematable.Columns["BaseColumnName"]!;
System\Data\Odbc\OdbcMetaDataFactory.cs (23)
75DataColumn populationMechanism = metaDataCollectionsTable.Columns[_populationMechanism]!; 76DataColumn collectionName = metaDataCollectionsTable.Columns[_collectionName]!; 77DataColumn? restrictionCollectionName = null; 199DataColumn typeNameColumn = dataTypesTable.Columns[DbMetaDataColumnNames.TypeName]!; 200DataColumn providerDbTypeColumn = dataTypesTable.Columns[DbMetaDataColumnNames.ProviderDbType]!; 201DataColumn columnSizeColumn = dataTypesTable.Columns[DbMetaDataColumnNames.ColumnSize]!; 202DataColumn createParametersColumn = dataTypesTable.Columns[DbMetaDataColumnNames.CreateParameters]!; 203DataColumn dataTypeColumn = dataTypesTable.Columns[DbMetaDataColumnNames.DataType]!; 204DataColumn isAutoIncermentableColumn = dataTypesTable.Columns[DbMetaDataColumnNames.IsAutoIncrementable]!; 205DataColumn isCaseSensitiveColumn = dataTypesTable.Columns[DbMetaDataColumnNames.IsCaseSensitive]!; 206DataColumn isFixedLengthColumn = dataTypesTable.Columns[DbMetaDataColumnNames.IsFixedLength]!; 207DataColumn isFixedPrecisionScaleColumn = dataTypesTable.Columns[DbMetaDataColumnNames.IsFixedPrecisionScale]!; 208DataColumn isLongColumn = dataTypesTable.Columns[DbMetaDataColumnNames.IsLong]!; 209DataColumn isNullableColumn = dataTypesTable.Columns[DbMetaDataColumnNames.IsNullable]!; 210DataColumn isSearchableColumn = dataTypesTable.Columns[DbMetaDataColumnNames.IsSearchable]!; 211DataColumn isSearchableWithLikeColumn = dataTypesTable.Columns[DbMetaDataColumnNames.IsSearchableWithLike]!; 212DataColumn isUnsignedColumn = dataTypesTable.Columns[DbMetaDataColumnNames.IsUnsigned]!; 213DataColumn maximumScaleColumn = dataTypesTable.Columns[DbMetaDataColumnNames.MaximumScale]!; 214DataColumn minimumScaleColumn = dataTypesTable.Columns[DbMetaDataColumnNames.MinimumScale]!; 215DataColumn literalPrefixColumn = dataTypesTable.Columns[DbMetaDataColumnNames.LiteralPrefix]!; 216DataColumn literalSuffixColumn = dataTypesTable.Columns[DbMetaDataColumnNames.LiteralSuffix]!; 217DataColumn SQLTypeNameColumn = dataTypesTable.Columns[OdbcMetaDataColumnNames.SQLType]!; 979DataColumn? reservedWordColumn = reservedWordsTable.Columns[DbMetaDataColumnNames.ReservedWord];