次の方法で共有


AzureSqlExtensions.AddAzureSqlServer Method

Definition

Adds an Azure SQL Database (server) resource to the application model.

public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureSqlServerResource> AddAzureSqlServer (this Aspire.Hosting.IDistributedApplicationBuilder builder, string name);
static member AddAzureSqlServer : Aspire.Hosting.IDistributedApplicationBuilder * string -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureSqlServerResource>
<Extension()>
Public Function AddAzureSqlServer (builder As IDistributedApplicationBuilder, name As String) As IResourceBuilder(Of AzureSqlServerResource)

Parameters

builder
IDistributedApplicationBuilder

The builder for the distributed application.

name
String

The name of the resource.

Returns

A reference to the IResourceBuilder<T> builder.

Applies to