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