Back to Efcore

Cosmos DB Provider

.agents/skills/cosmos-provider/SKILL.md

11.0.100529 B
Original Source

Cosmos DB Provider

Non-relational provider with its own parallel query pipeline. Uses JSON for document materialization.

When to Use

  • Working on Cosmos SQL generation
  • Working on document storage, partition key configuration, or CosmosClientWrapper

Key Differences from Relational

  • No migrations — use EnsureCreated()
  • Documents as JSON — owned and complex types become embedded objects
  • Partition key configuration required for performance
  • ETag for optimistic concurrency
  • No cross-container joins