YGADO 1.1.0
See the version list below for details.
dotnet add package YGADO --version 1.1.0
NuGet\Install-Package YGADO -Version 1.1.0
<PackageReference Include="YGADO" Version="1.1.0" />
paket add YGADO --version 1.1.0
#r "nuget: YGADO, 1.1.0"
// 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 | Versions 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. |
-
net6.0
- Microsoft.Data.SqlClient (>= 5.2.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Added ability to execute sql text