20 writes to DefaultValue
System.Data.Common (20)
System\Data\DataColumn.cs (1)
532
DefaultValue
= SqlConvert.ChangeTypeForDefaultValue(DefaultValue, value, FormatProvider);
System\Data\DataTable.cs (1)
480
dc.
DefaultValue
= info.GetValue(string.Format(formatProvider, "DataTable.DataColumn_{0}.DefaultValue", i), typeof(object));
System\Data\DataTableReader.cs (11)
748
ColumnSize.
DefaultValue
= -1;
752
BaseCatalogName.
DefaultValue
= table.DataSet.DataSetName;
755
BaseTableName.
DefaultValue
= table.TableName;
756
BaseTableNamespace.
DefaultValue
= table.Namespace;
757
IsRowVersion.
DefaultValue
= false;
758
IsLong.
DefaultValue
= false;
759
IsReadOnly.
DefaultValue
= false;
760
IsKeyColumn.
DefaultValue
= false;
761
IsAutoIncrement.
DefaultValue
= false;
762
AutoIncrementSeed.
DefaultValue
= 0;
763
AutoIncrementStep.
DefaultValue
= 1;
System\Data\ProviderBase\SchemaMapping.cs (1)
1146
targetColumn.
DefaultValue
= schemaRow[column];
System\Data\XDRSchema.cs (1)
486
column.
DefaultValue
= SqlConvert.ChangeTypeForXML(strDefault, type);
System\Data\XMLSchema.cs (5)
2084
column.
DefaultValue
= column.ConvertXmlToObject(defValue);
2186
column.
DefaultValue
= column.ConvertXmlToObject(defValue);
2333
column.
DefaultValue
= column.ConvertXmlToObject(defValue);
2350
column.
DefaultValue
= column.ConvertXmlToObject(strDefault);
2552
column.
DefaultValue
= column.ConvertXmlToObject(strDefault);
23 references to DefaultValue
System.Data.Common (23)
System\Data\DataColumn.cs (7)
523
_defaultValue =
DefaultValue
.ToString()!;
528
_defaultValue = SqlConvert.ConvertToSqlString(
DefaultValue
);
532
DefaultValue = SqlConvert.ChangeTypeForDefaultValue(
DefaultValue
, value, FormatProvider);
537
throw ExceptionBuilder.DefaultValueDataType(ColumnName,
DefaultValue
.GetType(), value, ex);
541
throw ExceptionBuilder.DefaultValueDataType(ColumnName,
DefaultValue
.GetType(), value, ex);
674
if (_defaultValue == null || !
DefaultValue
.Equals(value))
1173
_storage.Set(record,
DefaultValue
);
System\Data\DataTable.cs (4)
394
info.AddValue(string.Format(formatProvider, "DataTable.DataColumn_{0}.DefaultValue", i), Columns[i].
DefaultValue
);
3479
else if (c.
DefaultValue
!= null)
3481
row[c] = c.
DefaultValue
;
7197
SilentlySetValue(row, dc, version, dc.DataExpression == null ? dc.
DefaultValue
: dc.DataExpression.Evaluate(row, version));
System\Data\DataTableReader.cs (2)
817
if (dc.
DefaultValue
!= DBNull.Value)
819
dr[DefaultValue] = dc.
DefaultValue
;
System\Data\ForeignKeyConstraint.cs (2)
335
proposedKey[i] = _childKey.ColumnsReference[i].
DefaultValue
;
474
proposedKey[i] = _childKey.ColumnsReference[i].
DefaultValue
;
System\Data\XmlDataLoader.cs (1)
482
row[c] = c.
DefaultValue
;
System\Data\xmlsaver.cs (7)
1465
root.SetAttribute(Keywords.MSD_DEFAULTVALUE, Keywords.MSDNS, (bool)(col.
DefaultValue
) ? Keywords.TRUE : Keywords.FALSE);
1469
root.SetAttribute(Keywords.MSD_DEFAULTVALUE, Keywords.MSDNS, col.ConvertObjectToXml(col.
DefaultValue
));
1481
root.SetAttribute(Keywords.MSD_DEFAULTVALUE, Keywords.MSDNS, (bool)(col.
DefaultValue
) ? Keywords.TRUE : Keywords.FALSE);
1485
root.SetAttribute(Keywords.MSD_DEFAULTVALUE, Keywords.MSDNS, col.ConvertObjectToXml(col.
DefaultValue
));
1492
root.SetAttribute(Keywords.DEFAULT, (bool)(col.
DefaultValue
) ? Keywords.TRUE : Keywords.FALSE);
1498
root.SetAttribute(Keywords.DEFAULT, col.ConvertObjectToXml(col.
DefaultValue
));
1883
sc.SetAttribute(Keywords.MSD_DEFAULTVALUE, Keywords.MSDNS, colTxt.ConvertObjectToXml(colTxt.
DefaultValue
));