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;
626
if (ODBC32.SQL_TYPE.WCHAR == _bindtype._sql_type) {
_bindtype
= TypeMap._Char; }
627
else 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)
298
if ((ODBC32.SQL_C.NUMERIC ==
_bindtype
._sql_c) && (0 != _internalPrecision)){
301
int cch =
_bindtype
._columnSize;
309
Debug.Assert((ODBC32.SQL_C.WCHAR ==
_bindtype
._sql_c) || (ODBC32.SQL_C.BINARY ==
_bindtype
._sql_c), "not wchar or binary");
311
throw ADP.UninitializedParameterSize(ordinal,
_bindtype
._type);
335
if ((ODBC32.SQL_TYPE.CHAR ==
_bindtype
._sql_type)
336
|| (ODBC32.SQL_TYPE.VARCHAR ==
_bindtype
._sql_type)
337
|| (ODBC32.SQL_TYPE.LONGVARCHAR ==
_bindtype
._sql_type)) {
347
if ((ODBC32.SQL_TYPE.CHAR ==
_bindtype
._sql_type)
348
|| (ODBC32.SQL_TYPE.VARCHAR ==
_bindtype
._sql_type)
349
|| (ODBC32.SQL_TYPE.LONGVARCHAR ==
_bindtype
._sql_type)) {
383
if ((ODBC32.SQL_C.NUMERIC ==
_bindtype
._sql_c) && (0 != _internalPrecision)){
386
int cch =
_bindtype
._columnSize;
403
if (_internalShouldSerializeSize && (_internalSize>=0) && (_internalSize<cch) && (
_bindtype
==_originalbindtype)) {
417
int ccb =
_bindtype
._bufferSize;
425
Debug.Assert((ODBC32.SQL_C.WCHAR ==
_bindtype
._sql_c) || (ODBC32.SQL_C.BINARY ==
_bindtype
._sql_c), "not wchar or binary");
427
throw ADP.UninitializedParameterSize(ordinal,
_bindtype
._type);
430
if (
_bindtype
._sql_c == ODBC32.SQL_C.WCHAR) {
455
else if (ODBC32.SQL_C.WCHAR ==
_bindtype
._sql_c) {
456
if ((value is String) && (ccb < ((String)value).Length) && (
_bindtype
== _originalbindtype)) {
462
else if ((value is byte[]) && (ccb < ((byte[])value).Length) && (
_bindtype
== _originalbindtype)) {
585
switch(
_bindtype
._sql_type) {
591
|| command.Connection.TestRestrictedSqlBindType(
_bindtype
._sql_type)// or the type is not supported
623
if (!command.Connection.TestTypeSupport (
_bindtype
._sql_type)) {
626
if (ODBC32.SQL_TYPE.WCHAR ==
_bindtype
._sql_type) { _bindtype = TypeMap._Char; }
627
else if (ODBC32.SQL_TYPE.WVARCHAR ==
_bindtype
._sql_type) { _bindtype = TypeMap._VarChar; }
628
else if (ODBC32.SQL_TYPE.WLONGVARCHAR ==
_bindtype
._sql_type) {
638
sql_c_type =
_bindtype
._sql_c;
659
switch(
_bindtype
._sql_type) {
743
&& (_boundParameterType ==
_bindtype
._sql_type)
757
_bindtype
._sql_type, // ParameterType
767
command.Connection.FlagRestrictedSqlBindType(
_bindtype
._sql_type);
777
_boundParameterType =
_bindtype
._sql_type;
835
if ((null !=
_bindtype
) && (_internalDirection != ParameterDirection.Input)) {
837
TypeMap typemap =
_bindtype
;