112 references to StorageType
System.Data.Services.Client (112)
System\Data\Services\Client\ClientConvert.cs (112)
139
switch ((
StorageType
)IndexOfStorage(propertyType))
141
case
StorageType
.Boolean:
143
case
StorageType
.Byte:
145
case
StorageType
.ByteArray:
147
case
StorageType
.Char:
149
case
StorageType
.CharArray:
151
case
StorageType
.DateTime:
153
case
StorageType
.DateTimeOffset:
155
case
StorageType
.Decimal:
157
case
StorageType
.Double:
159
case
StorageType
.Guid:
161
case
StorageType
.Int16:
163
case
StorageType
.Int32:
165
case
StorageType
.Int64:
167
case
StorageType
.Single:
169
case
StorageType
.String:
171
case
StorageType
.SByte:
173
case
StorageType
.TimeSpan:
175
case
StorageType
.Type:
177
case
StorageType
.UInt16:
179
case
StorageType
.UInt32:
181
case
StorageType
.UInt64:
183
case
StorageType
.Uri:
185
case
StorageType
.XDocument:
187
case
StorageType
.XElement:
190
case
StorageType
.Binary:
191
Debug.Assert(null != knownTypes[(int)
StorageType
.Binary], "null typeof(System.Data.Linq.Binary)");
192
return Activator.CreateInstance(knownTypes[(int)
StorageType
.Binary], Convert.FromBase64String(propertyValue));
218
return
StorageType
.Binary == (
StorageType
)IndexOfStorage(value.GetType());
298
switch ((
StorageType
)IndexOfStorage(propertyValue.GetType()))
300
case
StorageType
.Boolean:
302
case
StorageType
.Byte:
304
case
StorageType
.ByteArray:
306
case
StorageType
.Char:
308
case
StorageType
.CharArray:
310
case
StorageType
.DateTime:
318
case
StorageType
.DateTimeOffset:
320
case
StorageType
.Decimal:
322
case
StorageType
.Double:
324
case
StorageType
.Guid:
326
case
StorageType
.Int16:
328
case
StorageType
.Int32:
330
case
StorageType
.Int64:
332
case
StorageType
.Single:
334
case
StorageType
.String:
336
case
StorageType
.SByte:
338
case
StorageType
.TimeSpan:
340
case
StorageType
.Type:
342
case
StorageType
.UInt16:
344
case
StorageType
.UInt32:
346
case
StorageType
.UInt64:
348
case
StorageType
.Uri:
350
case
StorageType
.XDocument:
352
case
StorageType
.XElement:
355
case
StorageType
.Binary:
356
Debug.Assert(null != knownTypes[(int)
StorageType
.Binary], "null typeof(System.Data.Linq.Binary)");
357
Debug.Assert(knownTypes[(int)
StorageType
.Binary].IsInstanceOfType(propertyValue), "not IsInstanceOfType System.Data.Linq.Binary");
402
switch ((
StorageType
)IndexOfStorage(propertyType))
404
case
StorageType
.Boolean:
406
case
StorageType
.Byte:
409
case
StorageType
.Binary:
411
case
StorageType
.ByteArray:
413
case
StorageType
.DateTime:
415
case
StorageType
.Decimal:
417
case
StorageType
.Double:
419
case
StorageType
.Guid:
421
case
StorageType
.Int16:
423
case
StorageType
.Int32:
425
case
StorageType
.Int64:
427
case
StorageType
.Single:
429
case
StorageType
.SByte:
431
case
StorageType
.DateTimeOffset:
432
case
StorageType
.TimeSpan:
433
case
StorageType
.UInt16:
434
case
StorageType
.UInt32:
435
case
StorageType
.UInt64:
440
case
StorageType
.Char:
441
case
StorageType
.CharArray:
442
case
StorageType
.String:
443
case
StorageType
.Type:
444
case
StorageType
.Uri:
445
case
StorageType
.XDocument:
446
case
StorageType
.XElement:
459
Type[] types = new Type[1 + (int)
StorageType
.Binary];
463
types[(int)
StorageType
.Boolean] = typeof(Boolean);
464
types[(int)
StorageType
.Byte] = typeof(Byte);
465
types[(int)
StorageType
.ByteArray] = typeof(Byte[]);
466
types[(int)
StorageType
.Char] = typeof(Char);
467
types[(int)
StorageType
.CharArray] = typeof(Char[]);
468
types[(int)
StorageType
.DateTime] = typeof(DateTime);
469
types[(int)
StorageType
.DateTimeOffset] = typeof(DateTimeOffset);
470
types[(int)
StorageType
.Decimal] = typeof(Decimal);
471
types[(int)
StorageType
.Double] = typeof(Double);
472
types[(int)
StorageType
.Guid] = typeof(Guid);
473
types[(int)
StorageType
.Int16] = typeof(Int16);
474
types[(int)
StorageType
.Int32] = typeof(Int32);
475
types[(int)
StorageType
.Int64] = typeof(Int64);
476
types[(int)
StorageType
.Single] = typeof(Single);
477
types[(int)
StorageType
.String] = typeof(String);
478
types[(int)
StorageType
.SByte] = typeof(SByte);
479
types[(int)
StorageType
.TimeSpan] = typeof(TimeSpan);
480
types[(int)
StorageType
.Type] = typeof(Type);
481
types[(int)
StorageType
.UInt16] = typeof(UInt16);
482
types[(int)
StorageType
.UInt32] = typeof(UInt32);
483
types[(int)
StorageType
.UInt64] = typeof(UInt64);
484
types[(int)
StorageType
.Uri] = typeof(Uri);
485
types[(int)
StorageType
.XDocument] = typeof(System.Xml.Linq.XDocument);
486
types[(int)
StorageType
.XElement] = typeof(System.Xml.Linq.XElement);
488
types[(int)
StorageType
.Binary] = null; // delay populated
541
ClientConvert.knownTypes[(int)
StorageType
.Binary] = type;
543
return (int)
StorageType
.Binary;