DatabaseLibrarySDS 2.0.3.34728

dotnet add package DatabaseLibrarySDS --version 2.0.3.34728
                    
NuGet\Install-Package DatabaseLibrarySDS -Version 2.0.3.34728
                    
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="DatabaseLibrarySDS" Version="2.0.3.34728" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DatabaseLibrarySDS" Version="2.0.3.34728" />
                    
Directory.Packages.props
<PackageReference Include="DatabaseLibrarySDS" />
                    
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 DatabaseLibrarySDS --version 2.0.3.34728
                    
#r "nuget: DatabaseLibrarySDS, 2.0.3.34728"
                    
#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.
#:package DatabaseLibrarySDS@2.0.3.34728
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=DatabaseLibrarySDS&version=2.0.3.34728
                    
Install as a Cake Addin
#tool nuget:?package=DatabaseLibrarySDS&version=2.0.3.34728
                    
Install as a Cake Tool

About

The DatabaseLibrarySDS is a library for accessing Sql Server databases using the System.Data.SqlClient.

Built with .NET Framework 4.8 the DatabaseLibrarySDS library is for performing CRUD operations on a SQL Server database with minimal code for the developer.


Key Features

  • Makes reading and writing data to and from a database easier with less coding
  • Automatically maps columns to properties when retrieving data
  • Converts returning values according to the data type of the property
  • Supports setting the query timeout
  • Supports Async calls
  • Supports Transactions
  • Supports logging errors to the Windows Event Log
  • Supports Unit Testing

How to Use

   Executes a query that returns a List<Email>
   public List<Email> Email(string connectionString, string parameter)
   {
       try
       {
           using (var ss = new SqlServer(connectionString, CommandType.StoredProcedure))
           {
               string queryString = "Runbook.dbo.cspGetEmailByEmailId";
               ss.AddParameter("@parameter", parameter);
               return ss.ExecuteReader<Email>(queryString);
           } 
       }
       catch (Exception e)
       {
           throw new Exception(e.Message, e);
       }
   }
   
   Executes an Insert statement that returns a Guid for the record ID
       NOTE: The stored procedure will need to OUTPUT the new ID
   public Guid Email(string connectionString, Email Email)
   {
       try
       {
           using (var ss = new SqlServer(connectionString, CommandType.StoredProcedure))
           {
               string spName = "Runbook.dbo.cspAddEmail";
               return ss.ExecuteForGuid(spName, Email);
           } 
       }
       catch (Exception e)
       {
           throw new Exception(e.Message, e);
       }
   }

LoneWorx.com

Product Compatible and additional computed target framework versions.
.NET Framework net48 is compatible.  net481 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
2.0.3.34728 97 5/25/2025
2.0.3.34697 143 5/26/2025

Summary of changes made in this release of the package.