Linger.DataAccess.Oracle
1.4.0
.NET 8.0
This package targets .NET 8.0. The package is compatible with this framework or higher.
.NET Framework 4.7.2
This package targets .NET Framework 4.7.2. The package is compatible with this framework or higher.
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Linger.DataAccess.Oracle --version 1.4.0
NuGet\Install-Package Linger.DataAccess.Oracle -Version 1.4.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Linger.DataAccess.Oracle" Version="1.4.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Linger.DataAccess.Oracle" Version="1.4.0" />
<PackageReference Include="Linger.DataAccess.Oracle" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Linger.DataAccess.Oracle --version 1.4.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Linger.DataAccess.Oracle, 1.4.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Linger.DataAccess.Oracle@1.4.0
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Linger.DataAccess.Oracle&version=1.4.0
#tool nuget:?package=Linger.DataAccess.Oracle&version=1.4.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Linger.DataAccess.Oracle
Oracle database access library with enhanced security and batch processing.
Features
- Security-first parameterized queries
- Intelligent batch processing (implemented in core Linger.DataAccess)
- Async/await with CancellationToken
- Comprehensive operations & provider-specific helpers
Supported .NET Versions
- .NET 10.0
- .NET 9.0
- .NET 8.0
- .NET Framework 4.7.2+
Installation
dotnet add package Linger.DataAccess.Oracle
Basic Usage
using Linger.DataAccess.Oracle;
var oracle = new OracleHelper("Data Source=localhost:1521/XE;User Id=hr;Password=password;");
// Parameterized query
var users = await oracle.QueryAsync<User>("SELECT * FROM users WHERE department = :dept", new OracleParameter(":dept", "IT"));
// Batch query (delegates to core; default batchSize = 1000)
var ids = Enumerable.Range(1, 6000).Select(i => i.ToString()).ToList();
var dt = oracle.QueryInBatches("SELECT * FROM users WHERE id IN ({0})", ids);
// Existence check
bool exists = await oracle.ExistsAsync("SELECT 1 FROM users WHERE email = :email", new OracleParameter(":email", "user@example.com"));
Oracle Notes
- Parameter prefix uses ':' (e.g., :dept)
- For very large IN lists you may tune batchSize (core default 1000)
- Use parameterized versions for safety; Raw variants only for trusted numeric IDs
Async Implementation ✅
All async methods use true asynchronous I/O:
// ✅ TRUE ASYNC - Uses ADO.NET async APIs
public async Task<bool> ExistsAsync(string sql, CancellationToken ct = default)
{
var count = await FindCountBySqlAsync(sql).ConfigureAwait(false);
return count > 0;
}
Benefits for Oracle database operations:
- Network-bound operations release threads during database calls
- Supports thousands of concurrent connections efficiently
- Full cancellation support for long-running queries
- Optimal for distributed and high-traffic applications
Best Practices
- Use async methods for all database operations - True async ensures optimal performance
- Always pass CancellationToken for query timeout and cancellation control
- Always prefer parameterized SQL
- Tune batchSize only if statement length limits are hit
- Handle CancellationToken for long-running queries
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser 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. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Framework | net472 is compatible. net48 was computed. net481 was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETFramework 4.7.2
- Linger.DataAccess (>= 1.4.0)
- Oracle.ManagedDataAccess (>= 23.26.200)
-
net10.0
- Linger.DataAccess (>= 1.4.0)
- Oracle.ManagedDataAccess.Core (>= 23.26.200)
-
net8.0
- Linger.DataAccess (>= 1.4.0)
- Oracle.ManagedDataAccess.Core (>= 23.26.200)
-
net9.0
- Linger.DataAccess (>= 1.4.0)
- Oracle.ManagedDataAccess.Core (>= 23.26.200)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.4.2 | 97 | 5/20/2026 |
| 1.4.1-preview | 95 | 5/12/2026 |
| 1.4.0 | 87 | 5/6/2026 |
| 1.3.3-preview | 80 | 5/5/2026 |
| 1.3.2-preview | 86 | 4/29/2026 |
| 1.3.1-preview | 94 | 4/28/2026 |
| 1.3.0-preview | 90 | 4/27/2026 |
| 1.2.0-preview | 104 | 3/29/2026 |
| 1.1.0 | 110 | 2/4/2026 |
| 1.0.3-preview | 114 | 1/9/2026 |
| 1.0.2-preview | 105 | 1/8/2026 |
| 1.0.0 | 303 | 11/12/2025 |
| 1.0.0-preview2 | 213 | 11/6/2025 |
| 1.0.0-preview1 | 223 | 11/5/2025 |
| 0.9.9 | 199 | 10/16/2025 |
| 0.9.8 | 205 | 10/14/2025 |
| 0.9.7-preview | 195 | 10/13/2025 |
| 0.9.6-preview | 175 | 10/12/2025 |
| 0.9.5 | 187 | 9/28/2025 |
| 0.9.4-preview | 207 | 9/25/2025 |
Loading failed