Hi - I'm using the Radzen IDE to create a Blazor Server side application that gets its data from an API (this IDE is awesome, btw.) I have a service that returns a simple list of strings to be bound to a DropDown. I was getting an error that the Deserialization had failed and saw that this was the generated code:
return await JsonSerializer.DeserializeAsync<IEnumerable<HttpResponseMessage>>(stream, new JsonSerializerOptions
{
PropertyNamingPolicy = JsonNamingPolicy.CamelCase,
PropertyNameCaseInsensitive = true,
});
I changed the type in this code, as well as the return type of the method to this and it works as expected now.
return await JsonSerializer.DeserializeAsync<IEnumerable<string>>(stream, new JsonSerializerOptions
{
PropertyNamingPolicy = JsonNamingPolicy.CamelCase,
PropertyNameCaseInsensitive = true,
});
When I open the manually edited code again in the Radzen IDE, it regenerates it again with the code that errors. Is there a way in the IDE to tell it explicitly what type to use?
Thanks!
Don