AccessorExtensions.GetInfrastructure<T> Method

Definition

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.

C#
public static T GetInfrastructure<T> (this Microsoft.EntityFrameworkCore.Infrastructure.IInfrastructure<T> accessor);
C#
[System.Diagnostics.DebuggerStepThrough]
public static T GetInfrastructure<T> (this Microsoft.EntityFrameworkCore.Infrastructure.IInfrastructure<T> accessor);

Type Parameters

T

The type of the property being hidden by IInfrastructure<T>.

Parameters

accessor
IInfrastructure<T>

The object that exposes the property.

Returns

T

The object assigned to the property.

Attributes

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.

Applies to

Product Versions
Entity Framework Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0