src/Shared/EntityFramework/Infrastructure/DbEntityEntry`.cs
/// <summary>
/// Gets an object that represents the reference (i.e. non-collection) navigation property from this
/// entity to another entity.
/// </summary>
/// <typeparam name="TProperty"> The type of the property. </typeparam>
/// <param name="navigationProperty"> The name of the navigation property. </param>
/// <returns> An object representing the navigation property. </returns>
Gets an object that represents the reference  navigation property from this
entity to another entity.
Gets an object that represents the reference navigation property from this entity to another entity .
public DbReferenceEntry<TEntity, TProperty> Reference<TProperty>(string navigationProperty)
            where TProperty : class
        {
            Check.NotEmpty(navigationProperty, "navigationProperty");
            return
                DbReferenceEntry<TEntity, TProperty>.Create(
                    _internalEntityEntry.Reference(navigationProperty, typeof(TProperty)));
        }
public DbReferenceEntry < TEntity , TProperty > Reference < TProperty > ( string navigationProperty ) where TProperty : class { Check . NotEmpty ( navigationProperty , " " ) ; return DbReferenceEntry < TEntity , TProperty > . Create ( _internalEntityEntry . Reference ( navigationProperty , typeof ( TProperty ) ) ) ; }
Gets an object that represents the reference (i.e.
Gets an object that represents the reference ( i . e .
An object representing the navigation property.
An object representing the navigation property .
navigationProperty
string
The name of the navigation property.
The name of the navigation property .
typeparam
The type of the property.
The type of the property .