34 instantiations of SqlInt32
System.Data (34)
fx\src\data\Microsoft\SqlServer\Server\ValueUtilsSmi.cs (2)
552result = new SqlInt32( temp ); 1020result = new SqlInt32( GetInt32_Unchecked( sink, getters, ordinal ) );
fx\src\data\System\Data\Common\SQLConvert.cs (1)
644return new SqlInt32(XmlConvert.ToInt32((string)value));
fx\src\data\System\Data\Common\SQLTypes\SQLInt32Storage.cs (1)
189SqlInt32 newValue = new SqlInt32();
fx\src\data\System\Data\SqlClient\SqlBuffer.cs (1)
578return new SqlInt32(_value._int32);
fx\src\data\System\Data\SqlClient\SqlCommand.cs (1)
5117parameter.Value = new SqlInt32(status); // value type
fx\src\data\System\Data\SqlClient\SqlEnums.cs (1)
515sqlVal = new SqlInt32((Int32)comVal);
fx\src\data\System\Data\SQLTypes\SQLDecimal.cs (2)
3050(n.IsPositive ? new SqlInt32(1) : new SqlInt32(-1));
fx\src\data\System\Data\SQLTypes\SQLInt32.cs (25)
95return new SqlInt32(x); 120return new SqlInt32(Int32.Parse(s, (IFormatProvider)null)); 129return x.IsNull ? Null : new SqlInt32(-x.m_value); 136return x.IsNull ? Null : new SqlInt32(~x.m_value); 154return new SqlInt32(iResult); 168return new SqlInt32(iResult); 183return new SqlInt32((int)lResult); 197return new SqlInt32(x.m_value / y.m_value); 214return new SqlInt32(x.m_value % y.m_value); 225return(x.IsNull || y.IsNull) ? Null : new SqlInt32(x.m_value & y.m_value); 232return(x.IsNull || y.IsNull) ? Null : new SqlInt32(x.m_value | y.m_value); 239return(x.IsNull || y.IsNull) ? Null : new SqlInt32(x.m_value ^ y.m_value); 250return x.IsNull ? Null : new SqlInt32((int)x.ByteValue); 258return x.IsNull ? Null : new SqlInt32(x.Value); 266return x.IsNull ? Null : new SqlInt32(x.Value); 284return new SqlInt32((int)value); 299return new SqlInt32((int)value); 314return new SqlInt32((int)value); 322return x.IsNull ? Null : new SqlInt32(x.ToInt32()); 342return new SqlInt32((int)ret); 351return x.IsNull ? SqlInt32.Null : new SqlInt32(Int32.Parse(x.Value, (IFormatProvider)null)); 624public static readonly SqlInt32 Null = new SqlInt32(true); 628public static readonly SqlInt32 Zero = new SqlInt32(0); 632public static readonly SqlInt32 MinValue = new SqlInt32(Int32.MinValue); 636public static readonly SqlInt32 MaxValue = new SqlInt32(Int32.MaxValue);
219 references to SqlInt32
System.Data (219)
fx\src\data\Microsoft\SqlServer\Server\ITypedGetters.cs (1)
59SqlInt32 GetSqlInt32( int ordinal );
fx\src\data\Microsoft\SqlServer\Server\ITypedSetters.cs (1)
58void SetSqlInt32( int ordinal, SqlInt32 value );
fx\src\data\Microsoft\SqlServer\Server\MetadataUtilsSmi.cs (2)
121ht.Add( typeof( SqlInt32 ), ExtendedClrTypeCode.SqlInt32 ); 289else if (value.GetType() == typeof( SqlInt32 ))
fx\src\data\Microsoft\SqlServer\Server\SmiRecordBuffer.cs (2)
282public virtual SqlInt32 GetSqlInt32( int ordinal ) { 635public virtual void SetSqlInt32( int ordinal, SqlInt32 value ) {
fx\src\data\Microsoft\SqlServer\Server\SmiRequestExecutor.cs (2)
340public virtual SqlInt32 GetSqlInt32( int ordinal ) { 693public virtual void SetSqlInt32( int ordinal, SqlInt32 value ) {
fx\src\data\Microsoft\SqlServer\Server\SqlDataRecord.cs (2)
308public virtual SqlInt32 GetSqlInt32(int ordinal) { 508public virtual void SetSqlInt32(int ordinal, SqlInt32 value) {
fx\src\data\Microsoft\SqlServer\Server\ValueUtilsSmi.cs (8)
544internal static SqlInt32 GetSqlInt32( SmiEventSink_Default sink, ITypedGettersV3 getters, int ordinal, SmiMetaData metaData ) { 545SqlInt32 result; 548result = SqlInt32.Null; 560result = (SqlInt32) obj; 1092SqlInt32.Null, // SqlDbType.Int 1516internal static void SetSqlInt32( SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal, SmiMetaData metaData, SqlInt32 value ) { 1623case ExtendedClrTypeCode.SqlInt32: SetSqlInt32_Unchecked( sink, setters, ordinal, (SqlInt32) value ); break; 3528private static void SetSqlInt32_Unchecked( SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal, SqlInt32 value ) {
fx\src\data\System\Data\ColumnTypeConverter.cs (1)
45typeof(SqlInt32),
fx\src\data\System\Data\Common\DataStorage.cs (1)
109typeof(SqlInt32),
fx\src\data\System\Data\Common\SQLConvert.cs (11)
57public static SqlInt32 ConvertToSqlInt32(object value) { 60return SqlInt32.Null; 66return (SqlInt32) value; 81throw ExceptionBuilder.ConvertFailed(valueType, typeof(SqlInt32)); 88return SqlInt32.Null; 104return (SqlInt32)value; 144return (SqlInt32)value; 192return (SqlInt32)value; 234return (SqlInt32)value; 278return (SqlInt32)value; 733return XmlConvert.ToString(((SqlInt32)value).Value);
fx\src\data\System\Data\Common\SQLTypes\SQLInt32Storage.cs (22)
22private SqlInt32[] values; 25: base(column, typeof(SqlInt32), SqlInt32.Null, SqlInt32.Null, StorageType.SqlInt32) { 56SqlInt32 mean = 0; 99SqlInt32 min = SqlInt32.MaxValue; 104if ((SqlInt32.LessThan(values[record], min)).IsTrue) 114SqlInt32 max = SqlInt32.MinValue; 119if ((SqlInt32.GreaterThan(values[record], max)).IsTrue) 144throw ExprException.Overflow(typeof(SqlInt32)); 154return values[recordNo].CompareTo((SqlInt32)value); 181SqlInt32[] newValues = new SqlInt32[capacity]; 189SqlInt32 newValue = new SqlInt32(); 198return ((SqlInt32)tmp); 203Debug.Assert((value.GetType() == typeof(SqlInt32)), "wrong input type"); 214return new SqlInt32[recordCount]; 218SqlInt32[] typedStore = (SqlInt32[]) store; 224values = (SqlInt32[]) store;
fx\src\data\System\Data\DataColumn.cs (1)
1563(dataType == typeof(SqlInt32)) || (dataType == typeof(SqlInt64)) || (dataType == typeof(SqlInt16)) || (dataType == typeof(SqlDecimal)));
fx\src\data\System\Data\Filter\BinaryNode.cs (1)
791value = (SqlInt32) res.ToSqlInt32();
fx\src\data\System\Data\Filter\UnaryNode.cs (1)
104value = -(SqlInt32) vl;
fx\src\data\System\Data\Sql\SqlMetaData.cs (5)
818public SqlInt32 Adjust(SqlInt32 value) { 1090else if (dataType == typeof(SqlInt32)) 1091value = this.Adjust((SqlInt32)value); 1219else if (dataType == typeof(SqlInt32))
fx\src\data\System\Data\SqlClient\SqlBuffer.cs (4)
572internal SqlInt32 SqlInt32 { 576return SqlInt32.Null; 580return (SqlInt32)this.SqlValue; // anything else we haven't thought of goes through boxing. 748case SqlBuffer.StorageType.Int32: return typeof(SqlInt32);
fx\src\data\System\Data\SqlClient\SqlBulkCopy.cs (1)
555isInTransaction = (bool)(0 < (SqlInt32)(internalResults[TranCountResultId][TranCountRowId][TranCountValueId]));
fx\src\data\System\Data\SqlClient\SqlCommand.cs (1)
5116if ( (null != v) && (v.GetType() == typeof(SqlInt32)) ) {
fx\src\data\System\Data\SqlClient\SqlDataReader.cs (1)
2343virtual public SqlInt32 GetSqlInt32(int i) {
fx\src\data\System\Data\SqlClient\SqlDataReaderSmi.cs (1)
748public override SqlInt32 GetSqlInt32(int ordinal) {
fx\src\data\System\Data\SqlClient\SqlEnums.cs (6)
322else if (dataType == typeof(SqlInt32)) 397else if (sqlType == typeof(SqlInt32)) return SqlInt32.Null; 446else if (sqlVal is SqlInt32) 447comVal = ((SqlInt32)sqlVal).Value; 749(10, 255, 4, true, false, false, TdsEnums.SQLINT4, TdsEnums.SQLINTN, MetaTypeName.INT, typeof(System.Int32), typeof(SqlInt32), SqlDbType.Int, DbType.Int32, 0);
fx\src\data\System\Data\SqlClient\TdsParser.cs (2)
10012WriteInt(((SqlInt32)value).Value, stateObj); 10972return SerializeLong(((SqlInt32)value).Value, stateObj);
fx\src\data\System\Data\SQLTypes\SQLBoolean.cs (3)
312public static explicit operator SqlBoolean(SqlInt32 x) { 477public SqlInt32 ToSqlInt32() { 478return (SqlInt32)this;
fx\src\data\System\Data\SQLTypes\SQLByte.cs (4)
268public static explicit operator SqlByte(SqlInt32 x) { 325return(SqlByte)(SqlInt32)x; 477public SqlInt32 ToSqlInt32() { 478return (SqlInt32)this;
fx\src\data\System\Data\SQLTypes\SQLDecimal.cs (7)
1727public static implicit operator SqlDecimal(SqlInt32 x) { 2890public SqlInt32 ToSqlInt32() { 2891return (SqlInt32)this; 3040public static SqlInt32 Sign(SqlDecimal n) { 3044return SqlInt32.Null; 3047return SqlInt32.Zero; 3049return n.IsNull ? SqlInt32.Null :
fx\src\data\System\Data\SQLTypes\SQLDouble.cs (3)
234public static implicit operator SqlDouble(SqlInt32 x) { 397public SqlInt32 ToSqlInt32() { 398return (SqlInt32)this;
fx\src\data\System\Data\SQLTypes\SQLInt16.cs (4)
267public static explicit operator SqlInt16(SqlInt32 x) { 336return(SqlInt16)(SqlInt32)x; 486public SqlInt32 ToSqlInt32() { 487return (SqlInt32)this;
fx\src\data\System\Data\SQLTypes\SQLInt32.cs (108)
94public static implicit operator SqlInt32(int x) { 102public static explicit operator int(SqlInt32 x) { 116public static SqlInt32 Parse(String s) { 118return SqlInt32.Null; 128public static SqlInt32 operator -(SqlInt32 x) { 135public static SqlInt32 operator ~(SqlInt32 x) { 146public static SqlInt32 operator +(SqlInt32 x, SqlInt32 y) { 160public static SqlInt32 operator -(SqlInt32 x, SqlInt32 y) { 174public static SqlInt32 operator *(SqlInt32 x, SqlInt32 y) { 189public static SqlInt32 operator /(SqlInt32 x, SqlInt32 y) { 206public static SqlInt32 operator %(SqlInt32 x, SqlInt32 y) { 224public static SqlInt32 operator &(SqlInt32 x, SqlInt32 y) { 231public static SqlInt32 operator |(SqlInt32 x, SqlInt32 y) { 238public static SqlInt32 operator ^(SqlInt32 x, SqlInt32 y) { 249public static explicit operator SqlInt32(SqlBoolean x) { 257public static implicit operator SqlInt32(SqlByte x) { 265public static implicit operator SqlInt32(SqlInt16 x) { 276public static explicit operator SqlInt32(SqlInt64 x) { 291public static explicit operator SqlInt32(SqlSingle x) { 306public static explicit operator SqlInt32(SqlDouble x) { 321public static explicit operator SqlInt32(SqlMoney x) { 329public static explicit operator SqlInt32(SqlDecimal x) { 331return SqlInt32.Null; 350public static explicit operator SqlInt32(SqlString x) { 351return x.IsNull ? SqlInt32.Null : new SqlInt32(Int32.Parse(x.Value, (IFormatProvider)null)); 363public static SqlBoolean operator==(SqlInt32 x, SqlInt32 y) { 370public static SqlBoolean operator!=(SqlInt32 x, SqlInt32 y) { 377public static SqlBoolean operator<(SqlInt32 x, SqlInt32 y) { 384public static SqlBoolean operator>(SqlInt32 x, SqlInt32 y) { 391public static SqlBoolean operator<=(SqlInt32 x, SqlInt32 y) { 398public static SqlBoolean operator>=(SqlInt32 x, SqlInt32 y) { 407public static SqlInt32 OnesComplement(SqlInt32 x) { 412public static SqlInt32 Add(SqlInt32 x, SqlInt32 y) { 416public static SqlInt32 Subtract(SqlInt32 x, SqlInt32 y) { 421public static SqlInt32 Multiply(SqlInt32 x, SqlInt32 y) { 426public static SqlInt32 Divide(SqlInt32 x, SqlInt32 y) { 431public static SqlInt32 Mod(SqlInt32 x, SqlInt32 y) { 435public static SqlInt32 Modulus(SqlInt32 x, SqlInt32 y) { 440public static SqlInt32 BitwiseAnd(SqlInt32 x, SqlInt32 y) { 445public static SqlInt32 BitwiseOr(SqlInt32 x, SqlInt32 y) { 450public static SqlInt32 Xor(SqlInt32 x, SqlInt32 y) { 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) { 535if (value is SqlInt32) { 536SqlInt32 i = (SqlInt32)value; 540throw ADP.WrongType(value.GetType(), typeof(SqlInt32)); 543public int CompareTo(SqlInt32 value) { 561if (!(value is SqlInt32)) { 565SqlInt32 i = (SqlInt32)value; 624public static readonly SqlInt32 Null = new SqlInt32(true); 628public static readonly SqlInt32 Zero = new SqlInt32(0); 632public static readonly SqlInt32 MinValue = new SqlInt32(Int32.MinValue); 636public static readonly SqlInt32 MaxValue = new SqlInt32(Int32.MaxValue);
fx\src\data\System\Data\SQLTypes\SQLInt64.cs (3)
319public static implicit operator SqlInt64(SqlInt32 x) { 557public SqlInt32 ToSqlInt32() { 558return (SqlInt32)this;
fx\src\data\System\Data\SQLTypes\SQLMoney.cs (3)
376public static implicit operator SqlMoney(SqlInt32 x) { 542public SqlInt32 ToSqlInt32() { 543return (SqlInt32)this;
fx\src\data\System\Data\SQLTypes\SQLSingle.cs (3)
238public static implicit operator SqlSingle(SqlInt32 x) { 406public SqlInt32 ToSqlInt32() { 407return (SqlInt32)this;
fx\src\data\System\Data\SQLTypes\SQLString.cs (3)
534public static explicit operator SqlString(SqlInt32 x) { 714public SqlInt32 ToSqlInt32() { 715return (SqlInt32)this;
fx\src\data\System\Data\xmlsaver.cs (1)
228if (type == typeof(Int32) || type == typeof(SqlInt32))