You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When defining a function or an action, the optional EntitySetPath specifies the collection where any returned entities live. If the return type is a collection of entities, the EntitySetPath (if specified) must reference a collection -- if the return type is a single entity, then the path will typically be a collection but may be a singleton or single-valued containment nav prop. Currently, validating a model throws an invalid error if the return type is a single entity and the entitysetpath indicates a collection.
Assemblies affected
OData .Net lib 7.5.x
Reproduce steps
The simplest set of steps to reproduce the issue. If possible, reference a commit that demonstrates the issue.
Expected result
Validation would succeed with no errors.
Actual result
"Error: The operation 'A1' entity set path was determined to be a collection but the return type is not a collection"
The text was updated successfully, but these errors were encountered:
mikepizzo
added a commit
to mikepizzo/odata.net
that referenced
this issue
Apr 29, 2019
When defining a function or an action, the optional EntitySetPath specifies the collection where any returned entities live. If the return type is a collection of entities, the EntitySetPath (if specified) must reference a collection -- if the return type is a single entity, then the path will typically be a collection but may be a singleton or single-valued containment nav prop. Currently, validating a model throws an invalid error if the return type is a single entity and the entitysetpath indicates a collection.
Assemblies affected
OData .Net lib 7.5.x
Reproduce steps
The simplest set of steps to reproduce the issue. If possible, reference a commit that demonstrates the issue.
Expected result
Validation would succeed with no errors.
Actual result
"Error: The operation 'A1' entity set path was determined to be a collection but the return type is not a collection"
The text was updated successfully, but these errors were encountered: