src/Shared/EntityFramework/Core/Metadata/Edm/MemberCollection.cs
// <summary>
// Determines if this collection contains an item of the given identity
// </summary>
// <param name="identity"> The identity of the item to check for </param>
// <returns> True if the collection contains the item with the given identity </returns>
Determines if this collection contains an item of the given identity
Determines if this collection contains an item of the given identity
public override bool ContainsIdentity(string identity)
        {
            if (base.ContainsIdentity(identity))
            {
                return true;
            }
            var baseType = _declaringType.BaseType;
            if (baseType != null
                && ((StructuralType)baseType).Members.Contains(identity))
            {
                return true;
            }
            return false;
        }
public override bool ContainsIdentity ( string identity ) { if ( base . ContainsIdentity ( identity ) ) { return true ; } var baseType = _declaringType . BaseType ; if ( baseType != null && ( ( StructuralType ) baseType ) . Members . Contains ( identity ) ) { return true ; } return false ; }
Determines if this collection contains an item of the given identity
Determines if this collection contains an item of the given identity
// The item is not in this collection, check the base type member collection
True if the collection contains the item with the given identity
True if the collection contains the item with the given identity
identity
string
The identity of the item to check for
The identity of the item to check for