Skip to main content

cosmos-provider

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

Quellinformationen

Repository
dotnet/efcore
Letzte Quellaktivität
24. Mai 2026 um 16:45
Erkannte Sprache von SKILL.md
Englisch
Sterne
14.798
Forks
3.437

Installationsoptionen

Standardmäßig ist der Prompt ausgewählt, der zuerst die Quelle prüft. Sie können zu einem direkten Befehl wechseln oder eine lokale Kopie herunterladen.

Quelldateien prüfen

Lesen Sie SKILL.md und alle von SkillsMP angezeigten Begleitdateien, bevor Sie sich für eine Installation entscheiden.

SKILL.md wird angezeigt

SKILL.md
Quellanweisungen · Schreibgeschützte Vorschau
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))]`.
Auf GitHub ansehen