src/Shared/EntityFramework/Internal/EntityEntries/InternalNestedPropertyEntry.cs
// <summary>
// Creates a delegate that will get the value of this property.
// </summary>
// <returns> The delegate. </returns>
Creates a delegate that will get the value of this property.
Creates a delegate that will get the value of this property .
protected override Func<object, object> CreateGetter()
        {
            var parentGetter = _parentPropertyEntry.Getter;
            if (parentGetter == null)
            {
                return null;
            }
            Func<object, object> getter;
            if (!DbHelpers.GetPropertyGetters(EntryMetadata.DeclaringType).TryGetValue(Name, out getter))
            {
                return null;
            }
            return o =>
                {
                    var parent = parentGetter(o);
                    return parent == null ? null : getter(parent);
                };
        }
protected override Func < object , object > CreateGetter ( ) { var parentGetter = _parentPropertyEntry . Getter ; if ( parentGetter == null ) { return null ; } Func < object , object > getter ; if ( ! DbHelpers . GetPropertyGetters ( EntryMetadata . DeclaringType ) . TryGetValue ( Name , out getter ) ) { return null ; } return o => { var parent = parentGetter ( o ) ; return parent == null ? null : getter ( parent ) ; } ; }
Creates a delegate that will get the value of this property.
Creates a delegate that will get the value of this property .
None