ProductivityTools.ConnectionStringLight 0.0.13

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

<p align="right"> <a href="https://www.nuget.org/packages/ProductivityTools.ConnectionStringLight/"><img src="Images/Header/Nuget_border_40px.png" /></a> <a href="http://productivitytools.tech/connectionstringlightpt/"><img src="Images/Header/ProductivityTools_green_40px_2.png" /><a> <a href="https://github.com/pwujczyk/ProductivityTools.ConnectionStringLight"><img src="Images/Header/Github_border_40px.png" /></a> </p> <p align="center"> <a href="http://productivitytools.tech/"> <img src="Images/Header/LogoTitle_green_500px.png" /> </a> </p>

Connection string light

Library generates connection string from params.

It exposes two methods

  • GetSqlDataSourceConnectionString - creates connection string to server
var x=ConnectionStringLight.GetSqlDataSourceConnectionString(".");
Assert.AreEqual(x, "Data Source=.;Integrated Security=True");
  • GetSqlServerConnectionString - creates connection string to database on the server
var y = ConnectionStringLight.GetSqlServerConnectionString(".", "dbName");
Assert.AreEqual(y, "Data Source=.;Initial Catalog=dbName;Integrated Security=True");

Img

Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on ProductivityTools.ConnectionStringLight:

Package Downloads
ProductivityTools.DbUp

DBUp is a package which manages database updates. This package adds additinoal functionality to DBUp like creating the database and log table.

ProductivityTools.DbUpHelper

DBUp is a package which manages database updates. This package adds additinoal functionality to DBUp like creating the database and log table.

ProductivityTools.EntityFrameworkConnectionString

Couple methods which allows to generate connection string in Code. It genreates connection string without database name (for database creation) with database, for CRUD operations, and entity framework connection string with all metadata.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.0.13 139 3/16/2025
0.0.12 136 3/16/2025
0.0.11 131 3/16/2025
0.0.10 135 3/16/2025
0.0.8 961 3/13/2022
0.0.7 922 3/13/2022
0.0.5 2,238 4/15/2019
0.0.4 1,148 1/22/2019
0.0.3 1,184 1/21/2019