Skip to content
DocsTry Aspire
DocsTry

addDatabase

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

Signature

methodaddDatabasebuilder
Adds a database resource to an existing RavenDB server resource.
addDatabase(
name: string,
databaseName?: string,
ensureCreated?: boolean): RavenDBDatabaseResource
namestring
databaseNamestringoptional
ensureCreatedbooleanoptional= False
RavenDBDatabaseResource

Applies to

This method applies to the following types: