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