Skip to content

Conversation

@caitlinrussell
Copy link

Handles the case where a navigation property references an implicit EntitySet of a singleton.

Caitlin Bales (MSFT) added 8 commits February 7, 2018 11:17
Handles the case where a singleton has a navigation property that defines an implicit EntitySet using "ContainsTarget="true"". This allows us to generate code that correctly lets workloads navigate from a child object to a singleton's implicit EntitySet by $ref
This is for the C# generated templates.
Currently in the templates, we generate @odata.id based off an EntitySet name, which is an absolute URL. In the case of a singleton, we want to navigate to that singleton's relevant EntitySet
Also added a reference to the VIPR reader
Tests for GetServiceCollectionNavigationPropertyForPropertyType method
Copy link
Collaborator

@MIchaelMainer MIchaelMainer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Thank you for doing the multi platform update. Regarding Java, will the Android update in to Java?

@caitlinrussell
Copy link
Author

It will not. I made a separate branch "implicit-containment-java" that is a branch off of "Java". Once I merge the Java branch we won't have to do this anymore. Sorry for the confusion.

@MIchaelMainer
Copy link
Collaborator

You rock!!!

@caitlinrussell caitlinrussell merged commit 7afc44a into dev Feb 17, 2018
@caitlinrussell caitlinrussell deleted the implicit-containment branch February 17, 2018 01:16
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

Successfully merging this pull request may close these issues.

3 participants