DotNet.Database 0.0.5

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

// Install DotNet.Database as a Cake Tool
#tool nuget:?package=DotNet.Database&version=0.0.5

This client library is a powerful tool for MSSQL/PostgreSQL. This tool allows to easy execute command/procedure with using only one line of code.

Samples - https://github.com/tomaszmargacz/nuget-samples/tree/master/DotNet.Database.Sample

If you have any questions or need improvement feel free to contact me: tomasz.margacz@gmail.com

Sample code:
var selectCommandWithParam = _dbClient.ExecuteCommand<TestModel>("Select * from dbo.Test where id = @id", new { id = selectCommand.FirstOrDefault().Id });
var selectProcedureWithParam = _dbClient.ExecuteStoredProcedure<TestModel>("dbo.GetTest", new { id = selectProcedure.FirstOrDefault().Id });

int insertCount = _dbClient.ExecuteCommand<int>("INSERT INTO dbo.Test (id, text, rate, created) VALUES (@id, @text, @rate, @created)", new { id = Guid.NewGuid().ToString(), text = "Test", rate = 1.2, created = DateTime.UtcNow.ToString("yyyy-MM-dd HH:mm:ss") });

Product Compatible and additional computed target framework versions.
.NET Framework net is compatible. 
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
0.0.5 1,411 1/31/2018