A hybrid .NET ORM library for Oracle.
Install
| Product | Versions |
|---|---|
| .NET | |
| Other |
README
RepoDb.Oracle - a hybrid .NET ORM library for Oracle.
RepoDB is an open-source .NET ORM library that bridges the gaps of micro-ORMs and full-ORMs. It helps you simplify the switch-over of when to use the BASIC and ADVANCE operations during the development.
Important Pages
- GitHub Home Page - to learn more about the core library.
- Oracle Guide - getting started with Oracle
- All Documentation - comprehensive guides and references
Community Engagements
- GitHub - for any issues, requests and problems.
- StackOverflow - for any technical questions.
- Gitter Chat - for direct and live Q&A.
Dependencies
- Oracle.ManagedDataAccess.Core - the data provider used for Oracle.
- RepoDb - the core library of RepoDB.
License
- Copyright © 2025 - now Bert Huijben
Installation
At the Package Manager Console, write the command below.
> Install-Package AmpScm.RepoDb.Oracle
See the documentation for more information.
Get Started
First, RepoDB must be configured and Oracle support loaded.
using RepoDb;
using Oracle.ManagedDataAccess.Client;
GlobalConfiguration.Setup().UseOracle();
Note: This call must be done once during application startup.
After the bootstrap initialization, any library operation can then be called.
Query
using (var connection = new OracleConnection(ConnectionString))
{
var customer = connection.Query<Customer>(c => c.Id == 10045);
}
Insert
var customer = new Customer
{
FirstName = "John",
LastName = "Doe",
IsActive = true
};
using (var connection = new OracleConnection(ConnectionString))
{
var id = connection.Insert<Customer>(customer);
}
Update
using (var connection = new OracleConnection(ConnectionString))
{
var customer = connection.Query<Customer>(10045);
customer.FirstName = "John";
customer.LastUpdatedUtc = DateTime.UtcNow;
var affectedRows = connection.Update<Customer>(customer);
}
Delete
using (var connection = new OracleConnection(ConnectionString))
{
var customer = connection.Query<Customer>(10045);
var deletedCount = connection.Delete<Customer>(customer);
}
Changes from Previous Version
Adoption Assessment
Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.
Related Guides & Workflows
Learn how to evaluate, integrate, or audit this package in your .NET project.