共用方式為


CosmosEventId.SyncNotSupported Field

Definition

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.

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

Field Value

Remarks

This event is in the DbLoggerCategory.Database category.

Applies to