5 writes to ColumnName
System.Data.Common (5)
System\Data\DataColumn.cs (1)
1533clone.ColumnName = ColumnName;
System\Data\DataColumnCollection.cs (1)
336column.ColumnName = AssignName();
System\Data\DataTable.cs (1)
463dc.ColumnName = info.GetString(string.Format(formatProvider, "DataTable.DataColumn_{0}.ColumnName", i));
System\Data\XDRSchema.cs (1)
669table.Columns[0].ColumnName = tbName + "_Column";
System\Data\XMLSchema.cs (1)
1502table.Columns[0].ColumnName = colName;
127 references to ColumnName
Accessibility_Core_App (1)
DataBindingExample.cs (1)
96string colName = dataSet.Tables[0].Columns[j].ColumnName;
Microsoft.Data.Analysis.Tests (1)
DataFrame.IOTests.cs (1)
1191var resColumns = table.Columns.Cast<DataColumn>().Select(column => (column.ColumnName, column.DataType)).ToArray();
System.Data.Common (123)
System\Data\Common\AdapterUtil.Common.cs (1)
314return DataMapping(SR.Format(SR.ADP_ColumnSchemaMismatch, srcColumn, srcType.Name, column.ColumnName, column.DataType.Name));
System\Data\DataColumn.cs (22)
26[DefaultProperty(nameof(ColumnName))] 379RaisePropertyChanging(nameof(ColumnName)); 386RaisePropertyChanging(nameof(ColumnName)); 403_encodedColumnName ??= XmlConvert.EncodeLocalName(ColumnName); 537throw ExceptionBuilder.DefaultValueDataType(ColumnName, DefaultValue.GetType(), value, ex); 541throw ExceptionBuilder.DefaultValueDataType(ColumnName, DefaultValue.GetType(), value, ex); 549throw ExceptionBuilder.CannotSetSimpleContentType(ColumnName, value); 691throw ExceptionBuilder.DefaultValueColumnDataType(ColumnName, newDefaultValue.GetType(), DataType, ex); 982throw ExceptionBuilder.CannotChangeNamespace(ColumnName); 1316throw ExceptionBuilder.CannotSetSimpleContent(ColumnName, _dataType); 1325throw ExceptionBuilder.CannotAddColumn4(ColumnName); 1417throw ExceptionBuilder.NullKeyValues(ColumnName); 1434throw ExceptionBuilder.NullKeyValues(ColumnName); 1441throw ExceptionBuilder.NullKeyValues(ColumnName); 1455throw ExceptionBuilder.NullValues(ColumnName); 1466throw ExceptionBuilder.NonUniqueValues(ColumnName); 1533clone.ColumnName = ColumnName; 1693errorText ??= ExceptionBuilder.MaxLengthViolationText(ColumnName); 1703errorText ??= ExceptionBuilder.MaxLengthViolationText(ColumnName); 1720string errorText = ExceptionBuilder.NotAllowDBNullViolationText(ColumnName); 1755ColumnName : 1756ColumnName + " + " + Expression;
System\Data\DataColumnCollection.cs (9)
148throw ExceptionBuilder.CannotAddColumn4(column.ColumnName); 327throw ExceptionBuilder.CannotAddColumn1(column.ColumnName); 331throw ExceptionBuilder.CannotAddColumn2(column.ColumnName); 334if (column.ColumnName.Length == 0) 339RegisterColumnName(column.ColumnName, column); 365UnregisterName(column.ColumnName); 437UnregisterName(column.ColumnName); 555throw ExceptionBuilder.CannotRemoveExpression(col.ColumnName, col.Expression); 725NamesEqual(column.ColumnName, name, false, _table.Locale) != 0)
System\Data\DataColumnPropertyDescriptor.cs (1)
13internal DataColumnPropertyDescriptor(DataColumn dataColumn) : base(dataColumn.ColumnName, null)
System\Data\DataException.cs (10)
446columnNames += columns[i].ColumnName + (i < columns.Length - 1 ? ", " : ""); 452return SR.Format(SR.DataConstraint_ViolationValue, columns[0].ColumnName, Convert.ToString(values[0], null)); 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 (2)
45throw ExceptionBuilder.KeyDuplicateColumns(columns[i].ColumnName); 182values[i] = _columns[i].ColumnName;
System\Data\DataRelation.cs (6)
727parentColumns[i] = parent.Columns[ParentKey.ColumnsReference[i].ColumnName]!; 728childColumns[i] = child.Columns[ChildKey.ColumnsReference[i].ColumnName]!; 826if ((col.ColumnName == generatedname) || (col.ColumnName == generatedname + "_0")) 832if ((col.ColumnName == generatedname) || (col.ColumnName == generatedname + "_0"))
System\Data\DataRow.cs (7)
294throw ExceptionBuilder.ReadOnly(column.ColumnName); 311throw ExceptionBuilder.ColumnNotInTheTable(column.ColumnName, _table.TableName); 316throw ExceptionBuilder.ReadOnly(column.ColumnName); 461throw ExceptionBuilder.ReadOnly(column.ColumnName); 477throw ExceptionBuilder.ColumnNotInTheTable(column.ColumnName, _table.TableName); 482throw ExceptionBuilder.ReadOnly(column.ColumnName); 639throw ExceptionBuilder.ColumnNotInTheTable(column.ColumnName, _table.TableName);
System\Data\DataRowView.cs (1)
133throw ExceptionBuilder.SetFailed(column.ColumnName);
System\Data\DataSet.cs (2)
1225ds.Tables[table.TableName, table.Namespace]!.Columns[col.ColumnName]!.CopyExpressionFrom(col); 1285rowBytes += ((table.Columns[j].ColumnName.Length + 4) << 2);
System\Data\DataTable.cs (11)
385info.AddValue(string.Format(formatProvider, "DataTable.DataColumn_{0}.ColumnName", i), Columns[i].ColumnName); 1490column._hashCode = GetSpecialHashCode(column.ColumnName); 2100if (value != Columns[value.ColumnName]) 2273DataColumn col = targetRow.Table.Columns[cols[i].ColumnName]!; 2351if (targetTable.Columns[dc.ColumnName] == null) 2436clone.Columns[clmns[i].ColumnName]!.CopyExpressionFrom(clmns[i]); 3013DataColumn col = targetRow.Table.Columns[cols[i].ColumnName]!; 3078builder.Append(field.Column.ColumnName); 3273DataColumn col = targetRow.Table.Columns[cols[i].ColumnName]!; 4885string keyName = XMLSchema.GenUniqueColumnName(parentKey.ColumnName, this); 6649DataSet.Tables[tempTable.TableName, tempTable.Namespace]!.Columns[dc.ColumnName]!.Expression = dc.Expression;
System\Data\DataTableExtensions.cs (1)
129table.Columns.Add(column.ColumnName, column.DataType);
System\Data\DataTableReader.cs (3)
612return (_currentDataTable.Columns[ordinal].ColumnName); 797dr[ColumnName] = dc.ColumnName; 841dr[BaseColumnName] = dc.ColumnName;
System\Data\DataView.cs (2)
1387propertyName = (null != col) ? col.ColumnName : string.Empty; 1698columnNames[i] = Table.Columns[i].ColumnName;
System\Data\Filter\NameNode.cs (1)
57_name = _column.ColumnName;
System\Data\ForeignKeyConstraint.cs (4)
727iDest = table.Columns.IndexOf(src.ColumnName); 735iDest = relatedTable.Columns.IndexOf(src.ColumnName); 767int iDest = destination.Columns.IndexOf(src.ColumnName); 775iDest = destination.Columns.IndexOf(src.ColumnName);
System\Data\Merger.cs (20)
105DataColumn targetColumn = targetTable.Columns[dc.ColumnName]!; 358DataColumn? dest = (targetTable.Columns.Contains(src.ColumnName, true)) ? targetTable.Columns[src.ColumnName] : null; 370_dataSet!.RaiseMergeFailed(targetTable, SR.Format(SR.DataMerge_MissingColumnDefinition, table.TableName, src.ColumnName), _missingSchemaAction); 374throw ExceptionBuilder.MergeFailed(SR.Format(SR.DataMerge_MissingColumnDefinition, table.TableName, src.ColumnName)); 384_dataSet!.RaiseMergeFailed(targetTable, SR.Format(SR.DataMerge_DataTypeMismatch, src.ColumnName), MissingSchemaAction.Error); 386throw ExceptionBuilder.MergeFailed(SR.Format(SR.DataMerge_DataTypeMismatch, src.ColumnName)); 398targetTable.Columns[i].CopyExpressionFrom(table.Columns[targetTable.Columns[i].ColumnName]!); 414key[i] = targetTable.Columns[tablePKey[i].ColumnName]!; 427if (string.Compare(targetPKey[i].ColumnName, tablePKey[i].ColumnName, false, targetTable.Locale) != 0) 430SR.Format(SR.DataMerge_PrimaryKeyColumnsMismatch, targetPKey[i].ColumnName, tablePKey[i].ColumnName), 547if (0 != string.Compare(dest.ColumnName, src.ColumnName, false, dest.Table!.Locale)) 557if (0 != string.Compare(dest.ColumnName, src.ColumnName, false, dest.Table!.Locale)) 582parentColumns[i] = parent.Columns[relation.ParentKey.ColumnsReference[i].ColumnName]!; 583childColumns[i] = child.Columns[relation.ChildKey.ColumnsReference[i].ColumnName]!; 640srcColumns[j] = src.Columns[dstColumns[j].ColumnName]!;
System\Data\ProviderBase\SchemaMapping.cs (1)
1204string name = /*parentChapterColumn.ColumnName + "_" +*/ chapterColumn.ColumnName;
System\Data\RecordManager.cs (1)
229DataColumn? srcColumn = src.Columns[dstColumn.ColumnName];
System\Data\UniqueConstraint.cs (2)
298iDest = table.Columns.IndexOf(src.ColumnName); 323int iDest = table.Columns.IndexOf(src.ColumnName);
System\Data\xmlsaver.cs (6)
1380if (col.Caption != col.ColumnName) 1636if ((col.ColumnName == generatedname) || (col.ColumnName == generatedname + "_0")) 1658if ((col.ColumnName == generatedname) || (col.ColumnName == generatedname + "_0")) 1886sc.SetAttribute(Keywords.MSD_COLUMNNAME, Keywords.MSDNS, colTxt.ColumnName);
System\Data\XMLSchema.cs (2)
2268throw ExceptionBuilder.ColumnTypeConflict(column.ColumnName); 2454throw ExceptionBuilder.ColumnTypeConflict(column.ColumnName);
System\Data\XmlToDatasetMap.cs (6)
219if (col.ColumnName.StartsWith("xml", StringComparison.OrdinalIgnoreCase)) 230string _columnLocalName = XmlConvert.EncodeLocalName(col.ColumnName); 253if (col.ColumnName.StartsWith("xml", StringComparison.OrdinalIgnoreCase)) 506Debug.Assert(col.ColumnName.StartsWith("xml", StringComparison.OrdinalIgnoreCase), "column name should start with xml"); 509if ('x' == col.ColumnName[0]) 518tempColumnName = string.Concat(tempColumnName, col.ColumnName.AsSpan(1));
System\Xml\XPathNodePointer.cs (2)
1431if (curCol.Namespace == StrReservedXmlns && curCol.ColumnName == name) 1494if (curCol.Namespace == StrReservedXmlns && !DuplicateNS(be, curCol.ColumnName))
System.Data.Odbc (2)
src\libraries\Common\src\System\Data\ProviderBase\DbMetaDataFactory.cs (2)
213DataColumn newDestinationColumn = new DataColumn(sourceColumn.ColumnName, sourceColumn.DataType); 469string sourceColumnName = sourceColumn.ColumnName;