DbContextId(Guid, Int32) Constructor

Definition

Creates a new DbContextId with the given InstanceId and lease number.

public DbContextId (Guid id, int lease);
new Microsoft.EntityFrameworkCore.DbContextId : Guid * int -> Microsoft.EntityFrameworkCore.DbContextId
Public Sub New (id As Guid, lease As Integer)

Parameters

id
Guid

A unique identifier for the DbContext being used.

lease
Int32

A number indicating whether this is the first, second, third, etc. lease of this instance.

Applies to