DbEntityEntry<TEntity>.Reference 方法

定义

重载

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

导航属性的名称。

返回

表示导航属性的对象。

适用于