MagicEastern.ADOExt.Oracle 2.1.5

There is a newer version of this package available.
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                
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="MagicEastern.ADOExt.Oracle" Version="2.1.5" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MagicEastern.ADOExt.Oracle --version 2.1.5                
#r "nuget: MagicEastern.ADOExt.Oracle, 2.1.5"                
#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.
// Install MagicEastern.ADOExt.Oracle as a Cake Addin
#addin nuget:?package=MagicEastern.ADOExt.Oracle&version=2.1.5

// Install MagicEastern.ADOExt.Oracle as a Cake Tool
#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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
3.21.0 152 9/18/2023
3.20.0 122 9/15/2023
3.13.0 233 3/28/2023
3.10.0 406 8/22/2022
3.9.0 404 8/14/2022
3.8.0 413 8/5/2022
3.7.1 407 7/31/2022
3.7.0 393 7/30/2022
3.6.0 393 7/28/2022
3.5.0 397 7/28/2022
2.1.6 429 12/3/2020
2.1.5 390 12/2/2020
2.1.5-beta 342 9/16/2020
2.1.2 489 9/15/2020
2.1.1 398 9/9/2020
2.1.0 395 9/9/2020
2.0.3 468 4/7/2020
1.2.0 470 2/3/2020
1.1.2-beta 352 11/8/2019