다음을 통해 공유


CosmosEventId.PrimaryKeyValueNotSet Field

Definition

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.

public static readonly Microsoft.Extensions.Logging.EventId PrimaryKeyValueNotSet;
 staticval mutable PrimaryKeyValueNotSet : Microsoft.Extensions.Logging.EventId
Public Shared ReadOnly PrimaryKeyValueNotSet As EventId 

Field Value

Remarks

This event is in the DbLoggerCategory.Update category.

This event uses the PropertyEventData payload when used with a DiagnosticSource.

Applies to