語言

DbEntityEntry.Reference(String) 方法

定義

取得一個物件,代表從此實體到另一個實體的參考(即非集合)導航屬性。

public System.Data.Entity.Infrastructure.DbReferenceEntry Reference(string navigationProperty);
member this.Reference : string -> System.Data.Entity.Infrastructure.DbReferenceEntry
Public Function Reference (navigationProperty As String) As DbReferenceEntry

參數

navigationProperty
String

導覽屬性的名稱。

傳回

一個代表導航性質的物件。

適用於