36 types derived from DataStorage
System.Data (36)
fx\src\data\System\Data\Common\BigIntegerStorage.cs (1)
16
internal sealed class BigIntegerStorage :
DataStorage
{
fx\src\data\System\Data\Common\BooleanStorage.cs (1)
16
internal sealed class BooleanStorage :
DataStorage
{
fx\src\data\System\Data\Common\ByteStorage.cs (1)
16
internal sealed class ByteStorage :
DataStorage
{
fx\src\data\System\Data\Common\CharStorage.cs (1)
16
internal sealed class CharStorage :
DataStorage
{
fx\src\data\System\Data\Common\DateTimeOffsetStorage.cs (1)
15
internal sealed class DateTimeOffsetStorage :
DataStorage
{
fx\src\data\System\Data\Common\DateTimeStorage.cs (1)
16
internal sealed class DateTimeStorage :
DataStorage
{
fx\src\data\System\Data\Common\DecimalStorage.cs (1)
16
internal sealed class DecimalStorage :
DataStorage
{
fx\src\data\System\Data\Common\DoubleStorage.cs (1)
16
internal sealed class DoubleStorage :
DataStorage
{
fx\src\data\System\Data\Common\Int16Storage.cs (1)
16
internal sealed class Int16Storage :
DataStorage
{
fx\src\data\System\Data\Common\Int32Storage.cs (1)
16
internal sealed class Int32Storage :
DataStorage
{
fx\src\data\System\Data\Common\Int64Storage.cs (1)
16
internal sealed class Int64Storage :
DataStorage
{
fx\src\data\System\Data\Common\ObjectStorage.cs (1)
20
internal sealed class ObjectStorage :
DataStorage
{
fx\src\data\System\Data\Common\SByteStorage.cs (1)
16
internal sealed class SByteStorage :
DataStorage
{
fx\src\data\System\Data\Common\SingleStorage.cs (1)
16
internal sealed class SingleStorage :
DataStorage
{
fx\src\data\System\Data\Common\SQLTypes\SQLBinaryStorage.cs (1)
20
internal sealed class SqlBinaryStorage :
DataStorage
{
fx\src\data\System\Data\Common\SQLTypes\SQlBooleanStorage.cs (1)
20
internal sealed class SqlBooleanStorage :
DataStorage
{
fx\src\data\System\Data\Common\SQLTypes\SQLBytesStorage.cs (1)
21
internal sealed class SqlBytesStorage :
DataStorage
{
fx\src\data\System\Data\Common\SQLTypes\SQLByteStorage.cs (1)
20
internal sealed class SqlByteStorage :
DataStorage
{
fx\src\data\System\Data\Common\SQLTypes\SQLCharsStorage.cs (1)
20
internal sealed class SqlCharsStorage :
DataStorage
{
fx\src\data\System\Data\Common\SQLTypes\SQLDateTimeStorage.cs (1)
20
internal sealed class SqlDateTimeStorage :
DataStorage
{
fx\src\data\System\Data\Common\SQLTypes\SQLDecimalStorage.cs (1)
20
internal sealed class SqlDecimalStorage :
DataStorage
{
fx\src\data\System\Data\Common\SQLTypes\SQLDoubleStorage.cs (1)
20
internal sealed class SqlDoubleStorage :
DataStorage
{
fx\src\data\System\Data\Common\SQLTypes\SQLGuidStorage.cs (1)
20
internal sealed class SqlGuidStorage :
DataStorage
{
fx\src\data\System\Data\Common\SQLTypes\SQLInt16Storage.cs (1)
20
internal sealed class SqlInt16Storage :
DataStorage
{
fx\src\data\System\Data\Common\SQLTypes\SQLInt32Storage.cs (1)
20
internal sealed class SqlInt32Storage :
DataStorage
{
fx\src\data\System\Data\Common\SQLTypes\SQLInt64Storage.cs (1)
20
internal sealed class SqlInt64Storage :
DataStorage
{
fx\src\data\System\Data\Common\SQLTypes\SQLMoneyStorage.cs (1)
20
internal sealed class SqlMoneyStorage :
DataStorage
{
fx\src\data\System\Data\Common\SQLTypes\SQLSingleStorage.cs (1)
20
internal sealed class SqlSingleStorage :
DataStorage
{
fx\src\data\System\Data\Common\SQLTypes\SQLStringStorage.cs (1)
20
internal sealed class SqlStringStorage :
DataStorage
{
fx\src\data\System\Data\Common\SQLTypes\SqlUDTStorage.cs (1)
24
internal sealed class SqlUdtStorage :
DataStorage
{
fx\src\data\System\Data\Common\SQLTypes\SqlXmlStorage.cs (1)
19
internal sealed class SqlXmlStorage :
DataStorage
{
fx\src\data\System\Data\Common\StringStorage.cs (1)
18
internal sealed class StringStorage :
DataStorage
{
fx\src\data\System\Data\Common\TimeSpanStorage.cs (1)
16
internal sealed class TimeSpanStorage :
DataStorage
{
fx\src\data\System\Data\Common\UInt16Storage.cs (1)
16
internal sealed class UInt16Storage :
DataStorage
{
fx\src\data\System\Data\Common\UInt32Storage.cs (1)
16
internal sealed class UInt32Storage :
DataStorage
{
fx\src\data\System\Data\Common\UInt64Storage.cs (1)
16
internal sealed class UInt64Storage :
DataStorage
{
129 references to DataStorage
System.Data (129)
fx\src\data\System\Data\Common\AdapterUtil.cs (1)
2519
isSqlType =
DataStorage
.IsSqlType(value.GetType());
fx\src\data\System\Data\Common\DataStorage.cs (1)
261
public static
DataStorage
CreateStorage(DataColumn column, Type dataType, StorageType typeCode) {
fx\src\data\System\Data\Common\ObjectStorage.cs (1)
336
type = (typeName == null)? DataType :
DataStorage
.GetType(typeName);
fx\src\data\System\Data\Common\SQLConvert.cs (19)
24
StorageType stype =
DataStorage
.GetStorageType(valueType);
42
StorageType stype =
DataStorage
.GetStorageType(valueType);
63
StorageType stype =
DataStorage
.GetStorageType(valueType);
91
StorageType stype =
DataStorage
.GetStorageType(valueType);
124
StorageType stype =
DataStorage
.GetStorageType(valueType);
172
StorageType stype =
DataStorage
.GetStorageType(valueType);
214
StorageType stype =
DataStorage
.GetStorageType(valueType);
258
StorageType stype =
DataStorage
.GetStorageType(valueType);
299
StorageType stype =
DataStorage
.GetStorageType(valueType);
317
StorageType stype =
DataStorage
.GetStorageType(valueType);
335
StorageType stype =
DataStorage
.GetStorageType(valueType);
353
StorageType stype =
DataStorage
.GetStorageType(valueType);
371
StorageType stype =
DataStorage
.GetStorageType(valueType);
389
StorageType stype =
DataStorage
.GetStorageType(valueType);
404
StorageType stype =
DataStorage
.GetStorageType(valueType);
426
return ChangeType2(value,
DataStorage
.GetStorageType(type), type, formatProvider);
473
StorageType vtype =
DataStorage
.GetStorageType(valueType);
618
StorageType destinationType =
DataStorage
.GetStorageType(type);
620
StorageType vtype =
DataStorage
.GetStorageType(valueType);
fx\src\data\System\Data\Common\SQLTypes\SQLBinaryStorage.cs (1)
105
Debug.Assert(!
DataStorage
.IsObjectNull(value), "we should have null here");
fx\src\data\System\Data\Common\SQLTypes\SQlBooleanStorage.cs (1)
134
Debug.Assert(!
DataStorage
.IsObjectNull(value), "we should have null here");
fx\src\data\System\Data\Common\SQLTypes\SQLBytesStorage.cs (1)
104
Debug.Assert(!
DataStorage
.IsObjectNull(value), "we shouldn't have null here");
fx\src\data\System\Data\Common\SQLTypes\SQLByteStorage.cs (1)
203
Debug.Assert(!
DataStorage
.IsObjectNull(value), "we shouldn't have null here");
fx\src\data\System\Data\Common\SQLTypes\SQLCharsStorage.cs (1)
106
Debug.Assert(!
DataStorage
.IsObjectNull(value), "we shouldn't have null here");
fx\src\data\System\Data\Common\SQLTypes\SQLDateTimeStorage.cs (1)
136
Debug.Assert(!
DataStorage
.IsObjectNull(value), "we shouldn't have null here");
fx\src\data\System\Data\Common\SQLTypes\SQLDecimalStorage.cs (1)
201
Debug.Assert(!
DataStorage
.IsObjectNull(value), "we shouldn't have null here");
fx\src\data\System\Data\Common\SQLTypes\SQLDoubleStorage.cs (1)
202
Debug.Assert(!
DataStorage
.IsObjectNull(value), "we shouldn't have null here");
fx\src\data\System\Data\Common\SQLTypes\SQLGuidStorage.cs (1)
105
Debug.Assert(!
DataStorage
.IsObjectNull(value), "we shouldn't have null here");
fx\src\data\System\Data\Common\SQLTypes\SQLInt16Storage.cs (1)
202
Debug.Assert(!
DataStorage
.IsObjectNull(value), "we shouldn't have null here");
fx\src\data\System\Data\Common\SQLTypes\SQLInt32Storage.cs (1)
202
Debug.Assert(!
DataStorage
.IsObjectNull(value), "we shouldn't have null here");
fx\src\data\System\Data\Common\SQLTypes\SQLInt64Storage.cs (1)
203
Debug.Assert(!
DataStorage
.IsObjectNull(value), "we shouldn't have null here");
fx\src\data\System\Data\Common\SQLTypes\SQLMoneyStorage.cs (1)
202
Debug.Assert(!
DataStorage
.IsObjectNull(value), "we shouldn't have null here");
fx\src\data\System\Data\Common\SQLTypes\SQLSingleStorage.cs (1)
203
Debug.Assert(!
DataStorage
.IsObjectNull(value), "we should have null here");
fx\src\data\System\Data\Common\SQLTypes\SQLStringStorage.cs (1)
159
Debug.Assert(!
DataStorage
.IsObjectNull(value), "we shouldn't have null here");
fx\src\data\System\Data\DataColumn.cs (15)
72
private
DataStorage
_storage;
145
StorageType typeCode =
DataStorage
.GetStorageType(dataType);
146
if (
DataStorage
.ImplementsINullableValue(typeCode, dataType)) {
171
DataStorage
.ImplementsInterfaces(
488
if (
DataStorage
.IsObjectNull(objValue)) {
541
StorageType typeCode =
DataStorage
.GetStorageType(value);
542
if (
DataStorage
.ImplementsINullableValue(typeCode, value)) {
703
defaultValueIsNull = ((newDefaultValue == DBNull.Value) || (this.ImplementsINullable &&
DataStorage
.IsObjectSqlNull(newDefaultValue))) ? true : false;
1412
if (
DataStorage
.IsObjectNull(dr[this])) {
1495
clone.defaultValueIsNull = ((defaultValue == DBNull.Value) || (clone.ImplementsINullable &&
DataStorage
.IsObjectSqlNull(defaultValue))) ? true : false;
1567
if ((mapping != MappingType.Element) &&
DataStorage
.IsTypeCustomType(typeCode)) {
1577
return
DataStorage
.IsTypeCustomType(DataType);
1583
return (
DataStorage
.IsTypeCustomType(value.GetType()) && !(value is Type));
1646
if (!
DataStorage
.IsObjectNull(value) && ((SqlString)value).Value.Length > MaxLength) {
1687
_storage =
DataStorage
.CreateStorage(this, dataType, _storageType);
fx\src\data\System\Data\DataColumnPropertyDescriptor.cs (1)
77
return (!
DataStorage
.IsObjectNull(dataRowView.GetColumnValue(column)));
fx\src\data\System\Data\DataRelation.cs (1)
234
if (!
DataStorage
.IsObjectNull(values[i]))
fx\src\data\System\Data\DataTable.cs (1)
3550
if (
DataStorage
.IsTypeCustomType(dc.DataType) && newValue != dc[record]) {
fx\src\data\System\Data\Filter\BinaryNode.cs (40)
138
if (!
DataStorage
.IsSqlType(resultType)) {
256
StorageType leftStorage =
DataStorage
.GetStorageType(typeofLeft);
257
StorageType rightStorage =
DataStorage
.GetStorageType(typeofRight);
259
bool leftIsSqlType =
DataStorage
.IsSqlType(leftStorage);
260
bool rightIsSqlType =
DataStorage
.IsSqlType(rightStorage);
263
if (leftIsSqlType &&
DataStorage
.IsObjectSqlNull(vLeft)) {
266
else if (rightIsSqlType &&
DataStorage
.IsObjectSqlNull(vRight)) {
617
if ((vLeft == DBNull.Value)||(left.IsSqlColumn &&
DataStorage
.IsObjectSqlNull(vLeft)) ||
618
(vRight == DBNull.Value)||(right.IsSqlColumn &&
DataStorage
.IsObjectSqlNull(vRight)))
623
if ((vLeft == DBNull.Value)||(left.IsSqlColumn &&
DataStorage
.IsObjectSqlNull(vLeft)) ||
624
(vRight == DBNull.Value)||(right.IsSqlColumn &&
DataStorage
.IsObjectSqlNull(vRight)))
629
if ((vLeft == DBNull.Value)||(left.IsSqlColumn &&
DataStorage
.IsObjectSqlNull(vLeft)) ||
630
(vRight == DBNull.Value)||(right.IsSqlColumn &&
DataStorage
.IsObjectSqlNull(vRight)))
635
if ((vLeft == DBNull.Value)||(left.IsSqlColumn &&
DataStorage
.IsObjectSqlNull(vLeft)) ||
636
(vRight == DBNull.Value)||(right.IsSqlColumn &&
DataStorage
.IsObjectSqlNull(vRight)))
641
if (((vLeft == DBNull.Value)||(left.IsSqlColumn &&
DataStorage
.IsObjectSqlNull(vLeft))) ||
642
((vRight == DBNull.Value)||(right.IsSqlColumn &&
DataStorage
.IsObjectSqlNull(vRight))))
647
if (((vLeft == DBNull.Value)||(left.IsSqlColumn &&
DataStorage
.IsObjectSqlNull(vLeft))) ||
648
((vRight == DBNull.Value)||(right.IsSqlColumn &&
DataStorage
.IsObjectSqlNull(vRight))))
654
if ((vLeft == DBNull.Value)||(left.IsSqlColumn &&
DataStorage
.IsObjectSqlNull(vLeft))){
661
if ((vLeft == DBNull.Value)||(left.IsSqlColumn &&
DataStorage
.IsObjectSqlNull(vLeft))){
674
if ((vLeft == DBNull.Value)||(left.IsSqlColumn &&
DataStorage
.IsObjectSqlNull(vLeft)))
696
if ((vRight == DBNull.Value)||(right.IsSqlColumn &&
DataStorage
.IsObjectSqlNull(vRight )))
722
if ((vLeft != DBNull.Value) && (!
DataStorage
.IsObjectSqlNull(vLeft))) {
736
if ((vRight == DBNull.Value)||(
DataStorage
.IsObjectSqlNull(vRight)))
739
if ((vLeft == DBNull.Value)||(
DataStorage
.IsObjectSqlNull(vLeft)))
787
else if (
DataStorage
.IsSqlType(resultType)) {
805
value = Convert.ChangeType(value,
DataStorage
.GetTypeStorage(resultType), FormatProvider);
826
if ((vLeft == DBNull.Value)||(left.IsSqlColumn &&
DataStorage
.IsObjectSqlNull(vLeft)))
839
if ((vRight == DBNull.Value)||(right.IsSqlColumn &&
DataStorage
.IsObjectSqlNull(vRight)))
841
Debug.Assert((!
DataStorage
.IsObjectNull(vLeft))&& (!
DataStorage
.IsObjectNull(vRight)), "Imposible..");
843
resultType =
DataStorage
.GetStorageType(vLeft.GetType());
857
throw ExprException.Overflow(
DataStorage
.GetTypeStorage(resultType));
1075
throw ExprException.AmbiguousBinop(op,
DataStorage
.GetTypeStorage(left),
DataStorage
.GetTypeStorage(right));
1173
throw ExprException.AmbiguousBinop(op,
DataStorage
.GetTypeStorage(left),
DataStorage
.GetTypeStorage(right));
1225
if ((vLeft == DBNull.Value)||(left.IsSqlColumn &&
DataStorage
.IsObjectSqlNull(vLeft)))
1235
if (vRight == DBNull.Value ||
DataStorage
.IsObjectSqlNull(vRight))
fx\src\data\System\Data\Filter\DataExpression.cs (2)
40
_storageType =
DataStorage
.GetStorageType(type);
198
return
DataStorage
.IsObjectNull(value);
fx\src\data\System\Data\Filter\FunctionNode.cs (9)
134
if (funcs[info].parameters[i] == typeof(int) && ExpressionNode.IsInteger(
DataStorage
.GetStorageType(argumentValues[i].GetType()))) {
260
storageType =
DataStorage
.GetStorageType(argumentValues[0].GetType());
271
storageType =
DataStorage
.GetStorageType(argumentValues[0].GetType());
307
if (
DataStorage
.IsObjectNull(argumentValues[0]) ||
DataStorage
.IsObjectNull(argumentValues[1]))
338
if (
DataStorage
.IsObjectNull(argumentValues[0]))
403
if (
DataStorage
.IsObjectNull(argumentValues[0]))
422
StorageType mytype =
DataStorage
.GetStorageType(type);
423
storageType =
DataStorage
.GetStorageType(argumentValues[0].GetType());
fx\src\data\System\Data\Filter\UnaryNode.cs (2)
56
storageType =
DataStorage
.GetStorageType(vl.GetType());
64
storageType =
DataStorage
.GetStorageType(vl.GetType());
fx\src\data\System\Data\ForeignKeyConstraint.cs (1)
187
if (!
DataStorage
.IsObjectNull(values[i]))
fx\src\data\System\Data\Select.cs (4)
549
if ((vLeft == DBNull.Value)||(expr.left.IsSqlColumn &&
DataStorage
.IsObjectSqlNull(vLeft)))
551
if ((vRight == DBNull.Value)||(expr.right.IsSqlColumn &&
DataStorage
.IsObjectSqlNull(vRight)))
554
StorageType leftType =
DataStorage
.GetStorageType(vLeft.GetType());
562
StorageType rightType =
DataStorage
.GetStorageType(vRight.GetType());
fx\src\data\System\Data\XmlDataLoader.cs (1)
1115
columnValue = SqlUdtStorage.GetStaticNullForUdtType(
DataStorage
.GetType(typeName));
fx\src\data\System\Data\xmlsaver.cs (13)
358
if (
DataStorage
.IsTypeCustomType(columnType)) {
1926
string result =
DataStorage
.GetQualifiedName(type);
2250
if ((columnValue != DBNull.Value) && (!col.ImplementsINullable || !
DataStorage
.IsObjectSqlNull(columnValue))){
2254
_xmlw.WriteAttributeString(Keywords.MSD, Keywords.MSD_INSTANCETYPE, Keywords.MSDNS,
DataStorage
.GetQualifiedName(valuesType));
2274
DataStorage
.IsSqlType(valuesType) ) { // if unmapped type or SQL type write msdata:Datatype=typeofinstance
2285
if (!
DataStorage
.IsSqlType(valuesType)) {
2572
if ((value != DBNull.Value) && (!col.ImplementsINullable || !
DataStorage
.IsObjectSqlNull(value))){
2585
if ((value != DBNull.Value) && (!col.ImplementsINullable || !
DataStorage
.IsObjectSqlNull(value))){
2600
if (((value == DBNull.Value) || (col.ImplementsINullable &&
DataStorage
.IsObjectSqlNull(value))) && (col.ColumnMapping == MappingType.SimpleContent))
2604
if (((value != DBNull.Value) && (!col.ImplementsINullable || !
DataStorage
.IsObjectSqlNull(value)))&&(col.columnMapping != MappingType.Attribute)){
2627
_xmlw.WriteAttributeString(Keywords.MSD, Keywords.MSD_INSTANCETYPE, Keywords.MSDNS,
DataStorage
.GetQualifiedName(valuesType));
2645
DataStorage
.IsSqlType(valuesType)) { // if unmapped type or SQL type write msdata:Datatype=typeofinstance
2656
if (!
DataStorage
.IsSqlType(valuesType)) {
fx\src\data\System\Data\XMLSchema.cs (2)
62
propValue =
DataStorage
.GetType(value);
254
col.DataType =
DataStorage
.GetType(value);