SqlServerBuilderExtensions
Classstaticnet10.0
Provides extension methods for adding SQL Server resources to the application model.
namespace Aspire.Hosting;
public static class SqlServerBuilderExtensions{ // ...}8 members
Methods8
Section titled MethodsIResourceBuilder<SqlServerDatabaseResource> Adds a SQL Server database to the application model. This is a child resource of a
SqlServerServerResource . AddSqlServer(IDistributedApplicationBuilder, string, IResourceBuilder<ParameterResource>, int?) extensionats exportIResourceBuilder<SqlServerServerResource> Adds a SQL Server resource to the application model. A container is used for local development.
IResourceBuilder<SqlServerDatabaseResource> Defines the SQL script used to create the database.
IResourceBuilder<SqlServerServerResource> Adds a bind mount for the data folder to a SQL Server resource.
IResourceBuilder<SqlServerServerResource> Adds a named volume for the data folder to a SQL Server resource.
IResourceBuilder<SqlServerServerResource> Configures the host port that the SqlServer resource is exposed on instead of using randomly assigned port.
WithPassword(IResourceBuilder<SqlServerServerResource>, IResourceBuilder<ParameterResource>) extensionats exportIResourceBuilder<SqlServerServerResource> Configures the password that the SqlServer resource is used.
IResourceBuilder<SqlServerServerResource> Adds a REPL command that opens an authenticated SQL Server shell in the dashboard terminal dock.