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