src/Shared/EntityFramework/Core/Objects/ELinq/InitializerMetadata.cs
// <summary>
// Make sure the other metadata instance generates the same property
// (otherwise, we get incorrect behavior where multiple nav props return
// the same type)
// </summary>
Make sure the other metadata instance generates the same property
(otherwise, we get incorrect behavior where multiple nav props return
the same type)
Make sure the other metadata instance generates the same property ( otherwise we get incorrect behavior where multiple nav props return the same type )
protected override bool IsStructurallyEquivalent(InitializerMetadata other)
            {
                var otherInitializer = (EntityCollectionInitializerMetadata)other;
                return _navigationProperty.Equals(otherInitializer._navigationProperty);
            }
protected override bool IsStructurallyEquivalent ( InitializerMetadata other ) { var otherInitializer = ( EntityCollectionInitializerMetadata ) other ; return _navigationProperty . Equals ( otherInitializer . _navigationProperty ) ; }
Make sure the other metadata instance generates the same property
(otherwise, we get incorrect behavior where multiple nav props return
the same type)
Make sure the other metadata instance generates the same property ( otherwise we get incorrect behavior where multiple nav props return the same type )
// caller must ensure the type matches
other
InitializerMetadata