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