DbContextId.Lease Property

Definition

A number that is incremented each time this particular DbContext instance is leased from the context pool.

public int Lease { get; }
member this.Lease : int
Public ReadOnly Property Lease As Integer

Property Value

Remarks

Will be zero if context pooling is not being used.

Applies to