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

Support OData key alias #1817

Open
xuzhg opened this issue Jun 23, 2020 · 0 comments · May be fixed by #3145
Open

Support OData key alias #1817

xuzhg opened this issue Jun 23, 2020 · 0 comments · May be fixed by #3145
Assignees

Comments

@xuzhg
Copy link
Member

xuzhg commented Jun 23, 2020

OData spec says:

$Key

The value of $Key is an array with one item per key property.

Key properties without a key alias are represented as strings containing the property name.

Key properties with a key alias are represented as objects with one member whose name is the key alias and whose value is a string containing the path to the property.

The second one is not supported in ODL.

Here's an example for Key alias:

"Category": {

  "$Kind": "EntityType",

  "$Key": [

    {

      "EntityInfoID": "Info/ID"

    }

  ],

  "Info": {

    "$Type": "self.EntityInfo"

  },

  "Name": {

    "$Nullable": true

  }

},

"EntityInfo": {

  "$Kind": "ComplexType",

  "ID": {

    "$Type": "Edm.Int32"

  },

  "Created": {

    "$Type": "Edm.DateTimeOffset",

    "$Precision": 0

  }

}
@gathogojr gathogojr added the P3 label Jun 30, 2020
xuzhg added a commit that referenced this issue Feb 3, 2023
xuzhg added a commit that referenced this issue Dec 6, 2024
Introduce the IEdmPropertyRef interface
Use default interface method for IEdmEntityType avoid breaking changes
This change focus on Edm lib, if it's ready and will move to OData.Core.
@xuzhg xuzhg linked a pull request Dec 6, 2024 that will close this issue
xuzhg added a commit that referenced this issue Dec 6, 2024
Introduce the IEdmPropertyRef interface
Use default interface method for IEdmEntityType avoid breaking changes
This change focus on Edm lib, if it's ready and will move to OData.Core.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants