11 writes to _bindtype
System.Data.Odbc (11)
System\Data\Odbc\OdbcParameter.cs (11)
617_bindtype = null; 681_bindtype = TypeMap._VarChar; 695_bindtype = TypeMap._VarChar; 717if (ODBC32.SQL_TYPE.WCHAR == _bindtype._sql_type) { _bindtype = TypeMap._Char; } 718else if (ODBC32.SQL_TYPE.WVARCHAR == _bindtype._sql_type) { _bindtype = TypeMap._VarChar; } 721_bindtype = TypeMap._Text; 761_bindtype = TypeMap._Image; // will change to LONGVARBINARY 768_bindtype = TypeMap._Text; // will change to LONGVARCHAR 775_bindtype = TypeMap._NText; // will change to WLONGVARCHAR 954_bindtype = null; 1033_originalbindtype = _bindtype = _typemap;
36 references to _bindtype
System.Data.Odbc (36)
System\Data\Odbc\OdbcParameter.cs (36)
320if ((ODBC32.SQL_C.NUMERIC == _bindtype!._sql_c) && (0 != _internalPrecision)) 324int cch = _bindtype._columnSize; 336Debug.Assert((ODBC32.SQL_C.WCHAR == _bindtype._sql_c) || (ODBC32.SQL_C.BINARY == _bindtype._sql_c), "not wchar or binary"); 339throw ADP.UninitializedParameterSize(ordinal, _bindtype._type); 366if ((ODBC32.SQL_TYPE.CHAR == _bindtype._sql_type) 367|| (ODBC32.SQL_TYPE.VARCHAR == _bindtype._sql_type) 368|| (ODBC32.SQL_TYPE.LONGVARCHAR == _bindtype._sql_type)) 380if ((ODBC32.SQL_TYPE.CHAR == _bindtype._sql_type) 381|| (ODBC32.SQL_TYPE.VARCHAR == _bindtype._sql_type) 382|| (ODBC32.SQL_TYPE.LONGVARCHAR == _bindtype._sql_type)) 420if ((ODBC32.SQL_C.NUMERIC == _bindtype!._sql_c) && (0 != _internalPrecision)) 424int cch = _bindtype._columnSize; 446if (_internalShouldSerializeSize && (_internalSize >= 0) && (_internalSize < cch) && (_bindtype == _originalbindtype)) 463int ccb = _bindtype!._bufferSize; 475Debug.Assert((ODBC32.SQL_C.WCHAR == _bindtype._sql_c) || (ODBC32.SQL_C.BINARY == _bindtype._sql_c), "not wchar or binary"); 478throw ADP.UninitializedParameterSize(ordinal, _bindtype._type); 482if (_bindtype._sql_c == ODBC32.SQL_C.WCHAR) 513else if (ODBC32.SQL_C.WCHAR == _bindtype._sql_c) 515if ((value is string) && (ccb < ((string)value).Length) && (_bindtype == _originalbindtype)) 522else if ((value is byte[]) && (ccb < ((byte[])value).Length) && (_bindtype == _originalbindtype)) 669switch (_bindtype!._sql_type) 676|| command.Connection.TestRestrictedSqlBindType(_bindtype._sql_type)// or the type is not supported 713if (!command.Connection.TestTypeSupport(_bindtype._sql_type)) 717if (ODBC32.SQL_TYPE.WCHAR == _bindtype._sql_type) { _bindtype = TypeMap._Char; } 718else if (ODBC32.SQL_TYPE.WVARCHAR == _bindtype._sql_type) { _bindtype = TypeMap._VarChar; } 719else if (ODBC32.SQL_TYPE.WLONGVARCHAR == _bindtype._sql_type) 730sql_c_type = _bindtype._sql_c; 755switch (_bindtype._sql_type) 851&& (_boundParameterType == _bindtype!._sql_type) 866_bindtype!._sql_type, // ParameterType 877command.Connection.FlagRestrictedSqlBindType(_bindtype._sql_type); 888_boundParameterType = _bindtype._sql_type; 951if ((null != _bindtype) && (_internalDirection != ParameterDirection.Input)) 953TypeMap typemap = _bindtype;