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

Supporting Primitive Type Casts #801

Closed
ysanghi opened this Issue Apr 28, 2017 · 1 comment

Comments

Projects
None yet
3 participants
@ysanghi
Contributor

ysanghi commented Apr 28, 2017

Short summary (3-5 sentences) describing the issue.
It will be nice to have the ability to do cast properties as primitive types in $select, $filter, $order by. Today you can only use non primitive types in the type segment.

Assemblies affected

OData.Net 7.x

Reproduce steps

CurrentCollections('id')/Items?$select=Prop1/Edm.String&$filter=Prop2/Edm.String%20eq%20'sdb'

Expected result

Found a path with multiple navigation properties or a bad complex property path in a select clause. Please reword your query such that each level of select or expand only contains either TypeSegments or Properties.

Actual result

It work as normal type segment

@mikepizzo

This comment has been minimized.

Member

mikepizzo commented Sep 6, 2017

Addressed in PR #848.

@mikepizzo mikepizzo closed this Sep 6, 2017

@manivannanse manivannanse added docs-needed and removed docs-needed labels Oct 4, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment