11 writes to _bindtype
System.Data (11)
fx\src\data\System\Data\Odbc\OdbcParameter.cs (11)
544_bindtype = null; 595_bindtype = TypeMap._VarChar; 607_bindtype = TypeMap._VarChar; 626if (ODBC32.SQL_TYPE.WCHAR == _bindtype._sql_type) { _bindtype = TypeMap._Char; } 627else if (ODBC32.SQL_TYPE.WVARCHAR == _bindtype._sql_type) { _bindtype = TypeMap._VarChar; } 629_bindtype = TypeMap._Text; 663 _bindtype = TypeMap._Image; // will change to LONGVARBINARY 669 _bindtype = TypeMap._Text; // will change to LONGVARCHAR 675 _bindtype = TypeMap._NText; // will change to WLONGVARCHAR 838_bindtype = null; 900_originalbindtype = _bindtype = _typemap;
36 references to _bindtype
System.Data (36)
fx\src\data\System\Data\Odbc\OdbcParameter.cs (36)
298if ((ODBC32.SQL_C.NUMERIC == _bindtype._sql_c) && (0 != _internalPrecision)){ 301int cch = _bindtype._columnSize; 309Debug.Assert((ODBC32.SQL_C.WCHAR == _bindtype._sql_c) || (ODBC32.SQL_C.BINARY == _bindtype._sql_c), "not wchar or binary"); 311throw ADP.UninitializedParameterSize(ordinal, _bindtype._type); 335if ((ODBC32.SQL_TYPE.CHAR == _bindtype._sql_type) 336|| (ODBC32.SQL_TYPE.VARCHAR == _bindtype._sql_type) 337|| (ODBC32.SQL_TYPE.LONGVARCHAR == _bindtype._sql_type)) { 347if ((ODBC32.SQL_TYPE.CHAR == _bindtype._sql_type) 348|| (ODBC32.SQL_TYPE.VARCHAR == _bindtype._sql_type) 349|| (ODBC32.SQL_TYPE.LONGVARCHAR == _bindtype._sql_type)) { 383if ((ODBC32.SQL_C.NUMERIC == _bindtype._sql_c) && (0 != _internalPrecision)){ 386int cch = _bindtype._columnSize; 403if (_internalShouldSerializeSize && (_internalSize>=0) && (_internalSize<cch) && (_bindtype==_originalbindtype)) { 417int ccb = _bindtype._bufferSize; 425Debug.Assert((ODBC32.SQL_C.WCHAR == _bindtype._sql_c) || (ODBC32.SQL_C.BINARY == _bindtype._sql_c), "not wchar or binary"); 427throw ADP.UninitializedParameterSize(ordinal, _bindtype._type); 430if (_bindtype._sql_c == ODBC32.SQL_C.WCHAR) { 455else if (ODBC32.SQL_C.WCHAR == _bindtype._sql_c) { 456if ((value is String) && (ccb < ((String)value).Length) && (_bindtype == _originalbindtype)) { 462else if ((value is byte[]) && (ccb < ((byte[])value).Length) && (_bindtype == _originalbindtype)) { 585switch(_bindtype._sql_type) { 591|| command.Connection.TestRestrictedSqlBindType(_bindtype._sql_type)// or the type is not supported 623if (!command.Connection.TestTypeSupport (_bindtype._sql_type)) { 626if (ODBC32.SQL_TYPE.WCHAR == _bindtype._sql_type) { _bindtype = TypeMap._Char; } 627else if (ODBC32.SQL_TYPE.WVARCHAR == _bindtype._sql_type) { _bindtype = TypeMap._VarChar; } 628else if (ODBC32.SQL_TYPE.WLONGVARCHAR == _bindtype._sql_type) { 638sql_c_type = _bindtype._sql_c; 659switch(_bindtype._sql_type) { 743&& (_boundParameterType == _bindtype._sql_type) 757_bindtype._sql_type, // ParameterType 767command.Connection.FlagRestrictedSqlBindType(_bindtype._sql_type); 777_boundParameterType = _bindtype._sql_type; 835if ((null != _bindtype) && (_internalDirection != ParameterDirection.Input)) { 837TypeMap typemap = _bindtype;