Skip to content
This repository has been archived by the owner on Sep 21, 2024. It is now read-only.

edm_model_reader doesn't support edm:Extends when constructing the EntityContainer? #13

Open
hitwhzhongqiu opened this issue Sep 29, 2015 · 0 comments

Comments

@hitwhzhongqiu
Copy link

The following code snippit is from edm_model_reader::handle_begin_element.As we can see,the construction of m_current_container has nothing to do with extents which is obtained from edm:Extends attribute.

else if (elementName == U("EntityContainer"))
    {
        ::odata::utility::string_t name;
        ::odata::utility::string_t extends;
        bool is_default = true;

        while (move_to_next_attribute())
        {
            if (get_current_element_name() == U("Name"))
            {
                name = get_current_element_text();
            }
            else if (get_current_element_name() == U("Extends"))
            {
                extends = get_current_element_text();
            }
        }

        m_current_container = std::make_shared<edm_entity_container>(name, is_default);
    }
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant