316 references to ODB
System.Data.OleDb (316)
ColumnBinding.cs (28)
58Debug.Assert(ODB.SizeOf_tagDBBINDING <= offset, $"invalid offset {offset}"); 380throw ODB.GVtUnknown(DbType); 413throw ODB.GVtUnknown(DbType); 588throw ODB.SVtUnknown(DbType); 621RowBinding.WriteInt16(ValueOffset, (short)(value ? ODB.VARIANT_TRUE : ODB.VARIANT_FALSE)); 1261throw ODB.ConversionRequired(); 1290throw ODB.ConversionRequired(); 1303throw ODB.ConversionRequired(); 1329throw ODB.ConversionRequired(); 1352throw ODB.ConversionRequired(); 1387throw ODB.ConversionRequired(); 1420throw ODB.ConversionRequired(); 1441throw ODB.ConversionRequired(); 1476throw ODB.ConversionRequired(); 1511throw ODB.ConversionRequired(); 1546throw ODB.ConversionRequired(); 1570throw ODB.ConversionRequired(); 1594throw ODB.ConversionRequired(); 1626throw ODB.ConversionRequired(); 1639throw ODB.ConversionRequired(); 1677return ODB.BadAccessor(); 1679return ODB.CantConvertValue(); // UNDONE: need original data type 1683return ODB.SignMismatch(expectedType); 1685return ODB.DataOverflow(expectedType); 1687return ODB.CantCreate(expectedType); 1689return ODB.Unavailable(expectedType); 1691return ODB.UnexpectedStatusValue(StatusValue());
DbBindings.cs (1)
392ODB.CommandParameterStatus(builder, i, columnBindings[i].StatusValue());
DbPropSet.cs (10)
27nuint countOfBytes = (nuint)(propertysetCount * ODB.SizeOf_tagDBPROPSET); 109ODB.GetErrorDescription(errorInfo, lastErrorHr, out message); 137for (int i = 0, offset = 0; i < count; ++i, offset += ODB.SizeOf_tagDBPROPSET) 144IntPtr vptr = ADP.IntPtrOffset(rgProperties, ODB.OffsetOf_tagDBPROP_Value); 145for (int k = 0; k < cProperties; ++k, vptr = ADP.IntPtrOffset(vptr, ODB.SizeOf_tagDBPROP)) 189IntPtr propertySetPtr = ADP.IntPtrOffset(DangerousGetHandle(), index * ODB.SizeOf_tagDBPROPSET); 197IntPtr ptr = ADP.IntPtrOffset(propset.rgProperties, i * ODB.SizeOf_tagDBPROP); 229nuint countOfBytes = (nuint)(properties.Length * ODB.SizeOf_tagDBPROP); 238IntPtr propsetPtr = ADP.IntPtrOffset(DangerousGetHandle(), index * ODB.SizeOf_tagDBPROPSET); 265IntPtr propertyPtr = ADP.IntPtrOffset(propset.rgProperties, i * ODB.SizeOf_tagDBPROP);
OleDb_Enum.cs (3)
161private static readonly NativeDBType D_Variant = new NativeDBType(0xff, ODB.SizeOf_Variant, true, false, OleDbType.Variant, NativeDBType.VARIANT, S_VARIANT, typeof(object), NativeDBType.VARIANT, DbType.Object); // 31 - ubyte[16] (variant) 263_ => throw ODB.InvalidOleDbType(enumOleDbType), 424throw ODB.DBBindingGetVector();
OleDb_Util.cs (7)
184e = new OleDbException(SR.Format(SR.OleDb_NoErrorInformation2, provider, ODB.ELookup(hr)), hr, inner); 188e = new OleDbException(SR.Format(SR.OleDb_NoErrorInformation, ODB.ELookup(hr)), hr, inner); 321return SR.Format(SR.OleDb_NoErrorMessage, ODB.ELookup(errorcode)); 325return SR.Format(SR.OleDb_FailedGetDescription, ODB.ELookup(errorcode)); 329return SR.Format(SR.OleDb_FailedGetSource, ODB.ELookup(errorcode)); 342message = FailedGetDescription(hr) + Environment.NewLine + ODB.ELookup(hresult); 346message = ODB.ELookup(hresult);
OleDbCommand.cs (36)
382throw ODB.NoProviderSupportForParameters(_connection!.Provider, null); 413OleDbHResult hr = bindings.CreateAccessor(iaccessor, ODB.DBACCESSOR_PARAMETERDATA); 431if (ODB.IsRunningOnX86) 631int state = ODB.InternalStateClosed; 669case ODB.ExecutedIMultipleResults: 673case ODB.ExecutedIRowset: 678case ODB.ExecutedIRow: 682case ODB.PrepareICommandText: 699state = ODB.InternalStateOpen; 703if (ODB.InternalStateOpen != state) 719if (ODB.ExecutedIMultipleResults == resultType) 761if ((null == dataReader) && (ODB.InternalStateOpen != state)) 797return ODB.PrepareICommandText; 861hr = _icommandText!.Execute(IntPtr.Zero, in ODB.IID_IMultipleResults, dbParams, out _recordsAffected, out executeResult); 866return ODB.ExecutedIMultipleResults; 879hr = _icommandText!.Execute(IntPtr.Zero, in ODB.IID_IRowset, dbParams, out _recordsAffected, out executeResult); 883hr = _icommandText!.Execute(IntPtr.Zero, in ODB.IID_NULL, dbParams, out _recordsAffected, out executeResult); 886return ODB.ExecutedIRowset; 896hr = _icommandText!.Execute(IntPtr.Zero, in ODB.IID_IRow, dbParams, out _recordsAffected, out executeResult); 901return ODB.ExecutedIRow; 906return ODB.ExecutedIRow; 936e = ODB.CommandParameterStatus(builder.ToString(), e); 983tableID.eKind = ODB.DBKIND_NAME; 997hr = iopenRowset.Value.OpenRowset(IntPtr.Zero, tableID, IntPtr.Zero, in ODB.IID_IRowset, propSet.PropertySetCount, propSet.DangerousGetHandle(), out executeResult); 1009hr = iopenRowset.Value.OpenRowset(IntPtr.Zero, tableID, IntPtr.Zero, in ODB.IID_IRowset, 0, IntPtr.Zero, out executeResult); 1014hr = iopenRowset.Value.OpenRowset(IntPtr.Zero, tableID, IntPtr.Zero, in ODB.IID_IRowset, 0, IntPtr.Zero, out executeResult); 1029return ODB.ExecutedIRowset; 1117if (0 == (ODB.DBPROPVAL_SQL_ODBC_MINIMUM & _connection.SqlSupport())) 1167hr = _icommandText!.SetCommandText(in ODB.DBGUID_DEFAULT, commandText); 1285connection.CheckStateOpen(ODB.Properties); 1297throw ODB.CommandTextNotSupported(connection.Provider, null); 1333dbprops[0] = OleDbStructHelpers.CreateTagDbProp(ODB.DBPROP_COMMANDTIMEOUT, false, CommandTimeout); 1338dbprops[1] = OleDbStructHelpers.CreateTagDbProp(ODB.DBPROP_ACCESSORDER, false, ODB.DBPROPVAL_AO_RANDOM); 1343dbprops[2] = OleDbStructHelpers.CreateTagDbProp(ODB.DBPROP_UNIQUEROWS, false, keyInfo); 1346dbprops[3] = OleDbStructHelpers.CreateTagDbProp(ODB.DBPROP_IColumnsRowset, false, true);
OleDbCommandBuilder.cs (14)
201int index = columns.IndexOf(ODB.PARAMETER_NAME); 205index = columns.IndexOf(ODB.PARAMETER_TYPE); 209index = columns.IndexOf(ODB.DATA_TYPE); 213index = columns.IndexOf(ODB.CHARACTER_MAXIMUM_LENGTH); 217index = columns.IndexOf(ODB.NUMERIC_PRECISION); 221index = columns.IndexOf(ODB.NUMERIC_SCALE); 225index = columns.IndexOf(ODB.TYPE_NAME); 229DataRow[] dataRows = table.Select(null, ODB.ORDINAL_POSITION_ASC, DataViewRowState.CurrentRows); 338throw ODB.NoProviderSupportForSProcResetParameters(connection.Provider); 342throw ODB.NoProviderSupportForSProcResetParameters(connection.Provider); 350ODB.DBPARAMTYPE_INPUT => System.Data.ParameterDirection.Input, 351ODB.DBPARAMTYPE_INPUTOUTPUT => System.Data.ParameterDirection.InputOutput, 352ODB.DBPARAMTYPE_OUTPUT => System.Data.ParameterDirection.Output, 353ODB.DBPARAMTYPE_RETURNVALUE => System.Data.ParameterDirection.ReturnValue,
OleDbConnection.cs (24)
77value = GetDataSourceValue(OleDbPropertySetGuid.DBInit, ODB.DBPROP_INIT_TIMEOUT); 109value = GetDataSourceValue(OleDbPropertySetGuid.DataSource, ODB.DBPROP_CURRENTCATALOG); 113value = GetDataSourceValue(OleDbPropertySetGuid.DBInit, ODB.DBPROP_INIT_CATALOG); 139value = GetDataSourceValue(OleDbPropertySetGuid.DBInit, ODB.DBPROP_INIT_DATASOURCE); 142value = GetDataSourceValue(OleDbPropertySetGuid.DataSourceInfo, ODB.DBPROP_DATASOURCENAME); 179return constr?.ConvertValueToString(ODB.Provider, null) ?? string.Empty; 226object? value = GetDataSourcePropertyValue(OleDbPropertySetGuid.DataSourceInfo, ODB.DBPROP_CONNECTIONSTATUS); 231case ODB.DBPROPVAL_CS_UNINITIALIZED: // provider closed on us 232case ODB.DBPROPVAL_CS_COMMUNICATIONFAILURE: // broken connection 238case ODB.DBPROPVAL_CS_INITIALIZED: // everything is okay 302object? value = GetDataSourcePropertyValue(OleDbPropertySetGuid.DataSourceInfo, ODB.DBPROP_QUOTEDIDENTIFIERCASE); 331SetDataSourcePropertyValue(OleDbPropertySetGuid.DataSource, ODB.DBPROP_CURRENTCATALOG, ODB.Current_Catalog, true, value); 422quotePrefix = connection.GetLiteralInfo(ODB.DBLITERAL_QUOTE_PREFIX) ?? ""; 423quoteSuffix = connection.GetLiteralInfo(ODB.DBLITERAL_QUOTE_SUFFIX) ?? ""; 439throw ODB.InvalidRestrictionsDbInfoLiteral("restrictions"); 447throw ODB.InvalidRestrictionsSchemaGuids("restrictions"); 455throw ODB.InvalidRestrictionsDbInfoKeywords("restrictions"); 468throw ODB.SchemaRowsetsNotSupported(Provider); 471throw ODB.NotSupportedSchemaTable(schema, this); 523if ((0 != (ODB.DBPROPVAL_OS_TXNENLISTMENT & ((OleDbConnectionString)(this.ConnectionOptions!)).OleDbServices)) 551ODB.PropsetSetFailure(builder, description, dbprops[0].dwStatus); 553e = ODB.PropsetSetFailure(builder.ToString(), e!); 627e = ODB.NoErrorInformation(connection?.Provider, hresult, null); // OleDbException
OleDbConnectionFactory.cs (1)
60string? providerFileName = oleDbOuterConnection.GetDataSourcePropertyValue(OleDbPropertySetGuid.DataSourceInfo, ODB.DBPROP_PROVIDERFILENAME) as string;
OleDbConnectionInternal.cs (18)
74throw ODB.PossiblePromptNotUserInteractive(); 177object value = GetDataSourceValue(OleDbPropertySetGuid.DataSourceInfo, ODB.DBPROP_DBMSVER)!; 273throw ODB.TransactionsNotSupported(Provider, null); 337throw ODB.TransactionsNotSupported(Provider, null); 419for (int i = 0; i < literalCount; ++i, offset += ODB.SizeOf_tagDBLITERALINFO) 454DataTable? table = new DataTable(ODB.DbInfoKeywords); 456DataColumn keyword = new DataColumn(ODB.Keyword, typeof(string)); 504DataTable table = new DataTable(ODB.SchemaGuids); 507DataColumn schemaGuid = new DataColumn(ODB.Schema, typeof(Guid)); 508DataColumn restrictionSupport = new DataColumn(ODB.RestrictionSupport, typeof(int)); 549if ((1 == literalCount) && Marshal.ReadInt32(literalInfo, ODB.OffsetOf_tagDBLITERALINFO_it) == literal) 599for (int i = 0, offset = 0; i < supportedSchemas.Length; ++i, offset += ODB.SizeOf_Guid) 601IntPtr ptr = ADP.IntPtrOffset(schemaGuids, i * ODB.SizeOf_Guid); 630throw ODB.SchemaRowsetsNotSupported(Provider); 635hr = dbSchemaRowset.GetRowset(IntPtr.Zero, in schema, restrictions.Length, restrictions, in ODB.IID_IRowset, 0, IntPtr.Zero, out rowset); 699Type datalink = Type.GetTypeFromCLSID(ODB.CLSID_DataLinks, true)!; 731throw ODB.MDACNotAvailable(e); 735throw ODB.MDACNotAvailable(null);
OleDbConnectionString.cs (14)
181object? value = connection.GetDataSourcePropertyValue(OleDbPropertySetGuid.DataSourceInfo, ODB.DBPROP_SQLSUPPORT); 197object? value = command.GetPropertyValue(OleDbPropertySetGuid.Rowset, ODB.DBPROP_IRow); 212object? value = connection.GetDataSourcePropertyValue(OleDbPropertySetGuid.DataSourceInfo, ODB.DBPROP_MULTIPLERESULTS); 215supportMultipleResults = (ODB.DBPROPVAL_MR_NOTSUPPORTED != (int)value); 352throw ODB.AsynchronousNotSupported(); 396if (ODB.CLSID_MSDASQL == classidProvider) 398throw ODB.MSDASQLNotSupported(); 400object? tmp = ADP.ClassesRootRegistryValue("CLSID\\{" + classidProvider.ToString("D", CultureInfo.InvariantCulture) + "}", ODB.OLEDB_SERVICES); 414_oledbServices &= ~(ODB.DBPROPVAL_OS_AGR_AFTERSESSION | ODB.DBPROPVAL_OS_CLIENTCURSOR); 438throw ODB.NoProviderSpecified(); 440if (ODB.MaxProgIdLength <= progid.Length) 442throw ODB.InvalidProviderSpecified(); 448throw ODB.MSDASQLNotSupported();
OleDbConnectionStringBuilder.cs (3)
441((ODB.DBPROP_INIT_ASYNCH == info._propertyID) || 442(ODB.DBPROP_INIT_HWND == info._propertyID) || 443(ODB.DBPROP_INIT_PROMPT == info._propertyID)))
OleDbDataAdapter.cs (5)
261if (ODB.ADODB_NextResultError != (int)hr) 300throw ODB.Fill_NotADODB("adodb"); 328throw ODB.Fill_EmptyRecordSet("ADODBRecordSet", e); 382throw ODB.Fill_EmptyRecord("adodb", e); 425if ((0 < (int)hr) && (ODB.ADODB_AlreadyClosedError != (int)hr))
OleDbDataReader.cs (66)
503for (int i = 0, offset = 0; i < columnCount; ++i, offset += ODB.SizeOf_tagDBCOLUMNINFO) 519if (filterITypeInfo && (ODB.DBCOLUMN_TYPEINFO == dbColumnInfo.pwszName)) 545case ODB.DBKIND_GUID_NAME: 546case ODB.DBKIND_GUID_PROPID: 547case ODB.DBKIND_GUID: 551Debug.Assert(ODB.DBKIND_PGUID_NAME != dbColumnInfo.columnid.eKind, "OLE DB providers never return pGuid-style bindings."); 552Debug.Assert(ODB.DBKIND_PGUID_PROPID != dbColumnInfo.columnid.eKind, "OLE DB providers never return pGuid-style bindings."); 558case ODB.DBKIND_GUID_PROPID: 559case ODB.DBKIND_PROPID: 562case ODB.DBKIND_GUID_NAME: 563case ODB.DBKIND_NAME: 615hr = icolumnsRowset.GetColumnsRowset(IntPtr.Zero, cOptColumns, prgOptColumns, in ODB.IID_IRowset, 0, IntPtr.Zero, out rowset); 954hr = rowsetInfo.GetReferencedRowset((IntPtr)ordinal, in ODB.IID_IRowset, out result); 1238hr = imultipleResults.GetResult(IntPtr.Zero, ODB.DBRESULTFLAG_DEFAULT, in ODB.IID_NULL, out affected, out _); 1329hr = imultipleResults.GetResult(IntPtr.Zero, ODB.DBRESULTFLAG_DEFAULT, in ODB.IID_IRowset, out affected, out result); 1476OleDbHResult hr = dbBindings[i].CreateAccessor(iaccessor, ODB.DBACCESSOR_ROWDATA); 1487object? maxRows = GetPropertyValue(ODB.DBPROP_MAXROWS); 1621if (ODB.LargeDataSize < info.size) 1710throw ODB.ThreadApartmentState(e); 1855if ((ODB.DBKIND_GUID_NAME == info.kind) || (ODB.DBKIND_NAME == info.kind)) 1972if (ODB.DBPROPVAL_IC_SENSITIVE == _connection.QuotedIdentifierCase()) 2052int nameColumnIndex = dataColumns.IndexOf(ODB.COLUMN_NAME); 2066info.flags &= ~ODB.DBCOLUMNFLAGS_ISNULLABLE; 2116int indxIndex = dataColumns.IndexOf(ODB.INDEX_NAME); 2117int pkeyIndex = dataColumns.IndexOf(ODB.PRIMARY_KEY); 2118int uniqIndex = dataColumns.IndexOf(ODB.UNIQUE); 2119int nameIndex = dataColumns.IndexOf(ODB.COLUMN_NAME); 2120int nullIndex = dataColumns.IndexOf(ODB.NULLS); 2242hiddenColumns = GetPropertyValue(ODB.DBPROP_HIDDENCOLUMNS); 2255MetaData columnidname = dataReader.FindMetaData(ODB.DBCOLUMN_IDNAME)!; 2256MetaData columnguid = dataReader.FindMetaData(ODB.DBCOLUMN_GUID)!; 2257MetaData columnpropid = dataReader.FindMetaData(ODB.DBCOLUMN_PROPID)!; 2259MetaData columnname = dataReader.FindMetaData(ODB.DBCOLUMN_NAME)!; 2260MetaData columnordinal = dataReader.FindMetaData(ODB.DBCOLUMN_NUMBER)!; 2261MetaData dbtype = dataReader.FindMetaData(ODB.DBCOLUMN_TYPE)!; 2262MetaData columnsize = dataReader.FindMetaData(ODB.DBCOLUMN_COLUMNSIZE)!; 2263MetaData numericprecision = dataReader.FindMetaData(ODB.DBCOLUMN_PRECISION)!; 2264MetaData numericscale = dataReader.FindMetaData(ODB.DBCOLUMN_SCALE)!; 2265MetaData columnflags = dataReader.FindMetaData(ODB.DBCOLUMN_FLAGS)!; 2266MetaData baseschemaname = dataReader.FindMetaData(ODB.DBCOLUMN_BASESCHEMANAME)!; 2267MetaData basecatalogname = dataReader.FindMetaData(ODB.DBCOLUMN_BASECATALOGNAME)!; 2268MetaData basetablename = dataReader.FindMetaData(ODB.DBCOLUMN_BASETABLENAME)!; 2269MetaData basecolumnname = dataReader.FindMetaData(ODB.DBCOLUMN_BASECOLUMNNAME)!; 2270MetaData isautoincrement = dataReader.FindMetaData(ODB.DBCOLUMN_ISAUTOINCREMENT)!; 2271MetaData isunique = dataReader.FindMetaData(ODB.DBCOLUMN_ISUNIQUE)!; 2272MetaData iskeycolumn = dataReader.FindMetaData(ODB.DBCOLUMN_KEYCOLUMN)!; 2289info.kind = ODB.DBKIND_NAME; 2296info.kind = ((ODB.DBKIND_NAME == info.kind) ? ODB.DBKIND_GUID_NAME : ODB.DBKIND_GUID); 2303info.kind = ((ODB.DBKIND_GUID == info.kind) ? ODB.DBKIND_GUID_PROPID : ODB.DBKIND_PROPID); 2429else if (info.guid.Equals(ODB.DBCOL_SPECIALCOL)) 2452if (info.guid.Equals(ODB.DBCOL_SPECIALCOL)) 2513return (0 != (ODB.DBCOLUMNFLAGS_ISBOOKMARK & flags)); 2517return (0 != (ODB.DBCOLUMNFLAGS_ISLONG & flags)); 2521return (0 != (ODB.DBCOLUMNFLAGS_ISFIXEDLENGTH & flags)); 2525return (0 != (ODB.DBCOLUMNFLAGS_ISROWID_DBCOLUMNFLAGS_ISROWVER & flags)); 2529return (0 != (ODB.DBCOLUMNFLAGS_ISNULLABLE & flags)); 2533return (0 != (ODB.DBCOLUMNFLAGS_ISNULLABLE_DBCOLUMNFLAGS_MAYBENULL & flags)); 2537return (0 == (ODB.DBCOLUMNFLAGS_WRITE_DBCOLUMNFLAGS_WRITEUNKNOWN & flags)); 2577if (ODB.IsRunningOnX86)
OleDbEnumerator.cs (3)
58throw ODB.ISourcesRowsetNotSupported(); 62throw ODB.ISourcesRowsetNotSupported(); 67OleDbHResult hr = srcrowset.GetSourcesRowset(IntPtr.Zero, ODB.IID_IRowset, propCount, propSets, out value);
OleDbError.cs (3)
38this.message = ODB.FailedGetDescription(hr); 57this.source = ODB.FailedGetSource(hr); 64errorRecords.GetCustomErrorObject(index, in ODB.IID_ISQLErrorInfo, out sqlErrorInfo);
OleDbException.cs (4)
81builder.Append(message.TrimEnd(ODB.ErrorTrimCharacters)); 93builder.Append(errors[i].Message.TrimEnd(ODB.ErrorTrimCharacters)); 99message = ODB.NoErrorMessage(errorCode); 141return ODB.ELookup((OleDbHResult)value);
OleDbMetaDataFactory.cs (21)
211string? catalogSeparatorPattern = internalConnection.GetLiteralInfo(ODB.DBLITERAL_CATALOG_SEPARATOR); 212string? schemaSeparatorPattern = internalConnection.GetLiteralInfo(ODB.DBLITERAL_SCHEMA_SEPARATOR); 239property = connection.GetDataSourcePropertyValue(OleDbPropertySetGuid.DataSourceInfo, ODB.DBPROP_DBMSNAME); 254property = connection.GetDataSourcePropertyValue(OleDbPropertySetGuid.DataSourceInfo, ODB.DBPROP_GROUPBY); 260case ODB.DBPROPVAL_GB_CONTAINS_SELECT: 264case ODB.DBPROPVAL_GB_EQUALS_SELECT: 268case ODB.DBPROPVAL_GB_NO_RELATION: 272case ODB.DBPROPVAL_GB_NOT_SUPPORTED: 279SetIdentifierCase(DbMetaDataColumnNames.IdentifierCase, ODB.DBPROP_IDENTIFIERCASE, dataSourceInformation, connection); 280SetIdentifierCase(DbMetaDataColumnNames.QuotedIdentifierCase, ODB.DBPROP_QUOTEDIDENTIFIERCASE, dataSourceInformation, connection); 282property = connection.GetDataSourcePropertyValue(OleDbPropertySetGuid.DataSourceInfo, ODB.DBPROP_ORDERBYCOLUNSINSELECT); 291DataRow[] tableNameRow = infoLiterals.Select("Literal = " + ODB.DBLITERAL_TABLE_NAME.ToString(CultureInfo.InvariantCulture)); 439case ODB.DB_UNSEARCHABLE: 444case ODB.DB_LIKE_ONLY: 449case ODB.DB_ALL_EXCEPT_LIKE: 454case ODB.DB_SEARCHABLE: 491throw ODB.IDBInfoNotSupported(); 667case ODB.DBPROPVAL_IC_UPPER: 668case ODB.DBPROPVAL_IC_LOWER: 669case ODB.DBPROPVAL_IC_MIXED: 673case ODB.DBPROPVAL_IC_SENSITIVE:
OleDbParameter.cs (4)
298throw ODB.UninitializedParameters(index, dbtype.enumOleDbType); 397if (ODB.LargeDataSize < bytecount) 594return (ODB.ParameterDirectionFlag & (int)direction); 609return (ODB.ParameterDirectionFlag & (int)direction);
OleDbStruct.cs (8)
152builder.AppendLine($"\tDB_Type ={ODB.WLookup(wType)}"); 340dwOptions = ((required) ? ODB.DBPROPOPTIONS_REQUIRED : ODB.DBPROPOPTIONS_OPTIONAL); 369dwOptions = ((required) ? ODB.DBPROPOPTIONS_REQUIRED : ODB.DBPROPOPTIONS_OPTIONAL); 574ODB.IsRunningOnX86 ? (ItagDBPROPINFO)new tagDBPROPINFO_x86() : new tagDBPROPINFO(); 577ODB.IsRunningOnX86 ? (ItagDBPROP)new tagDBPROP_x86(propertyID, required, value) : 581ODB.IsRunningOnX86 ? (ItagDBPROP)new tagDBPROP_x86() : new tagDBPROP();
OleDbWrapper.cs (9)
63fixed (Guid* riid = &ODB.IID_IDBInitialize) 72hr = GetDataSource(base.handle, IntPtr.Zero, ODB.CLSCTX_ALL, connectionStringPtr, riid, &handle); 99throw ODB.ProviderUnavailable(constr.Provider, null); 108throw ODB.ProviderUnavailable(constr.Provider, null); 176fixed (Guid* riid = &ODB.IID_IDBCreateSession) 202fixed (Guid* riid = &ODB.IID_IDBCreateCommand) 235fixed (Guid* riid = &ODB.IID_IUnknown) 343fixed (Guid* riid = &ODB.IID_IDBCreateCommand) 420fixed (Guid* riid = &ODB.IID_ICommandText)
PropertyIDSet.cs (4)
12private static readonly int PropertyIDSetAndValueSize = ODB.SizeOf_tagDBPROPIDSET + IntPtr.Size; // sizeof(tagDBPROPIDSET) + sizeof(int) 13private static readonly int PropertyIDSetSize = ODB.SizeOf_tagDBPROPIDSET; 30ptr = ADP.IntPtrOffset(base.handle, ODB.OffsetOf_tagDBPROPIDSET_PropertySet); 43IntPtr ptr = ADP.IntPtrOffset(base.handle, (i * PropertyIDSetSize) + ODB.OffsetOf_tagDBPROPIDSET_PropertySet);
PropertyInfoSet.cs (5)
74for (int i = 0; i < setCount; ++i, setPtr = ADP.IntPtrOffset(setPtr, ODB.SizeOf_tagDBPROPINFOSET)) 80for (int k = 0; k < infoCount; ++k, infoPtr = ADP.IntPtrOffset(infoPtr, ODB.SizeOf_tagDBPROPINFO)) 119int offset = (i * ODB.SizeOf_tagDBPROPINFOSET); 127IntPtr valuePtr = ADP.IntPtrOffset(infoPtr, (k * ODB.SizeOf_tagDBPROPINFO) + ODB.OffsetOf_tagDBPROPINFO_Value);
RowBinding.cs (22)
33int headerLength = RowBinding.AlignDataSize(bindingCount * ODB.SizeOf_tagDBBINDING); 105if (ODB.DBACCESSOR_PARAMETERDATA == flags) 107throw ODB.BadStatus_ParamAcc(bindings[k].ColumnBindingOrdinal, (DBBindStatus)rowBindStatus[k]); 109else if (ODB.DBACCESSOR_ROWDATA == flags) 111throw ODB.BadStatusRowAccessor(bindings[k].ColumnBindingOrdinal, (DBBindStatus)rowBindStatus[k]); 137IntPtr ptr = ADP.IntPtrOffset(buffer, (i * ODB.SizeOf_tagDBBINDING)); 171Debug.Assert(0 == (ODB.SizeOf_Variant % 8), "unexpected VARIANT size mutiplier"); 173ValidateCheck(offset, 2 * ODB.SizeOf_Variant); 201Debug.Assert(0 == (ODB.SizeOf_Variant % 8), "unexpected VARIANT size mutiplier"); 203ValidateCheck(offset, 2 * ODB.SizeOf_Variant); 222NativeOledbWrapper.MemoryCopy(ADP.IntPtrOffset(buffer, ODB.SizeOf_Variant), buffer, ODB.SizeOf_Variant); 315_accessorHandle = ODB.DB_INVALID_HACCESSOR; 326_accessorHandle = ODB.DB_INVALID_HACCESSOR; 328if ((ODB.DB_INVALID_HACCESSOR != accessorHandle) && (null != iaccessor)) 374Debug.Assert(0 <= _bindingCount && (_bindingCount * ODB.SizeOf_tagDBBINDING) < Length, "bad _bindingCount"); 377short wtype = ReadInt16((i * ODB.SizeOf_tagDBBINDING) + ODB.OffsetOf_tagDBBINDING_wType); 399IntPtr ptr = ADP.IntPtrOffset(buffer, (i * ODB.SizeOf_tagDBBINDING)); 401int valueOffset = _headerLength + Marshal.ReadIntPtr(ptr, ODB.OffsetOf_tagDBBINDING_obValue).ToInt32(); 402short wtype = Marshal.ReadInt16(ptr, ODB.OffsetOf_tagDBBINDING_wType); 473if (ODB.DB_NULL_HCHAPTER != chapter)
SafeHandles.cs (1)
93Debug.Assert(ODB.DB_NULL_HROW != value, "bad rowHandle");
System\Data\Common\AdapterUtil.cs (2)
1141string filename = (string)ADP.ClassesRootRegistryValue(System.Data.OleDb.ODB.DataLinks_CLSID, string.Empty)!; 1165throw System.Data.OleDb.ODB.MDACNotAvailable(e);