-
Notifications
You must be signed in to change notification settings - Fork 153
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
JsonConverters not working properly on OData response #1186
Comments
I am using AspNetCore.OData 8.2.5 and .net6 Api `[JsonConverter(typeof(ProductDataConverter))]
} public class DataRow my api will be
} private IQueryable ApplyODataQuery(string dataSourceName, ODataQueryOptions options) When i execute this code then i am getting the below exception Any help would be appreciate, i tried many ways but nothing is working out, Once we execute the db query if i see the result it showing as AspNetCore.SelectAllExpand with out converter i am able to get the data as expected but if i register that converter then it's not working |
Can you elaborate a bit more on this? What does your converter to, and why do you need a converter in the first place? |
Assemblies affected
Which assemblies and versions are known to be affected e.g. ASP.NET Core OData 8.x
Describe the bug
A clear and concise description of what the bug is.
Reproduce steps
The simplest set of steps to reproduce the issue. If possible, reference a commit that demonstrates the issue.
Data Model
Please share your Data model, for example, your C# class.
EDM (CSDL) Model
Please share your Edm model, for example, CSDL file.
You can send
$metadata
to get a CSDL XML content.Request/Response
Please share your request Uri, head or the request body
Please share your response head, body.
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Please share your call stack or any error message
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: