C# Class System.Data.SqlTypes.SqlDecimal

Mostra file Open project: dotnet/corefx Class Usage Examples

Public Properties

Property Type Description
MaxPrecision byte
MaxScale byte
MaxValue SqlDecimal
MinValue SqlDecimal
Null SqlDecimal

Public Methods

Method Description
Abs ( SqlDecimal n ) : SqlDecimal
Add ( SqlDecimal x, SqlDecimal y ) : SqlDecimal
AdjustScale ( SqlDecimal n, int digits, bool fRound ) : SqlDecimal
Ceiling ( SqlDecimal n ) : SqlDecimal
CompareTo ( SqlDecimal value ) : int
CompareTo ( object value ) : int
ConvertToPrecScale ( SqlDecimal n, int precision, int scale ) : SqlDecimal
Divide ( SqlDecimal x, SqlDecimal y ) : SqlDecimal
Equals ( SqlDecimal x, SqlDecimal y ) : SqlBoolean
Equals ( object value ) : bool
Floor ( SqlDecimal n ) : SqlDecimal
GetHashCode ( ) : int
GetXsdType ( XmlSchemaSet schemaSet ) : XmlQualifiedName
GreaterThan ( SqlDecimal x, SqlDecimal y ) : SqlBoolean
GreaterThanOrEqual ( SqlDecimal x, SqlDecimal y ) : SqlBoolean
LessThan ( SqlDecimal x, SqlDecimal y ) : SqlBoolean
LessThanOrEqual ( SqlDecimal x, SqlDecimal y ) : SqlBoolean
Multiply ( SqlDecimal x, SqlDecimal y ) : SqlDecimal
NotEquals ( SqlDecimal x, SqlDecimal y ) : SqlBoolean
Parse ( string s ) : SqlDecimal
Power ( SqlDecimal n, double exp ) : SqlDecimal
Round ( SqlDecimal n, int position ) : SqlDecimal
Sign ( SqlDecimal n ) : SqlInt32
SqlDecimal ( byte bPrecision, byte bScale, bool fPositive, int bits ) : System.Data.Common
SqlDecimal ( byte bPrecision, byte bScale, bool fPositive, int data1, int data2, int data3, int data4 ) : System.Data.Common
SqlDecimal ( decimal value ) : System.Data.Common
SqlDecimal ( double dVal ) : System.Data.Common
SqlDecimal ( int value ) : System.Data.Common
SqlDecimal ( long value ) : System.Data.Common
Subtract ( SqlDecimal x, SqlDecimal y ) : SqlDecimal
ToDouble ( ) : double
ToSqlBoolean ( ) : SqlBoolean
ToSqlByte ( ) : SqlByte
ToSqlDouble ( ) : SqlDouble
ToSqlInt16 ( ) : SqlInt16
ToSqlInt32 ( ) : SqlInt32
ToSqlInt64 ( ) : SqlInt64
ToSqlMoney ( ) : SqlMoney
ToSqlSingle ( ) : SqlSingle
ToSqlString ( ) : SqlString
ToString ( ) : string
Truncate ( SqlDecimal n, int position ) : SqlDecimal
operator ( ) : SqlBoolean
operator ( ) : SqlDecimal

Private Methods

