When a class has as property another class (e.g.: ClientDto
has an AfiiliateDto
), then code generation produces a dynamic
property instead of a strongly typed property (in this example an AffiliateDto
). This produces ERROS in compilation at the g pages (the code generated pages from Visual Studio).
Code:
[JsonPropertyName("ReferredByAffiliate")]
public dynamic ReferredByAffiliate
{
get;
set;
}
while the json produced by Radzen shows:
"ReferredByAffiliate": {
"allOf": [
{
"$ref": "#/definitions/AffiliateDto"
}
],
"x-nullable": true
},
Here is the error: