31 references to Scale
System.Data (31)
fx\src\data\Microsoft\SqlServer\Server\MetadataUtilsSmi.cs (7)
491source.Scale, 505source.Scale, 576firstMd.Scale == secondMd.Scale && 681scale = SmiMetaData.DefaultTime.Scale; 890scale = SmiMetaData.DefaultDecimal.Scale; 910scale = SmiMetaData.DefaultTime.Scale; 920scale = SmiMetaData.DefaultTime.Scale;
fx\src\data\Microsoft\SqlServer\Server\SmiMetaData.cs (8)
138DefaultChar_NoCollation.Scale, 152DefaultNChar_NoCollation.Scale, 166DefaultNText_NoCollation.Scale, 180DefaultNVarChar_NoCollation.Scale, 194DefaultText_NoCollation.Scale, 208DefaultVarChar_NoCollation.Scale, 743_scale = smdDflt.Scale; 788Scale,
fx\src\data\Microsoft\SqlServer\Server\SqlDataRecord.cs (1)
33SmiMetaData.DefaultNVarChar_NoCollation.Scale,
fx\src\data\Microsoft\SqlServer\Server\ValueUtilsSmi.cs (3)
1275targetBuffer.SetToDateTime2(GetDateTime_Unchecked(sink, getters, ordinal), metaData.Scale); 1278targetBuffer.SetToTime(GetTimeSpan_Unchecked(sink, getters, ordinal), metaData.Scale); 1281targetBuffer.SetToDateTimeOffset(GetDateTimeOffset_Unchecked(sink, getters, ordinal), metaData.Scale);
fx\src\data\System\Data\SqlClient\SqlDataReaderSmi.cs (1)
632schemaRow[Scale] = colMetaData.Scale;
fx\src\data\System\Data\SqlClient\TdsParser.cs (6)
6142stateObj.WriteByte(dateTime2MetaData.Scale); //scale property 6143WriteDateTime2(value, dateTime2MetaData.Scale, (int)(dateTime2MetaData.MaxLength), stateObj); 8878stateObj.WriteByte(metaData.Scale); 9000stateObj.WriteByte(metaData.Scale); 9004stateObj.WriteByte(metaData.Scale); 9008stateObj.WriteByte(metaData.Scale);
fx\src\data\System\Data\SqlClient\TdsValueSetter.cs (5)
473_stateObj.Parser.WriteSqlDecimal(SqlDecimal.ConvertToPrecScale(value, _metaData.Precision, _metaData.Scale), _stateObj); 518Int64 time = value.TimeOfDay.Ticks / TdsEnums.TICKS_FROM_SCALE[_metaData.Scale]; 552scale = SmiMetaData.DefaultTime.Scale; 557scale = _metaData.Scale; 580scale = _metaData.Scale;