语言

AccessorExtensions.GetInfrastructure<T> 方法

定义

从正在使用的隐藏 IInfrastructure<T>属性中获取值。

此方法通常由数据库提供程序(和其他扩展)使用。 它通常不用于应用程序代码。

public static T GetInfrastructure<T>(this Microsoft.EntityFrameworkCore.Infrastructure.IInfrastructure<T> accessor);
[System.Diagnostics.DebuggerStepThrough]
public static T GetInfrastructure<T>(this Microsoft.EntityFrameworkCore.Infrastructure.IInfrastructure<T> accessor);
static member GetInfrastructure : Microsoft.EntityFrameworkCore.Infrastructure.IInfrastructure<'T> -> 'T
[<System.Diagnostics.DebuggerStepThrough>]
static member GetInfrastructure : Microsoft.EntityFrameworkCore.Infrastructure.IInfrastructure<'T> -> 'T
<Extension()>
Public Function GetInfrastructure(Of T) (accessor As IInfrastructure(Of T)) As T

类型参数

T

被隐藏 IInfrastructure<T>的属性的类型。

参数

accessor
IInfrastructure<T>

公开属性的对象。

返回

T

分配给属性的对象。

特性

注解

IInfrastructure<T> 用于隐藏不打算在应用程序代码中使用的属性,但可用于数据库提供程序等编写的扩展方法。

适用于