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"> An expression representing 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 .
[SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")]
        public DbReferenceEntry<TEntity, TProperty> Reference<TProperty>(
            Expression<Func<TEntity, TProperty>> navigationProperty)
            where TProperty : class
        {
            Check.NotNull(navigationProperty, "navigationProperty");
            return
                DbReferenceEntry<TEntity, TProperty>.Create(
                    _internalEntityEntry.Reference(
                        DbHelpers.ParsePropertySelector(navigationProperty, "Reference", "navigationProperty"),
                        typeof(TProperty)));
        }
[ SuppressMessage ( " " , " " ) ] public DbReferenceEntry < TEntity , TProperty > Reference < TProperty > ( Expression < Func < TEntity , TProperty > > navigationProperty ) where TProperty : class { Check . NotNull ( navigationProperty , " " ) ; return DbReferenceEntry < TEntity , TProperty > . Create ( _internalEntityEntry . Reference ( DbHelpers . ParsePropertySelector ( 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
Expression<Func<TEntity, TProperty>>
An expression representing the navigation property.
An expression representing the navigation property .
typeparam
The type of the property.
The type of the property .