Skip to content

Commit f819db2

Browse files
authored
Tweak the wording of CosmosDB databases and containers (#2670)
1 parent b45cdc5 commit f819db2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/database/includes/cosmos-app-host.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ The dependent resource can access the injected connection string by calling the
105105

106106
### Add Azure Cosmos DB database and container resources
107107

108-
To add an Azure Cosmos DB database resource, chain a call on an `IResourceBuilder<AzureCosmosDBResource>` to the <xref:Aspire.Hosting.AzureCosmosExtensions.AddCosmosDatabase*> API:
108+
To add an Azure Cosmos DB database resource, call the <xref:Aspire.Hosting.AzureCosmosExtensions.AddCosmosDatabase*> method on an `IResourceBuilder<AzureCosmosDBResource>` instance:
109109

110110
```csharp
111111
var builder = DistributedApplication.CreateBuilder(args);
@@ -116,11 +116,11 @@ cosmos.AddCosmosDatabase("db");
116116
// After adding all resources, run the app...
117117
```
118118

119-
When you call `AddCosmosDatabase`, it configures your Cosmos DB resources to have a database named `db`. The database is created in the Cosmos DB account that's represented by the `AzureCosmosDBResource` that you added earlier. The database is a logical container for collections and users.
119+
When you call `AddCosmosDatabase`, it adds a database named `db` to your Cosmos DB resources and returns the newly created database resource. The database is created in the Cosmos DB account that's represented by the `AzureCosmosDBResource` that you added earlier. The database is a logical container for collections and users.
120120

121121
An Azure Cosmos DB container is where data is stored. When you create a container, you need to supply a partition key.
122122

123-
To add an Azure Cosmos DB container resource, chain a call on an `IResourceBuilder<AzureCosmosDBDatabaseResource>` to the <xref:Aspire.Hosting.AzureCosmosExtensions.AddContainer*> API:
123+
To add an Azure Cosmos DB container resource, call the <xref:Aspire.Hosting.AzureCosmosExtensions.AddContainer*> method on an `IResourceBuilder<AzureCosmosDBDatabaseResource>` instance:
124124

125125
```csharp
126126
var builder = DistributedApplication.CreateBuilder(args);

0 commit comments

Comments
 (0)