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