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

適用於