213 references to StorageType
System.Data (213)
fx\src\data\Microsoft\SqlServer\Server\ValueUtilsSmi.cs (49)
1127internal static SqlBuffer.StorageType SqlDbTypeToStorageType(SqlDbType dbType) { 1138SqlBuffer.StorageType stype = SqlDbTypeToStorageType(metaData.SqlDbType); 1139if ( SqlBuffer.StorageType.Empty == stype ) { 1142else if (SqlBuffer.StorageType.SqlBinary == stype) { 1146else if (SqlBuffer.StorageType.SqlGuid == stype) { 1292private static SqlBuffer.StorageType[] __dbTypeToStorageType = new SqlBuffer.StorageType[] { 1293SqlBuffer.StorageType.Int64, // BigInt 1294SqlBuffer.StorageType.SqlBinary, // Binary 1295SqlBuffer.StorageType.Boolean, // Bit 1296SqlBuffer.StorageType.String, // Char 1297SqlBuffer.StorageType.DateTime, // DateTime 1298SqlBuffer.StorageType.Decimal, // Decimal 1299SqlBuffer.StorageType.Double, // Float 1300SqlBuffer.StorageType.SqlBinary, // Image 1301SqlBuffer.StorageType.Int32, // Int 1302SqlBuffer.StorageType.Money, // Money 1303SqlBuffer.StorageType.String, // NChar 1304SqlBuffer.StorageType.String, // NText 1305SqlBuffer.StorageType.String, // NVarChar 1306SqlBuffer.StorageType.Single, // Real 1307SqlBuffer.StorageType.SqlGuid, // UniqueIdentifier 1308SqlBuffer.StorageType.DateTime, // SmallDateTime 1309SqlBuffer.StorageType.Int16, // SmallInt 1310SqlBuffer.StorageType.Money, // SmallMoney 1311SqlBuffer.StorageType.String, // Text 1312SqlBuffer.StorageType.SqlBinary, // Timestamp 1313SqlBuffer.StorageType.Byte, // TinyInt 1314SqlBuffer.StorageType.SqlBinary, // VarBinary 1315SqlBuffer.StorageType.String, // VarChar 1316SqlBuffer.StorageType.Empty, // Variant 1317SqlBuffer.StorageType.Empty, // 24 1318SqlBuffer.StorageType.SqlXml, // Xml 1319SqlBuffer.StorageType.Empty, // 26 1320SqlBuffer.StorageType.Empty, // 27 1321SqlBuffer.StorageType.Empty, // 28 1322SqlBuffer.StorageType.Empty, // Udt 1323SqlBuffer.StorageType.Empty, // Structured 1324SqlBuffer.StorageType.Date, // Date 1325SqlBuffer.StorageType.Time, // Time 1326SqlBuffer.StorageType.DateTime2, // DateTime2 1327SqlBuffer.StorageType.DateTimeOffset, // DateTimeOffset 1653SqlBuffer.StorageType storageType 1664if (storageType == SqlBuffer.StorageType.DateTime2) 1666else if (storageType == SqlBuffer.StorageType.Date) 1962SqlBuffer.StorageType storageType = SqlBuffer.StorageType.Empty; 1976if ((storageType == SqlBuffer.StorageType.DateTime2) || (storageType == SqlBuffer.StorageType.Date))
fx\src\data\System\Data\SqlClient\SqlBuffer.cs (140)
102private StorageType _type; 121return (StorageType.Empty == _type); 131internal StorageType VariantInternalStorageType 140if (StorageType.Boolean == _type) { 148_type = StorageType.Boolean; 157if (StorageType.Byte == _type) { 165_type = StorageType.Byte; 181if (StorageType.Date == _type) { 184if (StorageType.DateTime2 == _type) { 187if (StorageType.DateTime == _type) { 198if (StorageType.Decimal == _type) { 204if (StorageType.Money == _type) { 221if (StorageType.Double == _type) { 229_type = StorageType.Double; 246if (StorageType.Int16 == _type) { 254_type = StorageType.Int16; 263if (StorageType.Int32 == _type) { 271_type = StorageType.Int32; 280if (StorageType.Int64 == _type) { 288_type = StorageType.Int64; 297if (StorageType.Single == _type) { 305_type = StorageType.Single; 314if (StorageType.String == _type) { 317else if (StorageType.SqlCachedBuffer == _type) { 362if (StorageType.Date == _type) { 365if (StorageType.Time == _type) { 369if (StorageType.DateTime2 == _type) { 373if (StorageType.DateTimeOffset == _type) { 384if (StorageType.Date == _type || 385StorageType.Time == _type || 386StorageType.DateTime2 == _type || 387StorageType.DateTimeOffset == _type) { 401if (StorageType.Time == _type) { 413if (StorageType.DateTimeOffset == _type) { 429if (StorageType.SqlBinary == _type) { 437_type = StorageType.SqlBinary; 444if (StorageType.Boolean == _type) { 456if (StorageType.Byte == _type) { 468if (StorageType.SqlCachedBuffer == _type) { 479_type = StorageType.SqlCachedBuffer; 486if (StorageType.SqlXml == _type) { 497_type = StorageType.SqlXml; 504if (StorageType.DateTime == _type) { 516if (StorageType.Decimal == _type) { 535if (StorageType.Double == _type) { 547if (StorageType.SqlGuid == _type) { 555_type = StorageType.SqlGuid; 562if (StorageType.Int16 == _type) { 574if (StorageType.Int32 == _type) { 586if (StorageType.Int64 == _type) { 598if (StorageType.Money == _type) { 610if (StorageType.Single == _type) { 622if (StorageType.String == _type) { 629else if (StorageType.SqlCachedBuffer == _type) { 643case StorageType.Empty: return DBNull.Value; 644case StorageType.Boolean: return SqlBoolean; 645case StorageType.Byte: return SqlByte; 646case StorageType.DateTime: return SqlDateTime; 647case StorageType.Decimal: return SqlDecimal; 648case StorageType.Double: return SqlDouble; 649case StorageType.Int16: return SqlInt16; 650case StorageType.Int32: return SqlInt32; 651case StorageType.Int64: return SqlInt64; 652case StorageType.Money: return SqlMoney; 653case StorageType.Single: return SqlSingle; 654case StorageType.String: return SqlString; 655case StorageType.SqlCachedBuffer: 664case StorageType.SqlBinary: 665case StorageType.SqlGuid: 668case StorageType.SqlXml: { 675case StorageType.Date: 676case StorageType.DateTime2: 681case StorageType.DateTimeOffset: 686case StorageType.Time: 702case StorageType.Empty: return DBNull.Value; 703case StorageType.Boolean: return Boolean; 704case StorageType.Byte: return Byte; 705case StorageType.DateTime: return DateTime; 706case StorageType.Decimal: return Decimal; 707case StorageType.Double: return Double; 708case StorageType.Int16: return Int16; 709case StorageType.Int32: return Int32; 710case StorageType.Int64: return Int64; 711case StorageType.Money: return Decimal; 712case StorageType.Single: return Single; 713case StorageType.String: return String; 714case StorageType.SqlBinary: return ByteArray; 715case StorageType.SqlCachedBuffer: 722case StorageType.SqlGuid: return Guid; 723case StorageType.SqlXml: { 729case StorageType.Date: return DateTime; 730case StorageType.DateTime2: return DateTime; 731case StorageType.DateTimeOffset: return DateTimeOffset; 732case StorageType.Time: return Time; 741case SqlBuffer.StorageType.Empty: return null; 742case SqlBuffer.StorageType.Boolean: return typeof(SqlBoolean); 743case SqlBuffer.StorageType.Byte: return typeof(SqlByte); 744case SqlBuffer.StorageType.DateTime: return typeof(SqlDateTime); 745case SqlBuffer.StorageType.Decimal: return typeof(SqlDecimal); 746case SqlBuffer.StorageType.Double: return typeof(SqlDouble); 747case SqlBuffer.StorageType.Int16: return typeof(SqlInt16); 748case SqlBuffer.StorageType.Int32: return typeof(SqlInt32); 749case SqlBuffer.StorageType.Int64: return typeof(SqlInt64); 750case SqlBuffer.StorageType.Money: return typeof(SqlMoney); 751case SqlBuffer.StorageType.Single: return typeof(SqlSingle); 752case SqlBuffer.StorageType.String: return typeof(SqlString); 753case SqlBuffer.StorageType.SqlCachedBuffer: return typeof(SqlString); 754case SqlBuffer.StorageType.SqlBinary: return typeof(object); 755case SqlBuffer.StorageType.SqlGuid: return typeof(object); 756case SqlBuffer.StorageType.SqlXml: return typeof(SqlXml); 761case SqlBuffer.StorageType.Empty: return null; 762case SqlBuffer.StorageType.Boolean: return typeof(Boolean); 763case SqlBuffer.StorageType.Byte: return typeof(Byte); 764case SqlBuffer.StorageType.DateTime: return typeof(DateTime); 765case SqlBuffer.StorageType.Decimal: return typeof(Decimal); 766case SqlBuffer.StorageType.Double: return typeof(Double); 767case SqlBuffer.StorageType.Int16: return typeof(Int16); 768case SqlBuffer.StorageType.Int32: return typeof(Int32); 769case SqlBuffer.StorageType.Int64: return typeof(Int64); 770case SqlBuffer.StorageType.Money: return typeof(Decimal); 771case SqlBuffer.StorageType.Single: return typeof(Single); 772case SqlBuffer.StorageType.String: return typeof(String); 773case SqlBuffer.StorageType.SqlBinary: return typeof(Byte[]); 774case SqlBuffer.StorageType.SqlCachedBuffer: return typeof(string); 775case SqlBuffer.StorageType.SqlGuid: return typeof(Guid); 776case SqlBuffer.StorageType.SqlXml: return typeof(string); 809_type = StorageType.Empty; 817_type = StorageType.DateTime; 830_type = StorageType.Decimal; 837_type = StorageType.Money; 841internal void SetToNullOfType(StorageType storageType) { 851_type = StorageType.String; 858_type = StorageType.Date; 866_type = StorageType.Date; 874_type = StorageType.Time; 882_type = StorageType.Time; 891_type = StorageType.DateTime2; 900_type = StorageType.DateTime2; 910_type = StorageType.DateTimeOffset; 920_type = StorageType.DateTimeOffset;
fx\src\data\System\Data\SqlClient\SqlBulkCopy.cs (4)
1985SqlBuffer.StorageType variantInternalType = SqlBuffer.StorageType.Empty; 1990if (variantInternalType == SqlBuffer.StorageType.DateTime2) { 1993else if (variantInternalType == SqlBuffer.StorageType.Date) {
fx\src\data\System\Data\SqlClient\SqlDataReader.cs (1)
1215virtual internal SqlBuffer.StorageType GetVariantInternalStorageType(int i) {
fx\src\data\System\Data\SqlClient\SqlDataReaderSmi.cs (3)
144override internal SqlBuffer.StorageType GetVariantInternalStorageType(int ordinal) { 147return SqlBuffer.StorageType.Empty; 151return SqlBuffer.StorageType.Empty;
fx\src\data\System\Data\SqlClient\TdsParser.cs (16)
4793nullVal.SetToNullOfType(SqlBuffer.StorageType.Single); 4797nullVal.SetToNullOfType(SqlBuffer.StorageType.Double); 4812nullVal.SetToNullOfType(SqlBuffer.StorageType.Boolean); 4816nullVal.SetToNullOfType(SqlBuffer.StorageType.Byte); 4820nullVal.SetToNullOfType(SqlBuffer.StorageType.Int16); 4824nullVal.SetToNullOfType(SqlBuffer.StorageType.Int32); 4828nullVal.SetToNullOfType(SqlBuffer.StorageType.Int64); 4837nullVal.SetToNullOfType(SqlBuffer.StorageType.String); 4841nullVal.SetToNullOfType(SqlBuffer.StorageType.Decimal); 4846nullVal.SetToNullOfType(SqlBuffer.StorageType.DateTime); 4851nullVal.SetToNullOfType(SqlBuffer.StorageType.Money); 4856nullVal.SetToNullOfType(SqlBuffer.StorageType.Empty); 4864nullVal.SetToNullOfType(SqlBuffer.StorageType.Date); 4868nullVal.SetToNullOfType(SqlBuffer.StorageType.Time); 4872nullVal.SetToNullOfType(SqlBuffer.StorageType.DateTime2); 4876nullVal.SetToNullOfType(SqlBuffer.StorageType.DateTimeOffset);