Share via


DbContext.IDbContextPoolable.SetLease(DbContextLease) Method

Definition

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

[Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal]
void IDbContextPoolable.SetLease (Microsoft.EntityFrameworkCore.Internal.DbContextLease lease);
[<Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal>]
abstract member Microsoft.EntityFrameworkCore.Internal.IDbContextPoolable.SetLease : Microsoft.EntityFrameworkCore.Internal.DbContextLease -> unit
override this.Microsoft.EntityFrameworkCore.Internal.IDbContextPoolable.SetLease : Microsoft.EntityFrameworkCore.Internal.DbContextLease -> unit
Sub SetLease (lease As DbContextLease) Implements IDbContextPoolable.SetLease

Parameters

lease
Microsoft.EntityFrameworkCore.Internal.DbContextLease

Implements

Microsoft.EntityFrameworkCore.Internal.IDbContextPoolable.SetLease(Microsoft.EntityFrameworkCore.Internal.DbContextLease)
Attributes

Applies to