19 writes to _type
System.Data (19)
fx\src\data\Microsoft\SqlServer\Server\SqlRecordBuffer.cs (19)
80
_type
= StorageType.Boolean;
94
_type
= StorageType.Byte;
108
_type
= StorageType.DateTime;
129
_type
= StorageType.DateTimeOffset;
143
_type
= StorageType.Double;
157
_type
= StorageType.Guid;
171
_type
= StorageType.Int16;
185
_type
= StorageType.Int32;
199
_type
= StorageType.Int64;
218
_type
= StorageType.Single;
244
_type
= StorageType.String;
265
_type
= StorageType.SqlDecimal;
279
_type
= StorageType.TimeSpan;
302
_type
= StorageType.ByteArray;
325
_type
= StorageType.CharArray;
422
_type
= StorageType.ByteArray;
455
_type
= StorageType.CharArray;
464
_type
= StorageType.CharArray;
500
_type
= StorageType.ByteArray;
55 references to _type
System.Data (55)
fx\src\data\Microsoft\SqlServer\Server\SqlRecordBuffer.cs (55)
74
Debug.Assert(StorageType.Boolean ==
_type
, "Wrong storage type: " +
_type
);
88
Debug.Assert(StorageType.Byte ==
_type
, "Wrong storage type: " +
_type
);
102
Debug.Assert(StorageType.DateTime ==
_type
, "Wrong storage type: " +
_type
);
123
Debug.Assert(StorageType.DateTimeOffset ==
_type
, "Wrong storage type: " +
_type
);
137
Debug.Assert(StorageType.Double ==
_type
, "Wrong storage type: " +
_type
);
151
Debug.Assert(StorageType.Guid ==
_type
, "Wrong storage type: " +
_type
);
165
Debug.Assert(StorageType.Int16 ==
_type
, "Wrong storage type: " +
_type
);
179
Debug.Assert(StorageType.Int32 ==
_type
, "Wrong storage type: " +
_type
);
193
Debug.Assert(StorageType.Int64 ==
_type
, "Wrong storage type: " +
_type
);
212
Debug.Assert(StorageType.Single ==
_type
, "Wrong storage type: " +
_type
);
227
if (StorageType.String ==
_type
) {
229
} else if (StorageType.CharArray ==
_type
) {
234
Debug.Assert(StorageType.ByteArray ==
_type
, "Wrong storage type: " +
_type
);
257
Debug.Assert(StorageType.SqlDecimal ==
_type
, "Wrong storage type: " +
_type
);
273
Debug.Assert(StorageType.TimeSpan ==
_type
, "Wrong storage type: " +
_type
);
289
if (StorageType.String ==
_type
) {
293
Debug.Assert(StorageType.ByteArray ==
_type
, "Wrong storage type: " +
_type
);
306
Debug.Assert(StorageType.ByteArray ==
_type
, "Wrong storage type: " +
_type
);
317
Debug.Assert(StorageType.CharArray ==
_type
|| StorageType.String ==
_type
, "Wrong storage type: " +
_type
);
329
Debug.Assert(StorageType.CharArray ==
_type
|| StorageType.String ==
_type
, "Wrong storage type: " +
_type
);
331
((StorageType.CharArray ==
_type
&& value <= ((char[])_object).Length) || (StorageType.String ==
_type
&& value <= ((string)_object).Length)),
350
switch (
_type
) {
383
if (StorageType.String ==
_type
) {
387
Debug.Assert(StorageType.ByteArray ==
_type
, "Wrong storage type: " +
_type
);
401
Debug.Assert(StorageType.CharArray ==
_type
|| StorageType.String ==
_type
, "Wrong storage type: " +
_type
);
405
if (StorageType.CharArray ==
_type
) {
417
if (IsNull || StorageType.ByteArray !=
_type
) {
450
if (IsNull || (StorageType.CharArray !=
_type
&& StorageType.String !=
_type
)) {
462
if (StorageType.String ==
_type
) { // convert string to char[]
489
Debug.Assert(StorageType.String ==
_type
, "ConvertXmlStringToByteArray: Invalid storage type for conversion: " +
_type
.ToString());