SQLStoredProcedureCommandsFunctions 1.0.0.8
See the version list below for details.
dotnet add package SQLStoredProcedureCommandsFunctions --version 1.0.0.8
NuGet\Install-Package SQLStoredProcedureCommandsFunctions -Version 1.0.0.8
<PackageReference Include="SQLStoredProcedureCommandsFunctions" Version="1.0.0.8" />
<PackageVersion Include="SQLStoredProcedureCommandsFunctions" Version="1.0.0.8" />
<PackageReference Include="SQLStoredProcedureCommandsFunctions" />
paket add SQLStoredProcedureCommandsFunctions --version 1.0.0.8
#r "nuget: SQLStoredProcedureCommandsFunctions, 1.0.0.8"
#:package SQLStoredProcedureCommandsFunctions@1.0.0.8
#addin nuget:?package=SQLStoredProcedureCommandsFunctions&version=1.0.0.8
#tool nuget:?package=SQLStoredProcedureCommandsFunctions&version=1.0.0.8
SQLStoredProcedureCommandsFunctions 1.0.0.8
A lightweight yet powerful SQL Server data-access library that simplifies working with stored procedures, DataTables, SQL parameters, and Azure SQL authentication.
Built for .NET 10 enterprise applications requiring clean, reusable, and high-performance database access.
π Features
β Azure SQL Authentication (Managed Identity Ready)
- Environment-aware token generation
- Local:
VisualStudioCredential - Cloud:
DefaultAzureCredential - Automatic AccessToken injection into
SqlConnection - Zero code changes required when deploying to Azure
β Full Data Access Layer (DAL)
Rich APIs for executing SQL commands:
ExecuteNonQueryExecuteScalarExecuteDatasetExecuteReaderExecuteXmlReader
Supports:
- sync & async programming
- Connection string, SqlConnection, or SqlTransaction
- Stored procedures or raw SQL
- Automatic command preparation
β Stored Procedure Parameter Caching
- Automatically discovers stored procedure parameters
- Caches them using synchronized hashtable
- Fast repeated execution
- Eliminates
DeriveParametersoverhead
β SQL Parameter Utilities
- Convert C# classes β SqlParameter list
[IgnoreDBParameter]attribute to skip properties- Automatic SqlDbType inference
- Create strongly typed parameters easily
β Data Conversion Helpers
DataTableβList<T>/IEnumerable<T>List<T>/IEnumerable<T>βDataTableDataSet/DataTableβDictionary- Column reordering & shifting utilities
β Legacy-style SqlHelper (Optional)
- Transaction support
- Bulk SP execution
- Dataset update utilities
π¦ Installation
Install from NuGet:
dotnet add package SQLStoredProcedureCommandsFunctions --version 1.0.0.8
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. 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. |
-
net10.0
- Microsoft.Data.SqlClient (>= 6.1.3)
- Microsoft.Extensions.Configuration (>= 10.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Release Notes - v1.0.0.8
Release Notes - v1.0.0.8
🚀 Key Features
🔹 1. Azure SQL Authentication
Added AzureCredential helper with environment-aware token resolution.
Supports:
Local development via VisualStudioCredential
Cloud environments via DefaultAzureCredential
Automatic access token generation for SQL connections.
(Files: AzureCredential.cs)
🔹 2. Complete Data Access Layer (DAL)
Rich set of methods for executing:
ExecuteNonQuery
ExecuteScalar
ExecuteDataset
ExecuteReader
ExecuteXmlReader
Full support for:
Connection strings
Existing SqlConnection
SqlTransaction
Stored procedure parameter mapping
Async/await methods
Built-in Azure token injection for SQL connections
(File: DataAccessLayer.cs)
🔹 3. Stored Procedure Parameter Caching
Adds performance optimization via SqlHelperParameterCache
Automatically discovers SP parameters using DeriveParameters
Thread-safe caching using synchronized Hashtable
Reduces database metadata lookups
(File: SqlHelperParameterCache.cs)
🔹 4. Data Conversion Utilities
Convert DataTable or DataSet to:
List<T>
IEnumerable<T>
Dictionary<string, object>
Convert Lists and Enumerables to DataTables
(File: DataAccessConverter.cs)
🔹 5. DataTable Extensions
Move columns to specific indices
Retrieve column lists from given index
Support for re-ordering data structures
(File: DataTableExtensions.cs)
🔹 6. SQL Parameter Helpers
Generate SQL parameters from model objects
Supports [IgnoreDbParameter] attribute to skip fields
Auto-map CLR types to SqlDbType
Utility for strongly typed one-off parameters
(Files: SQLParamHelper.cs, IgnoreDbParameter.cs)
🔹 7. Legacy-Style SqlHelper (Optional Utilities)
Transaction support
Bulk execution helpers
Dataset update helpers
(File: SqlHelper.cs)
βοΈ Improvements Over Traditional ADO.NET Approach
Less boilerplate β simplified stored procedure execution
Built-in Azure AD token-based authentication
Strong separation of concerns and reusability
Centralized parameter caching for increased performance
Async support across all major operations
🧪 Tested Scenarios
Executing stored procedures with and without parameters
Transactions with rollback and commit
Azure SQL authentication both locally and in cloud
Automatic reflection-based type conversion
DataTable/Enumerable/List conversion utilities
📘 Target Framework
.NET 8.0 (Fully compatible with .NET 6+)