다음을 통해 공유


CosmosEventId Class

Definition

Event IDs for Cosmos events that correspond to messages logged to an ILogger and events sent to a DiagnosticSource.

public static class CosmosEventId
type CosmosEventId = class
Public Class CosmosEventId
Inheritance
CosmosEventId

Remarks

These IDs are also used with WarningsConfigurationBuilder to configure the behavior of warnings.

See Logging, events, and diagnostics, and Accessing Azure Cosmos DB with EF Core for more information and examples.

Fields

ExecutedCreateItem

CreateItem was executed.

ExecutedDeleteItem

DeleteItem was executed.

ExecutedReadItem

ReadItem was executed.

ExecutedReadNext

ReadNext was executed.

ExecutedReplaceItem

ReplaceItem was executed.

ExecutingReadItem

ReadItem is going to be executed.

ExecutingSqlQuery

A SQL query is going to be executed.

NoPartitionKeyDefined

No partition key has been configured for an entity type. It is highly recommended that an appropriate partition key be defined. See https://aka.ms/efdocs-cosmos-partition-keys for more information.

PrimaryKeyValueNotSet

A property is not configured to generate values and has the CLR default or sentinel value while saving a new entity to the database. The Azure Cosmos DB database provider for EF Core does not generate key values by default. This means key values must be explicitly set before saving new entities. See https://aka.ms/ef-cosmos-keys for more information.

SyncNotSupported

Azure Cosmos DB does not support synchronous I/O. Make sure to use and correctly await only async methods when using Entity Framework Core to access Azure Cosmos DB. See https://aka.ms/ef-cosmos-nosync for more information.

Applies to