DbEntityEntry<TEntity>.Reference Method  
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Reference(String) | 
						 Gets an object that represents the reference (i.e. non-collection) navigation property from this entity to another entity.  | 
        	
| Reference<TProperty>(Expression<Func<TEntity,TProperty>>) | 
						 Gets an object that represents the reference (i.e. non-collection) navigation property from this entity to another entity.  | 
        	
| Reference<TProperty>(String) | 
						 Gets an object that represents the reference (i.e. non-collection) navigation property from this entity to another entity.  | 
        	
Reference(String)
Gets an object that represents the reference (i.e. non-collection) navigation property from this entity to another entity.
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
	Parameters
- navigationProperty
 - String
 
The name of the navigation property.
Returns
An object representing the navigation property.
Applies to
Reference<TProperty>(Expression<Func<TEntity,TProperty>>)
Gets an object that represents the reference (i.e. non-collection) navigation property from this entity to another entity.
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)
    Type Parameters
- TProperty
 
The type of the property.
Parameters
- navigationProperty
 - Expression<Func<TEntity,TProperty>>
 
An expression representing the navigation property.
Returns
An object representing the navigation property.
- Attributes
 
Applies to
Reference<TProperty>(String)
Gets an object that represents the reference (i.e. non-collection) navigation property from this entity to another entity.
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)
    Type Parameters
- TProperty
 
The type of the property.
Parameters
- navigationProperty
 - String
 
The name of the navigation property.
Returns
An object representing the navigation property.