Share via


SqlServerBuilderExtensions Class

Definition

Provides extension methods for adding SQL Server resources to the application model.

public static class SqlServerBuilderExtensions
type SqlServerBuilderExtensions = class
Public Module SqlServerBuilderExtensions
Inheritance
SqlServerBuilderExtensions

Methods

AddDatabase(IResourceBuilder<SqlServerServerResource>, String, String)

Adds a SQL Server database to the application model. This is a child resource of a SqlServerServerResource.

AddSqlServer(IDistributedApplicationBuilder, String, IResourceBuilder<ParameterResource>, Nullable<Int32>)

Adds a SQL Server resource to the application model. A container is used for local development.

WithCreationScript(IResourceBuilder<SqlServerDatabaseResource>, String)

Defines the SQL script used to create the database.

WithDataBindMount(IResourceBuilder<SqlServerServerResource>, String, Boolean)

Adds a bind mount for the data folder to a SQL Server resource.

WithDataVolume(IResourceBuilder<SqlServerServerResource>, String, Boolean)

Adds a named volume for the data folder to a SQL Server resource.

WithHostPort(IResourceBuilder<SqlServerServerResource>, Nullable<Int32>)

Configures the host port that the SqlServer resource is exposed on instead of using randomly assigned port.

WithPassword(IResourceBuilder<SqlServerServerResource>, IResourceBuilder<ParameterResource>)

Configures the password that the SqlServer resource is used.

Applies to