src/Shared/EntityFramework/Core/SchemaObjectModel/SchemaEnumType.cs
// <summary>
// Generic handler for the EnumType element child elements.
// </summary>
// <param name="reader"> Xml reader positioned on a child element. </param>
// <returns>
// <c>true</c> if the child element is a known element and was handled. Otherwise <c>false</c>
// </returns>
Generic handler for the EnumType element child elements.
Generic handler for the EnumType element child elements .
protected override bool HandleElement(XmlReader reader)
        {
            DebugCheck.NotNull(reader);
            if (!base.HandleElement(reader))
            {
                if (CanHandleElement(reader, XmlConstants.Member))
                {
                    HandleMemberElement(reader);
                }
                else if (CanHandleElement(reader, XmlConstants.ValueAnnotation))
                {
                    SkipElement(reader);
                    return true;
                }
                else if (CanHandleElement(reader, XmlConstants.TypeAnnotation))
                {
                    SkipElement(reader);
                    return true;
                }
                else
                {
                    return false;
                }
            }
            return true;
        }
protected override bool HandleElement ( XmlReader reader ) { DebugCheck . NotNull ( reader ) ; if ( ! base . HandleElement ( reader ) ) { if ( CanHandleElement ( reader , XmlConstants . Member ) ) { HandleMemberElement ( reader ) ; } else if ( CanHandleElement ( reader , XmlConstants . ValueAnnotation ) ) { SkipElement ( reader ) ; return true ; } else if ( CanHandleElement ( reader , XmlConstants . TypeAnnotation ) ) { SkipElement ( reader ) ; return true ; } else { return false ; } } return true ; }
Generic handler for the EnumType element child elements.
Generic handler for the EnumType element child elements .
// EF does not support this EDM 3.0 element, so ignore it. // EF does not support this EDM 3.0 element, so ignore it.
None
reader
XmlReader
Xml reader positioned on a child element.
Xml reader positioned on a child element .