DbContext.ContextId Property
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 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
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.
Entity Framework