Пример #1
0
            // <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>
            protected override bool IsStructurallyEquivalent(InitializerMetadata other)
            {
                // caller must ensure the type matches
                var otherInitializer = (EntityCollectionInitializerMetadata)other;

                return(_navigationProperty.Equals(otherInitializer._navigationProperty));
            }