Method Description
AddULong ( uint ulAdd ) : void
AdjustScale ( int digits, bool fRound ) : void
AssertValid ( ) : void
BActualPrec ( ) : byte
BGetPrecUI4 ( uint value ) : byte
BGetPrecUI8 ( uint ulU0, uint ulU1 ) : byte
BGetPrecUI8 ( ulong dwlVal ) : byte
CLenFromPrec ( byte bPrec ) : byte
CalculatePrecision ( ) : byte
ChFromDigit ( uint uiDigit ) : char
CheckValidPrecScale ( byte bPrec, byte bScale ) : void
CheckValidPrecScale ( int iPrec, int iScale ) : void
CompareNm ( SqlDecimal snumOp ) : EComparison
DWL ( uint lo, uint hi ) : ulong
DivByULong ( uint iDivisor ) : uint
FGt10_38 ( ) : bool
FGt10_38 ( uint rglData ) : bool
FZero ( ) : bool
HI ( ulong x ) : uint
IXmlSerializable ( ) : XmlSchema
IXmlSerializable ( XmlReader reader ) : void
IXmlSerializable ( XmlWriter writer ) : void
LAbsCmp ( SqlDecimal snumOp ) : int
LO ( ulong x ) : uint
MakeInteger ( bool &fFraction ) : void
MpDiv ( uint rgulU, int ciulU, uint rgulD, int ciulD, uint rgulQ, int &ciulQ, uint rgulR, int &ciulR ) : void
MpDiv1 ( uint rgulU, int &ciulU, uint iulD, uint &iulR ) : void
MpMove ( uint rgulS, int ciulS, uint rgulD, int &ciulD ) : void
MpMul1 ( uint piulD, int &ciulD, uint iulX ) : void
MpNormalize ( uint rgulU, int &ciulU ) : void
MpSet ( uint rgulD, int &ciulD, uint iulN ) : void
MultByULong ( uint uiMultiplier ) : void
Round ( SqlDecimal n, int lPosition, bool fTruncate ) : SqlDecimal
SetPositive ( ) : void
SetSignBit ( bool fPositive ) : void
SetToZero ( ) : void
SqlDecimal ( bool fNull ) : System.Data.Common
SqlDecimal ( uint rglData, byte bLen, byte bPrec, byte bScale, bool fPositive ) : System.Data.Common
StoreFromWorkingArray ( uint rguiData ) : void
ToDecimal ( ) : decimal
VerifyPrecision ( byte precision ) : bool
ZeroToMaxLen ( uint rgulData, int cUI4sCur ) : void

Method Details

Abs() public static method

public static Abs ( SqlDecimal n ) : SqlDecimal
n SqlDecimal
return SqlDecimal

Add() public static method

public static Add ( SqlDecimal x, SqlDecimal y ) : SqlDecimal
x SqlDecimal
y SqlDecimal
return SqlDecimal

AdjustScale() public static method

public static AdjustScale ( SqlDecimal n, int digits, bool fRound ) : SqlDecimal
n SqlDecimal
digits int
fRound bool
return SqlDecimal

Ceiling() public static method

public static Ceiling ( SqlDecimal n ) : SqlDecimal
n SqlDecimal
return SqlDecimal

CompareTo() public method

public CompareTo ( SqlDecimal value ) : int
value SqlDecimal
return int

CompareTo() public method

public CompareTo ( object value ) : int
value object
return int

ConvertToPrecScale() public static method

public static ConvertToPrecScale ( SqlDecimal n, int precision, int scale ) : SqlDecimal
n SqlDecimal
precision int
scale int
return SqlDecimal

Divide() public static method

public static Divide ( SqlDecimal x, SqlDecimal y ) : SqlDecimal
x SqlDecimal
y SqlDecimal
return SqlDecimal

Equals() public static method

public static Equals ( SqlDecimal x, SqlDecimal y ) : SqlBoolean
x SqlDecimal
y SqlDecimal
return SqlBoolean

Equals() public method

public Equals ( object value ) : bool
value object
return bool

Floor() public static method

public static Floor ( SqlDecimal n ) : SqlDecimal
n SqlDecimal
return SqlDecimal

GetHashCode() public method

public GetHashCode ( ) : int
return int

GetXsdType() public static method

public static GetXsdType ( XmlSchemaSet schemaSet ) : XmlQualifiedName
schemaSet XmlSchemaSet
return XmlQualifiedName

GreaterThan() public static method

public static GreaterThan ( SqlDecimal x, SqlDecimal y ) : SqlBoolean
x SqlDecimal
y SqlDecimal
return SqlBoolean

GreaterThanOrEqual() public static method

public static GreaterThanOrEqual ( SqlDecimal x, SqlDecimal y ) : SqlBoolean
x SqlDecimal
y SqlDecimal
return SqlBoolean

LessThan() public static method

public static LessThan ( SqlDecimal x, SqlDecimal y ) : SqlBoolean
x SqlDecimal
y SqlDecimal
return SqlBoolean

LessThanOrEqual() public static method

