DotNet.Database 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 -

If you have any questions or need improvement feel free to contact me:

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") });

Install-Package DotNet.Database -Version 0.0.5
dotnet add package DotNet.Database --version 0.0.5
<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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
0.0.5 498 1/31/2018