<PackageReference Include="System.Data.SqlClient" Version="4.7.0-preview4.19212.13" />

SqlMoney

public struct SqlMoney : INullable, IComparable
Represents a currency value ranging from -2 63 (or -922,337,203,685,477.5808) to 2 63 -1 (or +922,337,203,685,477.5807) with an accuracy to a ten-thousandth of currency unit to be stored in or retrieved from a database.
public static readonly SqlMoney MaxValue

Represents the maximum value that can be assigned to the Value property of an instance of the SqlMoney class.

public static readonly SqlMoney MinValue

Represents the minimum value that can be assigned to Value property of an instance of the SqlMoney class.

public static readonly SqlMoney Null

Represents a DBNull that can be assigned to this instance of the SqlMoney class.

public static readonly SqlMoney Zero

Represents the zero value that can be assigned to the Value property of an instance of the SqlMoney class.

public bool IsNull { get; }

Returns a Boolean value that indicates whether this SqlMoney structure is null.

public decimal Value { get; }

Gets the monetary value of an instance of the SqlMoney structure. This property is read-only.

public SqlMoney(decimal value)

Initializes a new instance of the SqlMoney class with the specified Decimal value.

public SqlMoney(double value)

Initializes a new instance of the SqlMoney class with specified double value.

public SqlMoney(int value)

Initializes a new instance of the SqlMoney class with the specified integer value.

public SqlMoney(long value)

Initializes a new instance of the SqlMoney class with the specified long integer value.

public static SqlMoney Add(SqlMoney x, SqlMoney y)

Calculates the sum of the two SqlMoney parameters.

public static SqlMoney Divide(SqlMoney x, SqlMoney y)

The division operator divides the first SqlMoney parameter by the second.

public static SqlBoolean Equals(SqlMoney x, SqlMoney y)

Performs a logical comparison of the two SqlMoney parameters to determine whether they are equal.

Performs a logical comparison of the two SqlMoney parameters to determine whether the first is greater than the second.

Performs a logical comparison of the two SqlMoney parameters to determine whether the first is greater than or equal to the second.

public static SqlBoolean LessThan(SqlMoney x, SqlMoney y)

Performs a logical comparison of the two SqlMoney parameters to determine whether the first is less than the second.

Performs a logical comparison of the two SqlMoney parameters to determine whether the first is less than or equal to the second.

public static SqlMoney Multiply(SqlMoney x, SqlMoney y)

The multiplicaion operator calculates the product of the two SqlMoney parameters.

public static SqlBoolean NotEquals(SqlMoney x, SqlMoney y)

Performs a logical comparison of the two SqlMoney parameters to determine whether they are not equal.

public static SqlMoney op_Addition(SqlMoney x, SqlMoney y)

Calculates the sum of the two SqlMoney parameters.

public static SqlMoney op_Division(SqlMoney x, SqlMoney y)

The division operator divides the first SqlMoney parameter by the second.

Performs a logical comparison of the two SqlMoney parameters to determine whether they are equal.

public static SqlMoney op_Explicit(SqlBoolean x)

This implicit operator converts the supplied SqlBoolean parameter to SqlMoney.

public static SqlMoney op_Explicit(SqlDecimal x)

This operator converts the supplied SqlDecimal parameter to SqlMoney.

public static SqlMoney op_Explicit(SqlDouble x)

This operator converts the supplied SqlDouble parameter to SqlMoney.

public static decimal op_Explicit(SqlMoney x)

Converts the specified SqlMoney structure to Decimal.

public static SqlMoney op_Explicit(SqlSingle x)

This operator converts the supplied SqlSingle parameter to SqlMoney.

public static SqlMoney op_Explicit(SqlString x)

This operator converts the SqlString parameter to SqlMoney.

public static SqlMoney op_Explicit(double x)

This implicit operator converts the supplied SqlDouble parameter to SqlMoney.

Performs a logical comparison of the two SqlMoney parameters to determine whether the first is greater than the second.

Performs a logical comparison of the two SqlMoney parameters to determine whether the first is greater than or equal to the second.

public static SqlMoney op_Implicit(SqlByte x)

This implicit operator converts the supplied SqlByte parameter to SqlMoney.

public static SqlMoney op_Implicit(SqlInt16 x)

This implicit operator converts the supplied SqlInt16 parameter to SqlMoney.

public static SqlMoney op_Implicit(SqlInt32 x)

This implicit operator converts the supplied SqlInt32 parameter to SqlMoney.

public static SqlMoney op_Implicit(SqlInt64 x)

This implicit operator converts the supplied SqlInt64 parameter to SqlMoney.

public static SqlMoney op_Implicit(decimal x)

Converts the Decimal parameter to SqlMoney.

public static SqlMoney op_Implicit(long x)

This implicit operator converts the supplied Int64 parameter to SqlMoney.

Performs a logical comparison of the two SqlMoney parameters to determine whether they are not equal.

Performs a logical comparison of the two SqlMoney parameters to determine whether the first is less than the second.

Performs a logical comparison of the two SqlMoney parameters to determine whether the first is less than or equal to the second.

public static SqlMoney op_Multiply(SqlMoney x, SqlMoney y)

The multiplicaion operator calculates the product of the two SqlMoney parameters.

The subtraction operator subtracts the second SqlMoney parameter from the first.

The unary minus operator negates the SqlMoney parameter.

public static SqlMoney Parse(string s)

Converts the String representation of a number to its SqlMoney equivalent.

public static SqlMoney Subtract(SqlMoney x, SqlMoney y)

The subtraction operator subtracts the second SqlMoney parameter from the first.

public int CompareTo(SqlMoney value)

Compares this SqlMoney instance to the supplied SqlMoney and returns an indication of their relative values.

public int CompareTo(object value)

Compares this SqlMoney instance to the supplied Object and returns an indication of their relative values.

public decimal ToDecimal()

Converts the Value of this instance of SqlMoney as a Decimal structure.

public double ToDouble()

Converts this SqlMoney structure to a Double.

public int ToInt32()

Converts this SqlMoney structure to an Int32.

public long ToInt64()

Converts the Value of this SqlMoney structure to an Int64.

Converts this SqlMoney structure to SqlBoolean.

public SqlByte ToSqlByte()

Converts this SqlMoney structure to SqlByte.

Converts this SqlMoney structure to SqlDecimal.

Converts this SqlMoney structure to SqlDouble.

Converts this SqlMoney structure to SqlInt16.

Converts this SqlMoney structure to SqlInt32.

Converts this SqlMoney structure to SqlInt64.

Converts this SqlMoney structure to SqlSingle.

Converts this SqlMoney structure to SqlString.