Skip to content
DocsTry Aspire
DocsTry

withDataVolume

Method
📦 CommunityToolkit.Aspire.Hosting.DbGate v13.4.0
interface DbGateContainerResource {
// ... omitted for brevity
withDataVolume(
name?: string,
isReadOnly?: boolean): DbGateContainerResource;
}

Signature

methodwithDataVolumebuilder
Adds a named volume for the data folder to a DbGate container resource.
withDataVolume(
name?: string,
isReadOnly?: boolean): DbGateContainerResource
namestringoptional
isReadOnlybooleanoptional= False
DbGateContainerResource

Applies to

This method applies to the following types: