RepoDb.Oracle.BulkOperations
0.0.1-beta5
Prefix Reserved
dotnet add package RepoDb.Oracle.BulkOperations --version 0.0.1-beta5
NuGet\Install-Package RepoDb.Oracle.BulkOperations -Version 0.0.1-beta5
<PackageReference Include="RepoDb.Oracle.BulkOperations" Version="0.0.1-beta5" />
<PackageVersion Include="RepoDb.Oracle.BulkOperations" Version="0.0.1-beta5" />
<PackageReference Include="RepoDb.Oracle.BulkOperations" />
paket add RepoDb.Oracle.BulkOperations --version 0.0.1-beta5
#r "nuget: RepoDb.Oracle.BulkOperations, 0.0.1-beta5"
#:package RepoDb.Oracle.BulkOperations@0.0.1-beta5
#addin nuget:?package=RepoDb.Oracle.BulkOperations&version=0.0.1-beta5&prerelease
#tool nuget:?package=RepoDb.Oracle.BulkOperations&version=0.0.1-beta5&prerelease
RepoDb.Oracle.BulkOperations
A high-performant extension library of RepoDB that does bulk operations towards an Oracle database. It uses ODP.NET's native OracleBulkCopy class to load the data into the database.
Verification status: this package has been implemented and reviewed but not yet exercised against a live Oracle instance. Verify it end-to-end before relying on it in production.
Important Pages
- GitHub Home — core library and source code.
- Website — full documentation, API reference, and blog.
Core Features
Community
- GitHub Issues — bug reports and feature requests.
- Microsoft Teams — live Q&A.
- X / Twitter — news and updates.
License
Apache-2.0 — Copyright © 2020 Michael Camara Pendon
Installation
Install-Package RepoDb.Oracle.BulkOperations
Then initialize the bootstrapper once at application startup:
RepoDb.OracleBootstrap.Initialize();
Async Methods
Every synchronous operation has a corresponding Async overload.
BulkInsert
Inserts a list of entities into the database in bulk. Returns the number of inserted rows.
using (var connection = new OracleConnection(ConnectionString))
{
var customers = GetCustomers();
var insertedRows = connection.BulkInsert<Customer>(customers);
}
Or via table-name:
using (var connection = new OracleConnection(ConnectionString))
{
var customers = GetCustomers();
var insertedRows = connection.BulkInsert("Customer", customers);
}
Or via a DataTable:
using (var connection = new OracleConnection(ConnectionString))
{
var table = GetCustomersAsDataTable();
var insertedRows = connection.BulkInsert("Customer", table);
}
Returning generated identities:
using (var connection = new OracleConnection(ConnectionString))
{
var customers = GetCustomers(); // Id not set
connection.BulkInsert<Customer>(customers, identityBehavior: OracleBulkImportIdentityBehavior.ReturnIdentity);
// customers[i].Id now holds the generated identity for each row
}
BulkMerge
Upserts a list of entities in bulk — inserts new rows and updates existing ones based on the defined qualifiers. Returns the number of affected rows.
using (var connection = new OracleConnection(ConnectionString))
{
var customers = GetCustomers();
var mergedRows = connection.BulkMerge<Customer>(customers);
}
Or with qualifiers:
using (var connection = new OracleConnection(ConnectionString))
{
var customers = GetCustomers();
var mergedRows = connection.BulkMerge<Customer>(customers, qualifiers: e => new { e.LastName, e.DateOfBirth });
}
Or via table-name with qualifiers:
using (var connection = new OracleConnection(ConnectionString))
{
var customers = GetCustomers();
var mergedRows = connection.BulkMerge("Customer", customers, qualifiers: Field.From("LastName", "DateOfBirth"));
}
Or via a DataTable:
using (var connection = new OracleConnection(ConnectionString))
{
var table = GetCustomersAsDataTable();
var mergedRows = connection.BulkMerge("Customer", table);
}
BulkUpdate
Updates existing rows in the database in bulk, matched by the defined qualifiers. Returns the number of updated rows.
using (var connection = new OracleConnection(ConnectionString))
{
var customers = GetCustomers();
var rows = connection.BulkUpdate<Customer>(customers);
}
Or with qualifiers:
using (var connection = new OracleConnection(ConnectionString))
{
var customers = GetCustomers();
var rows = connection.BulkUpdate<Customer>(customers, qualifiers: e => new { e.LastName, e.DateOfBirth });
}
Or via a DataTable:
using (var connection = new OracleConnection(ConnectionString))
{
var table = GetCustomersAsDataTable();
var rows = connection.BulkUpdate("Customer", table);
}
BulkDelete
Deletes existing rows from the database in bulk, matched by the defined qualifiers. Returns the number of deleted rows.
using (var connection = new OracleConnection(ConnectionString))
{
var customers = GetCustomers();
var deletedRows = connection.BulkDelete<Customer>(customers);
}
Or with qualifiers:
using (var connection = new OracleConnection(ConnectionString))
{
var customers = GetCustomers();
var deletedRows = connection.BulkDelete<Customer>(customers, qualifiers: e => new { e.LastName, e.DateOfBirth });
}
Or via a DataTable:
using (var connection = new OracleConnection(ConnectionString))
{
var table = GetCustomersAsDataTable();
var deletedRows = connection.BulkDelete("Customer", table);
}
BulkDeleteByKey
Deletes existing rows from the database in bulk, matched by their primary (or identity) key value alone — no entities or DataTable involved, just the list of key values to remove. Returns the number of deleted rows.
using (var connection = new OracleConnection(ConnectionString))
{
var primaryKeys = new [] { 10045, 10046, 10047 };
var deletedRows = connection.BulkDeleteByKey("Customer", primaryKeys);
}
| 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. |
-
net10.0
- Oracle.ManagedDataAccess.Core (>= 23.9.1)
- RepoDb (>= 1.16.0-beta1)
- RepoDb.Oracle (>= 0.0.1-beta3)
-
net8.0
- Oracle.ManagedDataAccess.Core (>= 23.9.1)
- RepoDb (>= 1.16.0-beta1)
- RepoDb.Oracle (>= 0.0.1-beta3)
-
net9.0
- Oracle.ManagedDataAccess.Core (>= 23.9.1)
- RepoDb (>= 1.16.0-beta1)
- RepoDb.Oracle (>= 0.0.1-beta3)
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 |
|---|---|---|
| 0.0.1-beta5 | 0 | 8/15/2026 |
| 0.0.1-beta4 | 59 | 8/6/2026 |
| 0.0.1-beta3 | 57 | 8/6/2026 |
| 0.0.1-beta2 | 52 | 8/5/2026 |
| 0.0.1-beta1 | 65 | 8/1/2026 |
| 0.0.1-alpha2 | 57 | 8/5/2026 |
| 0.0.1-alpha1 | 58 | 7/30/2026 |