MagicEastern.ADOExt.Oracle
2.1.5
See the version list below for details.
dotnet add package MagicEastern.ADOExt.Oracle --version 2.1.5
NuGet\Install-Package MagicEastern.ADOExt.Oracle -Version 2.1.5
<PackageReference Include="MagicEastern.ADOExt.Oracle" Version="2.1.5" />
<PackageVersion Include="MagicEastern.ADOExt.Oracle" Version="2.1.5" />
<PackageReference Include="MagicEastern.ADOExt.Oracle" />
paket add MagicEastern.ADOExt.Oracle --version 2.1.5
#r "nuget: MagicEastern.ADOExt.Oracle, 2.1.5"
#:package MagicEastern.ADOExt.Oracle@2.1.5
#addin nuget:?package=MagicEastern.ADOExt.Oracle&version=2.1.5
#tool nuget:?package=MagicEastern.ADOExt.Oracle&version=2.1.5
ADOExt
Description
A simple object mapping library. It uses ADO.NET at backend. The performance is on par with (if it is not faster) Entity Framework Core.
Nuget
Oracle: https://www.nuget.org/packages/MagicEastern.ADOExt.Oracle/
Sql Server: https://www.nuget.org/packages/MagicEastern.ADOExt.SqlServer/
How to use
Step 1
Put DBColumn attribute to the Properties of the class that you wish to map from database. Optionally, if you need to insert, update, delete, and load record from a table, put DBTable attribute to the class.
[DBTable("Department")]
public class DeptInfo
{
[DBColumn] public string DEPT_ID { get; set; }
[DBColumn] public string DESCRIPTION { get; set; }
}
Step 2
Create a ResolverProvider object. It will be used to create DBConnectionWrapper object. You can cache it static somewhere for later use throughout the application.
var rp = ResolverProvider(() => new SqlConnection(SqlConnString))
Step 3
Create a DBConnectionWrapper object when you want to access database.
using (DBConnectionWrapper conn = rp.OpenConnection())
{
// use conn to access database.
}
DBConnectionWrapper class extends IDbConnection interface. Thus, you can use this object as usual SqlConneciton or OracleConnection object. There are also some useful extension methods on DBConnectionWrapper.
Extension Methods:
Query<T>
Execute
GetSingleValue<T>
GetFirstColumn<T>
Load<T>
Insert<T>
Update<T>
Delete<T>
See example in projects "Test"(SqlServer), "TestOracle"(Oracle).
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET Framework | net461 is compatible. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
-
- MagicEastern.ADOExt (>= 2.1.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 3.1.8)
- Oracle.ManagedDataAccess (>= 19.6.0)
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 |
|---|---|---|
| 4.0.0 | 155 | 7/18/2025 |
| 3.21.0 | 232 | 9/18/2023 |
| 3.20.0 | 197 | 9/15/2023 |
| 3.13.0 | 352 | 3/28/2023 |
| 3.10.0 | 538 | 8/22/2022 |
| 3.9.0 | 527 | 8/14/2022 |
| 3.8.0 | 555 | 8/5/2022 |
| 3.7.1 | 541 | 7/31/2022 |
| 3.7.0 | 530 | 7/30/2022 |
| 3.6.0 | 530 | 7/28/2022 |
| 3.5.0 | 530 | 7/28/2022 |
| 2.1.6 | 609 | 12/3/2020 |
| 2.1.5 | 560 | 12/2/2020 |
| 2.1.5-beta | 503 | 9/16/2020 |
| 2.1.2 | 657 | 9/15/2020 |
| 2.1.1 | 574 | 9/9/2020 |
| 2.1.0 | 565 | 9/9/2020 |