Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Declaring NavigationPropertyBinding EntitySet in JSON schema does not produce desired $metadata.xml output #2

Open
marcinbelczewski opened this issue Oct 28, 2016 · 0 comments

Comments

@marcinbelczewski
Copy link

Having declared:

"entityType" : [
{
    "name" : "ParentType",
    "navigationProperty": {
        "name": "Child",
        "type": "ChildType"
    }...
}

and then:

"entitySet": [
    {
        "navigationPropertyBinding": [
            {
                "path": "Child",
                "target": "Children"
            }
        ],
        "name": "Parents",
        "entityType": "ParentType"
    }....

the $metadata XML that gets created contains:

<NavigationProperty Name="Child" Type="ChildType"/> 

in EntityType section however, the following "NavigationPropertyBinding" information is missing but seems to be required in such situation according to OData specs.

<EntitySet Name="PArents" EntityType="ParentType">
       <NavigationPropertyBinding Path="Child" Target="Children">
        </NavigationPropertyBinding>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant