DbContext.IInfrastructure<IServiceProvider>.Instance 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.
Gets the scoped IServiceProvider being used to resolve services.
This property is intended for use by extension methods that need to make use of services not directly exposed in the public API surface.
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
See Accessing DbContext services for more information and examples.
Applies to
Entity Framework
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for