PostgresBuilderExtensions.WithInitFiles Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Copies init files to a PostgreSQL container resource.
public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.PostgresServerResource> WithInitFiles(this Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.PostgresServerResource> builder, string source);
static member WithInitFiles : Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.PostgresServerResource> * string -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.PostgresServerResource>
<Extension()>
Public Function WithInitFiles (builder As IResourceBuilder(Of PostgresServerResource), source As String) As IResourceBuilder(Of PostgresServerResource)
Parameters
- builder
- IResourceBuilder<PostgresServerResource>
The resource builder.
- source
- String
The source directory or files on the host to copy into the container.
Returns
The IResourceBuilder<T>.