Delen via


DbSet<TEntity>.IInfrastructure<IServiceProvider>.Instance Property

Definition

Gets the scoped IServiceProvider being used to resolve services.

IServiceProvider Microsoft.EntityFrameworkCore.Infrastructure.IInfrastructure<System.IServiceProvider>.Instance { get; }
member this.Microsoft.EntityFrameworkCore.Infrastructure.IInfrastructure<System.IServiceProvider>.Instance : IServiceProvider
 ReadOnly Property Instance As IServiceProvider Implements IInfrastructure(Of IServiceProvider).Instance

Property Value

Implements

Remarks

This property is intended for use by extension methods that need to make use of services not directly exposed in the public API surface.

See Accessing DbContext services for more information and examples.

Applies to