31 instantiations of SqlInt64
System.Data (31)
fx\src\data\Microsoft\SqlServer\Server\ValueUtilsSmi.cs (2)
573result = new SqlInt64( temp ); 996result = new SqlInt64( GetInt64_Unchecked( sink, getters, ordinal ) );
fx\src\data\System\Data\Common\SQLConvert.cs (1)
646return new SqlInt64(XmlConvert.ToInt64((string)value));
fx\src\data\System\Data\Common\SQLTypes\SQLInt64Storage.cs (1)
190SqlInt64 newValue = new SqlInt64();
fx\src\data\System\Data\SqlClient\SqlBuffer.cs (1)
590return new SqlInt64(_value._int64);
fx\src\data\System\Data\SqlClient\SqlEnums.cs (1)
517sqlVal = new SqlInt64((Int64)comVal);
fx\src\data\System\Data\SQLTypes\SQLInt64.cs (25)
95return new SqlInt64(x); 120return new SqlInt64(Int64.Parse(s, (IFormatProvider)null)); 129return x.IsNull ? Null : new SqlInt64(-x.m_value); 136return x.IsNull ? Null : new SqlInt64(~x.m_value); 154return new SqlInt64(lResult); 168return new SqlInt64(lResult); 229return new SqlInt64(lResult); 243return new SqlInt64(x.m_value / y.m_value); 260return new SqlInt64(x.m_value % y.m_value); 271return(x.IsNull || y.IsNull) ? Null : new SqlInt64(x.m_value & y.m_value); 278return(x.IsNull || y.IsNull) ? Null : new SqlInt64(x.m_value | y.m_value); 285return(x.IsNull || y.IsNull) ? Null : new SqlInt64(x.m_value ^ y.m_value); 296return x.IsNull ? Null : new SqlInt64((long)x.ByteValue); 304return x.IsNull ? Null : new SqlInt64((long)(x.Value)); 312return x.IsNull ? Null : new SqlInt64((long)(x.Value)); 320return x.IsNull ? Null : new SqlInt64((long)(x.Value)); 338return new SqlInt64((long)value); 353return new SqlInt64((long)value); 361return x.IsNull ? Null : new SqlInt64(x.ToInt64()); 397return new SqlInt64(llRetVal); 406return x.IsNull ? Null : new SqlInt64(Int64.Parse(x.Value, (IFormatProvider)null)); 678public static readonly SqlInt64 Null = new SqlInt64(true); 682public static readonly SqlInt64 Zero = new SqlInt64(0); 686public static readonly SqlInt64 MinValue = new SqlInt64(Int64.MinValue); 690public static readonly SqlInt64 MaxValue = new SqlInt64(Int64.MaxValue);
218 references to SqlInt64
System.Data (218)
fx\src\data\Microsoft\SqlServer\Server\ITypedGetters.cs (1)
61SqlInt64 GetSqlInt64( int ordinal );
fx\src\data\Microsoft\SqlServer\Server\ITypedSetters.cs (1)
60void SetSqlInt64( int ordinal, SqlInt64 value );
fx\src\data\Microsoft\SqlServer\Server\MetadataUtilsSmi.cs (2)
122ht.Add( typeof( SqlInt64 ), ExtendedClrTypeCode.SqlInt64 ); 206else if (value.GetType() == typeof(SqlInt64))
fx\src\data\Microsoft\SqlServer\Server\SmiRecordBuffer.cs (2)
292public virtual SqlInt64 GetSqlInt64( int ordinal ) { 645public virtual void SetSqlInt64( int ordinal, SqlInt64 value ) {
fx\src\data\Microsoft\SqlServer\Server\SmiRequestExecutor.cs (2)
350public virtual SqlInt64 GetSqlInt64( int ordinal ) { 703public virtual void SetSqlInt64( int ordinal, SqlInt64 value ) {
fx\src\data\Microsoft\SqlServer\Server\SqlDataRecord.cs (2)
313public virtual SqlInt64 GetSqlInt64(int ordinal) { 513public virtual void SetSqlInt64(int ordinal, SqlInt64 value) {
fx\src\data\Microsoft\SqlServer\Server\ValueUtilsSmi.cs (8)
565internal static SqlInt64 GetSqlInt64( SmiEventSink_Default sink, ITypedGettersV3 getters, int ordinal, SmiMetaData metaData ) { 566SqlInt64 result; 569result = SqlInt64.Null; 581result = (SqlInt64) obj; 1084SqlInt64.Null, // SqlDbType.BigInt 1522internal static void SetSqlInt64( SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal, SmiMetaData metaData, SqlInt64 value ) { 1624case ExtendedClrTypeCode.SqlInt64: SetSqlInt64_Unchecked( sink, setters, ordinal, (SqlInt64) value ); break; 3538private static void SetSqlInt64_Unchecked( SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal, SqlInt64 value ) {
fx\src\data\System\Data\ColumnTypeConverter.cs (1)
46typeof(SqlInt64),
fx\src\data\System\Data\Common\DataStorage.cs (1)
110typeof(SqlInt64),
fx\src\data\System\Data\Common\SQLConvert.cs (8)
85public static SqlInt64 ConvertToSqlInt64(object value) { 94return (SqlInt64) value; 114throw ExceptionBuilder.ConvertFailed(valueType, typeof(SqlInt64)); 132return (SqlInt64) value; 180return (SqlInt64) value; 222return (SqlInt64) value; 266return (SqlInt64) value; 735return XmlConvert.ToString(((SqlInt64)value).Value);
fx\src\data\System\Data\Common\SQLTypes\SQLByteStorage.cs (3)
33SqlInt64 sum = 0; 46SqlInt64 meanSum = 0; 57checked {mean = (meanSum / (SqlInt64)meanCount).ToSqlByte();}
fx\src\data\System\Data\Common\SQLTypes\SQLInt16Storage.cs (3)
33SqlInt64 sum = 0; 46SqlInt64 meanSum = 0; 57checked {mean = (meanSum /(SqlInt64) meanCount).ToSqlInt16();}
fx\src\data\System\Data\Common\SQLTypes\SQLInt32Storage.cs (3)
33SqlInt64 sum = 0; 46SqlInt64 meanSum = 0; 57checked {mean = (meanSum / (SqlInt64) meanCount).ToSqlInt32();}
fx\src\data\System\Data\Common\SQLTypes\SQLInt64Storage.cs (23)
22private SqlInt64[] values; 25: base(column, typeof(SqlInt64), SqlInt64.Null, SqlInt64.Null, StorageType.SqlInt64) { 33SqlInt64 sum = 0; 56SqlInt64 mean = 0; 99SqlInt64 min = SqlInt64.MaxValue; 104if ((SqlInt64.LessThan(values[record], min)).IsTrue) 114SqlInt64 max = SqlInt64.MinValue; 120if ((SqlInt64.GreaterThan(values[record], max)).IsTrue) 145throw ExprException.Overflow(typeof(SqlInt64)); 155return values[recordNo].CompareTo((SqlInt64)value); 182SqlInt64[] newValues = new SqlInt64[capacity]; 190SqlInt64 newValue = new SqlInt64(); 199return ((SqlInt64)tmp); 204Debug.Assert((value.GetType() == typeof(SqlInt64)), "wrong input type"); 215return new SqlInt64[recordCount]; 219SqlInt64[] typedStore = (SqlInt64[]) store; 225values = (SqlInt64[]) store;
fx\src\data\System\Data\DataColumn.cs (1)
1563(dataType == typeof(SqlInt32)) || (dataType == typeof(SqlInt64)) || (dataType == typeof(SqlInt16)) || (dataType == typeof(SqlDecimal)));
fx\src\data\System\Data\Filter\BinaryNode.cs (2)
788SqlInt64 res = (SqlConvert.ConvertToSqlInt64(vLeft) % SqlConvert.ConvertToSqlInt64(vRight)); 800value = (SqlInt64) res;
fx\src\data\System\Data\Filter\UnaryNode.cs (1)
101value = -(SqlInt64) vl;
fx\src\data\System\Data\Sql\SqlMetaData.cs (5)
824public SqlInt64 Adjust(SqlInt64 value) { 1092else if (dataType == typeof(SqlInt64)) 1093value = this.Adjust((SqlInt64)value); 1221else if (dataType == typeof(SqlInt64))
fx\src\data\System\Data\SqlClient\SqlBuffer.cs (4)
584internal SqlInt64 SqlInt64 { 588return SqlInt64.Null; 592return (SqlInt64)this.SqlValue; // anything else we haven't thought of goes through boxing. 749case SqlBuffer.StorageType.Int64: return typeof(SqlInt64);
fx\src\data\System\Data\SqlClient\SqlDataReader.cs (1)
2348virtual public SqlInt64 GetSqlInt64(int i) {
fx\src\data\System\Data\SqlClient\SqlDataReaderSmi.cs (1)
753public override SqlInt64 GetSqlInt64(int ordinal) {
fx\src\data\System\Data\SqlClient\SqlEnums.cs (6)
324else if (dataType == typeof(SqlInt64)) 398else if (sqlType == typeof(SqlInt64)) return SqlInt64.Null; 448else if (sqlVal is SqlInt64) 449comVal = ((SqlInt64)sqlVal).Value; 707(19, 255, 8, true, false, false, TdsEnums.SQLINT8, TdsEnums.SQLINTN, MetaTypeName.BIGINT, typeof(System.Int64), typeof(SqlInt64), SqlDbType.BigInt, DbType.Int64, 0);
fx\src\data\System\Data\SqlClient\TdsParser.cs (2)
10015WriteLong(((SqlInt64)value).Value, stateObj); 10975return SerializeLong(((SqlInt64)value).Value, stateObj);
fx\src\data\System\Data\SQLTypes\SQLBoolean.cs (3)
320public static explicit operator SqlBoolean(SqlInt64 x) { 481public SqlInt64 ToSqlInt64() { 482return (SqlInt64)this;
fx\src\data\System\Data\SQLTypes\SQLByte.cs (3)
282public static explicit operator SqlByte(SqlInt64 x) { 481public SqlInt64 ToSqlInt64() { 482return (SqlInt64)this;
fx\src\data\System\Data\SQLTypes\SQLDecimal.cs (3)
1735public static implicit operator SqlDecimal(SqlInt64 x) { 2894public SqlInt64 ToSqlInt64() { 2895return (SqlInt64)this;
fx\src\data\System\Data\SQLTypes\SQLDouble.cs (3)
242public static implicit operator SqlDouble(SqlInt64 x) { 401public SqlInt64 ToSqlInt64() { 402return (SqlInt64)this;
fx\src\data\System\Data\SQLTypes\SQLInt16.cs (3)
282public static explicit operator SqlInt16(SqlInt64 x) { 490public SqlInt64 ToSqlInt64() { 491return (SqlInt64)this;
fx\src\data\System\Data\SQLTypes\SQLInt32.cs (3)
276public static explicit operator SqlInt32(SqlInt64 x) { 502public SqlInt64 ToSqlInt64() { 503return (SqlInt64)this;
fx\src\data\System\Data\SQLTypes\SQLInt64.cs (107)
94public static implicit operator SqlInt64(long x) { 102public static explicit operator long(SqlInt64 x) { 116public static SqlInt64 Parse(String s) { 118return SqlInt64.Null; 128public static SqlInt64 operator -(SqlInt64 x) { 135public static SqlInt64 operator ~(SqlInt64 x) { 146public static SqlInt64 operator +(SqlInt64 x, SqlInt64 y) { 160public static SqlInt64 operator -(SqlInt64 x, SqlInt64 y) { 174public static SqlInt64 operator *(SqlInt64 x, SqlInt64 y) { 235public static SqlInt64 operator /(SqlInt64 x, SqlInt64 y) { 252public static SqlInt64 operator %(SqlInt64 x, SqlInt64 y) { 270public static SqlInt64 operator &(SqlInt64 x, SqlInt64 y) { 277public static SqlInt64 operator |(SqlInt64 x, SqlInt64 y) { 284public static SqlInt64 operator ^(SqlInt64 x, SqlInt64 y) { 295public static explicit operator SqlInt64(SqlBoolean x) { 303public static implicit operator SqlInt64(SqlByte x) { 311public static implicit operator SqlInt64(SqlInt16 x) { 319public static implicit operator SqlInt64(SqlInt32 x) { 330public static explicit operator SqlInt64(SqlSingle x) { 345public static explicit operator SqlInt64(SqlDouble x) { 360public static explicit operator SqlInt64(SqlMoney x) { 368public static explicit operator SqlInt64(SqlDecimal x) { 370return SqlInt64.Null; 405public static explicit operator SqlInt64(SqlString x) { 418public static SqlBoolean operator==(SqlInt64 x, SqlInt64 y) { 425public static SqlBoolean operator!=(SqlInt64 x, SqlInt64 y) { 432public static SqlBoolean operator<(SqlInt64 x, SqlInt64 y) { 439public static SqlBoolean operator>(SqlInt64 x, SqlInt64 y) { 446public static SqlBoolean operator<=(SqlInt64 x, SqlInt64 y) { 453public static SqlBoolean operator>=(SqlInt64 x, SqlInt64 y) { 462public static SqlInt64 OnesComplement(SqlInt64 x) { 467public static SqlInt64 Add(SqlInt64 x, SqlInt64 y) { 471public static SqlInt64 Subtract(SqlInt64 x, SqlInt64 y) { 476public static SqlInt64 Multiply(SqlInt64 x, SqlInt64 y) { 481public static SqlInt64 Divide(SqlInt64 x, SqlInt64 y) { 486public static SqlInt64 Mod(SqlInt64 x, SqlInt64 y) { 490public static SqlInt64 Modulus(SqlInt64 x, SqlInt64 y) { 495public static SqlInt64 BitwiseAnd(SqlInt64 x, SqlInt64 y) { 500public static SqlInt64 BitwiseOr(SqlInt64 x, SqlInt64 y) { 505public static SqlInt64 Xor(SqlInt64 x, SqlInt64 y) { 510public static SqlBoolean Equals(SqlInt64 x, SqlInt64 y) { 515public static SqlBoolean NotEquals(SqlInt64 x, SqlInt64 y) { 520public static SqlBoolean LessThan(SqlInt64 x, SqlInt64 y) { 525public static SqlBoolean GreaterThan(SqlInt64 x, SqlInt64 y) { 530public static SqlBoolean LessThanOrEqual(SqlInt64 x, SqlInt64 y) { 535public static SqlBoolean GreaterThanOrEqual(SqlInt64 x, SqlInt64 y) { 589if (value is SqlInt64) { 590SqlInt64 i = (SqlInt64)value; 594throw ADP.WrongType(value.GetType(), typeof(SqlInt64)); 597public int CompareTo(SqlInt64 value) { 615if (!(value is SqlInt64)) { 619SqlInt64 i = (SqlInt64)value; 678public static readonly SqlInt64 Null = new SqlInt64(true); 682public static readonly SqlInt64 Zero = new SqlInt64(0); 686public static readonly SqlInt64 MinValue = new SqlInt64(Int64.MinValue); 690public static readonly SqlInt64 MaxValue = new SqlInt64(Int64.MaxValue);
fx\src\data\System\Data\SQLTypes\SQLMoney.cs (3)
384public static implicit operator SqlMoney(SqlInt64 x) { 546public SqlInt64 ToSqlInt64() { 547return (SqlInt64)this;
fx\src\data\System\Data\SQLTypes\SQLSingle.cs (3)
247public static implicit operator SqlSingle(SqlInt64 x) { 410public SqlInt64 ToSqlInt64() { 411return (SqlInt64)this;
fx\src\data\System\Data\SQLTypes\SQLString.cs (3)
542public static explicit operator SqlString(SqlInt64 x) { 718public SqlInt64 ToSqlInt64() { 719return (SqlInt64)this;
fx\src\data\System\Data\xmlsaver.cs (1)
230if (type == typeof(Int64) || type == typeof(SqlInt64))