Share via


MySqlBuilderExtensions.WithPhpMyAdmin<T> Method

Definition

Adds a phpMyAdmin administration and development platform for MySql to the application model. This version the package defaults to the 5.2 tag of the phpmyadmin container image

public static Aspire.Hosting.ApplicationModel.IResourceBuilder<T> WithPhpMyAdmin<T> (this Aspire.Hosting.ApplicationModel.IResourceBuilder<T> builder, Action<Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.MySql.PhpMyAdminContainerResource>>? configureContainer = default, string? containerName = default) where T : Aspire.Hosting.ApplicationModel.MySqlServerResource;
static member WithPhpMyAdmin : Aspire.Hosting.ApplicationModel.IResourceBuilder<'T (requires 'T :> Aspire.Hosting.ApplicationModel.MySqlServerResource)> * Action<Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.MySql.PhpMyAdminContainerResource>> * string -> Aspire.Hosting.ApplicationModel.IResourceBuilder<'T (requires 'T :> Aspire.Hosting.ApplicationModel.MySqlServerResource)> (requires 'T :> Aspire.Hosting.ApplicationModel.MySqlServerResource)
<Extension()>
Public Function WithPhpMyAdmin(Of T As MySqlServerResource) (builder As IResourceBuilder(Of T), Optional configureContainer As Action(Of IResourceBuilder(Of PhpMyAdminContainerResource)) = Nothing, Optional containerName As String = Nothing) As IResourceBuilder(Of T)

Type Parameters

T

Parameters

builder
IResourceBuilder<T>

The MySql server resource builder.

configureContainer
Action<IResourceBuilder<PhpMyAdminContainerResource>>

Callback to configure PhpMyAdmin container resource.

containerName
String

The name of the container (Optional).

Returns

A reference to the IResourceBuilder<T>.

Applies to