Skip to content
Back to skills

Cosmos Provider

ASecurity

Implementation details for the EF Core Azure Cosmos DB provider. Use when changing Cosmos-specific code.

  • 14,828 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added June 5, 2026
databasesazureperformance

Security analysis

A100/100

Scanned June 5, 2026

npx -y skills add dotnet/efcore --skill cosmos-provider --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cosmos Provider?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Cosmos Provider
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/dotnet-cosmos-provider/badge)](https://www.skillsdirectory.com/skills/dotnet-cosmos-provider)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: cosmos-provider
description: 'Implementation details for the EF Core Azure Cosmos DB provider. Use when changing Cosmos-specific code.'
user-invocable: false
---

# Cosmos DB Provider

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

## 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

## Azure Cosmos DB Emulator for Tests

- `TestEnvironment.InitializeAsync()` auto-starts a `Testcontainers.CosmosDb` container when `Test__Cosmos__DefaultConnection` is not set. Set the env var to use an existing emulator instead.
- Skip tests requiring unsupported features on the Linux emulator with ` [ConditionalFact(typeof(CosmosTestEnvironment), nameof(CosmosTestEnvironment.IsNotLinuxEmulator))]`.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in databases →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.