DatabaseUtil 0.4.0

dotnet add package DatabaseUtil --version 0.4.0                
NuGet\Install-Package DatabaseUtil -Version 0.4.0                
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="DatabaseUtil" Version="0.4.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add DatabaseUtil --version 0.4.0                
#r "nuget: DatabaseUtil, 0.4.0"                
#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 DatabaseUtil as a Cake Addin
#addin nuget:?package=DatabaseUtil&version=0.4.0

// Install DatabaseUtil as a Cake Tool
#tool nuget:?package=DatabaseUtil&version=0.4.0                

DatabaseUtil

Has a bunch of useful utilities to make working with databases easier. Works best when used with the source generator, DatabaseUtil.SourceGenerator.

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net8.0

    • No dependencies.

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.4.0 150 4/15/2024
0.3.0 133 3/27/2024
0.2.0 131 3/18/2024
0.1.0 113 3/14/2024

- DbVal<T> added. This type helps differentiate between no results, a null result, an actual result, or the incorrect type.
- IDbParamApplicator's methods ApplyTo renamed to ApplyParameters.
- DbConnection extension method overloads added which accept IDbParamApplicator and parameters, to create a command with parameters applied.
- DbConnection extension method overloads "ExecuteScalarAs" added. This works much like ExecuteScalar, but wraps the result type in a DbVal<T>.
- DbConnection extension method overloads "ExecuteFirstOrDefault" added. This helps use the ReadFirstOrDefaultType methods that DatabaseUtil.SourceGen generates.