84 instantiations of SqlBoolean
System.Data (84)
fx\src\data\Microsoft\SqlServer\Server\ValueUtilsSmi.cs (2)
326
return new
SqlBoolean
( GetBoolean_Unchecked( sink, getters, ordinal ) );
1002
result = new
SqlBoolean
( GetBoolean_Unchecked( sink, getters, ordinal ) );
fx\src\data\System\Data\Common\SQLConvert.cs (1)
626
return new
SqlBoolean
(XmlConvert.ToBoolean((string)value));
fx\src\data\System\Data\Common\SQLTypes\SQlBooleanStorage.cs (1)
121
SqlBoolean newValue = new
SqlBoolean
();
fx\src\data\System\Data\SqlClient\SqlBuffer.cs (1)
448
return new
SqlBoolean
(_value._boolean);
fx\src\data\System\Data\SqlClient\SqlEnums.cs (1)
509
sqlVal = new
SqlBoolean
((bool)comVal);
fx\src\data\System\Data\SQLTypes\SQLBinary.cs (5)
258
return new
SqlBoolean
(PerformCompareByte(x.Value, y.Value) == EComparison.EQ);
281
return new
SqlBoolean
(PerformCompareByte(x.Value, y.Value) == EComparison.LT);
293
return new
SqlBoolean
(PerformCompareByte(x.Value, y.Value) == EComparison.GT);
306
return new
SqlBoolean
(cmpResult == EComparison.LT || cmpResult == EComparison.EQ);
319
return new
SqlBoolean
(cmpResult == EComparison.GT || cmpResult == EComparison.EQ);
fx\src\data\System\Data\SQLTypes\SQLBoolean.cs (22)
138
return new
SqlBoolean
(x);
252
return new
SqlBoolean
(Boolean.Parse(s));
259
return new
SqlBoolean
(Int32.Parse(s, (IFormatProvider)null));
262
return new
SqlBoolean
(Boolean.Parse(s));
282
return(x.IsNull || y.IsNull) ? Null : new
SqlBoolean
(x.m_value != y.m_value);
297
return x.IsNull ? Null : new
SqlBoolean
(x.Value != 0);
305
return x.IsNull ? Null : new
SqlBoolean
(x.Value != 0);
313
return x.IsNull ? Null : new
SqlBoolean
(x.Value != 0);
321
return x.IsNull ? Null : new
SqlBoolean
(x.Value != 0);
329
return x.IsNull ? Null : new
SqlBoolean
(x.Value != 0.0);
337
return x.IsNull ? Null : new
SqlBoolean
(x.Value != 0.0);
353
return x.IsNull ? SqlBoolean.Null : new
SqlBoolean
(x.m_data1 != 0 || x.m_data2 != 0 ||
371
return(x.IsNull || y.IsNull) ? SqlBoolean.Null : new
SqlBoolean
(x.m_value == y.m_value);
385
return(x.IsNull || y.IsNull) ? SqlBoolean.Null : new
SqlBoolean
(x.m_value < y.m_value);
392
return(x.IsNull || y.IsNull) ? SqlBoolean.Null : new
SqlBoolean
(x.m_value > y.m_value);
399
return(x.IsNull || y.IsNull) ? SqlBoolean.Null : new
SqlBoolean
(x.m_value <= y.m_value);
406
return(x.IsNull || y.IsNull) ? SqlBoolean.Null : new
SqlBoolean
(x.m_value >= y.m_value);
606
public static readonly SqlBoolean True = new
SqlBoolean
(true);
614
public static readonly SqlBoolean False = new
SqlBoolean
(false);
621
public static readonly SqlBoolean Null = new
SqlBoolean
(0, true);
626
public static readonly SqlBoolean Zero = new
SqlBoolean
(0);
630
public static readonly SqlBoolean One = new
SqlBoolean
(1);
fx\src\data\System\Data\SQLTypes\SQLByte.cs (5)
342
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);
363
return(x.IsNull || y.IsNull) ? SqlBoolean.Null : new
SqlBoolean
(x.m_value > y.m_value);
370
return(x.IsNull || y.IsNull) ? SqlBoolean.Null : new
SqlBoolean
(x.m_value <= y.m_value);
377
return(x.IsNull || y.IsNull) ? SqlBoolean.Null : new
SqlBoolean
(x.m_value >= y.m_value);
fx\src\data\System\Data\SQLTypes\SQLDateTime.cs (5)
502
return(x.IsNull || y.IsNull) ? SqlBoolean.Null : new
SqlBoolean
(x.m_day == y.m_day && x.m_time == y.m_time);
511
new
SqlBoolean
(x.m_day < y.m_day || (x.m_day == y.m_day && x.m_time < y.m_time));
516
new
SqlBoolean
(x.m_day > y.m_day || (x.m_day == y.m_day && x.m_time > y.m_time));
521
new
SqlBoolean
(x.m_day < y.m_day || (x.m_day == y.m_day && x.m_time <= y.m_time));
526
new
SqlBoolean
(x.m_day > y.m_day || (x.m_day == y.m_day && x.m_time >= y.m_time));
fx\src\data\System\Data\SQLTypes\SQLDecimal.cs (5)
2770
return(x.IsNull || y.IsNull) ? SqlBoolean.Null : new
SqlBoolean
(x.CompareNm(y) == EComparison.EQ);
2784
return(x.IsNull || y.IsNull) ? SqlBoolean.Null : new
SqlBoolean
(x.CompareNm(y) == EComparison.LT);
2791
return(x.IsNull || y.IsNull) ? SqlBoolean.Null : new
SqlBoolean
(x.CompareNm(y) == EComparison.GT);
2802
return new
SqlBoolean
(result == EComparison.LT || result == EComparison.EQ);
2814
return new
SqlBoolean
(result == EComparison.GT || result == EComparison.EQ);
fx\src\data\System\Data\SQLTypes\SQLDouble.cs (5)
292
return(x.IsNull || y.IsNull) ? SqlBoolean.Null : new
SqlBoolean
(x.m_value == y.m_value);
306
return(x.IsNull || y.IsNull) ? SqlBoolean.Null : new
SqlBoolean
(x.m_value < y.m_value);
313
return(x.IsNull || y.IsNull) ? SqlBoolean.Null : new
SqlBoolean
(x.m_value > y.m_value);
320
return(x.IsNull || y.IsNull) ? SqlBoolean.Null : new
SqlBoolean
(x.m_value <= y.m_value);
327
return(x.IsNull || y.IsNull) ? SqlBoolean.Null : new
SqlBoolean
(x.m_value >= y.m_value);
fx\src\data\System\Data\SQLTypes\SQLGuid.cs (5)
208
return(x.IsNull || y.IsNull) ? SqlBoolean.Null : new
SqlBoolean
(Compare(x, y) == EComparison.EQ);
222
return(x.IsNull || y.IsNull) ? SqlBoolean.Null : new
SqlBoolean
(Compare(x, y) == EComparison.LT);
229
return(x.IsNull || y.IsNull) ? SqlBoolean.Null : new
SqlBoolean
(Compare(x, y) == EComparison.GT);
240
return new
SqlBoolean
(cmp == EComparison.LT || cmp == EComparison.EQ);
251
return new
SqlBoolean
(cmp == EComparison.GT || cmp == EComparison.EQ);
fx\src\data\System\Data\SQLTypes\SQLInt16.cs (5)
352
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);
373
return(x.IsNull || y.IsNull) ? SqlBoolean.Null : new
SqlBoolean
(x.m_value > y.m_value);
380
return(x.IsNull || y.IsNull) ? SqlBoolean.Null : new
SqlBoolean
(x.m_value <= y.m_value);
387
return(x.IsNull || y.IsNull) ? SqlBoolean.Null : new
SqlBoolean
(x.m_value >= y.m_value);
fx\src\data\System\Data\SQLTypes\SQLInt32.cs (5)
364
return(x.IsNull || y.IsNull) ? SqlBoolean.Null : new
SqlBoolean
(x.m_value == y.m_value);
378
return(x.IsNull || y.IsNull) ? SqlBoolean.Null : new
SqlBoolean
(x.m_value < y.m_value);
385
return(x.IsNull || y.IsNull) ? SqlBoolean.Null : new
SqlBoolean
(x.m_value > y.m_value);
392
return(x.IsNull || y.IsNull) ? SqlBoolean.Null : new
SqlBoolean
(x.m_value <= y.m_value);
399
return(x.IsNull || y.IsNull) ? SqlBoolean.Null : new
SqlBoolean
(x.m_value >= y.m_value);
fx\src\data\System\Data\SQLTypes\SQLInt64.cs (5)
419
return(x.IsNull || y.IsNull) ? SqlBoolean.Null : new
SqlBoolean
(x.m_value == y.m_value);
433
return(x.IsNull || y.IsNull) ? SqlBoolean.Null : new
SqlBoolean
(x.m_value < y.m_value);
440
return(x.IsNull || y.IsNull) ? SqlBoolean.Null : new
SqlBoolean
(x.m_value > y.m_value);
447
return(x.IsNull || y.IsNull) ? SqlBoolean.Null : new
SqlBoolean
(x.m_value <= y.m_value);
454
return(x.IsNull || y.IsNull) ? SqlBoolean.Null : new
SqlBoolean
(x.m_value >= y.m_value);
fx\src\data\System\Data\SQLTypes\SQLMoney.cs (5)
432
return(x.IsNull || y.IsNull) ? SqlBoolean.Null : new
SqlBoolean
(x.m_value == y.m_value);
446
return(x.IsNull || y.IsNull) ? SqlBoolean.Null : new
SqlBoolean
(x.m_value < y.m_value);
453
return(x.IsNull || y.IsNull) ? SqlBoolean.Null : new
SqlBoolean
(x.m_value > y.m_value);
460
return(x.IsNull || y.IsNull) ? SqlBoolean.Null : new
SqlBoolean
(x.m_value <= y.m_value);
467
return(x.IsNull || y.IsNull) ? SqlBoolean.Null : new
SqlBoolean
(x.m_value >= y.m_value);
fx\src\data\System\Data\SQLTypes\SQLSingle.cs (5)
297
return(x.IsNull || y.IsNull) ? SqlBoolean.Null : new
SqlBoolean
(x.m_value == y.m_value);
311
return(x.IsNull || y.IsNull) ? SqlBoolean.Null : new
SqlBoolean
(x.m_value < y.m_value);
318
return(x.IsNull || y.IsNull) ? SqlBoolean.Null : new
SqlBoolean
(x.m_value > y.m_value);
325
return(x.IsNull || y.IsNull) ? SqlBoolean.Null : new
SqlBoolean
(x.m_value <= y.m_value);
332
return(x.IsNull || y.IsNull) ? SqlBoolean.Null : new
SqlBoolean
(x.m_value >= y.m_value);
fx\src\data\System\Data\SQLTypes\SQLString.cs (1)
495
return new
SqlBoolean
(fResult);
461 references to SqlBoolean
System.Data (461)
fx\src\data\Microsoft\SqlServer\Server\ITypedGetters.cs (1)
53
SqlBoolean
GetSqlBoolean( int ordinal );
fx\src\data\Microsoft\SqlServer\Server\ITypedSetters.cs (1)
52
void SetSqlBoolean( int ordinal,
SqlBoolean
value );
fx\src\data\Microsoft\SqlServer\Server\MetadataUtilsSmi.cs (2)
115
ht.Add( typeof(
SqlBoolean
), ExtendedClrTypeCode.SqlBoolean );
227
else if (value.GetType() == typeof(
SqlBoolean
))
fx\src\data\Microsoft\SqlServer\Server\SmiMetaData.cs (28)
1165
private
SqlBoolean
_isKey; // Is this one of a set of key columns that uniquely identify an underlying table?
1189
SqlBoolean
isKey,
1233
SqlBoolean
isKey,
1281
SqlBoolean
isKey,
1332
SqlBoolean
isKey,
1397
internal
SqlBoolean
IsKey {
1447
private
SqlBoolean
_isExpression;
1448
private
SqlBoolean
_isAliased;
1449
private
SqlBoolean
_isHidden;
1471
SqlBoolean
isKey,
1474
SqlBoolean
isExpression,
1475
SqlBoolean
isAliased,
1476
SqlBoolean
isHidden ) :
1522
SqlBoolean
isKey,
1525
SqlBoolean
isExpression,
1526
SqlBoolean
isAliased,
1527
SqlBoolean
isHidden ) :
1577
SqlBoolean
isKey,
1580
SqlBoolean
isExpression,
1581
SqlBoolean
isAliased,
1582
SqlBoolean
isHidden) :
1634
SqlBoolean
isKey,
1638
SqlBoolean
isExpression,
1639
SqlBoolean
isAliased,
1640
SqlBoolean
isHidden ) :
1677
internal
SqlBoolean
IsExpression {
1683
internal
SqlBoolean
IsAliased {
1689
internal
SqlBoolean
IsHidden {
fx\src\data\Microsoft\SqlServer\Server\SmiRecordBuffer.cs (2)
252
public virtual
SqlBoolean
GetSqlBoolean( int ordinal ) {
605
public virtual void SetSqlBoolean( int ordinal,
SqlBoolean
value ) {
fx\src\data\Microsoft\SqlServer\Server\SmiRequestExecutor.cs (2)
310
public virtual
SqlBoolean
GetSqlBoolean( int ordinal ) {
663
public virtual void SetSqlBoolean( int ordinal,
SqlBoolean
value ) {
fx\src\data\Microsoft\SqlServer\Server\SqlDataRecord.cs (2)
288
public virtual
SqlBoolean
GetSqlBoolean(int ordinal) {
493
public virtual void SetSqlBoolean(int ordinal,
SqlBoolean
value) {
fx\src\data\Microsoft\SqlServer\Server\ValueUtilsSmi.cs (7)
321
internal static
SqlBoolean
GetSqlBoolean( SmiEventSink_Default sink, ITypedGettersV3 getters, int ordinal, SmiMetaData metaData ) {
324
return
SqlBoolean
.Null;
332
return (
SqlBoolean
) result;
1086
SqlBoolean
.Null, // SqlDbType.Bit
1463
internal static void SetSqlBoolean( SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal, SmiMetaData metaData,
SqlBoolean
value ) {
1617
case ExtendedClrTypeCode.SqlBoolean: SetSqlBoolean_Unchecked( sink, setters, ordinal, (
SqlBoolean
) value ); break;
3387
private static void SetSqlBoolean_Unchecked( SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal,
SqlBoolean
value ) {
fx\src\data\System\Data\ColumnTypeConverter.cs (1)
51
typeof(
SqlBoolean
),
fx\src\data\System\Data\Common\DataStorage.cs (1)
100
typeof(
SqlBoolean
),
fx\src\data\System\Data\Common\SQLConvert.cs (5)
311
public static
SqlBoolean
ConvertToSqlBoolean(object value) {
314
return
SqlBoolean
.Null;
321
return (
SqlBoolean
)value;
325
throw ExceptionBuilder.ConvertFailed(valueType, typeof(
SqlBoolean
));
715
return XmlConvert.ToString(((
SqlBoolean
)value).Value);
fx\src\data\System\Data\Common\SQLTypes\SQlBooleanStorage.cs (19)
22
private
SqlBoolean
[] values;
25
: base(column, typeof(
SqlBoolean
),
SqlBoolean
.Null,
SqlBoolean
.Null, StorageType.SqlBoolean) {
33
SqlBoolean
min = true;
38
min=
SqlBoolean
.And(values[record], min);
47
SqlBoolean
max = false;
52
max=
SqlBoolean
.Or(values[record], max);
76
throw ExprException.Overflow(typeof(
SqlBoolean
));
86
return values[recordNo].CompareTo((
SqlBoolean
)value);
113
SqlBoolean
[] newValues = new
SqlBoolean
[capacity];
121
SqlBoolean
newValue = new SqlBoolean();
130
return ((
SqlBoolean
)tmp);
135
Debug.Assert((value.GetType() == typeof(
SqlBoolean
)), "wrong input type");
146
return new
SqlBoolean
[recordCount];
150
SqlBoolean
[] typedStore = (
SqlBoolean
[]) store;
156
values = (
SqlBoolean
[]) store;
fx\src\data\System\Data\Filter\BinaryNode.cs (11)
203
if (((vLeft.GetType() == typeof(
SqlBoolean
)) && ((vRight.GetType() == typeof(
SqlBoolean
))|| (vRight.GetType() == typeof(Boolean))))||
204
((vRight.GetType() == typeof(
SqlBoolean
)) && ((vLeft.GetType() == typeof(
SqlBoolean
))|| (vLeft.GetType() == typeof(Boolean))))){
677
if ((!(vLeft is bool)) && (!(vLeft is
SqlBoolean
))){
690
if (((
SqlBoolean
) vLeft).IsFalse){
699
if ((!(vRight is bool)) && (!(vRight is
SqlBoolean
))){
709
value = ((
SqlBoolean
) vRight).IsTrue;
723
if ((!(vLeft is bool)) && (!(vLeft is
SqlBoolean
))) {
742
if ((!(vRight is bool)) && (!(vRight is
SqlBoolean
))) {
747
value = (vRight is bool) ? ((bool)vRight) : (((
SqlBoolean
)vRight).IsTrue);
fx\src\data\System\Data\Filter\DataExpression.cs (2)
220
if (value is
SqlBoolean
){
221
return (((
SqlBoolean
)value).IsTrue);
fx\src\data\System\Data\Filter\UnaryNode.cs (5)
120
if (vl is
SqlBoolean
){
121
if (((
SqlBoolean
)vl).IsFalse){
122
return
SqlBoolean
.True;
124
else if (((
SqlBoolean
)vl).IsTrue) {
125
return
SqlBoolean
.False;
fx\src\data\System\Data\Sql\SqlMetaData.cs (5)
800
public
SqlBoolean
Adjust(
SqlBoolean
value) {
1078
else if (dataType == typeof(
SqlBoolean
))
1079
value = this.Adjust((
SqlBoolean
)value);
1207
else if (dataType == typeof(
SqlBoolean
))
fx\src\data\System\Data\SqlClient\SqlBuffer.cs (4)
442
internal
SqlBoolean
SqlBoolean {
446
return
SqlBoolean
.Null;
450
return (
SqlBoolean
)this.SqlValue; // anything else we haven't thought of goes through boxing.
742
case SqlBuffer.StorageType.Boolean: return typeof(
SqlBoolean
);
fx\src\data\System\Data\SqlClient\SqlDataReader.cs (1)
2284
virtual public
SqlBoolean
GetSqlBoolean(int i) {
fx\src\data\System\Data\SqlClient\SqlDataReaderSmi.cs (1)
733
public override
SqlBoolean
GetSqlBoolean(int ordinal) {
fx\src\data\System\Data\SqlClient\SqlEnums.cs (6)
306
else if (dataType == typeof(
SqlBoolean
))
394
else if (sqlType == typeof(
SqlBoolean
)) return
SqlBoolean
.Null;
440
else if (sqlVal is
SqlBoolean
)
441
comVal = ((
SqlBoolean
)sqlVal).Value;
740
(255, 255, 1, true, false, false, TdsEnums.SQLBIT, TdsEnums.SQLBITN, MetaTypeName.BIT, typeof(System.Boolean), typeof(
SqlBoolean
), SqlDbType.Bit, DbType.Boolean, 0);
fx\src\data\System\Data\SqlClient\TdsParser.cs (2)
9996
if (((
SqlBoolean
)value).Value == true)
10960
return SerializeLong(((
SqlBoolean
)value).Value == true ? 1 : 0, stateObj);
fx\src\data\System\Data\SQLTypes\SQLBinary.cs (17)
254
public static
SqlBoolean
operator==(SqlBinary x, SqlBinary y) {
256
return
SqlBoolean
.Null;
267
public static
SqlBoolean
operator!=(SqlBinary x, SqlBinary y) {
277
public static
SqlBoolean
operator<(SqlBinary x, SqlBinary y) {
279
return
SqlBoolean
.Null;
289
public static
SqlBoolean
operator>(SqlBinary x, SqlBinary y) {
291
return
SqlBoolean
.Null;
301
public static
SqlBoolean
operator<=(SqlBinary x, SqlBinary y) {
303
return
SqlBoolean
.Null;
314
public static
SqlBoolean
operator>=(SqlBinary x, SqlBinary y) {
316
return
SqlBoolean
.Null;
336
public static
SqlBoolean
Equals(SqlBinary x, SqlBinary y) {
341
public static
SqlBoolean
NotEquals(SqlBinary x, SqlBinary y) {
346
public static
SqlBoolean
LessThan(SqlBinary x, SqlBinary y) {
351
public static
SqlBoolean
GreaterThan(SqlBinary x, SqlBinary y) {
356
public static
SqlBoolean
LessThanOrEqual(SqlBinary x, SqlBinary y) {
361
public static
SqlBoolean
GreaterThanOrEqual(SqlBinary x, SqlBinary y) {
fx\src\data\System\Data\SQLTypes\SQLBoolean.cs (123)
57
/// Initializes a new instance of the <see cref='System.Data.SqlTypes.
SqlBoolean
'/> class.
81
/// Gets whether the current <see cref='System.Data.SqlTypes.
SqlBoolean
.Value'/> is <see cref='System.Data.SqlTypes.
SqlBoolean
.Null'/>.
91
/// Gets or sets the <see cref='System.Data.SqlTypes.
SqlBoolean
'/> to be <see langword='true'/> or
113
/// Gets whether the current <see cref='System.Data.SqlTypes.
SqlBoolean
.Value'/> is <see cref='System.Data.SqlTypes.
SqlBoolean
.True'/>.
123
/// Gets whether the current <see cref='System.Data.SqlTypes.
SqlBoolean
.Value'/> is <see cref='System.Data.SqlTypes.
SqlBoolean
.False'/>.
134
/// Converts a boolean to a <see cref='System.Data.SqlTypes.
SqlBoolean
'/>.
137
public static implicit operator
SqlBoolean
(bool x) {
144
/// Converts a <see cref='System.Data.SqlTypes.
SqlBoolean
'/>
148
public static explicit operator bool(
SqlBoolean
x) {
157
/// Performs a NOT operation on a <see cref='System.Data.SqlTypes.
SqlBoolean
'/>
161
public static
SqlBoolean
operator !(
SqlBoolean
x) {
164
return
SqlBoolean
.False;
167
return
SqlBoolean
.True;
171
return
SqlBoolean
.Null;
178
public static bool operator true(
SqlBoolean
x) {
185
public static bool operator false(
SqlBoolean
x) {
194
/// <see cref='System.Data.SqlTypes.
SqlBoolean
'/>
198
public static
SqlBoolean
operator &(
SqlBoolean
x,
SqlBoolean
y) {
200
return
SqlBoolean
.False;
202
return
SqlBoolean
.True;
204
return
SqlBoolean
.Null;
211
/// <see cref='System.Data.SqlTypes.
SqlBoolean
'/>
215
public static
SqlBoolean
operator |(
SqlBoolean
x,
SqlBoolean
y) {
217
return
SqlBoolean
.True;
219
return
SqlBoolean
.False;
221
return
SqlBoolean
.Null;
249
public static
SqlBoolean
Parse(String s) {
254
return
SqlBoolean
.Null;
271
public static
SqlBoolean
operator ~(
SqlBoolean
x) {
281
public static
SqlBoolean
operator ^(
SqlBoolean
x,
SqlBoolean
y) {
296
public static explicit operator
SqlBoolean
(SqlByte x) {
304
public static explicit operator
SqlBoolean
(SqlInt16 x) {
312
public static explicit operator
SqlBoolean
(SqlInt32 x) {
320
public static explicit operator
SqlBoolean
(SqlInt64 x) {
328
public static explicit operator
SqlBoolean
(SqlDouble x) {
336
public static explicit operator
SqlBoolean
(SqlSingle x) {
344
public static explicit operator
SqlBoolean
(SqlMoney x) {
352
public static explicit operator
SqlBoolean
(SqlDecimal x) {
353
return x.IsNull ?
SqlBoolean
.Null : new SqlBoolean(x.m_data1 != 0 || x.m_data2 != 0 ||
362
public static explicit operator
SqlBoolean
(SqlString x) {
363
return x.IsNull ? Null :
SqlBoolean
.Parse(x.Value);
370
public static
SqlBoolean
operator==(
SqlBoolean
x,
SqlBoolean
y) {
371
return(x.IsNull || y.IsNull) ?
SqlBoolean
.Null : new SqlBoolean(x.m_value == y.m_value);
377
public static
SqlBoolean
operator!=(
SqlBoolean
x,
SqlBoolean
y) {
384
public static
SqlBoolean
operator<(
SqlBoolean
x,
SqlBoolean
y) {
385
return(x.IsNull || y.IsNull) ?
SqlBoolean
.Null : new SqlBoolean(x.m_value < y.m_value);
391
public static
SqlBoolean
operator>(
SqlBoolean
x,
SqlBoolean
y) {
392
return(x.IsNull || y.IsNull) ?
SqlBoolean
.Null : new SqlBoolean(x.m_value > y.m_value);
398
public static
SqlBoolean
operator<=(
SqlBoolean
x,
SqlBoolean
y) {
399
return(x.IsNull || y.IsNull) ?
SqlBoolean
.Null : new SqlBoolean(x.m_value <= y.m_value);
405
public static
SqlBoolean
operator>=(
SqlBoolean
x,
SqlBoolean
y) {
406
return(x.IsNull || y.IsNull) ?
SqlBoolean
.Null : new SqlBoolean(x.m_value >= y.m_value);
414
public static
SqlBoolean
OnesComplement(
SqlBoolean
x) {
419
public static
SqlBoolean
And(
SqlBoolean
x,
SqlBoolean
y) {
424
public static
SqlBoolean
Or(
SqlBoolean
x,
SqlBoolean
y) {
429
public static
SqlBoolean
Xor(
SqlBoolean
x,
SqlBoolean
y) {
434
public static
SqlBoolean
Equals(
SqlBoolean
x,
SqlBoolean
y) {
439
public static
SqlBoolean
NotEquals(
SqlBoolean
x,
SqlBoolean
y) {
444
public static
SqlBoolean
GreaterThan(
SqlBoolean
x,
SqlBoolean
y) {
449
public static
SqlBoolean
LessThan(
SqlBoolean
x,
SqlBoolean
y) {
454
public static
SqlBoolean
GreaterThanOrEquals(
SqlBoolean
x,
SqlBoolean
y) {
459
public static
SqlBoolean
LessThanOrEquals(
SqlBoolean
x,
SqlBoolean
y) {
514
if (value is
SqlBoolean
) {
515
SqlBoolean
i = (
SqlBoolean
)value;
519
throw ADP.WrongType(value.GetType(), typeof(
SqlBoolean
));
522
public int CompareTo(
SqlBoolean
value) {
540
if (!(value is
SqlBoolean
)) {
544
SqlBoolean
i = (
SqlBoolean
)value;
602
/// <see cref='System.Data.SqlTypes.
SqlBoolean
.Value'/> property of an instance of
603
/// the <see cref='System.Data.SqlTypes.
SqlBoolean
'/> class.
606
public static readonly
SqlBoolean
True = new SqlBoolean(true);
610
/// <see cref='System.Data.SqlTypes.
SqlBoolean
.Value'/> property of an instance of
611
/// the <see cref='System.Data.SqlTypes.
SqlBoolean
'/> class.
614
public static readonly
SqlBoolean
False = new SqlBoolean(false);
617
/// Represents a null value that can be assigned to the <see cref='System.Data.SqlTypes.
SqlBoolean
.Value'/> property of an instance of
618
/// the <see cref='System.Data.SqlTypes.
SqlBoolean
'/> class.
621
public static readonly
SqlBoolean
Null = new SqlBoolean(0, true);
626
public static readonly
SqlBoolean
Zero = new SqlBoolean(0);
630
public static readonly
SqlBoolean
One = new SqlBoolean(1);
fx\src\data\System\Data\SQLTypes\SQLByte.cs (20)
235
public static explicit operator SqlByte(
SqlBoolean
x) {
341
public static
SqlBoolean
operator==(SqlByte x, SqlByte y) {
342
return(x.IsNull || y.IsNull) ?
SqlBoolean
.Null : new SqlBoolean(x.m_value == y.m_value);
348
public static
SqlBoolean
operator!=(SqlByte x, SqlByte y) {
355
public static
SqlBoolean
operator<(SqlByte x, SqlByte y) {
356
return(x.IsNull || y.IsNull) ?
SqlBoolean
.Null : new SqlBoolean(x.m_value < y.m_value);
362
public static
SqlBoolean
operator>(SqlByte x, SqlByte y) {
363
return(x.IsNull || y.IsNull) ?
SqlBoolean
.Null : new SqlBoolean(x.m_value > y.m_value);
369
public static
SqlBoolean
operator<=(SqlByte x, SqlByte y) {
370
return(x.IsNull || y.IsNull) ?
SqlBoolean
.Null : new SqlBoolean(x.m_value <= y.m_value);
376
public static
SqlBoolean
operator>=(SqlByte x, SqlByte y) {
377
return(x.IsNull || y.IsNull) ?
SqlBoolean
.Null : new SqlBoolean(x.m_value >= y.m_value);
434
public static
SqlBoolean
Equals(SqlByte x, SqlByte y) {
439
public static
SqlBoolean
NotEquals(SqlByte x, SqlByte y) {
444
public static
SqlBoolean
LessThan(SqlByte x, SqlByte y) {
449
public static
SqlBoolean
GreaterThan(SqlByte x, SqlByte y) {
454
public static
SqlBoolean
LessThanOrEqual(SqlByte x, SqlByte y) {
459
public static
SqlBoolean
GreaterThanOrEqual(SqlByte x, SqlByte y) {
465
public
SqlBoolean
ToSqlBoolean() {
466
return (
SqlBoolean
)this;
fx\src\data\System\Data\SQLTypes\SQLDateTime.cs (17)
501
public static
SqlBoolean
operator==(SqlDateTime x, SqlDateTime y) {
502
return(x.IsNull || y.IsNull) ?
SqlBoolean
.Null : new SqlBoolean(x.m_day == y.m_day && x.m_time == y.m_time);
505
public static
SqlBoolean
operator!=(SqlDateTime x, SqlDateTime y) {
509
public static
SqlBoolean
operator<(SqlDateTime x, SqlDateTime y) {
510
return(x.IsNull || y.IsNull) ?
SqlBoolean
.Null :
514
public static
SqlBoolean
operator>(SqlDateTime x, SqlDateTime y) {
515
return(x.IsNull || y.IsNull) ?
SqlBoolean
.Null :
519
public static
SqlBoolean
operator<=(SqlDateTime x, SqlDateTime y) {
520
return(x.IsNull || y.IsNull) ?
SqlBoolean
.Null :
524
public static
SqlBoolean
operator>=(SqlDateTime x, SqlDateTime y) {
525
return(x.IsNull || y.IsNull) ?
SqlBoolean
.Null :
534
public static
SqlBoolean
Equals(SqlDateTime x, SqlDateTime y) {
539
public static
SqlBoolean
NotEquals(SqlDateTime x, SqlDateTime y) {
544
public static
SqlBoolean
LessThan(SqlDateTime x, SqlDateTime y) {
549
public static
SqlBoolean
GreaterThan(SqlDateTime x, SqlDateTime y) {
554
public static
SqlBoolean
LessThanOrEqual(SqlDateTime x, SqlDateTime y) {
559
public static
SqlBoolean
GreaterThanOrEqual(SqlDateTime x, SqlDateTime y) {
fx\src\data\System\Data\SQLTypes\SQLDecimal.cs (20)
1703
public static explicit operator SqlDecimal(
SqlBoolean
x) {
2769
public static
SqlBoolean
operator==(SqlDecimal x, SqlDecimal y) {
2770
return(x.IsNull || y.IsNull) ?
SqlBoolean
.Null : new SqlBoolean(x.CompareNm(y) == EComparison.EQ);
2776
public static
SqlBoolean
operator!=(SqlDecimal x, SqlDecimal y) {
2783
public static
SqlBoolean
operator<(SqlDecimal x, SqlDecimal y) {
2784
return(x.IsNull || y.IsNull) ?
SqlBoolean
.Null : new SqlBoolean(x.CompareNm(y) == EComparison.LT);
2790
public static
SqlBoolean
operator>(SqlDecimal x, SqlDecimal y) {
2791
return(x.IsNull || y.IsNull) ?
SqlBoolean
.Null : new SqlBoolean(x.CompareNm(y) == EComparison.GT);
2797
public static
SqlBoolean
operator<=(SqlDecimal x, SqlDecimal y) {
2799
return
SqlBoolean
.Null;
2809
public static
SqlBoolean
operator>=(SqlDecimal x, SqlDecimal y) {
2811
return
SqlBoolean
.Null;
2843
public static
SqlBoolean
Equals(SqlDecimal x, SqlDecimal y) {
2848
public static
SqlBoolean
NotEquals(SqlDecimal x, SqlDecimal y) {
2853
public static
SqlBoolean
LessThan(SqlDecimal x, SqlDecimal y) {
2858
public static
SqlBoolean
GreaterThan(SqlDecimal x, SqlDecimal y) {
2863
public static
SqlBoolean
LessThanOrEqual(SqlDecimal x, SqlDecimal y) {
2868
public static
SqlBoolean
GreaterThanOrEqual(SqlDecimal x, SqlDecimal y) {
2874
public
SqlBoolean
ToSqlBoolean() {
2875
return (
SqlBoolean
)this;
fx\src\data\System\Data\SQLTypes\SQLDouble.cs (20)
210
public static explicit operator SqlDouble(
SqlBoolean
x) {
291
public static
SqlBoolean
operator==(SqlDouble x, SqlDouble y) {
292
return(x.IsNull || y.IsNull) ?
SqlBoolean
.Null : new SqlBoolean(x.m_value == y.m_value);
298
public static
SqlBoolean
operator!=(SqlDouble x, SqlDouble y) {
305
public static
SqlBoolean
operator<(SqlDouble x, SqlDouble y) {
306
return(x.IsNull || y.IsNull) ?
SqlBoolean
.Null : new SqlBoolean(x.m_value < y.m_value);
312
public static
SqlBoolean
operator>(SqlDouble x, SqlDouble y) {
313
return(x.IsNull || y.IsNull) ?
SqlBoolean
.Null : new SqlBoolean(x.m_value > y.m_value);
319
public static
SqlBoolean
operator<=(SqlDouble x, SqlDouble y) {
320
return(x.IsNull || y.IsNull) ?
SqlBoolean
.Null : new SqlBoolean(x.m_value <= y.m_value);
326
public static
SqlBoolean
operator>=(SqlDouble x, SqlDouble y) {
327
return(x.IsNull || y.IsNull) ?
SqlBoolean
.Null : new SqlBoolean(x.m_value >= y.m_value);
354
public static
SqlBoolean
Equals(SqlDouble x, SqlDouble y) {
359
public static
SqlBoolean
NotEquals(SqlDouble x, SqlDouble y) {
364
public static
SqlBoolean
LessThan(SqlDouble x, SqlDouble y) {
369
public static
SqlBoolean
GreaterThan(SqlDouble x, SqlDouble y) {
374
public static
SqlBoolean
LessThanOrEqual(SqlDouble x, SqlDouble y) {
379
public static
SqlBoolean
GreaterThanOrEqual(SqlDouble x, SqlDouble y) {
385
public
SqlBoolean
ToSqlBoolean() {
386
return (
SqlBoolean
)this;
fx\src\data\System\Data\SQLTypes\SQLGuid.cs (17)
207
public static
SqlBoolean
operator==(SqlGuid x, SqlGuid y) {
208
return(x.IsNull || y.IsNull) ?
SqlBoolean
.Null : new SqlBoolean(Compare(x, y) == EComparison.EQ);
214
public static
SqlBoolean
operator!=(SqlGuid x, SqlGuid y) {
221
public static
SqlBoolean
operator<(SqlGuid x, SqlGuid y) {
222
return(x.IsNull || y.IsNull) ?
SqlBoolean
.Null : new SqlBoolean(Compare(x, y) == EComparison.LT);
228
public static
SqlBoolean
operator>(SqlGuid x, SqlGuid y) {
229
return(x.IsNull || y.IsNull) ?
SqlBoolean
.Null : new SqlBoolean(Compare(x, y) == EComparison.GT);
235
public static
SqlBoolean
operator<=(SqlGuid x, SqlGuid y) {
237
return
SqlBoolean
.Null;
246
public static
SqlBoolean
operator>=(SqlGuid x, SqlGuid y) {
248
return
SqlBoolean
.Null;
259
public static
SqlBoolean
Equals(SqlGuid x, SqlGuid y) {
264
public static
SqlBoolean
NotEquals(SqlGuid x, SqlGuid y) {
269
public static
SqlBoolean
LessThan(SqlGuid x, SqlGuid y) {
274
public static
SqlBoolean
GreaterThan(SqlGuid x, SqlGuid y) {
279
public static
SqlBoolean
LessThanOrEqual(SqlGuid x, SqlGuid y) {
284
public static
SqlBoolean
GreaterThanOrEqual(SqlGuid x, SqlGuid y) {
fx\src\data\System\Data\SQLTypes\SQLInt16.cs (20)
249
public static explicit operator SqlInt16(
SqlBoolean
x) {
351
public static
SqlBoolean
operator==(SqlInt16 x, SqlInt16 y) {
352
return(x.IsNull || y.IsNull) ?
SqlBoolean
.Null : new SqlBoolean(x.m_value == y.m_value);
358
public static
SqlBoolean
operator!=(SqlInt16 x, SqlInt16 y) {
365
public static
SqlBoolean
operator<(SqlInt16 x, SqlInt16 y) {
366
return(x.IsNull || y.IsNull) ?
SqlBoolean
.Null : new SqlBoolean(x.m_value < y.m_value);
372
public static
SqlBoolean
operator>(SqlInt16 x, SqlInt16 y) {
373
return(x.IsNull || y.IsNull) ?
SqlBoolean
.Null : new SqlBoolean(x.m_value > y.m_value);
379
public static
SqlBoolean
operator<=(SqlInt16 x, SqlInt16 y) {
380
return(x.IsNull || y.IsNull) ?
SqlBoolean
.Null : new SqlBoolean(x.m_value <= y.m_value);
386
public static
SqlBoolean
operator>=(SqlInt16 x, SqlInt16 y) {
387
return(x.IsNull || y.IsNull) ?
SqlBoolean
.Null : new SqlBoolean(x.m_value >= y.m_value);
443
public static
SqlBoolean
Equals(SqlInt16 x, SqlInt16 y) {
448
public static
SqlBoolean
NotEquals(SqlInt16 x, SqlInt16 y) {
453
public static
SqlBoolean
LessThan(SqlInt16 x, SqlInt16 y) {
458
public static
SqlBoolean
GreaterThan(SqlInt16 x, SqlInt16 y) {
463
public static
SqlBoolean
LessThanOrEqual(SqlInt16 x, SqlInt16 y) {
468
public static
SqlBoolean
GreaterThanOrEqual(SqlInt16 x, SqlInt16 y) {
474
public
SqlBoolean
ToSqlBoolean() {
475
return (
SqlBoolean
)this;
fx\src\data\System\Data\SQLTypes\SQLInt32.cs (20)
249
public static explicit operator SqlInt32(
SqlBoolean
x) {
363
public static
SqlBoolean
operator==(SqlInt32 x, SqlInt32 y) {
364
return(x.IsNull || y.IsNull) ?
SqlBoolean
.Null : new SqlBoolean(x.m_value == y.m_value);
370
public static
SqlBoolean
operator!=(SqlInt32 x, SqlInt32 y) {
377
public static
SqlBoolean
operator<(SqlInt32 x, SqlInt32 y) {
378
return(x.IsNull || y.IsNull) ?
SqlBoolean
.Null : new SqlBoolean(x.m_value < y.m_value);
384
public static
SqlBoolean
operator>(SqlInt32 x, SqlInt32 y) {
385
return(x.IsNull || y.IsNull) ?
SqlBoolean
.Null : new SqlBoolean(x.m_value > y.m_value);
391
public static
SqlBoolean
operator<=(SqlInt32 x, SqlInt32 y) {
392
return(x.IsNull || y.IsNull) ?
SqlBoolean
.Null : new SqlBoolean(x.m_value <= y.m_value);
398
public static
SqlBoolean
operator>=(SqlInt32 x, SqlInt32 y) {
399
return(x.IsNull || y.IsNull) ?
SqlBoolean
.Null : new SqlBoolean(x.m_value >= y.m_value);
455
public static
SqlBoolean
Equals(SqlInt32 x, SqlInt32 y) {
460
public static
SqlBoolean
NotEquals(SqlInt32 x, SqlInt32 y) {
465
public static
SqlBoolean
LessThan(SqlInt32 x, SqlInt32 y) {
470
public static
SqlBoolean
GreaterThan(SqlInt32 x, SqlInt32 y) {
475
public static
SqlBoolean
LessThanOrEqual(SqlInt32 x, SqlInt32 y) {
480
public static
SqlBoolean
GreaterThanOrEqual(SqlInt32 x, SqlInt32 y) {
486
public
SqlBoolean
ToSqlBoolean() {
487
return (
SqlBoolean
)this;
fx\src\data\System\Data\SQLTypes\SQLInt64.cs (20)
295
public static explicit operator SqlInt64(
SqlBoolean
x) {
418
public static
SqlBoolean
operator==(SqlInt64 x, SqlInt64 y) {
419
return(x.IsNull || y.IsNull) ?
SqlBoolean
.Null : new SqlBoolean(x.m_value == y.m_value);
425
public static
SqlBoolean
operator!=(SqlInt64 x, SqlInt64 y) {
432
public static
SqlBoolean
operator<(SqlInt64 x, SqlInt64 y) {
433
return(x.IsNull || y.IsNull) ?
SqlBoolean
.Null : new SqlBoolean(x.m_value < y.m_value);
439
public static
SqlBoolean
operator>(SqlInt64 x, SqlInt64 y) {
440
return(x.IsNull || y.IsNull) ?
SqlBoolean
.Null : new SqlBoolean(x.m_value > y.m_value);
446
public static
SqlBoolean
operator<=(SqlInt64 x, SqlInt64 y) {
447
return(x.IsNull || y.IsNull) ?
SqlBoolean
.Null : new SqlBoolean(x.m_value <= y.m_value);
453
public static
SqlBoolean
operator>=(SqlInt64 x, SqlInt64 y) {
454
return(x.IsNull || y.IsNull) ?
SqlBoolean
.Null : new SqlBoolean(x.m_value >= y.m_value);
510
public static
SqlBoolean
Equals(SqlInt64 x, SqlInt64 y) {
515
public static
SqlBoolean
NotEquals(SqlInt64 x, SqlInt64 y) {
520
public static
SqlBoolean
LessThan(SqlInt64 x, SqlInt64 y) {
525
public static
SqlBoolean
GreaterThan(SqlInt64 x, SqlInt64 y) {
530
public static
SqlBoolean
LessThanOrEqual(SqlInt64 x, SqlInt64 y) {
535
public static
SqlBoolean
GreaterThanOrEqual(SqlInt64 x, SqlInt64 y) {
541
public
SqlBoolean
ToSqlBoolean() {
542
return (
SqlBoolean
)this;
fx\src\data\System\Data\SQLTypes\SQLMoney.cs (20)
352
public static explicit operator SqlMoney(
SqlBoolean
x) {
431
public static
SqlBoolean
operator==(SqlMoney x, SqlMoney y) {
432
return(x.IsNull || y.IsNull) ?
SqlBoolean
.Null : new SqlBoolean(x.m_value == y.m_value);
438
public static
SqlBoolean
operator!=(SqlMoney x, SqlMoney y) {
445
public static
SqlBoolean
operator<(SqlMoney x, SqlMoney y) {
446
return(x.IsNull || y.IsNull) ?
SqlBoolean
.Null : new SqlBoolean(x.m_value < y.m_value);
452
public static
SqlBoolean
operator>(SqlMoney x, SqlMoney y) {
453
return(x.IsNull || y.IsNull) ?
SqlBoolean
.Null : new SqlBoolean(x.m_value > y.m_value);
459
public static
SqlBoolean
operator<=(SqlMoney x, SqlMoney y) {
460
return(x.IsNull || y.IsNull) ?
SqlBoolean
.Null : new SqlBoolean(x.m_value <= y.m_value);
466
public static
SqlBoolean
operator>=(SqlMoney x, SqlMoney y) {
467
return(x.IsNull || y.IsNull) ?
SqlBoolean
.Null : new SqlBoolean(x.m_value >= y.m_value);
495
public static
SqlBoolean
Equals(SqlMoney x, SqlMoney y) {
500
public static
SqlBoolean
NotEquals(SqlMoney x, SqlMoney y) {
505
public static
SqlBoolean
LessThan(SqlMoney x, SqlMoney y) {
510
public static
SqlBoolean
GreaterThan(SqlMoney x, SqlMoney y) {
515
public static
SqlBoolean
LessThanOrEqual(SqlMoney x, SqlMoney y) {
520
public static
SqlBoolean
GreaterThanOrEqual(SqlMoney x, SqlMoney y) {
526
public
SqlBoolean
ToSqlBoolean() {
527
return (
SqlBoolean
)this;
fx\src\data\System\Data\SQLTypes\SQLSingle.cs (20)
212
public static explicit operator SqlSingle(
SqlBoolean
x) {
296
public static
SqlBoolean
operator==(SqlSingle x, SqlSingle y) {
297
return(x.IsNull || y.IsNull) ?
SqlBoolean
.Null : new SqlBoolean(x.m_value == y.m_value);
303
public static
SqlBoolean
operator!=(SqlSingle x, SqlSingle y) {
310
public static
SqlBoolean
operator<(SqlSingle x, SqlSingle y) {
311
return(x.IsNull || y.IsNull) ?
SqlBoolean
.Null : new SqlBoolean(x.m_value < y.m_value);
317
public static
SqlBoolean
operator>(SqlSingle x, SqlSingle y) {
318
return(x.IsNull || y.IsNull) ?
SqlBoolean
.Null : new SqlBoolean(x.m_value > y.m_value);
324
public static
SqlBoolean
operator<=(SqlSingle x, SqlSingle y) {
325
return(x.IsNull || y.IsNull) ?
SqlBoolean
.Null : new SqlBoolean(x.m_value <= y.m_value);
331
public static
SqlBoolean
operator>=(SqlSingle x, SqlSingle y) {
332
return(x.IsNull || y.IsNull) ?
SqlBoolean
.Null : new SqlBoolean(x.m_value >= y.m_value);
359
public static
SqlBoolean
Equals(SqlSingle x, SqlSingle y) {
364
public static
SqlBoolean
NotEquals(SqlSingle x, SqlSingle y) {
369
public static
SqlBoolean
LessThan(SqlSingle x, SqlSingle y) {
374
public static
SqlBoolean
GreaterThan(SqlSingle x, SqlSingle y) {
379
public static
SqlBoolean
LessThanOrEqual(SqlSingle x, SqlSingle y) {
384
public static
SqlBoolean
GreaterThanOrEqual(SqlSingle x, SqlSingle y) {
390
public
SqlBoolean
ToSqlBoolean() {
391
return (
SqlBoolean
)this;
fx\src\data\System\Data\SQLTypes\SQLString.cs (18)
460
private static
SqlBoolean
Compare(SqlString x, SqlString y, EComparison ecExpectedResult)
463
return
SqlBoolean
.Null;
492
return
SqlBoolean
.Null;
510
public static explicit operator SqlString(
SqlBoolean
x) {
610
public static
SqlBoolean
operator==(SqlString x, SqlString y) {
617
public static
SqlBoolean
operator!=(SqlString x, SqlString y) {
624
public static
SqlBoolean
operator<(SqlString x, SqlString y) {
631
public static
SqlBoolean
operator>(SqlString x, SqlString y) {
638
public static
SqlBoolean
operator<=(SqlString x, SqlString y) {
645
public static
SqlBoolean
operator>=(SqlString x, SqlString y) {
663
public static
SqlBoolean
Equals(SqlString x, SqlString y) {
668
public static
SqlBoolean
NotEquals(SqlString x, SqlString y) {
673
public static
SqlBoolean
LessThan(SqlString x, SqlString y) {
678
public static
SqlBoolean
GreaterThan(SqlString x, SqlString y) {
683
public static
SqlBoolean
LessThanOrEqual(SqlString x, SqlString y) {
688
public static
SqlBoolean
GreaterThanOrEqual(SqlString x, SqlString y) {
694
public
SqlBoolean
ToSqlBoolean() {
695
return (
SqlBoolean
)this;
fx\src\data\System\Data\xmlsaver.cs (1)
216
if (type == typeof(Boolean)|| type == typeof(
SqlBoolean
))