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\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\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);