public static LessThanOrEqual ( SqlDecimal x, SqlDecimal y ) : SqlBoolean
x SqlDecimal
y SqlDecimal
return SqlBoolean

Multiply() public static method

public static Multiply ( SqlDecimal x, SqlDecimal y ) : SqlDecimal
x SqlDecimal
y SqlDecimal
return SqlDecimal

NotEquals() public static method

public static NotEquals ( SqlDecimal x, SqlDecimal y ) : SqlBoolean
x SqlDecimal
y SqlDecimal
return SqlBoolean

Parse() public static method

public static Parse ( string s ) : SqlDecimal
s string
return SqlDecimal

Power() public static method

public static Power ( SqlDecimal n, double exp ) : SqlDecimal
n SqlDecimal
exp double
return SqlDecimal

Round() public static method

public static Round ( SqlDecimal n, int position ) : SqlDecimal
n SqlDecimal
position int
return SqlDecimal

Sign() public static method

public static Sign ( SqlDecimal n ) : SqlInt32
n SqlDecimal
return SqlInt32

SqlDecimal() public method

public SqlDecimal ( byte bPrecision, byte bScale, bool fPositive, int bits ) : System.Data.Common
bPrecision byte
bScale byte
fPositive bool
bits int
return System.Data.Common

SqlDecimal() public method

public SqlDecimal ( byte bPrecision, byte bScale, bool fPositive, int data1, int data2, int data3, int data4 ) : System.Data.Common
bPrecision byte
bScale byte
fPositive bool
data1 int
data2 int
data3 int
data4 int
return System.Data.Common

SqlDecimal() public method

public SqlDecimal ( decimal value ) : System.Data.Common
value decimal
return System.Data.Common

SqlDecimal() public method

public SqlDecimal ( double dVal ) : System.Data.Common
dVal double
return System.Data.Common

SqlDecimal() public method

public SqlDecimal ( int value ) : System.Data.Common
value int
return System.Data.Common

SqlDecimal() public method

public SqlDecimal ( long value ) : System.Data.Common
value long
return System.Data.Common

Subtract() public static method

public static Subtract ( SqlDecimal x, SqlDecimal y ) : SqlDecimal
x SqlDecimal
y SqlDecimal
return SqlDecimal

ToDouble() public method

public ToDouble ( ) : double
return double

ToSqlBoolean() public method

public ToSqlBoolean ( ) : SqlBoolean
return SqlBoolean

ToSqlByte() public method

public ToSqlByte ( ) : SqlByte
return SqlByte

ToSqlDouble() public method

public ToSqlDouble ( ) : SqlDouble
return SqlDouble

ToSqlInt16() public method

public ToSqlInt16 ( ) : SqlInt16
return SqlInt16

ToSqlInt32() public method

public ToSqlInt32 ( ) : SqlInt32
return SqlInt32

ToSqlInt64() public method

public ToSqlInt64 ( ) : SqlInt64
return SqlInt64

ToSqlMoney() public method

public ToSqlMoney ( ) : SqlMoney
return SqlMoney

ToSqlSingle() public method

public ToSqlSingle ( ) : SqlSingle
return SqlSingle

ToSqlString() public method

public ToSqlString ( ) : SqlString
return SqlString

ToString() public method

public ToString ( ) : string
return string

Truncate() public static method

public static Truncate ( SqlDecimal n, int position ) : SqlDecimal
n SqlDecimal
position int
return SqlDecimal

operator() public static method

public static operator ( ) : SqlBoolean
return SqlBoolean

operator() public static method

public static operator ( ) : SqlDecimal
return SqlDecimal

Property Details

MaxPrecision public_oe static_oe property

public static byte MaxPrecision
return byte

MaxScale public_oe static_oe property

public static byte MaxScale
return byte

MaxValue public_oe static_oe property

public static SqlDecimal,System.Data.SqlTypes MaxValue
return SqlDecimal

MinValue public_oe static_oe property

public static SqlDecimal,System.Data.SqlTypes MinValue
return SqlDecimal

Null public_oe static_oe property

public static SqlDecimal,System.Data.SqlTypes Null
return SqlDecimal