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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework