YGADO 1.1.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package YGADO --version 1.1.0                
NuGet\Install-Package YGADO -Version 1.1.0                
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="YGADO" Version="1.1.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add YGADO --version 1.1.0                
#r "nuget: YGADO, 1.1.0"                
#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 YGADO as a Cake Addin
#addin nuget:?package=YGADO&version=1.1.0

// Install YGADO as a Cake Tool
#tool nuget:?package=YGADO&version=1.1.0                

YGADO

A simple ADO to execute a stored procedure and return DataSet or Dictionary of output parameters

Installation

Include this package in the project file

Usage

string connStr = "";
DBSPTool db = new DBSPTool(connStr);

using (DataSet ds = db.GetDataSet("USPGetViolations"))
{
    if (ds.Tables[0].Rows.Count > 0)
    {
        foreach (DataRow dr in ds.Tables[0].Rows)
        {
            Console.WriteLine($"{dr["Id"]} {dr["Violation"]}");
        }
    }
}

//or

DBSPTool db = new DBSPTool(connStr);
var result = db.ExecSP("USPTest");

Examples

Test project is provided in the solution to illustrate how instantiate and invoke the email sending functionality

Output:

The output is a DataSet or Dictionary. Use try catch for executing GetDataSet

Dependencies

Microsoft.Data.SqlClient

Contributing

Any new ideas on how to enhance this class without adding much complexity, please adhere to SOLID principle

License

This project is licensed under the MIT License(LICENSE).

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  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. 
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
1.4.0 81 11/16/2024
1.3.3 89 10/9/2024
1.3.2 120 6/17/2024
1.3.1 105 6/17/2024
1.3.0 105 6/17/2024
1.2.0 116 6/1/2024
1.1.0 107 6/1/2024
1.0.0 114 5/31/2024

Added ability to execute sql text