79 instantiations of SqlBoolean
System.Data.Common (79)
System\Data\Common\SQLConvert.cs (1)
571
return new
SqlBoolean
(XmlConvert.ToBoolean((string)value));
System\Data\SQLTypes\SQLBinary.cs (5)
212
return new
SqlBoolean
(PerformCompareByte(x.Value, y.Value) == EComparison.EQ);
233
return new
SqlBoolean
(PerformCompareByte(x.Value, y.Value) == EComparison.LT);
244
return new
SqlBoolean
(PerformCompareByte(x.Value, y.Value) == EComparison.GT);
256
return new
SqlBoolean
(cmpResult == EComparison.LT || cmpResult == EComparison.EQ);
268
return new
SqlBoolean
(cmpResult == EComparison.GT || cmpResult == EComparison.EQ);
System\Data\SQLTypes\SQLBoolean.cs (22)
102
return new
SqlBoolean
(x);
197
return new
SqlBoolean
(bool.Parse(s!));
205
return new
SqlBoolean
(int.Parse(s, null));
209
return new
SqlBoolean
(bool.Parse(s));
225
return (x.IsNull || y.IsNull) ? Null : new
SqlBoolean
(x.m_value != y.m_value);
238
return x.IsNull ? Null : new
SqlBoolean
(x.Value != 0);
244
return x.IsNull ? Null : new
SqlBoolean
(x.Value != 0);
250
return x.IsNull ? Null : new
SqlBoolean
(x.Value != 0);
256
return x.IsNull ? Null : new
SqlBoolean
(x.Value != 0);
262
return x.IsNull ? Null : new
SqlBoolean
(x.Value != 0.0);
268
return x.IsNull ? Null : new
SqlBoolean
(x.Value != 0.0);
280
return x.IsNull ? SqlBoolean.Null : new
SqlBoolean
(x._data1 != 0 || x._data2 != 0 ||
294
return (x.IsNull || y.IsNull) ? SqlBoolean.Null : new
SqlBoolean
(x.m_value == y.m_value);
304
return (x.IsNull || y.IsNull) ? SqlBoolean.Null : new
SqlBoolean
(x.m_value < y.m_value);
309
return (x.IsNull || y.IsNull) ? SqlBoolean.Null : new
SqlBoolean
(x.m_value > y.m_value);
314
return (x.IsNull || y.IsNull) ? SqlBoolean.Null : new
SqlBoolean
(x.m_value <= y.m_value);
319
return (x.IsNull || y.IsNull) ? SqlBoolean.Null : new
SqlBoolean
(x.m_value >= y.m_value);
517
public static readonly SqlBoolean True = new
SqlBoolean
(true);
522
public static readonly SqlBoolean False = new
SqlBoolean
(false);
527
public static readonly SqlBoolean Null = new
SqlBoolean
(0, true);
529
public static readonly SqlBoolean Zero = new
SqlBoolean
(0);
530
public static readonly SqlBoolean One = new
SqlBoolean
(1);
System\Data\SQLTypes\SQLByte.cs (5)
268
return (x.IsNull || y.IsNull) ? SqlBoolean.Null : new
SqlBoolean
(x.m_value == y.m_value);
278
return (x.IsNull || y.IsNull) ? SqlBoolean.Null : new
SqlBoolean
(x.m_value < y.m_value);
283
return (x.IsNull || y.IsNull) ? SqlBoolean.Null : new
SqlBoolean
(x.m_value > y.m_value);
288
return (x.IsNull || y.IsNull) ? SqlBoolean.Null : new
SqlBoolean
(x.m_value <= y.m_value);
293
return (x.IsNull || y.IsNull) ? SqlBoolean.Null : new
SqlBoolean
(x.m_value >= y.m_value);
System\Data\SQLTypes\SQLDateTime.cs (5)
507
return (x.IsNull || y.IsNull) ? SqlBoolean.Null : new
SqlBoolean
(x.m_day == y.m_day && x.m_time == y.m_time);
518
new
SqlBoolean
(x.m_day < y.m_day || (x.m_day == y.m_day && x.m_time < y.m_time));
524
new
SqlBoolean
(x.m_day > y.m_day || (x.m_day == y.m_day && x.m_time > y.m_time));
530
new
SqlBoolean
(x.m_day < y.m_day || (x.m_day == y.m_day && x.m_time <= y.m_time));
536
new
SqlBoolean
(x.m_day > y.m_day || (x.m_day == y.m_day && x.m_time >= y.m_time));
System\Data\SQLTypes\SQLDecimal.cs (5)
2865
return (x.IsNull || y.IsNull) ? SqlBoolean.Null : new
SqlBoolean
(x.CompareNm(y) == EComparison.EQ);
2875
return (x.IsNull || y.IsNull) ? SqlBoolean.Null : new
SqlBoolean
(x.CompareNm(y) == EComparison.LT);
2880
return (x.IsNull || y.IsNull) ? SqlBoolean.Null : new
SqlBoolean
(x.CompareNm(y) == EComparison.GT);
2890
return new
SqlBoolean
(result == EComparison.LT || result == EComparison.EQ);
2901
return new
SqlBoolean
(result == EComparison.GT || result == EComparison.EQ);
System\Data\SQLTypes\SQLDouble.cs (5)
222
return (x.IsNull || y.IsNull) ? SqlBoolean.Null : new
SqlBoolean
(x.m_value == y.m_value);
232
return (x.IsNull || y.IsNull) ? SqlBoolean.Null : new
SqlBoolean
(x.m_value < y.m_value);
237
return (x.IsNull || y.IsNull) ? SqlBoolean.Null : new
SqlBoolean
(x.m_value > y.m_value);
242
return (x.IsNull || y.IsNull) ? SqlBoolean.Null : new
SqlBoolean
(x.m_value <= y.m_value);
247
return (x.IsNull || y.IsNull) ? SqlBoolean.Null : new
SqlBoolean
(x.m_value >= y.m_value);
System\Data\SQLTypes\SQLGuid.cs (5)
163
new
SqlBoolean
(x._value.GetValueOrDefault() == y._value.GetValueOrDefault());
173
return (x.IsNull || y.IsNull) ? SqlBoolean.Null : new
SqlBoolean
(Compare(x, y) == EComparison.LT);
178
return (x.IsNull || y.IsNull) ? SqlBoolean.Null : new
SqlBoolean
(Compare(x, y) == EComparison.GT);
187
return new
SqlBoolean
(cmp == EComparison.LT || cmp == EComparison.EQ);
196
return new
SqlBoolean
(cmp == EComparison.GT || cmp == EComparison.EQ);
System\Data\SQLTypes\SQLInt16.cs (5)
272
return (x.IsNull || y.IsNull) ? SqlBoolean.Null : new
SqlBoolean
(x.m_value == y.m_value);
282
return (x.IsNull || y.IsNull) ? SqlBoolean.Null : new
SqlBoolean
(x.m_value < y.m_value);
287
return (x.IsNull || y.IsNull) ? SqlBoolean.Null : new
SqlBoolean
(x.m_value > y.m_value);
292
return (x.IsNull || y.IsNull) ? SqlBoolean.Null : new
SqlBoolean
(x.m_value <= y.m_value);
297
return (x.IsNull || y.IsNull) ? SqlBoolean.Null : new
SqlBoolean
(x.m_value >= y.m_value);
System\Data\SQLTypes\SQLInt32.cs (5)
287
return (x.IsNull || y.IsNull) ? SqlBoolean.Null : new
SqlBoolean
(x.m_value == y.m_value);
297
return (x.IsNull || y.IsNull) ? SqlBoolean.Null : new
SqlBoolean
(x.m_value < y.m_value);
302
return (x.IsNull || y.IsNull) ? SqlBoolean.Null : new
SqlBoolean
(x.m_value > y.m_value);
307
return (x.IsNull || y.IsNull) ? SqlBoolean.Null : new
SqlBoolean
(x.m_value <= y.m_value);
312
return (x.IsNull || y.IsNull) ? SqlBoolean.Null : new
SqlBoolean
(x.m_value >= y.m_value);
System\Data\SQLTypes\SQLInt64.cs (5)
346
return (x.IsNull || y.IsNull) ? SqlBoolean.Null : new
SqlBoolean
(x.m_value == y.m_value);
356
return (x.IsNull || y.IsNull) ? SqlBoolean.Null : new
SqlBoolean
(x.m_value < y.m_value);
361
return (x.IsNull || y.IsNull) ? SqlBoolean.Null : new
SqlBoolean
(x.m_value > y.m_value);
366
return (x.IsNull || y.IsNull) ? SqlBoolean.Null : new
SqlBoolean
(x.m_value <= y.m_value);
371
return (x.IsNull || y.IsNull) ? SqlBoolean.Null : new
SqlBoolean
(x.m_value >= y.m_value);
System\Data\SQLTypes\SQLMoney.cs (5)
374
return (x.IsNull || y.IsNull) ? SqlBoolean.Null : new
SqlBoolean
(x._value == y._value);
384
return (x.IsNull || y.IsNull) ? SqlBoolean.Null : new
SqlBoolean
(x._value < y._value);
389
return (x.IsNull || y.IsNull) ? SqlBoolean.Null : new
SqlBoolean
(x._value > y._value);
394
return (x.IsNull || y.IsNull) ? SqlBoolean.Null : new
SqlBoolean
(x._value <= y._value);
399
return (x.IsNull || y.IsNull) ? SqlBoolean.Null : new
SqlBoolean
(x._value >= y._value);
System\Data\SQLTypes\SQLSingle.cs (5)
231
return (x.IsNull || y.IsNull) ? SqlBoolean.Null : new
SqlBoolean
(x._value == y._value);
241
return (x.IsNull || y.IsNull) ? SqlBoolean.Null : new
SqlBoolean
(x._value < y._value);
246
return (x.IsNull || y.IsNull) ? SqlBoolean.Null : new
SqlBoolean
(x._value > y._value);
251
return (x.IsNull || y.IsNull) ? SqlBoolean.Null : new
SqlBoolean
(x._value <= y._value);
256
return (x.IsNull || y.IsNull) ? SqlBoolean.Null : new
SqlBoolean
(x._value >= y._value);
System\Data\SQLTypes\SQLString.cs (1)
446
return new
SqlBoolean
(fResult);
390 references to SqlBoolean
netstandard (1)
netstandard.cs (1)
574
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.SqlTypes.
SqlBoolean
))]
System.Data (1)
src\libraries\shims\System.Data\ref\System.Data.cs (1)
230
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.SqlTypes.
SqlBoolean
))]
System.Data.Common (388)
System\Data\ColumnTypeConverter.cs (1)
45
typeof(
SqlBoolean
),
System\Data\Common\DataStorage.cs (1)
96
typeof(
SqlBoolean
),
System\Data\Common\SQLConvert.cs (5)
239
public static
SqlBoolean
ConvertToSqlBoolean(object value)
244
return
SqlBoolean
.Null;
251
StorageType.SqlBoolean => (
SqlBoolean
)value,
253
_ => throw ExceptionBuilder.ConvertFailed(valueType, typeof(
SqlBoolean
)),
659
return XmlConvert.ToString(((
SqlBoolean
)value).Value);
System\Data\Common\SQLTypes\SQlBooleanStorage.cs (17)
16
private
SqlBoolean
[] _values = default!; // Late-initialized
19
: base(column, typeof(
SqlBoolean
),
SqlBoolean
.Null,
SqlBoolean
.Null, StorageType.SqlBoolean)
31
SqlBoolean
min = true;
37
min =
SqlBoolean
.And(_values[record], min);
47
SqlBoolean
max = false;
53
max =
SqlBoolean
.Or(_values[record], max);
81
throw ExprException.Overflow(typeof(
SqlBoolean
));
94
return _values[recordNo].CompareTo((
SqlBoolean
)value);
135
SqlBoolean
newValue = default;
145
return ((
SqlBoolean
)tmp);
153
Debug.Assert((value.GetType() == typeof(
SqlBoolean
)), "wrong input type");
166
return new
SqlBoolean
[recordCount];
171
SqlBoolean
[] typedStore = (
SqlBoolean
[])store;
178
_values = (
SqlBoolean
[])store;
System\Data\Filter\BinaryNode.cs (11)
242
if (((vLeft.GetType() == typeof(
SqlBoolean
)) && ((vRight.GetType() == typeof(
SqlBoolean
)) || (vRight.GetType() == typeof(bool)))) ||
243
((vRight.GetType() == typeof(
SqlBoolean
)) && ((vLeft.GetType() == typeof(
SqlBoolean
)) || (vLeft.GetType() == typeof(bool)))))
924
if ((!(vLeft is bool)) && (!(vLeft is
SqlBoolean
)))
941
if (((
SqlBoolean
)vLeft).IsFalse)
951
if ((!(vRight is bool)) && (!(vRight is
SqlBoolean
)))
964
value = ((
SqlBoolean
)vRight).IsTrue;
979
if ((!(vLeft is bool)) && (!(vLeft is
SqlBoolean
)))
1000
if ((!(vRight is bool)) && (!(vRight is
SqlBoolean
)))
1006
value = (vRight is bool) ? ((bool)vRight) : (((
SqlBoolean
)vRight).IsTrue);
System\Data\Filter\DataExpression.cs (2)
259
if (value is
SqlBoolean
)
261
return (((
SqlBoolean
)value).IsTrue);
System\Data\Filter\UnaryNode.cs (5)
128
if (vl is
SqlBoolean
)
130
if (((
SqlBoolean
)vl).IsFalse)
132
return
SqlBoolean
.True;
134
else if (((
SqlBoolean
)vl).IsTrue)
136
return
SqlBoolean
.False;
System\Data\SQLTypes\SQLBinary.cs (17)
207
public static
SqlBoolean
operator ==(SqlBinary x, SqlBinary y)
210
return
SqlBoolean
.Null;
219
public static
SqlBoolean
operator !=(SqlBinary x, SqlBinary y)
228
public static
SqlBoolean
operator <(SqlBinary x, SqlBinary y)
231
return
SqlBoolean
.Null;
239
public static
SqlBoolean
operator >(SqlBinary x, SqlBinary y)
242
return
SqlBoolean
.Null;
250
public static
SqlBoolean
operator <=(SqlBinary x, SqlBinary y)
253
return
SqlBoolean
.Null;
262
public static
SqlBoolean
operator >=(SqlBinary x, SqlBinary y)
265
return
SqlBoolean
.Null;
287
public static
SqlBoolean
Equals(SqlBinary x, SqlBinary y)
293
public static
SqlBoolean
NotEquals(SqlBinary x, SqlBinary y)
299
public static
SqlBoolean
LessThan(SqlBinary x, SqlBinary y)
305
public static
SqlBoolean
GreaterThan(SqlBinary x, SqlBinary y)
311
public static
SqlBoolean
LessThanOrEqual(SqlBinary x, SqlBinary y)
317
public static
SqlBoolean
GreaterThanOrEqual(SqlBinary x, SqlBinary y)
System\Data\SQLTypes\SQLBoolean.cs (115)
21
public struct SqlBoolean : INullable, IComparable, IXmlSerializable, IEquatable<
SqlBoolean
>
33
/// Initializes a new instance of the <see cref='
SqlBoolean
'/> class.
55
/// Gets whether the current <see cref='Value'/> is <see cref='
SqlBoolean
.Null'/>.
64
/// Gets or sets the <see cref='
SqlBoolean
'/> to be <see langword='true'/> or <see langword='false'/>.
80
/// Gets whether the current <see cref='Value'/> is <see cref='
SqlBoolean
.True'/>.
88
/// Gets whether the current <see cref='Value'/> is <see cref='
SqlBoolean
.False'/>.
98
/// Converts a boolean to a <see cref='
SqlBoolean
'/>.
100
public static implicit operator
SqlBoolean
(bool x)
107
/// Converts a <see cref='
SqlBoolean
'/> to a boolean.
109
public static explicit operator bool(
SqlBoolean
x)
118
/// Performs a NOT operation on a <see cref='
SqlBoolean
'/>.
120
public static
SqlBoolean
operator !(
SqlBoolean
x)
125
return
SqlBoolean
.False;
128
return
SqlBoolean
.True;
132
return
SqlBoolean
.Null;
136
public static bool operator true(
SqlBoolean
x)
141
public static bool operator false(
SqlBoolean
x)
149
/// Performs a bitwise AND operation on two instances of <see cref='
SqlBoolean
'/>.
151
public static
SqlBoolean
operator &(
SqlBoolean
x,
SqlBoolean
y)
154
return
SqlBoolean
.False;
156
return
SqlBoolean
.True;
158
return
SqlBoolean
.Null;
162
/// Performs a bitwise OR operation on two instances of a <see cref='
SqlBoolean
'/>.
164
public static
SqlBoolean
operator |(
SqlBoolean
x,
SqlBoolean
y)
167
return
SqlBoolean
.True;
169
return
SqlBoolean
.False;
171
return
SqlBoolean
.Null;
193
public static
SqlBoolean
Parse(string s)
199
return
SqlBoolean
.Null;
215
public static
SqlBoolean
operator ~(
SqlBoolean
x)
223
public static
SqlBoolean
operator ^(
SqlBoolean
x,
SqlBoolean
y)
236
public static explicit operator
SqlBoolean
(SqlByte x)
242
public static explicit operator
SqlBoolean
(SqlInt16 x)
248
public static explicit operator
SqlBoolean
(SqlInt32 x)
254
public static explicit operator
SqlBoolean
(SqlInt64 x)
260
public static explicit operator
SqlBoolean
(SqlDouble x)
266
public static explicit operator
SqlBoolean
(SqlSingle x)
272
public static explicit operator
SqlBoolean
(SqlMoney x)
278
public static explicit operator
SqlBoolean
(SqlDecimal x)
280
return x.IsNull ?
SqlBoolean
.Null : new SqlBoolean(x._data1 != 0 || x._data2 != 0 ||
286
public static explicit operator
SqlBoolean
(SqlString x)
288
return x.IsNull ? Null :
SqlBoolean
.Parse(x.Value);
292
public static
SqlBoolean
operator ==(
SqlBoolean
x,
SqlBoolean
y)
294
return (x.IsNull || y.IsNull) ?
SqlBoolean
.Null : new SqlBoolean(x.m_value == y.m_value);
297
public static
SqlBoolean
operator !=(
SqlBoolean
x,
SqlBoolean
y)
302
public static
SqlBoolean
operator <(
SqlBoolean
x,
SqlBoolean
y)
304
return (x.IsNull || y.IsNull) ?
SqlBoolean
.Null : new SqlBoolean(x.m_value < y.m_value);
307
public static
SqlBoolean
operator >(
SqlBoolean
x,
SqlBoolean
y)
309
return (x.IsNull || y.IsNull) ?
SqlBoolean
.Null : new SqlBoolean(x.m_value > y.m_value);
312
public static
SqlBoolean
operator <=(
SqlBoolean
x,
SqlBoolean
y)
314
return (x.IsNull || y.IsNull) ?
SqlBoolean
.Null : new SqlBoolean(x.m_value <= y.m_value);
317
public static
SqlBoolean
operator >=(
SqlBoolean
x,
SqlBoolean
y)
319
return (x.IsNull || y.IsNull) ?
SqlBoolean
.Null : new SqlBoolean(x.m_value >= y.m_value);
327
public static
SqlBoolean
OnesComplement(
SqlBoolean
x)
333
public static
SqlBoolean
And(
SqlBoolean
x,
SqlBoolean
y)
339
public static
SqlBoolean
Or(
SqlBoolean
x,
SqlBoolean
y)
345
public static
SqlBoolean
Xor(
SqlBoolean
x,
SqlBoolean
y)
351
public static
SqlBoolean
Equals(
SqlBoolean
x,
SqlBoolean
y)
357
public static
SqlBoolean
NotEquals(
SqlBoolean
x,
SqlBoolean
y)
363
public static
SqlBoolean
GreaterThan(
SqlBoolean
x,
SqlBoolean
y)
369
public static
SqlBoolean
LessThan(
SqlBoolean
x,
SqlBoolean
y)
375
public static
SqlBoolean
GreaterThanOrEquals(
SqlBoolean
x,
SqlBoolean
y)
381
public static
SqlBoolean
LessThanOrEquals(
SqlBoolean
x,
SqlBoolean
y)
444
if (value is
SqlBoolean
i)
448
throw ADP.WrongType(value!.GetType(), typeof(
SqlBoolean
));
451
public int CompareTo(
SqlBoolean
value)
467
value is
SqlBoolean
other && Equals(other);
472
public bool Equals(
SqlBoolean
other) =>
515
/// <see cref='Value'/> property of an instance of the <see cref='
SqlBoolean
'/> class.
517
public static readonly
SqlBoolean
True = new SqlBoolean(true);
520
/// the <see cref='
SqlBoolean
'/> class.
522
public static readonly
SqlBoolean
False = new SqlBoolean(false);
525
/// the <see cref='
SqlBoolean
'/> class.
527
public static readonly
SqlBoolean
Null = new SqlBoolean(0, true);
529
public static readonly
SqlBoolean
Zero = new SqlBoolean(0);
530
public static readonly
SqlBoolean
One = new SqlBoolean(1);
System\Data\SQLTypes\SQLByte.cs (20)
178
public static explicit operator SqlByte(
SqlBoolean
x)
266
public static
SqlBoolean
operator ==(SqlByte x, SqlByte y)
268
return (x.IsNull || y.IsNull) ?
SqlBoolean
.Null : new SqlBoolean(x.m_value == y.m_value);
271
public static
SqlBoolean
operator !=(SqlByte x, SqlByte y)
276
public static
SqlBoolean
operator <(SqlByte x, SqlByte y)
278
return (x.IsNull || y.IsNull) ?
SqlBoolean
.Null : new SqlBoolean(x.m_value < y.m_value);
281
public static
SqlBoolean
operator >(SqlByte x, SqlByte y)
283
return (x.IsNull || y.IsNull) ?
SqlBoolean
.Null : new SqlBoolean(x.m_value > y.m_value);
286
public static
SqlBoolean
operator <=(SqlByte x, SqlByte y)
288
return (x.IsNull || y.IsNull) ?
SqlBoolean
.Null : new SqlBoolean(x.m_value <= y.m_value);
291
public static
SqlBoolean
operator >=(SqlByte x, SqlByte y)
293
return (x.IsNull || y.IsNull) ?
SqlBoolean
.Null : new SqlBoolean(x.m_value >= y.m_value);
360
public static
SqlBoolean
Equals(SqlByte x, SqlByte y)
366
public static
SqlBoolean
NotEquals(SqlByte x, SqlByte y)
372
public static
SqlBoolean
LessThan(SqlByte x, SqlByte y)
378
public static
SqlBoolean
GreaterThan(SqlByte x, SqlByte y)
384
public static
SqlBoolean
LessThanOrEqual(SqlByte x, SqlByte y)
390
public static
SqlBoolean
GreaterThanOrEqual(SqlByte x, SqlByte y)
397
public
SqlBoolean
ToSqlBoolean()
399
return (
SqlBoolean
)this;
System\Data\SQLTypes\SQLDateTime.cs (17)
505
public static
SqlBoolean
operator ==(SqlDateTime x, SqlDateTime y)
507
return (x.IsNull || y.IsNull) ?
SqlBoolean
.Null : new SqlBoolean(x.m_day == y.m_day && x.m_time == y.m_time);
510
public static
SqlBoolean
operator !=(SqlDateTime x, SqlDateTime y)
515
public static
SqlBoolean
operator <(SqlDateTime x, SqlDateTime y)
517
return (x.IsNull || y.IsNull) ?
SqlBoolean
.Null :
521
public static
SqlBoolean
operator >(SqlDateTime x, SqlDateTime y)
523
return (x.IsNull || y.IsNull) ?
SqlBoolean
.Null :
527
public static
SqlBoolean
operator <=(SqlDateTime x, SqlDateTime y)
529
return (x.IsNull || y.IsNull) ?
SqlBoolean
.Null :
533
public static
SqlBoolean
operator >=(SqlDateTime x, SqlDateTime y)
535
return (x.IsNull || y.IsNull) ?
SqlBoolean
.Null :
544
public static
SqlBoolean
Equals(SqlDateTime x, SqlDateTime y)
550
public static
SqlBoolean
NotEquals(SqlDateTime x, SqlDateTime y)
556
public static
SqlBoolean
LessThan(SqlDateTime x, SqlDateTime y)
562
public static
SqlBoolean
GreaterThan(SqlDateTime x, SqlDateTime y)
568
public static
SqlBoolean
LessThanOrEqual(SqlDateTime x, SqlDateTime y)
574
public static
SqlBoolean
GreaterThanOrEqual(SqlDateTime x, SqlDateTime y)
System\Data\SQLTypes\SQLDecimal.cs (20)
1741
public static explicit operator SqlDecimal(
SqlBoolean
x)
2863
public static
SqlBoolean
operator ==(SqlDecimal x, SqlDecimal y)
2865
return (x.IsNull || y.IsNull) ?
SqlBoolean
.Null : new SqlBoolean(x.CompareNm(y) == EComparison.EQ);
2868
public static
SqlBoolean
operator !=(SqlDecimal x, SqlDecimal y)
2873
public static
SqlBoolean
operator <(SqlDecimal x, SqlDecimal y)
2875
return (x.IsNull || y.IsNull) ?
SqlBoolean
.Null : new SqlBoolean(x.CompareNm(y) == EComparison.LT);
2878
public static
SqlBoolean
operator >(SqlDecimal x, SqlDecimal y)
2880
return (x.IsNull || y.IsNull) ?
SqlBoolean
.Null : new SqlBoolean(x.CompareNm(y) == EComparison.GT);
2883
public static
SqlBoolean
operator <=(SqlDecimal x, SqlDecimal y)
2886
return
SqlBoolean
.Null;
2894
public static
SqlBoolean
operator >=(SqlDecimal x, SqlDecimal y)
2897
return
SqlBoolean
.Null;
2934
public static
SqlBoolean
Equals(SqlDecimal x, SqlDecimal y)
2940
public static
SqlBoolean
NotEquals(SqlDecimal x, SqlDecimal y)
2946
public static
SqlBoolean
LessThan(SqlDecimal x, SqlDecimal y)
2952
public static
SqlBoolean
GreaterThan(SqlDecimal x, SqlDecimal y)
2958
public static
SqlBoolean
LessThanOrEqual(SqlDecimal x, SqlDecimal y)
2964
public static
SqlBoolean
GreaterThanOrEqual(SqlDecimal x, SqlDecimal y)
2971
public
SqlBoolean
ToSqlBoolean()
2973
return (
SqlBoolean
)this;
System\Data\SQLTypes\SQLDouble.cs (20)
160
public static explicit operator SqlDouble(
SqlBoolean
x)
220
public static
SqlBoolean
operator ==(SqlDouble x, SqlDouble y)
222
return (x.IsNull || y.IsNull) ?
SqlBoolean
.Null : new SqlBoolean(x.m_value == y.m_value);
225
public static
SqlBoolean
operator !=(SqlDouble x, SqlDouble y)
230
public static
SqlBoolean
operator <(SqlDouble x, SqlDouble y)
232
return (x.IsNull || y.IsNull) ?
SqlBoolean
.Null : new SqlBoolean(x.m_value < y.m_value);
235
public static
SqlBoolean
operator >(SqlDouble x, SqlDouble y)
237
return (x.IsNull || y.IsNull) ?
SqlBoolean
.Null : new SqlBoolean(x.m_value > y.m_value);
240
public static
SqlBoolean
operator <=(SqlDouble x, SqlDouble y)
242
return (x.IsNull || y.IsNull) ?
SqlBoolean
.Null : new SqlBoolean(x.m_value <= y.m_value);
245
public static
SqlBoolean
operator >=(SqlDouble x, SqlDouble y)
247
return (x.IsNull || y.IsNull) ?
SqlBoolean
.Null : new SqlBoolean(x.m_value >= y.m_value);
278
public static
SqlBoolean
Equals(SqlDouble x, SqlDouble y)
284
public static
SqlBoolean
NotEquals(SqlDouble x, SqlDouble y)
290
public static
SqlBoolean
LessThan(SqlDouble x, SqlDouble y)
296
public static
SqlBoolean
GreaterThan(SqlDouble x, SqlDouble y)
302
public static
SqlBoolean
LessThanOrEqual(SqlDouble x, SqlDouble y)
308
public static
SqlBoolean
GreaterThanOrEqual(SqlDouble x, SqlDouble y)
315
public
SqlBoolean
ToSqlBoolean()
317
return (
SqlBoolean
)this;
System\Data\SQLTypes\SQLGuid.cs (17)
160
public static
SqlBoolean
operator ==(SqlGuid x, SqlGuid y)
162
return (x.IsNull || y.IsNull) ?
SqlBoolean
.Null :
166
public static
SqlBoolean
operator !=(SqlGuid x, SqlGuid y)
171
public static
SqlBoolean
operator <(SqlGuid x, SqlGuid y)
173
return (x.IsNull || y.IsNull) ?
SqlBoolean
.Null : new SqlBoolean(Compare(x, y) == EComparison.LT);
176
public static
SqlBoolean
operator >(SqlGuid x, SqlGuid y)
178
return (x.IsNull || y.IsNull) ?
SqlBoolean
.Null : new SqlBoolean(Compare(x, y) == EComparison.GT);
181
public static
SqlBoolean
operator <=(SqlGuid x, SqlGuid y)
184
return
SqlBoolean
.Null;
190
public static
SqlBoolean
operator >=(SqlGuid x, SqlGuid y)
193
return
SqlBoolean
.Null;
204
public static
SqlBoolean
Equals(SqlGuid x, SqlGuid y)
210
public static
SqlBoolean
NotEquals(SqlGuid x, SqlGuid y)
216
public static
SqlBoolean
LessThan(SqlGuid x, SqlGuid y)
222
public static
SqlBoolean
GreaterThan(SqlGuid x, SqlGuid y)
228
public static
SqlBoolean
LessThanOrEqual(SqlGuid x, SqlGuid y)
234
public static
SqlBoolean
GreaterThanOrEqual(SqlGuid x, SqlGuid y)
System\Data\SQLTypes\SQLInt16.cs (20)
186
public static explicit operator SqlInt16(
SqlBoolean
x)
270
public static
SqlBoolean
operator ==(SqlInt16 x, SqlInt16 y)
272
return (x.IsNull || y.IsNull) ?
SqlBoolean
.Null : new SqlBoolean(x.m_value == y.m_value);
275
public static
SqlBoolean
operator !=(SqlInt16 x, SqlInt16 y)
280
public static
SqlBoolean
operator <(SqlInt16 x, SqlInt16 y)
282
return (x.IsNull || y.IsNull) ?
SqlBoolean
.Null : new SqlBoolean(x.m_value < y.m_value);
285
public static
SqlBoolean
operator >(SqlInt16 x, SqlInt16 y)
287
return (x.IsNull || y.IsNull) ?
SqlBoolean
.Null : new SqlBoolean(x.m_value > y.m_value);
290
public static
SqlBoolean
operator <=(SqlInt16 x, SqlInt16 y)
292
return (x.IsNull || y.IsNull) ?
SqlBoolean
.Null : new SqlBoolean(x.m_value <= y.m_value);
295
public static
SqlBoolean
operator >=(SqlInt16 x, SqlInt16 y)
297
return (x.IsNull || y.IsNull) ?
SqlBoolean
.Null : new SqlBoolean(x.m_value >= y.m_value);
363
public static
SqlBoolean
Equals(SqlInt16 x, SqlInt16 y)
369
public static
SqlBoolean
NotEquals(SqlInt16 x, SqlInt16 y)
375
public static
SqlBoolean
LessThan(SqlInt16 x, SqlInt16 y)
381
public static
SqlBoolean
GreaterThan(SqlInt16 x, SqlInt16 y)
387
public static
SqlBoolean
LessThanOrEqual(SqlInt16 x, SqlInt16 y)
393
public static
SqlBoolean
GreaterThanOrEqual(SqlInt16 x, SqlInt16 y)
400
public
SqlBoolean
ToSqlBoolean()
402
return (
SqlBoolean
)this;
System\Data\SQLTypes\SQLInt32.cs (20)
189
public static explicit operator SqlInt32(
SqlBoolean
x)
285
public static
SqlBoolean
operator ==(SqlInt32 x, SqlInt32 y)
287
return (x.IsNull || y.IsNull) ?
SqlBoolean
.Null : new SqlBoolean(x.m_value == y.m_value);
290
public static
SqlBoolean
operator !=(SqlInt32 x, SqlInt32 y)
295
public static
SqlBoolean
operator <(SqlInt32 x, SqlInt32 y)
297
return (x.IsNull || y.IsNull) ?
SqlBoolean
.Null : new SqlBoolean(x.m_value < y.m_value);
300
public static
SqlBoolean
operator >(SqlInt32 x, SqlInt32 y)
302
return (x.IsNull || y.IsNull) ?
SqlBoolean
.Null : new SqlBoolean(x.m_value > y.m_value);
305
public static
SqlBoolean
operator <=(SqlInt32 x, SqlInt32 y)
307
return (x.IsNull || y.IsNull) ?
SqlBoolean
.Null : new SqlBoolean(x.m_value <= y.m_value);
310
public static
SqlBoolean
operator >=(SqlInt32 x, SqlInt32 y)
312
return (x.IsNull || y.IsNull) ?
SqlBoolean
.Null : new SqlBoolean(x.m_value >= y.m_value);
378
public static
SqlBoolean
Equals(SqlInt32 x, SqlInt32 y)
384
public static
SqlBoolean
NotEquals(SqlInt32 x, SqlInt32 y)
390
public static
SqlBoolean
LessThan(SqlInt32 x, SqlInt32 y)
396
public static
SqlBoolean
GreaterThan(SqlInt32 x, SqlInt32 y)
402
public static
SqlBoolean
LessThanOrEqual(SqlInt32 x, SqlInt32 y)
408
public static
SqlBoolean
GreaterThanOrEqual(SqlInt32 x, SqlInt32 y)
415
public
SqlBoolean
ToSqlBoolean()
417
return (
SqlBoolean
)this;
System\Data\SQLTypes\SQLInt64.cs (20)
238
public static explicit operator SqlInt64(
SqlBoolean
x)
344
public static
SqlBoolean
operator ==(SqlInt64 x, SqlInt64 y)
346
return (x.IsNull || y.IsNull) ?
SqlBoolean
.Null : new SqlBoolean(x.m_value == y.m_value);
349
public static
SqlBoolean
operator !=(SqlInt64 x, SqlInt64 y)
354
public static
SqlBoolean
operator <(SqlInt64 x, SqlInt64 y)
356
return (x.IsNull || y.IsNull) ?
SqlBoolean
.Null : new SqlBoolean(x.m_value < y.m_value);
359
public static
SqlBoolean
operator >(SqlInt64 x, SqlInt64 y)
361
return (x.IsNull || y.IsNull) ?
SqlBoolean
.Null : new SqlBoolean(x.m_value > y.m_value);
364
public static
SqlBoolean
operator <=(SqlInt64 x, SqlInt64 y)
366
return (x.IsNull || y.IsNull) ?
SqlBoolean
.Null : new SqlBoolean(x.m_value <= y.m_value);
369
public static
SqlBoolean
operator >=(SqlInt64 x, SqlInt64 y)
371
return (x.IsNull || y.IsNull) ?
SqlBoolean
.Null : new SqlBoolean(x.m_value >= y.m_value);
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)
474
public
SqlBoolean
ToSqlBoolean()
476
return (
SqlBoolean
)this;
System\Data\SQLTypes\SQLMoney.cs (20)
311
public static explicit operator SqlMoney(
SqlBoolean
x)
372
public static
SqlBoolean
operator ==(SqlMoney x, SqlMoney y)
374
return (x.IsNull || y.IsNull) ?
SqlBoolean
.Null : new SqlBoolean(x._value == y._value);
377
public static
SqlBoolean
operator !=(SqlMoney x, SqlMoney y)
382
public static
SqlBoolean
operator <(SqlMoney x, SqlMoney y)
384
return (x.IsNull || y.IsNull) ?
SqlBoolean
.Null : new SqlBoolean(x._value < y._value);
387
public static
SqlBoolean
operator >(SqlMoney x, SqlMoney y)
389
return (x.IsNull || y.IsNull) ?
SqlBoolean
.Null : new SqlBoolean(x._value > y._value);
392
public static
SqlBoolean
operator <=(SqlMoney x, SqlMoney y)
394
return (x.IsNull || y.IsNull) ?
SqlBoolean
.Null : new SqlBoolean(x._value <= y._value);
397
public static
SqlBoolean
operator >=(SqlMoney x, SqlMoney y)
399
return (x.IsNull || y.IsNull) ?
SqlBoolean
.Null : new SqlBoolean(x._value >= y._value);
431
public static
SqlBoolean
Equals(SqlMoney x, SqlMoney y)
437
public static
SqlBoolean
NotEquals(SqlMoney x, SqlMoney y)
443
public static
SqlBoolean
LessThan(SqlMoney x, SqlMoney y)
449
public static
SqlBoolean
GreaterThan(SqlMoney x, SqlMoney y)
455
public static
SqlBoolean
LessThanOrEqual(SqlMoney x, SqlMoney y)
461
public static
SqlBoolean
GreaterThanOrEqual(SqlMoney x, SqlMoney y)
468
public
SqlBoolean
ToSqlBoolean()
470
return (
SqlBoolean
)this;
System\Data\SQLTypes\SQLSingle.cs (20)
163
public static explicit operator SqlSingle(
SqlBoolean
x)
229
public static
SqlBoolean
operator ==(SqlSingle x, SqlSingle y)
231
return (x.IsNull || y.IsNull) ?
SqlBoolean
.Null : new SqlBoolean(x._value == y._value);
234
public static
SqlBoolean
operator !=(SqlSingle x, SqlSingle y)
239
public static
SqlBoolean
operator <(SqlSingle x, SqlSingle y)
241
return (x.IsNull || y.IsNull) ?
SqlBoolean
.Null : new SqlBoolean(x._value < y._value);
244
public static
SqlBoolean
operator >(SqlSingle x, SqlSingle y)
246
return (x.IsNull || y.IsNull) ?
SqlBoolean
.Null : new SqlBoolean(x._value > y._value);
249
public static
SqlBoolean
operator <=(SqlSingle x, SqlSingle y)
251
return (x.IsNull || y.IsNull) ?
SqlBoolean
.Null : new SqlBoolean(x._value <= y._value);
254
public static
SqlBoolean
operator >=(SqlSingle x, SqlSingle y)
256
return (x.IsNull || y.IsNull) ?
SqlBoolean
.Null : new SqlBoolean(x._value >= y._value);
287
public static
SqlBoolean
Equals(SqlSingle x, SqlSingle y)
293
public static
SqlBoolean
NotEquals(SqlSingle x, SqlSingle y)
299
public static
SqlBoolean
LessThan(SqlSingle x, SqlSingle y)
305
public static
SqlBoolean
GreaterThan(SqlSingle x, SqlSingle y)
311
public static
SqlBoolean
LessThanOrEqual(SqlSingle x, SqlSingle y)
317
public static
SqlBoolean
GreaterThanOrEqual(SqlSingle x, SqlSingle y)
324
public
SqlBoolean
ToSqlBoolean()
326
return (
SqlBoolean
)this;
System\Data\SQLTypes\SQLString.cs (18)
410
private static
SqlBoolean
Compare(SqlString x, SqlString y, EComparison ecExpectedResult)
413
return
SqlBoolean
.Null;
443
return
SqlBoolean
.Null;
458
public static explicit operator SqlString(
SqlBoolean
x)
535
public static
SqlBoolean
operator ==(SqlString x, SqlString y)
540
public static
SqlBoolean
operator !=(SqlString x, SqlString y)
545
public static
SqlBoolean
operator <(SqlString x, SqlString y)
550
public static
SqlBoolean
operator >(SqlString x, SqlString y)
555
public static
SqlBoolean
operator <=(SqlString x, SqlString y)
560
public static
SqlBoolean
operator >=(SqlString x, SqlString y)
581
public static
SqlBoolean
Equals(SqlString x, SqlString y)
587
public static
SqlBoolean
NotEquals(SqlString x, SqlString y)
593
public static
SqlBoolean
LessThan(SqlString x, SqlString y)
599
public static
SqlBoolean
GreaterThan(SqlString x, SqlString y)
605
public static
SqlBoolean
LessThanOrEqual(SqlString x, SqlString y)
611
public static
SqlBoolean
GreaterThanOrEqual(SqlString x, SqlString y)
618
public
SqlBoolean
ToSqlBoolean()
620
return (
SqlBoolean
)this;
System\Data\TypeLimiter.cs (1)
152
typeof(
SqlBoolean
),
System\Data\xmlsaver.cs (1)
243
if (type == typeof(bool) || type == typeof(
SqlBoolean
))