語言

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> 用於隱藏那些不打算用於應用程式程式碼,但可用於資料庫提供者撰寫的擴充方法等的屬性。

適用於