fx\src\data\Microsoft\SqlServer\Server\ValueUtilsSmi.cs (11)
587internal static SqlMoney GetSqlMoney( SmiEventSink_Default sink, ITypedGettersV3 getters, int ordinal, SmiMetaData metaData ) {
588SqlMoney result;
591result = SqlMoney.Null;
602result = (SqlMoney) obj;
1093SqlMoney.Null, // SqlDbType.Money
1101SqlMoney.Null, // SqlDbType.SmallMoney
1528internal static void SetSqlMoney( SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal, SmiMetaData metaData, SqlMoney value ) {
1625case ExtendedClrTypeCode.SqlMoney: SetSqlMoney_Checked( sink, setters, ordinal, metaData, (SqlMoney) value ); break;
2463private static void SetSqlMoney_Checked(SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal, SmiMetaData metaData, SqlMoney value) {
3161private static SqlMoney GetSqlMoney_Unchecked( SmiEventSink_Default sink, ITypedGettersV3 getters, int ordinal ) {
3548private static void SetSqlMoney_Unchecked( SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal, SmiMetaData metaData, SqlMoney value ) {
fx\src\data\System\Data\SqlClient\SqlEnums.cs (7)
326else if (dataType == typeof(SqlMoney))
401else if (sqlType == typeof(SqlMoney)) return SqlMoney.Null;
454else if (sqlVal is SqlMoney)
455comVal = ((SqlMoney)sqlVal).Value;
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\SQLTypes\SQLMoney.cs (94)
79/// Initializes a new instance of the <see cref='System.Data.SqlTypes.SqlMoney'/> class with the value given.
89/// Initializes a new instance of the <see cref='System.Data.SqlTypes.SqlMoney'/> class with the value given.
101/// Initializes a new instance of the <see cref='System.Data.SqlTypes.SqlMoney'/> class with the value given.
125/// Initializes a new instance of the <see cref='System.Data.SqlTypes.SqlMoney'/> class with the value given.
135/// Gets a value indicating whether the <see cref='System.Data.SqlTypes.SqlMoney.Value'/>
146/// Gets or sets the monetary value of an instance of the <see cref='System.Data.SqlTypes.SqlMoney'/>
223public static implicit operator SqlMoney(Decimal x) {
228public static explicit operator SqlMoney(double x) {
233public static implicit operator SqlMoney(long x) {
241public static explicit operator Decimal(SqlMoney x) {
260public static SqlMoney Parse(String s) {
265SqlMoney money;
277money = SqlMoney.Null;
293public static SqlMoney operator -(SqlMoney x) {
308public static SqlMoney operator +(SqlMoney x, SqlMoney y) {
320public static SqlMoney operator -(SqlMoney x, SqlMoney y) {
332public static SqlMoney operator *(SqlMoney x, SqlMoney y) {
340public static SqlMoney operator /(SqlMoney x, SqlMoney y) {
352public static explicit operator SqlMoney(SqlBoolean x) {
360public static implicit operator SqlMoney(SqlByte x) {
368public static implicit operator SqlMoney(SqlInt16 x) {
376public static implicit operator SqlMoney(SqlInt32 x) {
384public static implicit operator SqlMoney(SqlInt64 x) {
395public static explicit operator SqlMoney(SqlSingle x) {
403public static explicit operator SqlMoney(SqlDouble x) {
411public static explicit operator SqlMoney(SqlDecimal x) {
412return x.IsNull ? SqlMoney.Null : new SqlMoney(x.Value);
420public static explicit operator SqlMoney(SqlString x) {
431public static SqlBoolean operator==(SqlMoney x, SqlMoney y) {
438public static SqlBoolean operator!=(SqlMoney x, SqlMoney y) {
445public static SqlBoolean operator<(SqlMoney x, SqlMoney y) {
452public static SqlBoolean operator>(SqlMoney x, SqlMoney y) {
459public static SqlBoolean operator<=(SqlMoney x, SqlMoney y) {
466public static SqlBoolean operator>=(SqlMoney x, SqlMoney y) {
476public static SqlMoney Add(SqlMoney x, SqlMoney y) {
480public static SqlMoney Subtract(SqlMoney x, SqlMoney y) {
485public static SqlMoney Multiply(SqlMoney x, SqlMoney y) {
490public static SqlMoney Divide(SqlMoney x, SqlMoney y) {
495public static SqlBoolean Equals(SqlMoney x, SqlMoney y) {
500public static SqlBoolean NotEquals(SqlMoney x, SqlMoney y) {
505public static SqlBoolean LessThan(SqlMoney x, SqlMoney y) {
510public static SqlBoolean GreaterThan(SqlMoney x, SqlMoney y) {
515public static SqlBoolean LessThanOrEqual(SqlMoney x, SqlMoney y) {
520public static SqlBoolean GreaterThanOrEqual(SqlMoney x, SqlMoney y) {
574if (value is SqlMoney) {
575SqlMoney i = (SqlMoney)value;
579throw ADP.WrongType(value.GetType(), typeof(SqlMoney));
582public int CompareTo(SqlMoney value) {
600if (!(value is SqlMoney)) {
604SqlMoney i = (SqlMoney)value;
637SqlMoney money = new SqlMoney(XmlConvert.ToDecimal(reader.ReadElementString()));
665/// the <see cref='System.Data.SqlTypes.SqlMoney.Value'/> property of an instance of
666/// the <see cref='System.Data.SqlTypes.SqlMoney'/>class.
669public static readonly SqlMoney Null = new SqlMoney(true);
673/// Represents the zero value that can be assigned to the <see cref='System.Data.SqlTypes.SqlMoney.Value'/> property of an instance of
674/// the <see cref='System.Data.SqlTypes.SqlMoney'/> class.
677public static readonly SqlMoney Zero = new SqlMoney(0);
682/// to <see cref='System.Data.SqlTypes.SqlMoney.Value'/> property of an instance of
683/// the <see cref='System.Data.SqlTypes.SqlMoney'/>
687public static readonly SqlMoney MinValue = new SqlMoney(unchecked((long)0x8000000000000000L), 0);
692/// the <see cref='System.Data.SqlTypes.SqlMoney.Value'/> property of an instance of
693/// the <see cref='System.Data.SqlTypes.SqlMoney'/>
697public static readonly SqlMoney MaxValue = new SqlMoney(0x7FFFFFFFFFFFFFFFL, 0);