Raycynix.Extensions.Database.PostgreSql
1.0.1
dotnet add package Raycynix.Extensions.Database.PostgreSql --version 1.0.1
NuGet\Install-Package Raycynix.Extensions.Database.PostgreSql -Version 1.0.1
<PackageReference Include="Raycynix.Extensions.Database.PostgreSql" Version="1.0.1" />
<PackageVersion Include="Raycynix.Extensions.Database.PostgreSql" Version="1.0.1" />
<PackageReference Include="Raycynix.Extensions.Database.PostgreSql" />
paket add Raycynix.Extensions.Database.PostgreSql --version 1.0.1
#r "nuget: Raycynix.Extensions.Database.PostgreSql, 1.0.1"
#:package Raycynix.Extensions.Database.PostgreSql@1.0.1
#addin nuget:?package=Raycynix.Extensions.Database.PostgreSql&version=1.0.1
#tool nuget:?package=Raycynix.Extensions.Database.PostgreSql&version=1.0.1
Raycynix.Extensions.Database.PostgreSql
Raycynix.Extensions.Database.PostgreSql adds PostgreSQL support to Raycynix.Extensions.Database.
What it contains
DatabaseBuilder.AddPostgreSql(...)PostgreSqlConfiguration- PostgreSQL connection-string building
UseNpgsql(...)integration for the sharedDatabaseContext
The provider is selected by calling .AddPostgreSql(...), not by setting a legacy provider enum in configuration.
Usage
builder.Services
.AddRaycynixDatabase(builder.Configuration, options =>
{
options.UseMigrations = true;
})
.AddPostgreSql(postgreSql =>
{
postgreSql.IncludeErrorDetail = true;
postgreSql.CommandTimeoutSeconds = 30;
});
appsettings.json
{
"DatabaseConfiguration": {
"ConnectionConfiguration": {
"Host": "localhost",
"Port": 5432,
"Name": "app",
"Username": "app",
"Password": "secret"
},
"UseMigrations": true,
"PostgreSqlConfiguration": {
"Pooling": true,
"MinimumPoolSize": 5,
"MaximumPoolSize": 50,
"CommandTimeoutSeconds": 30,
"IncludeErrorDetail": false
}
}
}
This package keeps the shared DatabaseContext from the core package and only adds PostgreSQL-specific registration on top of it.
| 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
- Npgsql.EntityFrameworkCore.PostgreSQL (>= 10.0.1)
- Raycynix.Extensions.Database (>= 1.0.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
See the package-local CHANGELOG.md for the full change history. Override PackageReleaseNotes in the package project file for major release-specific notes.