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