src/EntityFramework/Core/Mapping/StorageComplexTypeMapping.cs
/// <summary>
///     The method finds the type in which the member with the given name exists
///     form the list of IsOfTypes and Type.
/// </summary>
/// <param name="memberName"> </param>
The method finds the type in which the member with the given name exists
form the list of IsOfTypes and Type.
The method finds the type in which the member with the given name exists form the list of IsOfTypes and Type .
internal ComplexType GetOwnerType(string memberName)
        {
            foreach (var type in m_types.Values)
            {
                EdmMember tempMember;
                if ((type.Members.TryGetValue(memberName, false, out tempMember))
                    && (tempMember is EdmProperty))
                {
                    return type;
                }
            }
            foreach (var type in m_isOfTypes.Values)
            {
                EdmMember tempMember;
                if ((type.Members.TryGetValue(memberName, false, out tempMember))
                    && (tempMember is EdmProperty))
                {
                    return type;
                }
            }
            return null;
        }
internal ComplexType GetOwnerType ( string memberName ) { foreach ( var type in m_types . Values ) { EdmMember tempMember ; if ( ( type . Members . TryGetValue ( memberName , false , out tempMember ) ) && ( tempMember is EdmProperty ) ) { return type ; } } foreach ( var type in m_isOfTypes . Values ) { EdmMember tempMember ; if ( ( type . Members . TryGetValue ( memberName , false , out tempMember ) ) && ( tempMember is EdmProperty ) ) { return type ; } } return null ; }
The method finds the type in which the member with the given name exists
form the list of IsOfTypes and Type.
The method finds the type in which the member with the given name exists form the list of IsOfTypes and Type .
memberName
string
None