DatabaseSharp 1.6.4

dotnet add package DatabaseSharp --version 1.6.4
                    
NuGet\Install-Package DatabaseSharp -Version 1.6.4
                    
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="DatabaseSharp" Version="1.6.4" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DatabaseSharp" Version="1.6.4" />
                    
Directory.Packages.props
<PackageReference Include="DatabaseSharp" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add DatabaseSharp --version 1.6.4
                    
#r "nuget: DatabaseSharp, 1.6.4"
                    
#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.
#:package DatabaseSharp@1.6.4
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=DatabaseSharp&version=1.6.4
                    
Install as a Cake Addin
#tool nuget:?package=DatabaseSharp&version=1.6.4
                    
Install as a Cake Tool

<p align="center"> <img src="https://github.com/user-attachments/assets/4b024dea-dbd3-475c-9a7b-faf2869d5c8f" width="200" height="200" /> </p>

Build and Publish Nuget Nuget GitHub last commit (branch) GitHub commit activity (branch) Static Badge Static Badge Static Badge

DatabaseSharp

This is a project to introduce simpler type conversion when communicating with a database.

The library here is designed to only communicate through STPs, since it is considered more secure than free SQL.

An example of how this works can be seen below:

var client = new DBClient("<--Database Connection String Here-->");
var dataset = await client.ExecuteAsync("some-stp");
var table = dataset[0];
var row = table[0];

int someValue = row.GetValue<int>("COL_NAME");

You can also deserialize directly into class objects like this:

public class SomeClass
{
    [DatabaseSharp(ColumnName = "PK_NAME")]
    public string Name { get; set; }
    [DatabaseSharp(ColumnName = "ACT_VALUE")]
    public int Value { get; set; }
}

var client = new DBClient("<--Database Connection String Here-->");
var dataset = await client.ExecuteAsync("some-stp");
var table = dataset[0];
var row = table[0];

SomeClass filled = row.Fill<SomeClass>();

These are just the methods on the row level. However you can also use these on the Table level, where it will instead make a list of the items, as such:

var client = new DBClient("<--Database Connection String Here-->");
var dataset = await client.ExecuteAsync("some-stp");
var table = dataset[0];

List<int> someValue = table.GetAllValues<int>("COL_NAME");

The project is available as a package on the NuGet Package Manager.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on DatabaseSharp:

Package Downloads
ActFlow.Integrations.DatabaseSharp

DatabaseSharp workflow activities for ActFlow

CargoWiseReplicationAPIInterface.Database

An interface to work with CargoWises new Replication API

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.6.4 169 3/6/2026
1.6.3 508 12/17/2025
1.6.2 275 12/17/2025
1.6.1 124 12/12/2025
1.6.0 204 12/4/2025
1.5.0 240 10/6/2025
1.4.5 210 9/29/2025
1.4.4 191 9/24/2025
1.4.3 315 9/18/2025
1.4.2 309 9/18/2025
1.4.1 317 9/16/2025
1.4.0 244 8/8/2025
1.3.9 243 8/8/2025
1.3.8 485 7/25/2025
1.3.7 251 6/5/2025
1.3.6 194 5/28/2025
1.3.5 310 5/14/2025
1.3.4 265 5/14/2025
1.3.3 201 4/30/2025
1.3.2 545 3/26/2025
Loading failed