AccessorExtensions AccessorExtensions Class

Extension methods for IInfrastructure<T>.

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

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.

Syntax

Declaration

public static class AccessorExtensionsPublic Module AccessorExtensions

Inheritance Hierarchy

  • System.Object
    System.Object
  • AccessorExtensions
    AccessorExtensions

Inherited Members

ToString(),
ToString(),
Equals(Object),
Equals(Object),
Equals(Object, Object),
Equals(Object, Object),
ReferenceEquals(Object, Object),
ReferenceEquals(Object, Object),
GetHashCode(),
GetHashCode(),
GetType(),
GetType(),
MemberwiseClone()
MemberwiseClone()

Methods summary

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.

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.

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

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

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>)
    GetInfrastructure(Of T)(IInfrastructure(Of 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.

    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.

    public static T GetInfrastructure<T>(this IInfrastructure<T> accessor)<ExtensionAttribute>
    Public Shared Function GetInfrastructure(Of T)(accessor As IInfrastructure(Of T)) As T

    Parameters

    Returns

    • T
      T

      The object assigned to the property.

  • GetService<TService>(IInfrastructure<IServiceProvider>)
    GetService(Of TService)(IInfrastructure(Of IServiceProvider))

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

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

    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.

    public static TService GetService<TService>(this IInfrastructure<IServiceProvider> accessor)<ExtensionAttribute>
    Public Shared Function GetService(Of TService)(accessor As IInfrastructure(Of IServiceProvider)) As TService

    Parameters

    Returns

    • TService
      TService

      The requested service.

Details

Assembly

Microsoft.EntityFrameworkCore.dll