Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

DbEntityEntry<TEntity>::Reference Method

 

Gets an object that represents the reference (for example, non-collection) navigation property from this entity to another entity.

Namespace:   System.Data.Entity.Infrastructure
Assembly:  EntityFramework (in EntityFramework.dll)

NameDescription
System_CAPS_pubmethodReference(String^)

Gets an object that represents the reference (i.e. non-collection) navigation property from this entity to another entity.

System_CAPS_pubmethodReference<TProperty>(Expression<Func<TEntity, TProperty>^>^)

Gets an object that represents the reference (i.e. non-collection) navigation property from this entity to another entity.

System_CAPS_pubmethodReference<TProperty>(String^)

Gets an object that represents the reference (i.e. non-collection) navigation property from this entity to another entity.

Return to top

DbEntityEntry<TEntity>::Reference Method (String^)

Gets an object that represents the reference (i.e. non-collection) navigation property from this entity to another entity.

public:
DbReferenceEntry^ Reference(
	String^ navigationProperty
)

Parameters

navigationProperty
Type: System::String^

The name of the navigation property.

Return Value

Type: System.Data.Entity.Infrastructure::DbReferenceEntry^

An object representing the navigation property.

Return to top

DbEntityEntry<TEntity>::Reference<TProperty> Method (Expression<Func<TEntity, TProperty>^>^)

Gets an object that represents the reference (i.e. non-collection) navigation property from this entity to another entity.

public:
generic<typename TProperty>
where TProperty : ref class
[SuppressMessageAttribute("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")]
DbReferenceEntry<TEntity, TProperty>^ Reference(
	Expression<Func<TEntity, TProperty>^>^ navigationProperty
)

Parameters

navigationProperty
Type: System.Linq.Expressions::Expression<Func<TEntity, TProperty>^>^

An expression representing the navigation property.

Return Value

Type: System.Data.Entity.Infrastructure::DbReferenceEntry<TEntity, TProperty>^

An object representing the navigation property.

Type Parameters

TProperty

The type of the property.

Return to top

DbEntityEntry<TEntity>::Reference<TProperty> Method (String^)

Gets an object that represents the reference (i.e. non-collection) navigation property from this entity to another entity.

public:
generic<typename TProperty>
where TProperty : ref class
DbReferenceEntry<TEntity, TProperty>^ Reference(
	String^ navigationProperty
)

Parameters

navigationProperty
Type: System::String^

The name of the navigation property.

Return Value

Type: System.Data.Entity.Infrastructure::DbReferenceEntry<TEntity, TProperty>^

An object representing the navigation property.

Type Parameters

TProperty

The type of the property.

Return to top
Show: