37 references to WCHAR
System.Data.Odbc (37)
System\Data\Odbc\Odbc32.cs (11)
542
WCHAR = SQL_C.
WCHAR
, //SQL_WCHAR
769
internal static readonly TypeMap _Char = new TypeMap(OdbcType.Char, DbType.AnsiStringFixedLength, typeof(string), ODBC32.SQL_TYPE.CHAR, ODBC32.SQL_C.
WCHAR
, ODBC32.SQL_C.CHAR, -1, -1, false);
778
private static readonly TypeMap s_NChar = new TypeMap(OdbcType.NChar, DbType.StringFixedLength, typeof(string), ODBC32.SQL_TYPE.WCHAR, ODBC32.SQL_C.
WCHAR
, ODBC32.SQL_C.
WCHAR
, -1, -1, false);
779
internal static readonly TypeMap _NText = new TypeMap(OdbcType.NText, DbType.String, typeof(string), ODBC32.SQL_TYPE.WLONGVARCHAR, ODBC32.SQL_C.
WCHAR
, ODBC32.SQL_C.
WCHAR
, -1, -1, false);
781
internal static readonly TypeMap _NVarChar = new TypeMap(OdbcType.NVarChar, DbType.String, typeof(string), ODBC32.SQL_TYPE.WVARCHAR, ODBC32.SQL_C.
WCHAR
, ODBC32.SQL_C.
WCHAR
, -1, -1, false);
786
internal static readonly TypeMap _Text = new TypeMap(OdbcType.Text, DbType.AnsiString, typeof(string), ODBC32.SQL_TYPE.LONGVARCHAR, ODBC32.SQL_C.
WCHAR
, ODBC32.SQL_C.CHAR, -1, -1, false);
790
internal static readonly TypeMap _VarChar = new TypeMap(OdbcType.VarChar, DbType.AnsiString, typeof(string), ODBC32.SQL_TYPE.VARCHAR, ODBC32.SQL_C.
WCHAR
, ODBC32.SQL_C.CHAR, -1, -1, false);
793
private static readonly TypeMap s_XML = new TypeMap(OdbcType.Text, DbType.AnsiString, typeof(string), ODBC32.SQL_TYPE.LONGVARCHAR, ODBC32.SQL_C.
WCHAR
, ODBC32.SQL_C.CHAR, -1, -1, false);
System\Data\Odbc\OdbcDataReader.cs (18)
692
if (GetData(i, ODBC32.SQL_C.
WCHAR
))
759
if (GetData(i, ODBC32.SQL_C.
WCHAR
))
761
string value = (string)Buffer.MarshalToManaged(0, ODBC32.SQL_C.
WCHAR
, ODBC32.SQL_NTS);
870
if (GetData(i, ODBC32.SQL_C.
WCHAR
))
875
s = (string)Buffer.MarshalToManaged(0, ODBC32.SQL_C.
WCHAR
, ODBC32.SQL_NTS);
961
if (GetData(i, ODBC32.SQL_C.
WCHAR
, buffer.Length - 2, out lengthOrIndicator))
1005
gotData = GetData(i, ODBC32.SQL_C.
WCHAR
, buffer.Length - 2, out lengthOrIndicator);
1215
sqlctype = isCharsBuffer ? ODBC32.SQL_C.
WCHAR
: ODBC32.SQL_C.BINARY;
1319
bool isDbNull = !QueryFieldInfo(i, ODBC32.SQL_C.
WCHAR
, out _);
1373
isNotDbNull = GetData(i, ODBC32.SQL_C.
WCHAR
, cbReadMax + 2, out cbTotal);
1689
if (sqlctype == ODBC32.SQL_C.
WCHAR
)
1764
if (sqlctype != ODBC32.SQL_C.
WCHAR
&& sqlctype != ODBC32.SQL_C.BINARY)
2348
ODBC32.SQL_C.
WCHAR
,
2393
ODBC32.SQL_C.
WCHAR
, // SQLSMALLINT TargetType
2424
ODBC32.SQL_C.
WCHAR
,
2443
ODBC32.SQL_C.
WCHAR
,
2529
ODBC32.SQL_C.
WCHAR
,
2542
ODBC32.SQL_C.
WCHAR
,
System\Data\Odbc\OdbcParameter.cs (6)
336
Debug.Assert((ODBC32.SQL_C.
WCHAR
== _bindtype._sql_c) || (ODBC32.SQL_C.BINARY == _bindtype._sql_c), "not wchar or binary");
475
Debug.Assert((ODBC32.SQL_C.
WCHAR
== _bindtype._sql_c) || (ODBC32.SQL_C.BINARY == _bindtype._sql_c), "not wchar or binary");
482
if (_bindtype._sql_c == ODBC32.SQL_C.
WCHAR
)
513
else if (ODBC32.SQL_C.
WCHAR
== _bindtype._sql_c)
734
if (sql_c_type == ODBC32.SQL_C.
WCHAR
)
1068
case ODBC32.SQL_C.
WCHAR
:
System\Data\Odbc\OdbcUtils.cs (2)
30
case ODBC32.SQL_C.
WCHAR
:
157
case ODBC32.SQL_C.
WCHAR
: