BassUtils.Oracle 4.6.3

.NET 6.0
dotnet add package BassUtils.Oracle --version 4.6.3
NuGet\Install-Package BassUtils.Oracle -Version 4.6.3
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="BassUtils.Oracle" Version="4.6.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add BassUtils.Oracle --version 4.6.3
#r "nuget: BassUtils.Oracle, 4.6.3"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install BassUtils.Oracle as a Cake Addin
#addin nuget:?package=BassUtils.Oracle&version=4.6.3

// Install BassUtils.Oracle as a Cake Tool
#tool nuget:?package=BassUtils.Oracle&version=4.6.3

BassUtils.Oracle

NuGet Badge

Low-level utility functions to simplify working with Oracle via Oracle.ManagedDataAccess.Core. Available on NuGet

The GitHub repository includes a sample project called BassUtils.OracleExamples.

It shows how to use all the extension methods in this project, especially the OracleParameterCollectionExtensions. You can install Oracle via Docker if need be - see the SQL script for instructions.

Oracle's official documentation for ODP.Net

Also available: BassUtils and BassUtils.NetCore

Features

  • DbTransactionExtensions: wrapper methods to log success/failure methods when performing database transactions.
  • OracleConnectionExtensions: Easier to use overloads of the OracleUdt.GetValue and OracleUdt.SetValue methods.
  • WrappedTransaction: bundles a transaction and its connection together to make them easier to dispose correctly.
  • OracleParameterExtensions: extension methods to get the Value property as an OracleDataReader or as a list of strings or numbers.
  • OracleParameterCollectionExtensions: many extension methods to help with creating parameters and RETURN parameters for UDTs and tables of UDTs, Associative Arrays, and Array Binding, and Ref Cursors

Change History

[4.6.3]
Fixed
  • In GetStringLengths, handle null strings by returning 0.
[4.6.2]
Changed
  • Improved the description of the NuGet package.
[4.6.1]
Fixed
  • The AddAssociativeArray family of functions must actually call ToArray on their values or ODP.Net will give an error (e.g. if you pass it a LINQ enumerable).
[4.6.0]
Added
  • Added the WrappedTransaction class, which bundles an OracleTransaction together with its corresponding OracleConnection and ensures they are properly disposed together.
Fixed
  • Fixed the logging in DbTransactionExtensions so that it works properly with non-MS loggers (tested with Serilog).
[4.4.2]
Fixed
  • Trimmed the READMEs for the 3 BassUtils packages to be just relevant to them.
  • Added NuGet badges.
[4.4.0]
  • Library created.
Product Versions
.NET net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows
Compatible target framework(s)
Additional computed target framework(s)
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
4.6.3 168 10/13/2022
4.6.2 246 9/8/2022
4.6.1 178 9/8/2022
4.6.0 1,110 1/31/2022
4.5.0 202 1/11/2022
4.4.2 155 1/1/2022
4.4.1 145 12/28/2021
4.2.4-alpha-g3e4abfb12d 98 12/17/2021
4.2.2-alpha-g73bc890b96 92 12/16/2021
4.2.1-alpha-gd2c57a210b 104 12/16/2021

2022-10-13 Bug fix to properly handle null strings when using array binding.
2022-09-08 Bug fix to AssociativeArray fns.
2022-01-28 Added WrappedTransaction.
2021-12-28 Initial version.