System.Data.OleDb
8.0.0
dotnet add package System.Data.OleDb --version 8.0.0
NuGet\Install-Package System.Data.OleDb -Version 8.0.0
<PackageReference Include="System.Data.OleDb" Version="8.0.0" />
paket add System.Data.OleDb --version 8.0.0
#r "nuget: System.Data.OleDb, 8.0.0"
// Install System.Data.OleDb as a Cake Addin
#addin nuget:?package=System.Data.OleDb&version=8.0.0
// Install System.Data.OleDb as a Cake Tool
#tool nuget:?package=System.Data.OleDb&version=8.0.0
About
This package implements a data provider for OLE DB data sources.
Key Features
Allows access to legacy OLE DB data sources.
How to Use
This is a basic example of retrieving the results of a query using an OleDbDataReader. For examples of using an OleDbDataAdapter, and of updating an OLE DB data source, please see the documentation.
using System.Data.OleDb;
string connectionString = "";
string queryString = "SELECT OrderID, CustomerID FROM Orders";
using OleDbConnection connection = new OleDbConnection(connectionString);
using OleDbCommand command = new OleDbCommand(queryString, connection);
connection.Open();
using OleDbDataReader reader = command.ExecuteReader();
while (reader.Read())
{
Console.WriteLine(reader.GetInt32(0) + ", " + reader.GetString(1));
}
Main Types
- OleDbConnection represents an open connection to an OLE DB data source.
- OleDbCommand represents an SQL statement or stored procedure to execute against an OLE DB data source.
- OleDbDataReader provides a way of reading a forward-only stream of data rows from an OLE DB data source.
- OleDbDataAdapter represents a set of data commands and a database connection that are used to fill a
DataSet
and update the OLE DB data source.
Additional Documentation
Related Packages
System.Data.Odbc is a similar package for accessing ODBC data sources.
Feedback & Contributing
System.Data.OleDb is released as open source under the MIT license. Bug reports are welcome at the GitHub repository. This package is considered complete and we only consider low-risk, high-impact fixes that are necessary to maintain or improve quality.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 is compatible. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 4.6.2
- No dependencies.
-
.NETStandard 2.0
- No dependencies.
-
net6.0
- System.Configuration.ConfigurationManager (>= 8.0.0)
- System.Diagnostics.PerformanceCounter (>= 8.0.0)
-
net7.0
- System.Configuration.ConfigurationManager (>= 8.0.0)
- System.Diagnostics.PerformanceCounter (>= 8.0.0)
-
net8.0
- System.Configuration.ConfigurationManager (>= 8.0.0)
- System.Diagnostics.PerformanceCounter (>= 8.0.0)
NuGet packages (230)
Showing the top 5 NuGet packages that depend on System.Data.OleDb:
Package | Downloads |
---|---|
Microsoft.Windows.Compatibility
This Windows Compatibility Pack provides access to APIs that were previously available only for .NET Framework. It can be used from both .NET as well as .NET Standard. |
|
Microsoft.SqlServer.SqlManagementObjects
The SQL Server Management Objects (SMO) Framework is a set of objects designed for programmatic management of Microsoft SQL Server and Microsoft Azure SQL Database. |
|
Dynamicweb.Core
Core API containing contracts and system-wide base objects |
|
Stimulsoft.Reports.Engine.NetCore
The native .NET Core report engine is a part of the reporting tool for .NET Standard, .NET Core and .NET, that renders reports from getting data from the source, building bands, calculating aggregate functions, charting, applying styles, conditions, filtering, sorting, and more. Also, the report engine has algorithms for exporting reports to various formats such as PDF, Rich Text, Excel, and others. |
|
Dynamicweb.Data
Data access API |
GitHub repositories (26)
Showing the top 5 popular GitHub repositories that depend on System.Data.OleDb:
Repository | Stars |
---|---|
microsoft/PowerToys
Windows system utilities to maximize productivity
|
|
Flow-Launcher/Flow.Launcher
:mag: Quick file search & app launcher for Windows with community-made plugins
|
|
DotNetNext/SqlSugar
.Net aot ORM Fastest ORM Simple Easy Sqlite orm Oracle ORM Mysql Orm postgresql ORm SqlServer oRm 达梦 ORM 人大金仓 ORM 神通ORM C# ORM , C# ORM .NET ORM NET5 ORM .NET6 ORM ClickHouse orm QuestDb ,TDengine ORM,OceanBase orm,GaussDB orm ,Tidb orm Object/Relational Mapping
|
|
umbraco/Umbraco-CMS
The simple, flexible and friendly ASP.NET CMS used by more than 730.000 websites
|
|
dotnetcore/FreeSql
🦄 .NET aot orm, C# orm, VB.NET orm, Mysql orm, Postgresql orm, SqlServer orm, Oracle orm, Sqlite orm, Firebird orm, 达梦 orm, 人大金仓 orm, 神通 orm, 翰高 orm, 南大通用 orm, 虚谷 orm, 国产 orm, Clickhouse orm, QuestDB orm, MsAccess orm.
|