Horseshoe.NET.SqlDb 4.0.4

dotnet add package Horseshoe.NET.SqlDb --version 4.0.4
                    
NuGet\Install-Package Horseshoe.NET.SqlDb -Version 4.0.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="Horseshoe.NET.SqlDb" Version="4.0.4" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Horseshoe.NET.SqlDb" Version="4.0.4" />
                    
Directory.Packages.props
<PackageReference Include="Horseshoe.NET.SqlDb" />
                    
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 Horseshoe.NET.SqlDb --version 4.0.4
                    
#r "nuget: Horseshoe.NET.SqlDb, 4.0.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.
#addin nuget:?package=Horseshoe.NET.SqlDb&version=4.0.4
                    
Install as a Cake Addin
#tool nuget:?package=Horseshoe.NET.SqlDb&version=4.0.4
                    
Install as a Cake Tool

Horseshoe.NET icon

Horseshoe.NET.SqlDb

ADO.NET-based SQL Server data access wrappers

Code Examples

// DB connection not established and statement not executed yet
var query = Query.FromStatement
(
    "Data Source=MYSVR;Initial Catalog=MYDB;User ID=me;Password=myPwd", 
    "SELECT * FROM [dbo].[MyTable]"
); 

// creating a row parser offers fine grained control over converting data rows to objects
var rowParser = new RowParser<MyModel>
(
    (IDataReader reader) => new MyModel
    {
        MyStringProperty = Zap.String(reader["varcharColumn"]),
        MyNonNullStringProperty = (string)reader["nonNullVarcharColumn"],
        MyNullableIntProperty = Zap.NInt(reader["intColumn"]),
        MyNonNullIntProperty = (int)reader["nonNullIntColumn"],
        MyCustomProperty = new MyCustomClass
        {
            ID = ((int)reader["nonNullIntColumn2"], 
            Description = (string)reader["nonNullVarcharColumn2"]
        }
    }
);

// the following causes the DB connection to open and the statement to execute
IEnumerable<MyModel> list = query.AsList(rowParser);
string str = Zap.String(query.AsScalar());
DataTable dataTable = query.AsDataTable("My DataTable");
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 is compatible.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
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
4.0.4 86 6/26/2025
4.0.3 144 5/20/2025
4.0.1 119 2/8/2025
4.0.0.2 119 2/6/2025
3.1.6 130 12/4/2024
3.1.5 118 10/24/2024
3.1.4 136 7/5/2024
3.1.3 138 6/18/2024
3.1.2 127 6/8/2024
3.1.1 136 5/20/2024
3.1.0 180 1/27/2024
3.0.2 305 5/5/2023
3.0.1.1 341 2/20/2023
3.0.1 319 2/20/2023
3.0.0.2 318 2/14/2023
3.0.0.1 305 2/13/2023
3.0.0 323 2/9/2023
2.0.4 716 11/5/2022
2.0.3 451 10/31/2022
2.0.2 584 10/14/2022
2.0.1 491 10/7/2022
2.0.0 430 10/6/2022
1.6.2 619 9/12/2022
1.6.1 539 9/6/2022
1.6.0.1 482 9/5/2022
1.6.0 477 9/5/2022
1.5.9 465 9/5/2022
1.5.8 524 8/24/2022
1.5.7 531 8/12/2022
1.5.6 684 7/28/2022
1.5.5 552 6/1/2022
1.5.4 572 4/15/2022
1.5.3 543 4/13/2022
1.5.2 521 4/1/2022
1.5.1 531 3/30/2022
1.5.0 543 3/4/2022
1.4.4.2 533 2/12/2022
1.4.4.1 536 2/5/2022
1.4.4 566 2/4/2022
1.4.3.1 566 1/17/2022
1.4.3 546 1/17/2022
1.4.2 383 1/6/2022
1.4.1 388 12/30/2021
1.4.0 416 12/8/2021
1.3.3 450 10/22/2021
1.3.2 427 10/21/2021
1.3.1 459 10/15/2021
1.3.0 432 10/13/2021
1.2.4.2 423 8/5/2021
1.2.4.1 428 8/5/2021
1.2.4 430 8/5/2021
1.2.3.4 490 7/25/2021
1.2.3.3 458 7/24/2021
1.2.3.2 527 5/21/2021
1.2.3 435 5/19/2021
1.2.2 430 5/14/2021
1.2.1 455 4/7/2021
1.2.0.3 436 4/5/2021
1.2.0.1 571 3/27/2021
1.2.0 431 3/26/2021
1.1.3 474 1/20/2021
1.1.1 541 12/1/2020
1.1.0 558 9/15/2020
1.0.9.9 586 9/15/2020
1.0.9.8 623 9/15/2020
1.0.9.7 546 9/15/2020
1.0.9.6 567 9/15/2020
1.0.9.5 572 9/15/2020
1.0.9.4 565 9/14/2020
1.0.9.3 566 9/9/2020
1.0.9.2 584 9/3/2020
1.0.9.1 566 8/20/2020
1.0.9 755 8/8/2020
1.0.8 622 3/23/2020
1.0.7 610 3/22/2020
1.0.6 588 3/18/2020
1.0.3 585 3/12/2020
1.0.2 641 3/11/2020
1.0.1 606 3/7/2020
1.0.0 671 3/4/2020
0.9.5.2-beta 455 3/2/2020
0.9.5.1-beta 449 3/2/2020
0.9.5-beta 486 2/28/2020
0.9.4.5-beta 439 2/26/2020
0.9.4.3-beta 465 2/25/2020
0.9.4-beta 521 2/20/2020
0.9.3.7-beta 443 2/18/2020
0.9.3.6-beta 412 2/17/2020
0.9.3.5-beta 421 2/14/2020
0.9.3.3-beta 457 2/6/2020
0.9.3.1-beta 503 2/2/2020
0.9.3-beta 542 2/2/2020