Incorrect naming of variables in Submit and Load methods

I have a Model called QueryResultHeader. When Radzen creates the Add and Edit pages, it names the variables incorrectly in the Load and Submit methods.

protected async void Load()
{
canEdit = true;
var queryLibDataGetQueryResultHeaderByQueryIdAndTestOrExecuteAndColumnNumberResult = await QueryLibData.GetQueryResultHeaderByQueryIdAndTestOrExecuteAndColumnNumber(int.Parse(QueryId), $"{TestOrExecute}", byte.Parse(ColumnNumber));

/////// The variable below throws and error. It should be called "queryresultheader" //////////
queryqueryLibDataGetQueryResultHeaderByQueryIdAndTestOrExecuteAndColumnNumberResultheader = queryLibDataGetQueryResultHeaderByQueryIdAndTestOrExecuteAndColumnNumberResult;

var queryLibDataGetQueriesResult = await QueryLibData.GetQueries();
getQueriesResult = queryLibDataGetQueriesResult;
}

protected async void Form0Submit(QueryLib.Models.QueryLibData.QueryResultHeader args)
{
try
{
var queryLibDataUpdateQueryResultHeaderResult = await QueryLibData.UpdateQueryResultHeader(int.Parse(QueryId), $"{TestOrExecute}", byte.Parse(ColumnNumber), queryresultheader);

/////// The variable below throws and error. It should be called "queryresultheader" //////////
DialogService.Close(queryqueryLibDataUpdateQueryResultHeaderResultheader);
}
catch (Exception queryLibDataUpdateQueryResultHeaderException)
{
NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to update QueryResultHeader");
}
}

Thanks for the report! It will be fixed in the next version.

Thank you. Great Product BTW

1 Like