![]() |
VOOZH | about |
dotnet add package MeshWeaver.Hosting.PostgreSql --version 2.5.0
NuGet\Install-Package MeshWeaver.Hosting.PostgreSql -Version 2.5.0
<PackageReference Include="MeshWeaver.Hosting.PostgreSql" Version="2.5.0" />
<PackageVersion Include="MeshWeaver.Hosting.PostgreSql" Version="2.5.0" />Directory.Packages.props
<PackageReference Include="MeshWeaver.Hosting.PostgreSql" />Project file
paket add MeshWeaver.Hosting.PostgreSql --version 2.5.0
#r "nuget: MeshWeaver.Hosting.PostgreSql, 2.5.0"
#:package MeshWeaver.Hosting.PostgreSql@2.5.0
#addin nuget:?package=MeshWeaver.Hosting.PostgreSql&version=2.5.0Install as a Cake Addin
#tool nuget:?package=MeshWeaver.Hosting.PostgreSql&version=2.5.0Install as a Cake Tool
MeshWeaver.Hosting.PostgreSql provides PostgreSQL-based hosting capabilities for MeshWeaver applications. This library enables persistent storage and state management using PostgreSQL as the backend database, offering reliable data persistence for MeshWeaver instances.
We recommend using PostgreSQL together with Aspire. The corresponding extension method is meant to point to a connectionName, which will be configured in aspire.
// In Program.cs of your Aspire AppHost project
var builder = DistributedApplication.CreateBuilder(args);
// Set up PostgreSQL
var postgres = builder
.AddPostgres("postgres")
.WithPgAdmin()
.WithDataVolume();
var meshweaverdb = postgres.AddDatabase("meshweaverdb");
// Reference the database in your services
var frontend = builder
.AddProject<Projects.MeshWeaver_Portal_Web>("frontend")
.WithReference(meshweaverdb);
// In Program.cs of your service project
var builder = WebApplication.CreateBuilder(args);
// Add service defaults and connection
builder.AddServiceDefaults();
// Configure PostgreSQL
builder.ConfigurePostgreSqlContext("meshweaverdb");
var app = builder.Build();
app.Run();
Refer to the main MeshWeaver documentation for more information about hosting options and configuration.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 net9.0 is compatible. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.