Getting started
Install the .NET library
Add the package reference to your project
On this page
Package Manager
Install the package with Package Manager from Nuget:
Install-Package DubUrl
Install-Package DubUrl.Provider.PostgreSql
Install-Package Npgsql
Run the following to update to the latest version:
Update-Package DubUrl
.NET CLI
Install the package with .NET CLI from Nuget:
dotnet add package DubUrl
dotnet add package DubUrl.Provider.PostgreSql
dotnet add package Npgsql
Run the following to update to a specific version:
dotnet add package DubUrl --version 1.2.3
DubUrl supplies the provider-neutral library. Add the implementation and driver for each database needed by your application; the example above selects PostgreSQL/Npgsql. Discovery is automatic:
var url = new ConnectionUrl("pg://localhost/demo");
The DubUrl.Core NuGet package and the former all-provider aggregate are removed. Replace any DubUrl.Core package reference with DubUrl. Existing DubUrl consumers must add their selected provider packages. The Core project, DubUrl.Core.dll, and namespaces keep their names. No packages need to be installed for unrelated databases. Installed provider archives remain another way to supply an implementation and its driver. DubUrl.Application supplies the shared catalog for listing providers.