Function.Returns<> non primitive type error
Open
@xuzhg is already working on this.
Since Mar 15, 2022.
followup
- Dominant language
- C#
- Stars
- 505
- Forks
- 186
- PR merge metrics
- No merged PRs in 30d
Description
Microsoft.AspNetCore.OData v8.0.8
In my EDM model I have a function declared in this way:
function = builder.Function("MyFunction");
function.Parameter<int>("customId");
function.Returns<MyTypedClass>();
If I call the function, the server response will be:
{
If I change the Returns to ReturnsCollection:
function = builder.Function("MyFunction");
function.Parameter<int>("customId");
function.ReturnsCollection<MyTypedClass>();
works correctly, but I need to return an array of 1 element. It's not necessary.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.