CosmosEventId.PrimaryKeyValueNotSet Field
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.