共用方式為


AzureSqlExtensions.AsAzureSqlDatabase Method

Definition

Overloads

AsAzureSqlDatabase(IResourceBuilder<SqlServerServerResource>)
Obsolete.

Configures SQL Server resource to be deployed as Azure SQL Database (server).

AsAzureSqlDatabase(IResourceBuilder<SqlServerServerResource>, Action<IResourceBuilder<AzureSqlServerResource>,ResourceModuleConstruct, SqlServer,IEnumerable<SqlDatabase>>)

Configures SQL Server resource to be deployed as Azure SQL Database (server).

AsAzureSqlDatabase(IResourceBuilder<SqlServerServerResource>)

Source:
AzureSqlExtensions.cs
Source:
AzureSqlExtensions.cs

Caution

This method is obsolete and will be removed in a future version. Use AddAzureSqlServer instead to add an Azure SQL server resource.

Configures SQL Server resource to be deployed as Azure SQL Database (server).

public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.SqlServerServerResource> AsAzureSqlDatabase (this Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.SqlServerServerResource> builder);
[System.Obsolete("This method is obsolete and will be removed in a future version. Use AddAzureSqlServer instead to add an Azure SQL server resource.")]
public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.SqlServerServerResource> AsAzureSqlDatabase (this Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.SqlServerServerResource> builder);
static member AsAzureSqlDatabase : Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.SqlServerServerResource> -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.SqlServerServerResource>
[<System.Obsolete("This method is obsolete and will be removed in a future version. Use AddAzureSqlServer instead to add an Azure SQL server resource.")>]
static member AsAzureSqlDatabase : Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.SqlServerServerResource> -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.SqlServerServerResource>
<Extension()>
Public Function AsAzureSqlDatabase (builder As IResourceBuilder(Of SqlServerServerResource)) As IResourceBuilder(Of SqlServerServerResource)

Parameters

builder
IResourceBuilder<SqlServerServerResource>

The builder for the SQL Server resource.

Returns

A reference to the IResourceBuilder<T>.

Attributes

Applies to

AsAzureSqlDatabase(IResourceBuilder<SqlServerServerResource>, Action<IResourceBuilder<AzureSqlServerResource>,ResourceModuleConstruct, SqlServer,IEnumerable<SqlDatabase>>)

Source:
AzureSqlExtensions.cs

Configures SQL Server resource to be deployed as Azure SQL Database (server).

public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.SqlServerServerResource> AsAzureSqlDatabase (this Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.SqlServerServerResource> builder, Action<Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureSqlServerResource>,Aspire.Hosting.ResourceModuleConstruct,Azure.Provisioning.Sql.SqlServer,System.Collections.Generic.IEnumerable<Azure.Provisioning.Sql.SqlDatabase>>? configureResource);
static member AsAzureSqlDatabase : Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.SqlServerServerResource> * Action<Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureSqlServerResource>, Aspire.Hosting.ResourceModuleConstruct, Azure.Provisioning.Sql.SqlServer, seq<Azure.Provisioning.Sql.SqlDatabase>> -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.SqlServerServerResource>
<Extension()>
Public Function AsAzureSqlDatabase (builder As IResourceBuilder(Of SqlServerServerResource), configureResource As Action(Of IResourceBuilder(Of AzureSqlServerResource), ResourceModuleConstruct, SqlServer, IEnumerable(Of SqlDatabase))) As IResourceBuilder(Of SqlServerServerResource)

Parameters

builder
IResourceBuilder<SqlServerServerResource>

The builder for the SQL Server resource.

configureResource
Action<IResourceBuilder<AzureSqlServerResource>,ResourceModuleConstruct,SqlServer,IEnumerable<SqlDatabase>>

Callback to configure the underlying SqlServer resource.

Returns

A reference to the IResourceBuilder<T>.

Applies to