Skip to content
Docs Try Aspire
Docs Try

addDatabase

Method
📦 CommunityToolkit.Aspire.Hosting.RavenDB v13.4.0
interface RavenDBServerResource {
// ... omitted for brevity
addDatabase(
name: string,
databaseName?: string,
ensureCreated?: boolean): RavenDBDatabaseResource;
}

Signature

method addDatabase builder
Adds a database resource to an existing RavenDB server resource.
addDatabase(
name: string,
databaseName?: string,
ensureCreated?: boolean): RavenDBDatabaseResource
name string
databaseName string optional
ensureCreated boolean optional = False
RavenDBDatabaseResource

Applies to

This method applies to the following types: