Udostępnij za pośrednictwem


AzureSqlExtensions.PublishAsAzureSqlDatabase Method

Definition

Overloads

PublishAsAzureSqlDatabase(IResourceBuilder<SqlServerServerResource>)
Obsolete.

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

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

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

PublishAsAzureSqlDatabase(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> PublishAsAzureSqlDatabase (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> PublishAsAzureSqlDatabase (this Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.SqlServerServerResource> builder);
static member PublishAsAzureSqlDatabase : 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 PublishAsAzureSqlDatabase : Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.SqlServerServerResource> -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.SqlServerServerResource>
<Extension()>
Public Function PublishAsAzureSqlDatabase (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

PublishAsAzureSqlDatabase(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> PublishAsAzureSqlDatabase (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 PublishAsAzureSqlDatabase : 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 PublishAsAzureSqlDatabase (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