26 instantiations of SqlInt64
System.Data.Common (26)
System\Data\Common\SQLConvert.cs (1)
591return new SqlInt64(XmlConvert.ToInt64((string)value));
System\Data\SQLTypes\SQLInt64.cs (25)
64return new SqlInt64(x); 83return new SqlInt64(long.Parse(s, null)); 89return x.IsNull ? Null : new SqlInt64(-x.m_value); 94return x.IsNull ? Null : new SqlInt64(~x.m_value); 109return new SqlInt64(lResult); 121return new SqlInt64(lResult); 184return new SqlInt64(lResult); 197return new SqlInt64(x.m_value / y.m_value); 213return new SqlInt64(x.m_value % y.m_value); 222return (x.IsNull || y.IsNull) ? Null : new SqlInt64(x.m_value & y.m_value); 227return (x.IsNull || y.IsNull) ? Null : new SqlInt64(x.m_value | y.m_value); 232return (x.IsNull || y.IsNull) ? Null : new SqlInt64(x.m_value ^ y.m_value); 240return x.IsNull ? Null : new SqlInt64(x.ByteValue); 246return x.IsNull ? Null : new SqlInt64(x.Value); 252return x.IsNull ? Null : new SqlInt64(x.Value); 258return x.IsNull ? Null : new SqlInt64(x.Value); 273return new SqlInt64((long)value); 286return new SqlInt64((long)value); 292return x.IsNull ? Null : new SqlInt64(x.ToInt64()); 327return new SqlInt64(llRetVal); 334return x.IsNull ? Null : new SqlInt64(long.Parse(x.Value, null)); 598public static readonly SqlInt64 Null = new SqlInt64(true); 599public static readonly SqlInt64 Zero = new SqlInt64(0); 600public static readonly SqlInt64 MinValue = new SqlInt64(long.MinValue); 601public static readonly SqlInt64 MaxValue = new SqlInt64(long.MaxValue);
173 references to SqlInt64
netstandard (1)
netstandard.cs (1)
585[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.SqlTypes.SqlInt64))]
System.Data (1)
src\libraries\shims\System.Data\ref\System.Data.cs (1)
242[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.SqlTypes.SqlInt64))]
System.Data.Common (171)
System\Data\ColumnTypeConverter.cs (1)
40typeof(SqlInt64),
System\Data\Common\DataStorage.cs (1)
106typeof(SqlInt64),
System\Data\Common\SQLConvert.cs (8)
72public static SqlInt64 ConvertToSqlInt64(object value) 83StorageType.SqlInt64 => (SqlInt64)value, 93_ => throw ExceptionBuilder.ConvertFailed(valueType, typeof(SqlInt64)), 111StorageType.SqlInt64 => (SqlInt64)value, 144StorageType.SqlInt64 => (SqlInt64)value, 174StorageType.SqlInt64 => (SqlInt64)value, 205StorageType.SqlInt64 => (SqlInt64)value, 679return XmlConvert.ToString(((SqlInt64)value).Value);
System\Data\Common\SQLTypes\SQLByteStorage.cs (2)
31SqlInt64 sum = 0; 46SqlInt64 meanSum = 0;
System\Data\Common\SQLTypes\SQLInt16Storage.cs (2)
31SqlInt64 sum = 0; 46SqlInt64 meanSum = 0;
System\Data\Common\SQLTypes\SQLInt32Storage.cs (2)
31SqlInt64 sum = 0; 46SqlInt64 meanSum = 0;
System\Data\Common\SQLTypes\SQLInt64Storage.cs (21)
16private SqlInt64[] _values = default!; // Late-initialized 19: base(column, typeof(SqlInt64), SqlInt64.Null, SqlInt64.Null, StorageType.SqlInt64) 31SqlInt64 sum = 0; 58SqlInt64 mean = 0; 104SqlInt64 min = SqlInt64.MaxValue; 110if ((SqlInt64.LessThan(_values[record], min)).IsTrue) 121SqlInt64 max = SqlInt64.MinValue; 128if ((SqlInt64.GreaterThan(_values[record], max)).IsTrue) 157throw ExprException.Overflow(typeof(SqlInt64)); 170return _values[recordNo].CompareTo((SqlInt64)value); 211SqlInt64 newValue = default; 221return ((SqlInt64)tmp); 229Debug.Assert((value.GetType() == typeof(SqlInt64)), "wrong input type"); 242return new SqlInt64[recordCount]; 247SqlInt64[] typedStore = (SqlInt64[])store; 254_values = (SqlInt64[])store;
System\Data\DataColumn.cs (1)
1618dataType == typeof(SqlInt64) ||
System\Data\Filter\BinaryNode.cs (1)
1050SqlInt64 res = (SqlConvert.ConvertToSqlInt64(vLeft) % SqlConvert.ConvertToSqlInt64(vRight));
System\Data\Filter\UnaryNode.cs (1)
109value = -(SqlInt64)vl;
System\Data\SQLTypes\SQLBoolean.cs (3)
254public static explicit operator SqlBoolean(SqlInt64 x) 408public SqlInt64 ToSqlInt64() 410return (SqlInt64)this;
System\Data\SQLTypes\SQLByte.cs (2)
217public static explicit operator SqlByte(SqlInt64 x) 417public SqlInt64 ToSqlInt64()
System\Data\SQLTypes\SQLDecimal.cs (3)
1765public static implicit operator SqlDecimal(SqlInt64 x) 2996public SqlInt64 ToSqlInt64() 2998return (SqlInt64)this;
System\Data\SQLTypes\SQLDouble.cs (3)
184public static implicit operator SqlDouble(SqlInt64 x) 335public SqlInt64 ToSqlInt64() 337return (SqlInt64)this;
System\Data\SQLTypes\SQLInt16.cs (2)
213public static explicit operator SqlInt16(SqlInt64 x) 420public SqlInt64 ToSqlInt64()
System\Data\SQLTypes\SQLInt32.cs (2)
209public static explicit operator SqlInt32(SqlInt64 x) 435public SqlInt64 ToSqlInt64()
System\Data\SQLTypes\SQLInt64.cs (105)
21public struct SqlInt64 : INullable, IComparable, IXmlSerializable, IEquatable<SqlInt64> 62public static implicit operator SqlInt64(long x) 68public static explicit operator long(SqlInt64 x) 78public static SqlInt64 Parse(string s) 81return SqlInt64.Null; 87public static SqlInt64 operator -(SqlInt64 x) 92public static SqlInt64 operator ~(SqlInt64 x) 100public static SqlInt64 operator +(SqlInt64 x, SqlInt64 y) 112public static SqlInt64 operator -(SqlInt64 x, SqlInt64 y) 124public static SqlInt64 operator *(SqlInt64 x, SqlInt64 y) 187public static SqlInt64 operator /(SqlInt64 x, SqlInt64 y) 203public static SqlInt64 operator %(SqlInt64 x, SqlInt64 y) 220public static SqlInt64 operator &(SqlInt64 x, SqlInt64 y) 225public static SqlInt64 operator |(SqlInt64 x, SqlInt64 y) 230public static SqlInt64 operator ^(SqlInt64 x, SqlInt64 y) 238public static explicit operator SqlInt64(SqlBoolean x) 244public static implicit operator SqlInt64(SqlByte x) 250public static implicit operator SqlInt64(SqlInt16 x) 256public static implicit operator SqlInt64(SqlInt32 x) 264public static explicit operator SqlInt64(SqlSingle x) 277public static explicit operator SqlInt64(SqlDouble x) 290public static explicit operator SqlInt64(SqlMoney x) 296public static explicit operator SqlInt64(SqlDecimal x) 299return SqlInt64.Null; 332public static explicit operator SqlInt64(SqlString x) 344public static SqlBoolean operator ==(SqlInt64 x, SqlInt64 y) 349public static SqlBoolean operator !=(SqlInt64 x, SqlInt64 y) 354public static SqlBoolean operator <(SqlInt64 x, SqlInt64 y) 359public static SqlBoolean operator >(SqlInt64 x, SqlInt64 y) 364public static SqlBoolean operator <=(SqlInt64 x, SqlInt64 y) 369public static SqlBoolean operator >=(SqlInt64 x, SqlInt64 y) 379public static SqlInt64 OnesComplement(SqlInt64 x) 385public static SqlInt64 Add(SqlInt64 x, SqlInt64 y) 390public static SqlInt64 Subtract(SqlInt64 x, SqlInt64 y) 396public static SqlInt64 Multiply(SqlInt64 x, SqlInt64 y) 402public static SqlInt64 Divide(SqlInt64 x, SqlInt64 y) 408public static SqlInt64 Mod(SqlInt64 x, SqlInt64 y) 413public static SqlInt64 Modulus(SqlInt64 x, SqlInt64 y) 419public static SqlInt64 BitwiseAnd(SqlInt64 x, SqlInt64 y) 425public static SqlInt64 BitwiseOr(SqlInt64 x, SqlInt64 y) 431public static SqlInt64 Xor(SqlInt64 x, SqlInt64 y) 437public static SqlBoolean Equals(SqlInt64 x, SqlInt64 y) 443public static SqlBoolean NotEquals(SqlInt64 x, SqlInt64 y) 449public static SqlBoolean LessThan(SqlInt64 x, SqlInt64 y) 455public static SqlBoolean GreaterThan(SqlInt64 x, SqlInt64 y) 461public static SqlBoolean LessThanOrEqual(SqlInt64 x, SqlInt64 y) 467public static SqlBoolean GreaterThanOrEqual(SqlInt64 x, SqlInt64 y) 528if (value is SqlInt64 i) 532throw ADP.WrongType(value!.GetType(), typeof(SqlInt64)); 535public int CompareTo(SqlInt64 value) 551value is SqlInt64 other && Equals(other); 556public bool Equals(SqlInt64 other) => 598public static readonly SqlInt64 Null = new SqlInt64(true); 599public static readonly SqlInt64 Zero = new SqlInt64(0); 600public static readonly SqlInt64 MinValue = new SqlInt64(long.MinValue); 601public static readonly SqlInt64 MaxValue = new SqlInt64(long.MaxValue);
System\Data\SQLTypes\SQLMoney.cs (3)
335public static implicit operator SqlMoney(SqlInt64 x) 493public SqlInt64 ToSqlInt64() 495return (SqlInt64)this;
System\Data\SQLTypes\SQLSingle.cs (3)
190public static implicit operator SqlSingle(SqlInt64 x) 349public SqlInt64 ToSqlInt64() 351return (SqlInt64)this;
System\Data\SQLTypes\SQLString.cs (3)
482public static explicit operator SqlString(SqlInt64 x) 648public SqlInt64 ToSqlInt64() 650return (SqlInt64)this;
System\Data\TypeLimiter.cs (1)
162typeof(SqlInt64),
System\Data\xmlsaver.cs (1)
257if (type == typeof(long) || type == typeof(SqlInt64))