POC for writing instance annotations and odata.count for expanded resource sets#2194
POC for writing instance annotations and odata.count for expanded resource sets#2194KenitoInc wants to merge 5 commits intoOData:release-7.xfrom
Conversation
| this.WriteAnnotationAndCountAtStartExpandedFeedShouldPass(ODataFormat.Json, expectedPayload, EntitySet); | ||
| } | ||
|
|
||
| private void WriteAnnotationAndCountAtStartExpandedFeedShouldPass(ODataFormat format, string expectedPayload, IEdmNavigationSource navigationSource) |
|
|
||
| /// <summary>Gets or sets the number of items in the resource set.</summary> | ||
| /// <returns>The number of items in the resource set.</returns> | ||
| public long? Count |
There was a problem hiding this comment.
what about if the nested resource info is single?
There was a problem hiding this comment.
I have added a validation!
|
This PR has Quantification details
Why proper sizing of changes matters
Optimal pull request sizes drive a better predictable PR flow as they strike a
What can I do to optimize my changes
How to interpret the change counts in git diff output
Was this comment helpful? 👍 :ok_hand: :thumbsdown: (Email) |
| } | ||
|
|
||
| /// <summary>Gets or sets the number of items in the resource set.</summary> | ||
| /// <returns>The number of items in the resource set.</returns> |
There was a problem hiding this comment.
Noet: you don't really need the section for a property -- you cover what it returns in the summary.
|
@corranrogue9 -- This is a good item to put on the 8.0 list. We don't have a good way to fix this in 7.x without being a breaking change. @KenitoInc has more context, and a design doc that describes the different options. |
Issues
POC for writing instance annotations for expanded resoource sets
Description
In this POC, we are adding 2 properties to the
ODataNestedResourceInfopublic long? Countpublic ICollection<ODataInstanceAnnotation> InstanceAnnotationsSo we can write the instance annotations and odata.count for an expanded resource set as follows:
Checklist (Uncheck if it is not completed)
Additional work necessary
If documentation update is needed, please add "Docs Needed" label to the issue and provide details about the required document change in the issue.