fx\src\data\Microsoft\SqlServer\Server\ValueUtilsSmi.cs (7)
223internal static Decimal GetDecimal( SmiEventSink_Default sink, ITypedGettersV3 getters, int ordinal, SmiMetaData metaData ) {
232return (Decimal) result;
1416internal static void SetDecimal( SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal, SmiMetaData metaData, Decimal value ) {
1600case ExtendedClrTypeCode.Decimal: SetDecimal_PossiblyMoney( sink, setters, ordinal, metaData, (Decimal) value ); break;
2393private static Decimal GetDecimal_PossiblyMoney(SmiEventSink_Default sink, ITypedGettersV3 getters, int ordinal, SmiMetaData metaData) {
2405private static void SetDecimal_PossiblyMoney(SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal, SmiMetaData metaData, Decimal value) {
3311private static void SetDecimal_Unchecked( SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal, Decimal value ) {
fx\src\data\System\Data\Odbc\Odbc32.cs (2)
783static private readonly TypeMap _Decimal = new TypeMap(OdbcType.Decimal, DbType.Decimal, typeof(Decimal), ODBC32.SQL_TYPE.DECIMAL, ODBC32.SQL_C.NUMERIC, ODBC32.SQL_C.NUMERIC, 19, ADP.DecimalMaxPrecision28, false);
790static private readonly TypeMap _Numeric = new TypeMap(OdbcType.Numeric, DbType.Decimal, typeof(Decimal), ODBC32.SQL_TYPE.NUMERIC, ODBC32.SQL_C.NUMERIC, ODBC32.SQL_C.NUMERIC, 19, ADP.DecimalMaxPrecision28, false);
fx\src\data\System\Data\OleDb\OLEDB_Enum.cs (5)
162static private readonly NativeDBType D_Currency = new NativeDBType( 19, 8, true, false, OleDbType.Currency, NativeDBType.CY, S_CY, typeof(System.Decimal), NativeDBType.CY, DbType.Currency ); // 4 - integer8
167static private readonly NativeDBType D_Decimal = new NativeDBType( 28, 16, true, false, OleDbType.Decimal, NativeDBType.DECIMAL, S_DECIMAL, typeof(System.Decimal), NativeDBType.DECIMAL, DbType.Decimal ); // 9 - (tagDec) // MDAC 68447
179static private readonly NativeDBType D_Numeric = new NativeDBType( 28, 19, true, false, OleDbType.Numeric, NativeDBType.NUMERIC, S_NUMERIC, typeof(System.Decimal), NativeDBType.NUMERIC, DbType.Decimal ); // 21 - (tagDB_Numeric)
187static private readonly NativeDBType D_UnsignedBigInt = new NativeDBType( 20, 8, true, false, OleDbType.UnsignedBigInt, NativeDBType.UI8, S_UI8, typeof(System.Decimal), NativeDBType.UI8, DbType.UInt64 ); // 28 - unsigned integer8
191static private readonly NativeDBType D_VarNumeric = new NativeDBType( 255, 16, true, false, OleDbType.VarNumeric, NativeDBType.VARNUMERIC, S_VARNUMERIC, typeof(System.Decimal), NativeDBType.DECIMAL, DbType.VarNumeric); // 32 - (unicode pointer)
fx\src\data\System\Data\SqlClient\SqlEnums.cs (5)
518else if (comVal is Decimal)
519sqlVal = new SqlDecimal((Decimal)comVal);
785(38, 4, 17, true, false, false, TdsEnums.SQLNUMERICN, TdsEnums.SQLNUMERICN, MetaTypeName.DECIMAL, typeof(System.Decimal), typeof(SqlDecimal), SqlDbType.Decimal, DbType.Decimal, 2);
797(19, 255, 8, true, false, false, TdsEnums.SQLMONEY, TdsEnums.SQLMONEYN, MetaTypeName.MONEY, typeof(System.Decimal), typeof(SqlMoney), SqlDbType.Money, DbType.Currency, 0);
800(10, 255, 4, true, false, false, TdsEnums.SQLMONEY4, TdsEnums.SQLMONEYN, MetaTypeName.SMALLMONEY, typeof(System.Decimal), typeof(SqlMoney), SqlDbType.SmallMoney, DbType.Currency, 0);
fx\src\data\System\Data\SqlClient\TdsParser.cs (24)
5937WriteCurrency((Decimal)value, 8, stateObj);
5944stateObj.WriteByte((byte)((Decimal.GetBits((Decimal)value)[3] & 0x00ff0000) >> 0x10)); // propbytes: scale
5945WriteDecimal((Decimal)value, stateObj);
6098WriteCurrency((Decimal)value, 8, stateObj);
6106stateObj.WriteByte((byte)((Decimal.GetBits((Decimal)value)[3] & 0x00ff0000) >> 0x10)); // propbytes: scale
6107WriteDecimal((Decimal)value, stateObj);
6160int[] bits = Decimal.GetBits(value.Value);
6170Decimal decimalValue = value.Value;
6185private byte[] SerializeCurrency(Decimal value, int length, TdsParserStateObject stateObj) {
6187int[] bits = Decimal.GetBits(m.Value);
6224private void WriteCurrency(Decimal value, int length, TdsParserStateObject stateObj) {
6226int[] bits = Decimal.GetBits(m.Value);
6392int oldScale = (Decimal.GetBits(value)[3] & 0x00ff0000) >> 0x10;
6447int[] decimalBits = Decimal.GetBits(value);
6496stateObj._decimalBits = Decimal.GetBits(value);
8228value = AdjustDecimalScale((Decimal)value, scale);
8230SqlDecimal sqlValue = new SqlDecimal((Decimal)value);
8235throw ADP.ParameterValueOutOfRange((Decimal)value);
10649WriteDecimal((Decimal)value, stateObj);
10672WriteCurrency((Decimal)value, type.FixedLength, stateObj);
10837return SerializeDecimal((Decimal)value, stateObj);
10882return SerializeCurrency((Decimal)value, type.FixedLength, stateObj);