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