332 references to ODB
System.Data (332)
fx\src\data\System\Data\Common\AdapterUtil.cs (2)
2232
string filename = (string)ADP.ClassesRootRegistryValue(System.Data.OleDb.
ODB
.DataLinks_CLSID, ADP.StrEmpty);
2253
throw System.Data.OleDb.
ODB
.MDACNotAvailable(e);
fx\src\data\System\Data\OleDb\ColumnBinding.cs (28)
60
Debug.Assert(
ODB
.SizeOf_tagDBBINDING <= offset, "invalid offset" + offset);
345
throw
ODB
.GVtUnknown(DbType);
377
throw
ODB
.GVtUnknown(DbType);
535
throw
ODB
.SVtUnknown(DbType);
566
RowBinding.WriteInt16(ValueOffset, (short)(value ?
ODB
.VARIANT_TRUE :
ODB
.VARIANT_FALSE));
1108
throw
ODB
.ConversionRequired();
1133
throw
ODB
.ConversionRequired();
1145
throw
ODB
.ConversionRequired();
1168
throw
ODB
.ConversionRequired();
1187
throw
ODB
.ConversionRequired();
1219
throw
ODB
.ConversionRequired();
1249
throw
ODB
.ConversionRequired();
1267
throw
ODB
.ConversionRequired();
1297
throw
ODB
.ConversionRequired();
1327
throw
ODB
.ConversionRequired();
1357
throw
ODB
.ConversionRequired();
1378
throw
ODB
.ConversionRequired();
1399
throw
ODB
.ConversionRequired();
1427
throw
ODB
.ConversionRequired();
1439
throw
ODB
.ConversionRequired();
1472
return
ODB
.BadAccessor();
1474
return
ODB
.CantConvertValue(); //
1478
return
ODB
.SignMismatch(expectedType);
1480
return
ODB
.DataOverflow(expectedType);
1482
return
ODB
.CantCreate(expectedType);
1484
return
ODB
.Unavailable(expectedType);
1486
return
ODB
.UnexpectedStatusValue(StatusValue());
fx\src\data\System\Data\OleDb\DBBindings.cs (1)
358
ODB
.CommandParameterStatus(builder, i, columnBindings[i].StatusValue());
fx\src\data\System\Data\OleDb\DBPropSet.cs (10)
36
IntPtr countOfBytes = (IntPtr)(propertysetCount *
ODB
.SizeOf_tagDBPROPSET);
107
ODB
.GetErrorDescription(errorInfo, lastErrorHr, out message);
126
for (int i = 0, offset = 0; i < count; ++i, offset +=
ODB
.SizeOf_tagDBPROPSET) {
132
IntPtr vptr = ADP.IntPtrOffset(rgProperties,
ODB
.OffsetOf_tagDBPROP_Value);
133
for (int k = 0; k < cProperties; ++k, vptr = ADP.IntPtrOffset(vptr,
ODB
.SizeOf_tagDBPROP)) {
170
IntPtr propertySetPtr = ADP.IntPtrOffset(DangerousGetHandle(), index *
ODB
.SizeOf_tagDBPROPSET);
177
IntPtr ptr = ADP.IntPtrOffset(propset.rgProperties, i *
ODB
.SizeOf_tagDBPROP);
203
IntPtr countOfBytes = (IntPtr)(properties.Length *
ODB
.SizeOf_tagDBPROP);
211
IntPtr propsetPtr = ADP.IntPtrOffset(DangerousGetHandle(), index *
ODB
.SizeOf_tagDBPROPSET);
232
IntPtr propertyPtr = ADP.IntPtrOffset(propset.rgProperties, i *
ODB
.SizeOf_tagDBPROP);
fx\src\data\System\Data\OleDb\OLEDB_Enum.cs (3)
190
static private readonly NativeDBType D_Variant = new NativeDBType(0xff,
ODB
.SizeOf_Variant, true, false, OleDbType.Variant, NativeDBType.VARIANT, S_VARIANT, typeof(System.Object), NativeDBType.VARIANT, DbType.Object ); // 31 - ubyte[16] (variant)
288
throw
ODB
.InvalidOleDbType(enumOleDbType);
408
throw
ODB
.DBBindingGetVector();
fx\src\data\System\Data\OleDb\OLEDB_Util.cs (7)
164
e = new OleDbException(Res.GetString(Res.OleDb_NoErrorInformation2, provider,
ODB
.ELookup(hr)), hr, inner);
167
e = new OleDbException(Res.GetString(Res.OleDb_NoErrorInformation,
ODB
.ELookup(hr)), hr, inner);
270
return Res.GetString(Res.OleDb_NoErrorMessage,
ODB
.ELookup(errorcode));
273
return Res.GetString(Res.OleDb_FailedGetDescription,
ODB
.ELookup(errorcode));
276
return Res.GetString(Res.OleDb_FailedGetSource,
ODB
.ELookup(errorcode));
288
message = FailedGetDescription(hr) + Environment.NewLine +
ODB
.ELookup(hresult);
291
message =
ODB
.ELookup(hresult);
fx\src\data\System\Data\OleDb\OleDbCommand.cs (35)
371
throw
ODB
.NoProviderSupportForParameters(_connection.Provider, (Exception)null);
400
OleDbHResult hr = bindings.CreateAccessor(iaccessor,
ODB
.DBACCESSOR_PARAMETERDATA);
586
int state =
ODB
.InternalStateClosed;
618
case
ODB
.ExecutedIMultipleResults:
622
case
ODB
.ExecutedIRowset:
627
case
ODB
.ExecutedIRow:
631
case
ODB
.PrepareICommandText:
647
state =
ODB
.InternalStateOpen; // MDAC 72655
650
if (
ODB
.InternalStateOpen != state) {
662
if (
ODB
.ExecutedIMultipleResults == resultType) {
694
if ((null == dataReader) && (
ODB
.InternalStateOpen != state)) { // MDAC 67218
721
return
ODB
.PrepareICommandText;
778
hr = _icommandText.Execute(ADP.PtrZero, ref
ODB
.IID_IMultipleResults, dbParams, out _recordsAffected, out executeResult);
783
return
ODB
.ExecutedIMultipleResults;
795
hr = _icommandText.Execute(ADP.PtrZero, ref
ODB
.IID_IRowset, dbParams, out _recordsAffected, out executeResult);
800
hr = _icommandText.Execute(ADP.PtrZero, ref
ODB
.IID_NULL, dbParams, out _recordsAffected, out executeResult);
804
return
ODB
.ExecutedIRowset;
814
hr = _icommandText.Execute(ADP.PtrZero, ref
ODB
.IID_IRow, dbParams, out _recordsAffected, out executeResult);
819
return
ODB
.ExecutedIRow;
823
return
ODB
.ExecutedIRow;
849
e =
ODB
.CommandParameterStatus(builder.ToString(), e);
907
tableID.eKind =
ODB
.DBKIND_NAME;
920
hr = iopenRowset.Value.OpenRowset(ADP.PtrZero, tableID, ADP.PtrZero, ref
ODB
.IID_IRowset, propSet.PropertySetCount, propSet.DangerousGetHandle(), out executeResult);
932
hr = iopenRowset.Value.OpenRowset(ADP.PtrZero, tableID, ADP.PtrZero, ref
ODB
.IID_IRowset, 0, IntPtr.Zero, out executeResult);
938
hr = iopenRowset.Value.OpenRowset(ADP.PtrZero, tableID, ADP.PtrZero, ref
ODB
.IID_IRowset, 0, IntPtr.Zero, out executeResult);
952
return
ODB
.ExecutedIRowset;
1032
if (0 == (
ODB
.DBPROPVAL_SQL_ODBC_MINIMUM & _connection.SqlSupport())) {
1082
hr = _icommandText.SetCommandText(ref
ODB
.DBGUID_DEFAULT, commandText);
1190
connection.CheckStateOpen(
ODB
.Properties);
1200
throw
ODB
.CommandTextNotSupported(connection.Provider, null);
1234
dbprops[0] = new tagDBPROP(
ODB
.DBPROP_COMMANDTIMEOUT, false, CommandTimeout);
1238
dbprops[1] = new tagDBPROP(
ODB
.DBPROP_ACCESSORDER, false,
ODB
.DBPROPVAL_AO_RANDOM); // MDAC 73030
1242
dbprops[2] = new tagDBPROP(
ODB
.DBPROP_UNIQUEROWS, false, keyInfo);
1245
dbprops[3] = new tagDBPROP(
ODB
.DBPROP_IColumnsRowset, false, true);
fx\src\data\System\Data\OleDb\OleDbCommandBuilder.cs (14)
185
int index = columns.IndexOf(
ODB
.PARAMETER_NAME);
188
index = columns.IndexOf(
ODB
.PARAMETER_TYPE);
191
index = columns.IndexOf(
ODB
.DATA_TYPE);
194
index = columns.IndexOf(
ODB
.CHARACTER_MAXIMUM_LENGTH);
197
index = columns.IndexOf(
ODB
.NUMERIC_PRECISION);
200
index = columns.IndexOf(
ODB
.NUMERIC_SCALE);
203
index = columns.IndexOf(
ODB
.TYPE_NAME); // MDAC 72315
206
DataRow[] dataRows = table.Select(null,
ODB
.ORDINAL_POSITION_ASC, DataViewRowState.CurrentRows); // MDAC 70928
301
throw
ODB
.NoProviderSupportForSProcResetParameters(connection.Provider); // MDAC 71968
304
throw
ODB
.NoProviderSupportForSProcResetParameters(connection.Provider); // MDAC 70918
311
case
ODB
.DBPARAMTYPE_INPUT:
313
case
ODB
.DBPARAMTYPE_INPUTOUTPUT:
315
case
ODB
.DBPARAMTYPE_OUTPUT:
317
case
ODB
.DBPARAMTYPE_RETURNVALUE:
fx\src\data\System\Data\OleDb\OleDbConnection.cs (24)
82
value = GetDataSourceValue(OleDbPropertySetGuid.DBInit,
ODB
.DBPROP_INIT_TIMEOUT);
116
value = GetDataSourceValue(OleDbPropertySetGuid.DataSource,
ODB
.DBPROP_CURRENTCATALOG);
119
value = GetDataSourceValue(OleDbPropertySetGuid.DBInit,
ODB
.DBPROP_INIT_CATALOG);
148
value = GetDataSourceValue(OleDbPropertySetGuid.DBInit,
ODB
.DBPROP_INIT_DATASOURCE);
150
value = GetDataSourceValue(OleDbPropertySetGuid.DataSourceInfo,
ODB
.DBPROP_DATASOURCENAME); // MDAC 76248
190
string value = ((null != constr) ? constr.ConvertValueToString(
ODB
.Provider, null) : null);
229
object value = GetDataSourcePropertyValue(OleDbPropertySetGuid.DataSourceInfo,
ODB
.DBPROP_CONNECTIONSTATUS);
233
case
ODB
.DBPROPVAL_CS_UNINITIALIZED: // provider closed on us
234
case
ODB
.DBPROPVAL_CS_COMMUNICATIONFAILURE: // broken connection
240
case
ODB
.DBPROPVAL_CS_INITIALIZED: // everything is okay
302
object value = GetDataSourcePropertyValue(OleDbPropertySetGuid.DataSourceInfo,
ODB
.DBPROP_QUOTEDIDENTIFIERCASE);
330
SetDataSourcePropertyValue(OleDbPropertySetGuid.DataSource,
ODB
.DBPROP_CURRENTCATALOG,
ODB
.Current_Catalog, true, value);
424
quotePrefix = connection.GetLiteralInfo(
ODB
.DBLITERAL_QUOTE_PREFIX);
425
quoteSuffix = connection.GetLiteralInfo(
ODB
.DBLITERAL_QUOTE_SUFFIX);
449
throw
ODB
.InvalidRestrictionsDbInfoLiteral("restrictions");
455
throw
ODB
.InvalidRestrictionsSchemaGuids("restrictions");
461
throw
ODB
.InvalidRestrictionsDbInfoKeywords("restrictions");
470
throw
ODB
.SchemaRowsetsNotSupported(Provider); // MDAC 72689
473
throw
ODB
.NotSupportedSchemaTable(schema, this); // MDAC 63279
529
if ((0!=(
ODB
.DBPROPVAL_OS_TXNENLISTMENT & ((OleDbConnectionString)(this.ConnectionOptions)).OleDbServices))
555
ODB
.PropsetSetFailure(builder, description, dbprops[0].dwStatus);
557
e =
ODB
.PropsetSetFailure(builder.ToString(), e);
618
e =
ODB
.NoErrorInformation((null != connection) ? connection.Provider : null, hresult, null); // OleDbException
fx\src\data\System\Data\OleDb\OleDbConnectionFactory.cs (1)
65
String providerFileName = oleDbOuterConnection.GetDataSourcePropertyValue(OleDbPropertySetGuid.DataSourceInfo,
ODB
.DBPROP_PROVIDERFILENAME) as string;
fx\src\data\System\Data\OleDb\OleDbConnectionInternal.cs (18)
95
throw
ODB
.PossiblePromptNotUserInteractive();
179
object value = GetDataSourceValue(OleDbPropertySetGuid.DataSourceInfo,
ODB
.DBPROP_DBMSVER);
263
throw
ODB
.TransactionsNotSupported(Provider, (Exception)null);
327
throw
ODB
.TransactionsNotSupported(Provider, (Exception)null);
400
for (int i = 0; i < literalCount; ++i, offset +=
ODB
.SizeOf_tagDBLITERALINFO) {
429
DataTable table = new DataTable(
ODB
.DbInfoKeywords);
431
DataColumn keyword = new DataColumn(
ODB
.Keyword, typeof(String));
474
DataTable table = new DataTable(
ODB
.SchemaGuids);
477
DataColumn schemaGuid = new DataColumn(
ODB
.Schema, typeof(Guid));
478
DataColumn restrictionSupport = new DataColumn(
ODB
.RestrictionSupport, typeof(Int32));
512
if ((1 == literalCount) && Marshal.ReadInt32(literalInfo,
ODB
.OffsetOf_tagDBLITERALINFO_it) == literal) { // WebData 98612
552
for (int i = 0, offset = 0; i < supportedSchemas.Length; ++i, offset +=
ODB
.SizeOf_Guid) {
553
IntPtr ptr = ADP.IntPtrOffset(schemaGuids, i *
ODB
.SizeOf_Guid);
579
throw
ODB
.SchemaRowsetsNotSupported(Provider);
586
hr = dbSchemaRowset.GetRowset(ADP.PtrZero, ref schema, restrictions.Length, restrictions, ref
ODB
.IID_IRowset, 0, ADP.PtrZero, out rowset);
644
Type datalink = Type.GetTypeFromCLSID(
ODB
.CLSID_DataLinks, true);
670
throw
ODB
.MDACNotAvailable(e);
673
throw
ODB
.MDACNotAvailable(null);
fx\src\data\System\Data\OleDb\oledbconnectionstring.cs (14)
182
object value = connection.GetDataSourcePropertyValue(OleDbPropertySetGuid.DataSourceInfo,
ODB
.DBPROP_SQLSUPPORT);
195
object value = command.GetPropertyValue(OleDbPropertySetGuid.Rowset,
ODB
.DBPROP_IRow);
208
object value = connection.GetDataSourcePropertyValue(OleDbPropertySetGuid.DataSourceInfo,
ODB
.DBPROP_MULTIPLERESULTS);
210
supportMultipleResults = (
ODB
.DBPROPVAL_MR_NOTSUPPORTED != (int) value);
328
throw
ODB
.AsynchronousNotSupported();
365
if (
ODB
.CLSID_MSDASQL == classidProvider) {
366
throw
ODB
.MSDASQLNotSupported();
368
object tmp = ADP.ClassesRootRegistryValue("CLSID\\{" + classidProvider.ToString("D", CultureInfo.InvariantCulture) + "}",
ODB
.OLEDB_SERVICES);
380
_oledbServices &= ~(
ODB
.DBPROPVAL_OS_AGR_AFTERSESSION |
ODB
.DBPROPVAL_OS_CLIENTCURSOR); // NT 347436, MDAC 58606
406
throw
ODB
.NoProviderSpecified();
408
if (
ODB
.MaxProgIdLength <= progid.Length) { // MDAC 63151
409
throw
ODB
.InvalidProviderSpecified();
414
throw
ODB
.MSDASQLNotSupported();
fx\src\data\System\Data\OleDb\OledbConnectionStringbuilder.cs (22)
406
((
ODB
.DBPROP_INIT_ASYNCH == info._propertyID) ||
407
(
ODB
.DBPROP_INIT_HWND == info._propertyID) ||
408
(
ODB
.DBPROP_INIT_PROMPT == info._propertyID))) {
505
case
ODB
.DBPROP_INIT_CATALOG:
506
case
ODB
.DBPROP_INIT_LOCATION:
513
case
ODB
.DBPROP_INIT_TIMEOUT:
514
case
ODB
.DBPROP_INIT_GENERALTIMEOUT:
522
case
ODB
.DBPROP_AUTH_PASSWORD:
532
case
ODB
.DBPROP_AUTH_USERID:
541
case
ODB
.DBPROP_AUTH_CACHE_AUTHINFO:
542
case
ODB
.DBPROP_AUTH_ENCRYPT_PASSWORD:
543
case
ODB
.DBPROP_AUTH_INTEGRATED:
544
case
ODB
.DBPROP_AUTH_MASK_PASSWORD:
545
case
ODB
.DBPROP_AUTH_PERSIST_ENCRYPTED:
551
refreshOnChange = (
ODB
.DBPROP_AUTH_INTEGRATED == info._propertyID);
554
case
ODB
.DBPROP_INIT_BINDFLAGS:
555
case
ODB
.DBPROP_INIT_IMPERSONATION_LEVEL:
556
case
ODB
.DBPROP_INIT_LCID:
557
case
ODB
.DBPROP_INIT_MODE:
558
case
ODB
.DBPROP_INIT_PROTECTION_LEVEL:
559
case
ODB
.DBPROP_INIT_PROVIDERSTRING:
560
case
ODB
.DBPROP_INIT_LOCKOWNER:
fx\src\data\System\Data\OleDb\OleDbDataAdapter.cs (7)
288
if (
ODB
.ADODB_NextResultError != (int)hr) {
294
OleDbHResult hresult =
ODB
.GetErrorDescription(errorInfo, hr, out message);
325
throw
ODB
.Fill_NotADODB("adodb");
354
throw
ODB
.Fill_EmptyRecordSet("ADODBRecordSet", e);
402
throw
ODB
.Fill_EmptyRecord("adodb", e);
443
if ((0 < (int)hr) && (
ODB
.ADODB_AlreadyClosedError != (int)hr)) {
448
OleDbHResult hresult =
ODB
.GetErrorDescription(errorInfo, hr, out message);
fx\src\data\System\Data\OleDb\OleDbDataReader.cs (66)
466
for (int i = 0, offset = 0; i < columnCount; ++i, offset +=
ODB
.SizeOf_tagDBCOLUMNINFO) {
482
if (filterITypeInfo && (
ODB
.DBCOLUMN_TYPEINFO == dbColumnInfo.pwszName)) { // MDAC 65306
509
case
ODB
.DBKIND_GUID_NAME:
510
case
ODB
.DBKIND_GUID_PROPID:
511
case
ODB
.DBKIND_GUID:
515
Debug.Assert(
ODB
.DBKIND_PGUID_NAME != dbColumnInfo.columnid.eKind, "OLE DB providers never return pGuid-style bindings.");
516
Debug.Assert(
ODB
.DBKIND_PGUID_PROPID != dbColumnInfo.columnid.eKind, "OLE DB providers never return pGuid-style bindings.");
521
case
ODB
.DBKIND_GUID_PROPID:
522
case
ODB
.DBKIND_PROPID:
525
case
ODB
.DBKIND_GUID_NAME:
526
case
ODB
.DBKIND_NAME:
574
hr = icolumnsRowset.GetColumnsRowset(ADP.PtrZero, cOptColumns, prgOptColumns, ref
ODB
.IID_IRowset, 0, ADP.PtrZero, out rowset);
873
hr = rowsetInfo.GetReferencedRowset((IntPtr)ordinal, ref
ODB
.IID_IRowset, out result);
1122
hr = imultipleResults.GetResult(ADP.PtrZero,
ODB
.DBRESULTFLAG_DEFAULT, ref
ODB
.IID_NULL, out affected, out result);
1205
hr = imultipleResults.GetResult(ADP.PtrZero,
ODB
.DBRESULTFLAG_DEFAULT, ref
ODB
.IID_IRowset, out affected, out result);
1343
OleDbHResult hr = dbBindings[i].CreateAccessor(iaccessor,
ODB
.DBACCESSOR_ROWDATA);
1352
object maxRows = GetPropertyValue(
ODB
.DBPROP_MAXROWS);
1467
if (
ODB
.LargeDataSize < info.size) {
1553
throw
ODB
.ThreadApartmentState(e);
1693
if ((
ODB
.DBKIND_GUID_NAME == info.kind) || (
ODB
.DBKIND_NAME == info.kind)) {
1794
if (
ODB
.DBPROPVAL_IC_SENSITIVE == _connection.QuotedIdentifierCase()) {
1858
int nameColumnIndex = dataColumns.IndexOf(
ODB
.COLUMN_NAME);
1869
info.flags &= ~
ODB
.DBCOLUMNFLAGS_ISNULLABLE;
1910
int indxIndex = dataColumns.IndexOf(
ODB
.INDEX_NAME);
1911
int pkeyIndex = dataColumns.IndexOf(
ODB
.PRIMARY_KEY);
1912
int uniqIndex = dataColumns.IndexOf(
ODB
.UNIQUE);
1913
int nameIndex = dataColumns.IndexOf(
ODB
.COLUMN_NAME);
1914
int nullIndex = dataColumns.IndexOf(
ODB
.NULLS);
1933
bool nullsVal = (null != nulls) && (dataRow.IsNull(nulls, DataRowVersion.Default) || (
ODB
.DBPROPVAL_IN_ALLOWNULL == Convert.ToInt32(dataRow[nulls, DataRowVersion.Default], CultureInfo.InvariantCulture)));
2017
hiddenColumns = GetPropertyValue(
ODB
.DBPROP_HIDDENCOLUMNS); // MDAC 55611, 72106
2029
MetaData columnidname = dataReader.FindMetaData(
ODB
.DBCOLUMN_IDNAME);
2030
MetaData columnguid = dataReader.FindMetaData(
ODB
.DBCOLUMN_GUID);
2031
MetaData columnpropid = dataReader.FindMetaData(
ODB
.DBCOLUMN_PROPID);
2033
MetaData columnname = dataReader.FindMetaData(
ODB
.DBCOLUMN_NAME);
2034
MetaData columnordinal = dataReader.FindMetaData(
ODB
.DBCOLUMN_NUMBER);
2035
MetaData dbtype = dataReader.FindMetaData(
ODB
.DBCOLUMN_TYPE);
2036
MetaData columnsize = dataReader.FindMetaData(
ODB
.DBCOLUMN_COLUMNSIZE);
2037
MetaData numericprecision = dataReader.FindMetaData(
ODB
.DBCOLUMN_PRECISION);
2038
MetaData numericscale = dataReader.FindMetaData(
ODB
.DBCOLUMN_SCALE);
2039
MetaData columnflags = dataReader.FindMetaData(
ODB
.DBCOLUMN_FLAGS);
2040
MetaData baseschemaname = dataReader.FindMetaData(
ODB
.DBCOLUMN_BASESCHEMANAME);
2041
MetaData basecatalogname = dataReader.FindMetaData(
ODB
.DBCOLUMN_BASECATALOGNAME);
2042
MetaData basetablename = dataReader.FindMetaData(
ODB
.DBCOLUMN_BASETABLENAME);
2043
MetaData basecolumnname = dataReader.FindMetaData(
ODB
.DBCOLUMN_BASECOLUMNNAME);
2044
MetaData isautoincrement = dataReader.FindMetaData(
ODB
.DBCOLUMN_ISAUTOINCREMENT);
2045
MetaData isunique = dataReader.FindMetaData(
ODB
.DBCOLUMN_ISUNIQUE);
2046
MetaData iskeycolumn = dataReader.FindMetaData(
ODB
.DBCOLUMN_KEYCOLUMN);
2061
info.kind =
ODB
.DBKIND_NAME;
2067
info.kind = ((
ODB
.DBKIND_NAME == info.kind) ?
ODB
.DBKIND_GUID_NAME :
ODB
.DBKIND_GUID);
2073
info.kind = ((
ODB
.DBKIND_GUID == info.kind) ?
ODB
.DBKIND_GUID_PROPID :
ODB
.DBKIND_PROPID);
2182
else if (info.guid.Equals(
ODB
.DBCOL_SPECIALCOL)) { // MDAC 90827
2201
if (info.guid.Equals(
ODB
.DBCOL_SPECIALCOL)) { // MDAC 72390
2255
return (0 != (
ODB
.DBCOLUMNFLAGS_ISBOOKMARK & flags));
2258
return (0 != (
ODB
.DBCOLUMNFLAGS_ISLONG & flags));
2261
return (0 != (
ODB
.DBCOLUMNFLAGS_ISFIXEDLENGTH & flags));
2264
return (0 != (
ODB
.DBCOLUMNFLAGS_ISROWID_DBCOLUMNFLAGS_ISROWVER & flags));
2267
return (0 != (
ODB
.DBCOLUMNFLAGS_ISNULLABLE & flags));
2270
return (0 != (
ODB
.DBCOLUMNFLAGS_ISNULLABLE_DBCOLUMNFLAGS_MAYBENULL & flags));
2273
return (0 == (
ODB
.DBCOLUMNFLAGS_WRITE_DBCOLUMNFLAGS_WRITEUNKNOWN & flags));
fx\src\data\System\Data\OleDb\OleDbEnumerator.cs (3)
52
throw
ODB
.ISourcesRowsetNotSupported();
55
throw
ODB
.ISourcesRowsetNotSupported();
63
OleDbHResult hr = srcrowset.GetSourcesRowset(ADP.PtrZero,
ODB
.IID_IRowset, propCount, propSets, out value);
fx\src\data\System\Data\OleDb\OleDbError.cs (3)
54
this.message =
ODB
.FailedGetDescription(hr);
79
this.source =
ODB
.FailedGetSource(hr);
89
hr = errorRecords.GetCustomErrorObject(index, ref
ODB
.IID_ISQLErrorInfo, out sqlErrorInfo);
fx\src\data\System\Data\OleDb\OleDbException.cs (4)
99
builder.Append(message.TrimEnd(
ODB
.ErrorTrimCharacters)); // MDAC 73707
108
builder.Append(errors[i].Message.TrimEnd(
ODB
.ErrorTrimCharacters)); // MDAC 73707
113
message =
ODB
.NoErrorMessage(errorCode); // MDAC 71170
147
return
ODB
.ELookup((OleDbHResult) value);
fx\src\data\System\Data\OleDb\OleDbMetaDataFactory.cs (21)
202
string catalogSeparatorPattern = internalConnection.GetLiteralInfo(
ODB
.DBLITERAL_CATALOG_SEPARATOR);
203
string schemaSeparatorPattern = internalConnection.GetLiteralInfo(
ODB
.DBLITERAL_SCHEMA_SEPARATOR);
226
property = connection.GetDataSourcePropertyValue(OleDbPropertySetGuid.DataSourceInfo,
ODB
.DBPROP_DBMSNAME);
242
property = connection.GetDataSourcePropertyValue(OleDbPropertySetGuid.DataSourceInfo,
ODB
.DBPROP_GROUPBY);
247
case
ODB
.DBPROPVAL_GB_CONTAINS_SELECT:
251
case
ODB
.DBPROPVAL_GB_EQUALS_SELECT:
255
case
ODB
.DBPROPVAL_GB_NO_RELATION:
259
case
ODB
.DBPROPVAL_GB_NOT_SUPPORTED:
266
SetIdentifierCase(DbMetaDataColumnNames.IdentifierCase,
ODB
.DBPROP_IDENTIFIERCASE,dataSourceInformation, connection);
267
SetIdentifierCase(DbMetaDataColumnNames.QuotedIdentifierCase,
ODB
.DBPROP_QUOTEDIDENTIFIERCASE,dataSourceInformation, connection);
269
property = connection.GetDataSourcePropertyValue(OleDbPropertySetGuid.DataSourceInfo,
ODB
.DBPROP_ORDERBYCOLUNSINSELECT);
276
DataRow[] tableNameRow = infoLiterals.Select("Literal = " +
ODB
.DBLITERAL_TABLE_NAME.ToString(CultureInfo.InvariantCulture));
420
case
ODB
.DB_UNSEARCHABLE:
425
case
ODB
.DB_LIKE_ONLY:
430
case
ODB
.DB_ALL_EXCEPT_LIKE:
435
case
ODB
.DB_SEARCHABLE:
471
throw
ODB
.IDBInfoNotSupported();
622
case
ODB
.DBPROPVAL_IC_UPPER:
623
case
ODB
.DBPROPVAL_IC_LOWER:
624
case
ODB
.DBPROPVAL_IC_MIXED:
628
case
ODB
.DBPROPVAL_IC_SENSITIVE:
fx\src\data\System\Data\OleDb\OleDbParameter.cs (4)
265
throw
ODB
.UninitializedParameters(index, dbtype.enumOleDbType);
344
if (
ODB
.LargeDataSize < bytecount) {
516
return (
ODB
.ParameterDirectionFlag & (int)direction);
530
return (
ODB
.ParameterDirectionFlag & (int)direction);
fx\src\data\System\Data\OleDb\OleDbStruct.cs (2)
298
dwOptions = ((required) ?
ODB
.DBPROPOPTIONS_REQUIRED :
ODB
.DBPROPOPTIONS_OPTIONAL);
fx\src\data\System\Data\OleDb\OleDbWrapper.cs (9)
60
hr = GetDataSource(base.handle, IntPtr.Zero,
ODB
.CLSCTX_ALL, connectionString, ref
ODB
.IID_IDBInitialize, ref datasrcWrapper);
69
throw
ODB
.ProviderUnavailable(constr.Provider, null);
77
throw
ODB
.ProviderUnavailable(constr.Provider, null);
140
hr = (OleDbHResult)QueryInterface(base.handle, ref
ODB
.IID_IDBCreateSession, ref idbCreateSession);
161
hr = CreateSession(idbCreateSession, IntPtr.Zero, ref
ODB
.IID_IDBCreateCommand, ref sessionWrapper);
169
hr = CreateSession(idbCreateSession, IntPtr.Zero, ref
ODB
.IID_IUnknown, ref sessionWrapper);
246
int hresult = QueryInterface(base.handle, ref
ODB
.IID_IDBCreateCommand, ref idbCreateCommand); //
307
hr = CreateCommand(base.handle, IntPtr.Zero, ref
ODB
.IID_ICommandText, ref icommandText);
fx\src\data\System\Data\OleDb\PropertyIDSet.cs (4)
23
static private readonly int PropertyIDSetAndValueSize =
ODB
.SizeOf_tagDBPROPIDSET + ADP.PtrSize; // sizeof(tagDBPROPIDSET) + sizeof(int)
24
static private readonly int PropertyIDSetSize =
ODB
.SizeOf_tagDBPROPIDSET;
40
ptr = ADP.IntPtrOffset(base.handle,
ODB
.OffsetOf_tagDBPROPIDSET_PropertySet);
51
IntPtr ptr = ADP.IntPtrOffset(base.handle, (i * PropertyIDSetSize) +
ODB
.OffsetOf_tagDBPROPIDSET_PropertySet);
fx\src\data\System\Data\OleDb\PropertyInfoSet.cs (5)
77
for (int i = 0; i < setCount; ++i, setPtr = ADP.IntPtrOffset(setPtr,
ODB
.SizeOf_tagDBPROPINFOSET)) {
82
for(int k = 0; k < infoCount; ++k, infoPtr = ADP.IntPtrOffset(infoPtr,
ODB
.SizeOf_tagDBPROPINFO)) {
118
int offset = (i *
ODB
.SizeOf_tagDBPROPINFOSET);
124
IntPtr valuePtr = ADP.IntPtrOffset(infoPtr, (k *
ODB
.SizeOf_tagDBPROPINFO) +
ODB
.OffsetOf_tagDBPROPINFO_Value);
fx\src\data\System\Data\OleDb\RowBinding.cs (24)
44
int headerLength = RowBinding.AlignDataSize(bindingCount *
ODB
.SizeOf_tagDBBINDING);
110
if (
ODB
.DBACCESSOR_PARAMETERDATA == flags) {
111
throw
ODB
.BadStatus_ParamAcc(bindings[k].ColumnBindingOrdinal, (DBBindStatus)rowBindStatus[k]);
113
else if (
ODB
.DBACCESSOR_ROWDATA == flags) {
114
throw
ODB
.BadStatusRowAccessor(bindings[k].ColumnBindingOrdinal, (DBBindStatus)rowBindStatus[k]);
136
IntPtr ptr = ADP.IntPtrOffset(buffer, (i *
ODB
.SizeOf_tagDBBINDING));
165
Debug.Assert(0 == (
ODB
.SizeOf_Variant % 8), "unexpected VARIANT size mutiplier");
167
ValidateCheck(offset, 2*
ODB
.SizeOf_Variant);
191
Debug.Assert(0 == (
ODB
.SizeOf_Variant % 8), "unexpected VARIANT size mutiplier");
193
ValidateCheck(offset, 2*
ODB
.SizeOf_Variant);
210
NativeOledbWrapper.MemoryCopy(ADP.IntPtrOffset(buffer,
ODB
.SizeOf_Variant), buffer,
ODB
.SizeOf_Variant);
284
_accessorHandle =
ODB
.DB_INVALID_HACCESSOR;
294
_accessorHandle =
ODB
.DB_INVALID_HACCESSOR;
296
if ((
ODB
.DB_INVALID_HACCESSOR != accessorHandle) && (null != iaccessor)) {
356
IntPtr ptr = ADP.IntPtrOffset(buffer, (i *
ODB
.SizeOf_tagDBBINDING));
358
int valueOffset = _headerLength + Marshal.ReadIntPtr(ptr,
ODB
.OffsetOf_tagDBBINDING_obValue).ToInt32();
359
short wtype = Marshal.ReadInt16(ptr,
ODB
.OffsetOf_tagDBBINDING_wType);
372
ValidateCheck(valueOffset, 2*
ODB
.SizeOf_Variant);
431
if (
ODB
.DB_NULL_HCHAPTER != chapter) {
490
Debug.Assert(0 == (
ODB
.SizeOf_Variant % 8), "unexpected VARIANT size mutiplier");
494
IntPtr originalHandle = ADP.IntPtrOffset(buffer, valueOffset+
ODB
.SizeOf_Variant);
495
bool different = NativeOledbWrapper.MemoryCompare(currentHandle, originalHandle,
ODB
.SizeOf_Variant);
507
SafeNativeMethods.ZeroMemory(originalHandle, (IntPtr)
ODB
.SizeOf_Variant);
fx\src\data\System\Data\OleDb\SafeHandles.cs (1)
96
Debug.Assert(
ODB
.DB_NULL_HROW != value, "bad rowHandle");