Name

SqlBoolean

Synopsis

A structure that represents an integer that is either a 1 (true) or 0 (false). Any nonzero value is interpreted as 1. This structure can be used with the SQL Server bit data type.

public struct SqlBoolean : INullable, IComparable {

// Public Constructors

   public SqlBoolean(bool value);  

   public SqlBoolean(int value);  

// Public Static Fields

   public static readonly SqlBoolean False;              // =False

   public static readonly SqlBoolean Null;               // =Null

   public static readonly SqlBoolean One;                // =True

   public static readonly SqlBoolean True;               // =True

   public static readonly SqlBoolean Zero;                     // =False

                  // Public Instance Properties

   public byte ByteValue{get; } 

   public bool IsFalse{get; } 

   public bool IsNull{get; }                              // implements INullable

   public bool IsTrue{get; } 

   public bool Value{get; } 

// Public Static Methods

   public static SqlBoolean And(SqlBoolean x, SqlBoolean y);  

   public static SqlBoolean Equals(SqlBoolean x, SqlBoolean y);

   public static SqlBoolean NotEquals(SqlBoolean x, SqlBoolean y);

   public static SqlBoolean OnesComplement(SqlBoolean x);  

   public static SqlBoolean operator &(SqlBoolean x, SqlBoolean y);

   public static SqlBoolean operator |(SqlBoolean x, SqlBoolean y);

   public static SqlBoolean operator ^(SqlBoolean x, SqlBoolean y);

   public static bool operator op_False(SqlBoolean x);  

   public static SqlBoolean operator !(SqlBoolean x); 

   public static SqlBoolean operator ~(SqlBoolean x);

   public static bool operator op_True(SqlBoolean x);  

   public static SqlBoolean Or(SqlBoolean x, SqlBoolean ...

Get ADO.NET in a Nutshell now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.