-
Notifications
You must be signed in to change notification settings - Fork 143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add CosmosDB parent-child relationship bits. #2912
base: release-9.2
Are you sure you want to change the base?
Conversation
Co-authored-by: Safia Abdalla <[email protected]>
Co-authored-by: Safia Abdalla <[email protected]>
app.Run(); | ||
``` | ||
|
||
If you have multiple containers under the same database connection, you can use the `AddAzureCosmosDatabase` API to attach multiple containers under the same database connection. All child containers share the same <xref:Azure.Cosmos.CosmosClient> and database connection. This strategy is useful when associating the same <xref:Azure.Cosmos.CosmosClientOptions> with multiple containers. Consider the following alternative code, to register multiple containers under the same database connection: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we move this section earlier to where we talk about AddCosmosDatabase
. Right now, we allude to the multiple container thing in the database section but don't get back to talking about it under here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Those are separate sections, hosting vs client integrations, no? I could link to one from the other, but if they're together, then we're merging the two concepts/integrations together.
Co-authored-by: Safia Abdalla <[email protected]>
Summary
Adds details for expressing and deep-linking into parent-child relationships between hosting and client integrations.
Fixes #2907
Internal previews