DbEntityEntry<TEntity>.Reference 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
Reference(String) |
取得物件,表示從這個實體到另一個實體的參考 (非集合) 導覽屬性。 |
Reference<TProperty>(Expression<Func<TEntity,TProperty>>) |
取得物件,表示從這個實體到另一個實體的參考 (非集合) 導覽屬性。 |
Reference<TProperty>(String) |
取得物件,表示從這個實體到另一個實體的參考 (非集合) 導覽屬性。 |
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
導覽屬性的名稱。
傳回
表示導覽屬性的物件。
適用於
Reference<TProperty>(Expression<Func<TEntity,TProperty>>)
取得物件,表示從這個實體到另一個實體的參考 (非集合) 導覽屬性。
public System.Data.Entity.Infrastructure.DbReferenceEntry<TEntity,TProperty> Reference<TProperty> (System.Linq.Expressions.Expression<Func<TEntity,TProperty>> navigationProperty) where TProperty : class;
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")]
public System.Data.Entity.Infrastructure.DbReferenceEntry<TEntity,TProperty> Reference<TProperty> (System.Linq.Expressions.Expression<Func<TEntity,TProperty>> navigationProperty) where TProperty : class;
member this.Reference : System.Linq.Expressions.Expression<Func<'Entity, 'Property>> -> System.Data.Entity.Infrastructure.DbReferenceEntry<'Entity, 'Property (requires 'Entity : null and 'Property : null)> (requires 'Property : null)
Public Function Reference(Of TProperty As Class) (navigationProperty As Expression(Of Func(Of TEntity, TProperty))) As DbReferenceEntry(Of TEntity, TProperty)
類型參數
- TProperty
屬性的類型。
參數
- navigationProperty
- Expression<Func<TEntity,TProperty>>
表示導覽屬性的運算式。
傳回
表示導覽屬性的物件。
- 屬性
適用於
Reference<TProperty>(String)
取得物件,表示從這個實體到另一個實體的參考 (非集合) 導覽屬性。
public System.Data.Entity.Infrastructure.DbReferenceEntry<TEntity,TProperty> Reference<TProperty> (string navigationProperty) where TProperty : class;
member this.Reference : string -> System.Data.Entity.Infrastructure.DbReferenceEntry<'Entity, 'Property (requires 'Entity : null and 'Property : null)> (requires 'Property : null)
Public Function Reference(Of TProperty As Class) (navigationProperty As String) As DbReferenceEntry(Of TEntity, TProperty)
類型參數
- TProperty
屬性的類型。
參數
- navigationProperty
- String
導覽屬性的名稱。
傳回
表示導覽屬性的物件。