Table of Contents

Class ServiceProviderAccessor

Namespace
Microsoft.EntityFrameworkCore.Infrastructure
Assembly
Microsoft.EntityFrameworkCore.dll

This type is added as a singleton service to the application service provider to provide access to the root service provider.

public class ServiceProviderAccessor
Inheritance
ServiceProviderAccessor
Inherited Members

Constructors

ServiceProviderAccessor(IServiceProvider)

Initializes a new instance of the ServiceProviderAccessor class.

public ServiceProviderAccessor(IServiceProvider rootServiceProvider)

Parameters

rootServiceProvider IServiceProvider

The injected service provider.

Properties

RootServiceProvider

The injected service provider.

public virtual IServiceProvider RootServiceProvider { get; }

Property Value

IServiceProvider