DekGenius.com
[ Team LiB ] Previous Section Next Section

SqlInt64

System.Data.SqlTypes (system.data.dll) struct

A structure that represents a 64-bit signed integer that can contain a value ranging from -263 (-9223372036854775808) to 263-1 (9223372036854775807). It maps to the SQL Server bigint data type.

public struct SqlInt64 : INullable, IComparable {
// Public Constructors
   public SqlInt64( long value);  
// Public Static Fields
   public static readonly SqlInt64 MaxValue;          // =9223372036854775807
   public static readonly SqlInt64 MinValue;          // =-9223372036854775808
   public static readonly SqlInt64 Null;              // =Null
   public static readonly SqlInt64 Zero;              // =0
// Public Instance Properties
   public bool IsNull{get; }                          // implements INullable
   public long Value{get; } 
// Public Static Methods
   public static SqlInt64 Add( SqlInt64 x, SqlInt64 y);  
   public static SqlInt64 BitwiseAnd(SqlInt64 x, SqlInt64 y);  
   public static SqlInt64 BitwiseOr( SqlInt64 x, SqlInt64 y);  
   public static SqlInt64 Divide( SqlInt64 x, SqlInt64 y);  
   public static SqlBoolean Equals( SqlInt64 x, SqlInt64 y);  
   public static SqlBoolean GreaterThan(SqlInt64 x, SqlInt64 y);
   public static SqlBoolean GreaterThanOrEqual(SqlInt64 x, SqlInt64 y);
   public static SqlBoolean LessThan(SqlInt64 x, SqlInt64 y);  
   public static SqlBoolean LessThanOrEqual(SqlInt64 x, SqlInt64 y);
   public static SqlInt64 Mod( SqlInt64 x, SqlInt64 y);  
   public static SqlInt64 Multiply( SqlInt64 x, SqlInt64 y);  
   public static SqlBoolean NotEquals(SqlInt64 x, SqlInt64 y);
   public static SqlInt64 OnesComplement( SqlInt64 x);  
   public static SqlInt64 operator &(SqlInt64 x, SqlInt64 y);
   public static SqlInt64 operator |(SqlInt64 x, SqlInt64 y);
   public static SqlInt64 operator ^(SqlInt64 x, SqlInt64 y);
   public static SqlInt64 operator ~(SqlInt64 x);
   public static SqlInt64 Parse( string s);  
   public static SqlInt64 Subtract( SqlInt64 x, SqlInt64 y);  
   public static SqlInt64 Xor( SqlInt64 x, SqlInt64 y);  
   public static SqlInt64 operator %(SqlInt64 x, SqlInt64 y);
   public static SqlInt64 operator *(SqlInt64 x, SqlInt64 y);
   public static SqlInt64 operator /(SqlInt64 x, SqlInt64 y);
   public static SqlInt64 operator -( SqlInt64 x);  
   public static SqlInt64 operator -(SqlInt64 x, SqlInt64 y);
   public static SqlInt64 operator +(SqlInt64 x, SqlInt64 y);
   public static SqlBoolean operator !=(SqlInt64 x, SqlInt64 y);
   public static SqlBoolean operator <(SqlInt64 x, SqlInt64 y);
   public static SqlBoolean operator <=(SqlInt64 x, SqlInt64 y);
   public static SqlBoolean operator ==(SqlInt64 x, SqlInt64 y);
   public static SqlBoolean operator >(SqlInt64 x, SqlInt64 y);
   public static SqlBoolean operator >=(SqlInt64 x, SqlInt64 y);
   public static explicit operator long( SqlInt64 x);  
   public static explicit operator SqlInt64( SqlBoolean x);  
   public static explicit operator SqlInt64( SqlDecimal x);  
   public static explicit operator SqlInt64( SqlDouble x);  
   public static explicit operator SqlInt64( SqlMoney x);  
   public static explicit operator SqlInt64( SqlSingle x);  
   public static explicit operator SqlInt64( SqlString x);  
   public static implicit operator SqlInt64( long x);  
   public static implicit operator SqlInt64( SqlByte x);  
   public static implicit operator SqlInt64( SqlInt16 x);  
   public static implicit operator SqlInt64( SqlInt32 x);  
// Public Instance Methods
   public int CompareTo( object value);            // implements IComparable
   public override bool Equals( object value);     // overrides ValueType
   public override int GetHashCode(  );               // overrides ValueType
   public SqlBoolean ToSqlBoolean(  );  
   public SqlByte ToSqlByte(  );  
   public SqlDecimal ToSqlDecimal(  );  
   public SqlDouble ToSqlDouble(  );  
   public SqlInt16 ToSqlInt16(  );  
   public SqlInt32 ToSqlInt32(  );  
   public SqlMoney ToSqlMoney(  );  
   public SqlSingle ToSqlSingle(  );  
   public SqlString ToSqlString(  );  
   public override string ToString(  );               // overrides ValueType
}

Hierarchy

System.Object figs/U2192.gif System.ValueType figs/U2192.gif SqlInt64(INullable, System.IComparable)

Returned By

System.Data.SqlClient.SqlDataReader.GetSqlInt64( ) , SqlBoolean.ToSqlInt64( ) , SqlByte.ToSqlInt64( ) , SqlDecimal.ToSqlInt64( ) , SqlDouble.ToSqlInt64( ) , SqlInt16.ToSqlInt64( ) , SqlInt32.ToSqlInt64( ) , SqlMoney.ToSqlInt64( ) , SqlSingle.ToSqlInt64( ) , SqlString.ToSqlInt64( )

    [ Team LiB ] Previous Section Next Section