Apps72.Dev.Data 5.4.3

.NET Core 2.0 .NET Standard 2.0 .NET Framework 4.5
Install-Package Apps72.Dev.Data -Version 5.4.3
dotnet add package Apps72.Dev.Data --version 5.4.3
<PackageReference Include="Apps72.Dev.Data" Version="5.4.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Apps72.Dev.Data --version 5.4.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Apps72.Dev.Data, 5.4.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 Apps72.Dev.Data as a Cake Addin
#addin nuget:?package=Apps72.Dev.Data&version=5.4.3

// Install Apps72.Dev.Data as a Cake Tool
#tool nuget:?package=Apps72.Dev.Data&version=5.4.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

DatabaseCommand - Simple Object Mapping


Go to https://apps72.com to learn how to use DatabaseCommand.


Last build status: Build status

Introduction

This C# library simplify SQL Queries to external databases, using the standard class DbConnection and DotNetCore. You can use this library to retrieve data from SQL Server, Oracle Server, SQLite, ...

First, create a SqlConnection or an other DbConnection.

using (var cmd = new DatabaseCommand(mySqlConnection))
{
    cmd.CommandText = "SELECT ID, Name FROM EMployee";
    var all = cmd.ExecuteTable<Employee>();     // List of all employees
    var smith = cmd.ExecuteRow<Employee>();     // First employee
    var id = cmd.ExecuteScalar<int>();          // ID of first employee
    
    var emps = cmd.Query(" SELECT * FROM Employee WHERE ID > @ID ")
                  .AddParameter("@ID", 10)
                  .ExecuteTable<Employee>();
}

Requirements: Microsoft Framework 4.5 (Client Profile) for desktop applications, or SQL Server 2008 R2 for SQL CLR Stored procedures, or .NET Standard 2.0 for .NET Core library.

Basic Samples (video)

Samples

Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
.NET Core netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.0 netstandard2.1
.NET Framework net45 net451 net452 net46 net461 net462 net463 net47 net471 net472 net48
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen40 tizen60
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
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
5.4.3 1,069 8/3/2021
5.4.2 190 7/19/2021
5.4.1 177 6/9/2021
5.4.0 183 6/8/2021
5.3.1 220 4/20/2021
5.3.0 162 4/12/2021
5.2.0 143 4/12/2021
5.1.0 144 4/12/2021
5.0.1 251 1/25/2021
5.0.0 271 12/12/2020
4.2.4 354 10/7/2020
4.2.3 322 10/1/2020
4.2.2 257 9/23/2020
4.2.1 312 9/21/2020
4.2.0 258 9/18/2020
4.1.2 312 9/16/2020
4.1.1 1,014 3/18/2020
4.1.0 350 3/5/2020
4.0.2 382 1/15/2020
4.0.1 335 1/13/2020
4.0.0 331 12/29/2019
3.0.3 484 4/21/2019
3.0.2-rc2 354 3/28/2019
3.0.1-rc1 348 3/12/2019
3.0.1-beta 369 3/5/2019
2.7.5 698 8/9/2018
2.7.3 633 7/20/2018
2.6.0 763 6/14/2018
2.5.0 765 2/11/2018
2.4.0 726 8/27/2017
2.3.2 720 7/24/2017
2.3.1 709 7/4/2017
2.3.0 705 6/23/2017
2.3.0-beta 664 6/23/2017
2.1.0 823 12/17/2016
2.0.0 767 10/10/2016
1.5.2 893 3/30/2016
1.5.1 790 3/14/2016
1.5.0 798 3/14/2016
1.4.0 825 1/30/2016
1.3.0 1,057 1/4/2016
1.2.0 1,280 12/13/2015