Skip to content

Installation

Cédric Belin edited this page Mar 2, 2026 · 1 revision

Requirements

Before installing SQL Mapper for .NET, you need to make sure you have the .NET SDK and/or PowerShell up and running.

You can verify if you're already good to go with the following commands:

# .NET
dotnet --version

# PowerShell
pwsh --version

Installing the .NET library with NuGet package manager

1. Install it

From a command prompt, run:

dotnet add package Belin.Sql

2. Import it

Now in your C# code, you can use:

using Belin.Sql;

Installing the PowerShell module with PSResourceGet package manager

1. Install it

From a command prompt, run:

Install-PSResource -Name Sql -Repository PSGallery

2. Import it

Now in your PowerShell code, you can use:

Import-Module -Name Sql