Delen via


DbContext.ContextId Property

Definition

A unique identifier for the context instance and pool lease, if any.

public virtual Microsoft.EntityFrameworkCore.DbContextId ContextId { get; }
member this.ContextId : Microsoft.EntityFrameworkCore.DbContextId
Public Overridable ReadOnly Property ContextId As DbContextId

Property Value

Remarks

This identifier is primarily intended as a correlation ID for logging and debugging such that it is easy to identify that multiple events are using the same or different context instances.

Applies to