Name

SqlMoney

Synopsis

A structure that represents a currency value ranging from -263 (-922,337,203,685,477.5808) to 263-1 (922,337,203,685,477.5807) with an accuracy to a ten-thousandth of a unit. It maps to the SQL Server money data type.

public struct SqlMoney : INullable, IComparable {

// Public Constructors

   public SqlMoney(decimal value);  

   public SqlMoney(double value);  

   public SqlMoney(int value);  

   public SqlMoney(long value);  

// Public Static Fields

   public static readonly SqlMoney MaxValue;          // =922337203685477.5807

   public static readonly SqlMoney MinValue;          // =-922337203685477.5808

   public static readonly SqlMoney Null;              // =Null

   public static readonly SqlMoney Zero;              // =0

                  // Public Instance Properties

   public bool IsNull{get; }                          // implements INullable

   public decimal Value{get; } 

// Public Static Methods

   public static SqlMoney Add(SqlMoney x, SqlMoney y);  

   public static SqlMoney Divide(SqlMoney x, SqlMoney y);  

   public static SqlBoolean Equals(SqlMoney x, SqlMoney y);  

   public static SqlBoolean GreaterThan(SqlMoney x, SqlMoney y);

   public static SqlBoolean GreaterThanOrEqual(SqlMoney x, SqlMoney y);

   public static SqlBoolean LessThan(SqlMoney x, SqlMoney y);  

   public static SqlBoolean LessThanOrEqual(SqlMoney x, SqlMoney y);

   public static SqlMoney Multiply(SqlMoney x, SqlMoney y);  

   public static SqlBoolean NotEquals(SqlMoney x, SqlMoney y);

   public static SqlMoney Parse(string s);  

   public static SqlMoney Subtract(SqlMoney x, SqlMoney y);  

   public static SqlMoney operator *(SqlMoney x, SqlMoney ...

Get ADO.NET in a Nutshell now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.