26 writes to DefaultValue
System.Data (26)
fx\src\data\System\Data\DataColumn.cs (1)
569
DefaultValue
= SqlConvert.ChangeTypeForDefaultValue(DefaultValue, value, FormatProvider);
fx\src\data\System\Data\DataTable.cs (1)
443
dc.
DefaultValue
= info.GetValue(String.Format(formatProvider, "DataTable.DataColumn_{0}.DefaultValue", i), typeof(object));
fx\src\data\System\Data\DataTableReader.cs (11)
634
ColumnSize.
DefaultValue
= -1;
637
BaseCatalogName.
DefaultValue
= table.DataSet.DataSetName;
639
BaseTableName.
DefaultValue
= table.TableName;
640
BaseTableNamespace.
DefaultValue
= table.Namespace;
641
IsRowVersion.
DefaultValue
= false;
642
IsLong.
DefaultValue
= false;
643
IsReadOnly.
DefaultValue
= false;
644
IsKeyColumn.
DefaultValue
= false;
645
IsAutoIncrement.
DefaultValue
= false;
646
AutoIncrementSeed.
DefaultValue
= 0;
647
AutoIncrementStep.
DefaultValue
= 1;
fx\src\data\System\Data\OleDb\OleDbDataReader.cs (2)
330
ordinal.
DefaultValue
= 0;
331
isLong.
DefaultValue
= false;
fx\src\data\System\Data\ProviderBase\SchemaMapping.cs (1)
985
targetColumn.
DefaultValue
= schemaRow[column];
fx\src\data\System\Data\SqlClient\SqlDataReader.cs (2)
470
Ordinal.
DefaultValue
= 0;
471
IsLong.
DefaultValue
= false;
fx\src\data\System\Data\SqlClient\SqlDataReaderSmi.cs (2)
511
Ordinal.
DefaultValue
= 0;
512
IsLong.
DefaultValue
= false;
fx\src\data\System\Data\XDRSchema.cs (1)
444
column.
DefaultValue
= SqlConvert.ChangeTypeForXML(strDefault, type);
fx\src\data\System\Data\XMLSchema.cs (5)
1800
column.
DefaultValue
= column.ConvertXmlToObject(defValue);
1891
column.
DefaultValue
= column.ConvertXmlToObject(defValue);
2018
column.
DefaultValue
= column.ConvertXmlToObject(defValue);
2033
column.
DefaultValue
= column.ConvertXmlToObject(strDefault);
2205
column.
DefaultValue
= column.ConvertXmlToObject(strDefault);
25 references to DefaultValue
System.Data (25)
fx\src\data\System\Data\CodeGen\datacache.cs (2)
663
if (column.
DefaultValue
!= DBNull.Value) {
665
tableInitClass.Statements.Add(Assign(Property(codeField, "DefaultValue"), Primitive(column.
DefaultValue
)));
fx\src\data\System\Data\DataColumn.cs (7)
563
defaultValue =
DefaultValue
.ToString();
566
defaultValue = SqlConvert.ConvertToSqlString(
DefaultValue
);
569
DefaultValue = SqlConvert.ChangeTypeForDefaultValue(
DefaultValue
, value, FormatProvider);
573
throw ExceptionBuilder.DefaultValueDataType(ColumnName,
DefaultValue
.GetType(), value, ex);
576
throw ExceptionBuilder.DefaultValueDataType(ColumnName,
DefaultValue
.GetType(), value, ex);
686
if (defaultValue == null || !
DefaultValue
.Equals(value)) {
1184
_storage.Set(record,
DefaultValue
);
fx\src\data\System\Data\DataTable.cs (4)
360
info.AddValue(String.Format(formatProvider, "DataTable.DataColumn_{0}.DefaultValue", i), Columns[i].
DefaultValue
);
3160
else if(c.
DefaultValue
!=null){
3161
row[c] = c.
DefaultValue
;
6347
SilentlySetValue(row, dc, version, dc.DataExpression == null ? dc.
DefaultValue
: dc.DataExpression.Evaluate(row, version));
fx\src\data\System\Data\DataTableReader.cs (2)
698
if (dc.
DefaultValue
!= DBNull.Value)
699
dr[DefaultValue] = dc.
DefaultValue
;
fx\src\data\System\Data\ForeignKeyConstraint.cs (2)
322
proposedKey[i] = childKey.ColumnsReference[i].
DefaultValue
;
432
proposedKey[i] = childKey.ColumnsReference[i].
DefaultValue
;
fx\src\data\System\Data\XmlDataLoader.cs (1)
436
row[c] = c.
DefaultValue
;
fx\src\data\System\Data\xmlsaver.cs (7)
1235
root.SetAttribute(Keywords.MSD_DEFAULTVALUE, Keywords.MSDNS, (bool)(col.
DefaultValue
)? Keywords.TRUE : Keywords.FALSE);
1239
root.SetAttribute(Keywords.MSD_DEFAULTVALUE, Keywords.MSDNS, col.ConvertObjectToXml(col.
DefaultValue
));
1248
root.SetAttribute(Keywords.MSD_DEFAULTVALUE, Keywords.MSDNS, (bool)(col.
DefaultValue
)? Keywords.TRUE : Keywords.FALSE);
1251
root.SetAttribute(Keywords.MSD_DEFAULTVALUE, Keywords.MSDNS, col.ConvertObjectToXml(col.
DefaultValue
));
1256
root.SetAttribute(Keywords.DEFAULT, (bool)(col.
DefaultValue
)? Keywords.TRUE : Keywords.FALSE);
1260
root.SetAttribute(Keywords.DEFAULT, col.ConvertObjectToXml(col.
DefaultValue
));
1607
sc.SetAttribute(Keywords.MSD_DEFAULTVALUE, Keywords.MSDNS, colTxt.ConvertObjectToXml(colTxt.
DefaultValue
));