Share via


AccessorExtensions Class

Definition

Extension methods for IInfrastructure<T>.

These methods are typically used by database providers (and other extensions). They are generally not used in application code.

public static class AccessorExtensions
type AccessorExtensions = class
Public Module AccessorExtensions
Inheritance
AccessorExtensions

Remarks

IInfrastructure<T> is used to hide properties that are not intended to be used in application code but can be used in extension methods written by database providers etc.

Methods

GetInfrastructure<T>(IInfrastructure<T>)

Gets the value from a property that is being hidden using IInfrastructure<T>.

This method is typically used by database providers (and other extensions). It is generally not used in application code.

GetService(IInfrastructure<IServiceProvider>, Type)

Resolves a service from the IServiceProvider exposed from a type that implements IInfrastructure<T>.

GetService<TService>(IInfrastructure<IServiceProvider>)

Resolves a service from the IServiceProvider exposed from a type that implements IInfrastructure<T>.

Applies to