35 types derived from DataStorage
System.Data.Common (35)
System\Data\Common\BigIntegerStorage.cs (1)
11
internal sealed class BigIntegerStorage :
DataStorage
System\Data\Common\BooleanStorage.cs (1)
11
internal sealed class BooleanStorage :
DataStorage
System\Data\Common\ByteStorage.cs (1)
11
internal sealed class ByteStorage :
DataStorage
System\Data\Common\CharStorage.cs (1)
11
internal sealed class CharStorage :
DataStorage
System\Data\Common\DateTimeOffsetStorage.cs (1)
10
internal sealed class DateTimeOffsetStorage :
DataStorage
System\Data\Common\DateTimeStorage.cs (1)
10
internal sealed class DateTimeStorage :
DataStorage
System\Data\Common\DecimalStorage.cs (1)
10
internal sealed class DecimalStorage :
DataStorage
System\Data\Common\DoubleStorage.cs (1)
10
internal sealed class DoubleStorage :
DataStorage
System\Data\Common\Int16Storage.cs (1)
10
internal sealed class Int16Storage :
DataStorage
System\Data\Common\Int32Storage.cs (1)
10
internal sealed class Int32Storage :
DataStorage
System\Data\Common\Int64Storage.cs (1)
10
internal sealed class Int64Storage :
DataStorage
System\Data\Common\ObjectStorage.cs (1)
16
internal sealed class ObjectStorage :
DataStorage
System\Data\Common\SByteStorage.cs (1)
10
internal sealed class SByteStorage :
DataStorage
System\Data\Common\SingleStorage.cs (1)
10
internal sealed class SingleStorage :
DataStorage
System\Data\Common\SQLTypes\SQLBinaryStorage.cs (1)
14
internal sealed class SqlBinaryStorage :
DataStorage
System\Data\Common\SQLTypes\SQlBooleanStorage.cs (1)
14
internal sealed class SqlBooleanStorage :
DataStorage
System\Data\Common\SQLTypes\SQLBytesStorage.cs (1)
14
internal sealed class SqlBytesStorage :
DataStorage
System\Data\Common\SQLTypes\SQLByteStorage.cs (1)
14
internal sealed class SqlByteStorage :
DataStorage
System\Data\Common\SQLTypes\SQLCharsStorage.cs (1)
14
internal sealed class SqlCharsStorage :
DataStorage
System\Data\Common\SQLTypes\SQLDateTimeStorage.cs (1)
14
internal sealed class SqlDateTimeStorage :
DataStorage
System\Data\Common\SQLTypes\SQLDecimalStorage.cs (1)
14
internal sealed class SqlDecimalStorage :
DataStorage
System\Data\Common\SQLTypes\SQLDoubleStorage.cs (1)
14
internal sealed class SqlDoubleStorage :
DataStorage
System\Data\Common\SQLTypes\SQLGuidStorage.cs (1)
14
internal sealed class SqlGuidStorage :
DataStorage
System\Data\Common\SQLTypes\SQLInt16Storage.cs (1)
14
internal sealed class SqlInt16Storage :
DataStorage
System\Data\Common\SQLTypes\SQLInt32Storage.cs (1)
14
internal sealed class SqlInt32Storage :
DataStorage
System\Data\Common\SQLTypes\SQLInt64Storage.cs (1)
14
internal sealed class SqlInt64Storage :
DataStorage
System\Data\Common\SQLTypes\SQLMoneyStorage.cs (1)
14
internal sealed class SqlMoneyStorage :
DataStorage
System\Data\Common\SQLTypes\SQLSingleStorage.cs (1)
14
internal sealed class SqlSingleStorage :
DataStorage
System\Data\Common\SQLTypes\SQLStringStorage.cs (1)
14
internal sealed class SqlStringStorage :
DataStorage
System\Data\Common\SqlUDTStorage.cs (1)
17
internal sealed class SqlUdtStorage :
DataStorage
System\Data\Common\StringStorage.cs (1)
11
internal sealed class StringStorage :
DataStorage
System\Data\Common\TimeSpanStorage.cs (1)
10
internal sealed class TimeSpanStorage :
DataStorage
System\Data\Common\UInt16Storage.cs (1)
10
internal sealed class UInt16Storage :
DataStorage
System\Data\Common\UInt32Storage.cs (1)
10
internal sealed class UInt32Storage :
DataStorage
System\Data\Common\UInt64Storage.cs (1)
10
internal sealed class UInt64Storage :
DataStorage
129 references to DataStorage
System.Data.Common (129)
System\Data\Common\DataStorage.cs (1)
295
public static
DataStorage
CreateStorage(DataColumn column, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicProperties | DynamicallyAccessedMemberTypes.PublicFields)] Type dataType, StorageType typeCode)
System\Data\Common\ObjectStorage.cs (1)
408
type = (typeName == null) ? _dataType :
DataStorage
.GetType(typeName);
System\Data\Common\SQLConvert.cs (19)
20
StorageType stype =
DataStorage
.GetStorageType(valueType);
38
StorageType stype =
DataStorage
.GetStorageType(valueType);
57
StorageType stype =
DataStorage
.GetStorageType(valueType);
80
StorageType stype =
DataStorage
.GetStorageType(valueType);
105
StorageType stype =
DataStorage
.GetStorageType(valueType);
138
StorageType stype =
DataStorage
.GetStorageType(valueType);
168
StorageType stype =
DataStorage
.GetStorageType(valueType);
199
StorageType stype =
DataStorage
.GetStorageType(valueType);
229
StorageType stype =
DataStorage
.GetStorageType(valueType);
247
StorageType stype =
DataStorage
.GetStorageType(valueType);
265
StorageType stype =
DataStorage
.GetStorageType(valueType);
283
StorageType stype =
DataStorage
.GetStorageType(valueType);
301
StorageType stype =
DataStorage
.GetStorageType(valueType);
319
StorageType stype =
DataStorage
.GetStorageType(valueType);
335
StorageType stype =
DataStorage
.GetStorageType(valueType);
360
return ChangeType2(value,
DataStorage
.GetStorageType(type), type, formatProvider);
410
StorageType vtype =
DataStorage
.GetStorageType(valueType);
562
StorageType destinationType =
DataStorage
.GetStorageType(type);
564
StorageType vtype =
DataStorage
.GetStorageType(valueType);
System\Data\Common\SQLTypes\SQLBinaryStorage.cs (1)
118
Debug.Assert(!
DataStorage
.IsObjectNull(value), "we should have null here");
System\Data\Common\SQLTypes\SQlBooleanStorage.cs (1)
152
Debug.Assert(!
DataStorage
.IsObjectNull(value), "we should have null here");
System\Data\Common\SQLTypes\SQLBytesStorage.cs (1)
116
Debug.Assert(!
DataStorage
.IsObjectNull(value), "we shouldn't have null here");
System\Data\Common\SQLTypes\SQLByteStorage.cs (1)
228
Debug.Assert(!
DataStorage
.IsObjectNull(value), "we shouldn't have null here");
System\Data\Common\SQLTypes\SQLCharsStorage.cs (1)
119
Debug.Assert(!
DataStorage
.IsObjectNull(value), "we shouldn't have null here");
System\Data\Common\SQLTypes\SQLDateTimeStorage.cs (1)
154
Debug.Assert(!
DataStorage
.IsObjectNull(value), "we shouldn't have null here");
System\Data\Common\SQLTypes\SQLDecimalStorage.cs (1)
226
Debug.Assert(!
DataStorage
.IsObjectNull(value), "we shouldn't have null here");
System\Data\Common\SQLTypes\SQLDoubleStorage.cs (1)
227
Debug.Assert(!
DataStorage
.IsObjectNull(value), "we shouldn't have null here");
System\Data\Common\SQLTypes\SQLGuidStorage.cs (1)
119
Debug.Assert(!
DataStorage
.IsObjectNull(value), "we shouldn't have null here");
System\Data\Common\SQLTypes\SQLInt16Storage.cs (1)
227
Debug.Assert(!
DataStorage
.IsObjectNull(value), "we shouldn't have null here");
System\Data\Common\SQLTypes\SQLInt32Storage.cs (1)
227
Debug.Assert(!
DataStorage
.IsObjectNull(value), "we shouldn't have null here");
System\Data\Common\SQLTypes\SQLInt64Storage.cs (1)
228
Debug.Assert(!
DataStorage
.IsObjectNull(value), "we shouldn't have null here");
System\Data\Common\SQLTypes\SQLMoneyStorage.cs (1)
227
Debug.Assert(!
DataStorage
.IsObjectNull(value), "we shouldn't have null here");
System\Data\Common\SQLTypes\SQLSingleStorage.cs (1)
225
Debug.Assert(!
DataStorage
.IsObjectNull(value), "we should have null here");
System\Data\Common\SQLTypes\SQLStringStorage.cs (1)
180
Debug.Assert(!
DataStorage
.IsObjectNull(value), "we shouldn't have null here");
System\Data\DataColumn.cs (16)
62
private
DataStorage
? _storage;
134
StorageType typeCode =
DataStorage
.GetStorageType(dataType);
135
if (
DataStorage
.ImplementsINullableValue(typeCode, dataType))
167
DataStorage
.ImplementsInterfaces(
450
if (
DataStorage
.IsObjectNull(objValue))
493
StorageType typeCode =
DataStorage
.GetStorageType(value);
494
if (
DataStorage
.ImplementsINullableValue(typeCode, value))
695
_defaultValueIsNull = ((newDefaultValue == DBNull.Value) || (ImplementsINullable &&
DataStorage
.IsObjectSqlNull(newDefaultValue))) ? true : false;
1439
if (
DataStorage
.IsObjectNull(dr[this]))
1538
clone._defaultValueIsNull = ((_defaultValue == DBNull.Value) || (clone.ImplementsINullable &&
DataStorage
.IsObjectSqlNull(_defaultValue))) ? true : false;
1623
!((mapping != MappingType.Element) &&
DataStorage
.IsTypeCustomType(typeCode));
1627
DataStorage
.IsTypeCustomType(DataType);
1631
(
DataStorage
.IsTypeCustomType(value.GetType()) && !(value is Type));
1701
if (!
DataStorage
.IsObjectNull(value) && ((SqlString)value).Value.Length > MaxLength)
1743
private
DataStorage
EnsureStorage() =>
1744
_storage ??=
DataStorage
.CreateStorage(this, _dataType, _storageType);
System\Data\DataColumnPropertyDescriptor.cs (1)
60
return (!
DataStorage
.IsObjectNull(dataRowView.GetColumnValue(Column)));
System\Data\DataRelation.cs (1)
207
if (!
DataStorage
.IsObjectNull(values[i]))
System\Data\DataTable.cs (1)
3935
if (
DataStorage
.IsTypeCustomType(dc.DataType) && newValue != dc[record])
System\Data\Filter\BinaryNode.cs (40)
171
if (!
DataStorage
.IsSqlType(resultType))
304
StorageType leftStorage =
DataStorage
.GetStorageType(typeofLeft);
305
StorageType rightStorage =
DataStorage
.GetStorageType(typeofRight);
307
bool leftIsSqlType =
DataStorage
.IsSqlType(leftStorage);
308
bool rightIsSqlType =
DataStorage
.IsSqlType(rightStorage);
311
if (leftIsSqlType &&
DataStorage
.IsObjectSqlNull(vLeft))
315
else if (rightIsSqlType &&
DataStorage
.IsObjectSqlNull(vRight))
862
if ((vLeft == DBNull.Value) || (left.IsSqlColumn &&
DataStorage
.IsObjectSqlNull(vLeft)) ||
863
(vRight == DBNull.Value) || (right.IsSqlColumn &&
DataStorage
.IsObjectSqlNull(vRight)))
868
if ((vLeft == DBNull.Value) || (left.IsSqlColumn &&
DataStorage
.IsObjectSqlNull(vLeft)) ||
869
(vRight == DBNull.Value) || (right.IsSqlColumn &&
DataStorage
.IsObjectSqlNull(vRight)))
874
if ((vLeft == DBNull.Value) || (left.IsSqlColumn &&
DataStorage
.IsObjectSqlNull(vLeft)) ||
875
(vRight == DBNull.Value) || (right.IsSqlColumn &&
DataStorage
.IsObjectSqlNull(vRight)))
880
if ((vLeft == DBNull.Value) || (left.IsSqlColumn &&
DataStorage
.IsObjectSqlNull(vLeft)) ||
881
(vRight == DBNull.Value) || (right.IsSqlColumn &&
DataStorage
.IsObjectSqlNull(vRight)))
886
if (((vLeft == DBNull.Value) || (left.IsSqlColumn &&
DataStorage
.IsObjectSqlNull(vLeft))) ||
887
((vRight == DBNull.Value) || (right.IsSqlColumn &&
DataStorage
.IsObjectSqlNull(vRight))))
892
if (((vLeft == DBNull.Value) || (left.IsSqlColumn &&
DataStorage
.IsObjectSqlNull(vLeft))) ||
893
((vRight == DBNull.Value) || (right.IsSqlColumn &&
DataStorage
.IsObjectSqlNull(vRight))))
899
if ((vLeft == DBNull.Value) || (left.IsSqlColumn &&
DataStorage
.IsObjectSqlNull(vLeft)))
907
if ((vLeft == DBNull.Value) || (left.IsSqlColumn &&
DataStorage
.IsObjectSqlNull(vLeft)))
921
if ((vLeft == DBNull.Value) || (left.IsSqlColumn &&
DataStorage
.IsObjectSqlNull(vLeft)))
948
if ((vRight == DBNull.Value) || (right.IsSqlColumn &&
DataStorage
.IsObjectSqlNull(vRight)))
977
if ((vLeft != DBNull.Value) && (!
DataStorage
.IsObjectSqlNull(vLeft)))
994
if ((vRight == DBNull.Value) || (
DataStorage
.IsObjectSqlNull(vRight)))
997
if ((vLeft == DBNull.Value) || (
DataStorage
.IsObjectSqlNull(vLeft)))
1048
else if (
DataStorage
.IsSqlType(resultType))
1072
value = Convert.ChangeType(value,
DataStorage
.GetTypeStorage(resultType), FormatProvider);
1095
if ((vLeft == DBNull.Value) || (left.IsSqlColumn &&
DataStorage
.IsObjectSqlNull(vLeft)))
1108
if ((vRight == DBNull.Value) || (right.IsSqlColumn &&
DataStorage
.IsObjectSqlNull(vRight)))
1110
Debug.Assert((!
DataStorage
.IsObjectNull(vLeft)) && (!
DataStorage
.IsObjectNull(vRight)), "Impossible.");
1112
resultType =
DataStorage
.GetStorageType(vLeft.GetType());
1128
throw ExprException.Overflow(
DataStorage
.GetTypeStorage(resultType));
1365
throw ExprException.AmbiguousBinop(op,
DataStorage
.GetTypeStorage(left),
DataStorage
.GetTypeStorage(right));
1478
throw ExprException.AmbiguousBinop(op,
DataStorage
.GetTypeStorage(left),
DataStorage
.GetTypeStorage(right));
1536
if ((vLeft == DBNull.Value) || (_left.IsSqlColumn &&
DataStorage
.IsObjectSqlNull(vLeft)))
1548
if (vRight == DBNull.Value ||
DataStorage
.IsObjectSqlNull(vRight))
System\Data\Filter\DataExpression.cs (2)
41
_storageType =
DataStorage
.GetStorageType(type);
234
return
DataStorage
.IsObjectNull(value);
System\Data\Filter\FunctionNode.cs (9)
157
if (s_funcs[_info]._parameters[i] == typeof(int) && ExpressionNode.IsInteger(
DataStorage
.GetStorageType(argumentValues[i].GetType())))
323
storageType =
DataStorage
.GetStorageType(argumentValues[0].GetType());
334
storageType =
DataStorage
.GetStorageType(argumentValues[0].GetType());
365
if (
DataStorage
.IsObjectNull(argumentValues[0]) ||
DataStorage
.IsObjectNull(argumentValues[1]))
398
if (
DataStorage
.IsObjectNull(argumentValues[0]))
468
if (
DataStorage
.IsObjectNull(argumentValues[0]))
487
StorageType mytype =
DataStorage
.GetStorageType(type);
488
storageType =
DataStorage
.GetStorageType(argumentValues[0].GetType());
System\Data\Filter\UnaryNode.cs (2)
61
storageType =
DataStorage
.GetStorageType(vl.GetType());
70
storageType =
DataStorage
.GetStorageType(vl.GetType());
System\Data\ForeignKeyConstraint.cs (1)
163
if (!
DataStorage
.IsObjectNull(values[i]))
System\Data\Select.cs (4)
657
if ((vLeft == DBNull.Value) || (expr._left.IsSqlColumn &&
DataStorage
.IsObjectSqlNull(vLeft)))
659
if ((vRight == DBNull.Value) || (expr._right.IsSqlColumn &&
DataStorage
.IsObjectSqlNull(vRight)))
662
StorageType leftType =
DataStorage
.GetStorageType(vLeft.GetType());
671
StorageType rightType =
DataStorage
.GetStorageType(vRight.GetType());
System\Data\XmlDataLoader.cs (1)
1188
columnValue = SqlUdtStorage.GetStaticNullForUdtType(
DataStorage
.GetType(typeName));
System\Data\xmlsaver.cs (13)
411
if (
DataStorage
.IsTypeCustomType(columnType))
2233
string result =
DataStorage
.GetQualifiedName(type);
2602
if ((columnValue != DBNull.Value) && (!col.ImplementsINullable || !
DataStorage
.IsObjectSqlNull(columnValue)))
2609
_xmlw.WriteAttributeString(Keywords.MSD, Keywords.MSD_INSTANCETYPE, Keywords.MSDNS,
DataStorage
.GetQualifiedName(valuesType));
2633
DataStorage
.IsSqlType(valuesType))
2647
if (!
DataStorage
.IsSqlType(valuesType))
2978
if ((value != DBNull.Value) && (!col.ImplementsINullable || !
DataStorage
.IsObjectSqlNull(value)))
2992
if ((value != DBNull.Value) && (!col.ImplementsINullable || !
DataStorage
.IsObjectSqlNull(value)))
3008
if (((value == DBNull.Value) || (col.ImplementsINullable &&
DataStorage
.IsObjectSqlNull(value))) && (col.ColumnMapping == MappingType.SimpleContent))
3012
if (((value != DBNull.Value) && (!col.ImplementsINullable || !
DataStorage
.IsObjectSqlNull(value))) && (col._columnMapping != MappingType.Attribute))
3043
_xmlw.WriteAttributeString(Keywords.MSD, Keywords.MSD_INSTANCETYPE, Keywords.MSDNS,
DataStorage
.GetQualifiedName(valuesType));
3065
DataStorage
.IsSqlType(valuesType))
3079
if (!
DataStorage
.IsSqlType(valuesType))
System\Data\XMLSchema.cs (2)
56
propValue =
DataStorage
.GetType(value);
283
col.DataType =
DataStorage
.GetType(value);