1 write to baseTI
System.Data (1)
fx\src\data\System\Data\SqlClient\TdsParser.cs (1)
3598
col.
baseTI
= new SqlMetaDataPriv();
68 references to baseTI
System.Data (68)
fx\src\data\System\Data\SqlClient\SqlBulkCopy.cs (4)
1325
type = metadata.
baseTI
.metaType;
1326
scale = metadata.
baseTI
.scale;
1327
precision = metadata.
baseTI
.precision;
1328
length = metadata.
baseTI
.length;
fx\src\data\System\Data\SqlClient\SqlDataReader.cs (36)
520
Debug.Assert(col.
baseTI
!= null && col.
baseTI
.metaType != null, "col.baseTI and col.baseTI.metaType should not be null.");
521
schemaRow[Size] = (col.
baseTI
.metaType.IsSizeInCharacters && (col.
baseTI
.length != 0x7fffffff)) ? (col.
baseTI
.length / 2) : col.
baseTI
.length;
529
schemaRow[NonVersionedProviderType] = (int) (col.cipherMD != null ? col.
baseTI
.type : col.type); // SqlDbType enum value - does not change with TypeSystem.
565
schemaRow[ProviderType] = (int) (col.cipherMD != null ? col.
baseTI
.type : col.type);
586
Debug.Assert(col.
baseTI
!= null, @"col.baseTI should not be null.");
587
if (TdsEnums.UNKNOWN_PRECISION_SCALE != col.
baseTI
.precision) {
588
schemaRow[Precision] = col.
baseTI
.precision;
591
schemaRow[Precision] = col.
baseTI
.metaType.Precision;
605
Debug.Assert(col.
baseTI
!= null, @"col.baseTI should not be null.");
606
if (TdsEnums.UNKNOWN_PRECISION_SCALE != col.
baseTI
.scale) {
607
schemaRow[Scale] = col.
baseTI
.scale;
610
schemaRow[Scale] = col.
baseTI
.metaType.Scale;
634
Debug.Assert(col.
baseTI
!= null, @"col.baseTI should not be null.");
635
Debug.Assert(col.
baseTI
.metaType != null, @"col.baseTI.metaType should not be null.");
636
schemaRow[IsLong] = col.
baseTI
.metaType.IsLong;
1198
Debug.Assert(metaData.
baseTI
!= null && metaData.
baseTI
.metaType != null, "metaData.baseTI and metaData.baseTI.metaType should not be null.");
1199
dataTypeName = metaData.
baseTI
.metaType.TypeName;
1265
Debug.Assert(metaData.
baseTI
!= null && metaData.
baseTI
.metaType != null, "metaData.baseTI and metaData.baseTI.metaType should not be null.");
1266
fieldType = metaData.
baseTI
.metaType.ClassType;
1289
if (sqlMetaData.
baseTI
.collation != null) {
1290
lcid = sqlMetaData.
baseTI
.collation.LCID;
1354
Debug.Assert(metaData.
baseTI
!= null && metaData.
baseTI
.metaType != null,
1356
providerSpecificFieldType = metaData.
baseTI
.metaType.SqlType; // SqlType type.
1877
Debug.Assert(_metaData[i].
baseTI
!= null, "_metaData[i].baseTI should not be null.");
1878
mt = _metaData[i].
baseTI
.metaType;
1946
Debug.Assert(_metaData[i].
baseTI
!= null, @"_metaData[i].baseTI should not be null.");
1947
mt = _metaData[i].
baseTI
.metaType;
1957
Debug.Assert(_metaData[i].
baseTI
!= null, @"_metaData[i].baseTI should not be null.");
1958
sqlDbType = _metaData[i].
baseTI
.type;
fx\src\data\System\Data\SqlClient\TdsParser.cs (28)
3599
if (!TryProcessTypeInfo(stateObj, col.
baseTI
, userType)) {
4788
type = md.
baseTI
.type; // the use the actual (plaintext) type
5044
byte tdsType = md.
baseTI
.tdsType;
5048
int denormalizedLength = md.
baseTI
.length;
5049
byte denormalizedScale = md.
baseTI
.scale;
5051
Debug.Assert (false == md.
baseTI
.isEncrypted, "Double encryption detected");
5186
byte[] bytes = new byte[md.
baseTI
.length];
5211
value.SetToDecimal (md.
baseTI
.precision, md.
baseTI
.scale, fPositive, bits);
5220
System.Text.Encoding encoding = md.
baseTI
.encoding;
5234
strValue = strValue.PadRight(md.
baseTI
.length);
5249
strValue = strValue.PadRight(md.
baseTI
.length / ADP.CharSize);
5280
MetaType metaType = md.
baseTI
.metaType;
9267
WriteTceUserTypeAndTypeInfo(md.
baseTI
, stateObj);
9403
switch(metadata.
baseTI
.metaType.NullableType) {
9417
if (metadata.
baseTI
.length > 0 &&
9418
actualLengthInBytes > metadata.
baseTI
.length) { // see comments agove
9419
actualLengthInBytes = metadata.
baseTI
.length;
9438
if (metadata.
baseTI
.length > 0 &&
9439
actualLengthInBytes > metadata.
baseTI
.length) {
9440
actualLengthInBytes = metadata.
baseTI
.length; // this ensure truncation!
9449
if (metadata.
baseTI
.length > 0 &&
9450
actualLengthInBytes > metadata.
baseTI
.length) { // see comments above
9451
actualLengthInBytes = metadata.
baseTI
.length;
9457
actualLengthInBytes = metadata.
baseTI
.length;
9465
metadata.
baseTI
.metaType,
9473
metadata.
baseTI
.metaType,
9474
metadata.
baseTI
.scale,