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