src/Shared/EntityFramework/Internal/EntityEntries/InternalEntityEntry.cs
// <summary>
// Gets an internal object representing a collection navigation property.
// This method is virtual to allow mocking.
// </summary>
// <param name="navigationProperty"> The navigation property. </param>
// <param name="requestedType"> The type of entity requested, which may be 'object' or null f any type can be accepted. </param>
// <returns> The entry. </returns>
Gets an internal object representing a collection navigation property.
This method is virtual to allow mocking.
Gets an internal object representing a collection navigation property . This method is virtual to allow mocking .
public virtual InternalCollectionEntry Collection(string navigationProperty, Type requestedType = null)
        {
            DebugCheck.NotEmpty(navigationProperty);
            return
                (InternalCollectionEntry)
                ValidateAndGetNavigationMetadata(
                    navigationProperty, requestedType ?? typeof(object), requireCollection: true).
                    CreateMemberEntry(this, null);
        }
public virtual InternalCollectionEntry Collection ( string navigationProperty , Type requestedType = null ) { DebugCheck . NotEmpty ( navigationProperty ) ; return ( InternalCollectionEntry ) ValidateAndGetNavigationMetadata ( navigationProperty , requestedType ?? typeof ( object ) , requireCollection : true ) . CreateMemberEntry ( this , null ) ; }
Gets an internal object representing a collection navigation property.
Gets an internal object representing a collection navigation property .
None
navigationProperty
string
The navigation property.
The navigation property .
requestedType
Type
The type of entity requested, which may be 'object' or null f any type can be accepted.
The type of entity requested which may be ' object ' or null f any type can be accepted .