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