Skip to content

Latest commit

 

History

History
33 lines (20 loc) · 1002 Bytes

File metadata and controls

33 lines (20 loc) · 1002 Bytes

CommunityToolkit.Aspire.Hosting.SqlServer.Extensions library

This integration contains extensions for the SqlServer hosting package for Aspire.

The integration provides support for running DbGate and Adminer to interact with the SqlServer database.

Getting Started

Install the package

In your AppHost project, install the package using the following command:

dotnet add package CommunityToolkit.Aspire.Hosting.SqlServer.Extensions

Example usage

Then, in the Program.cs file of AppHost, define an SqlServer resource, then call AddSqlServer:

var sqlserver = builder.AddSqlServer("sqlserver")
    .WithDbGate()
    .WithAdminer();

Additional Information

https://learn.microsoft.com/dotnet/aspire/community-toolkit/hosting-sqlserver-extensions

Feedback & contributing

https://github.com/CommunityToolkit/Aspire