hi @uxabp,
Can you try the code below?
The program works, thank you.
Hi @uxabp,
Could you share your project with [email protected]?
Hi @m.aliozkaya,
Due to the project involving the company's internal business secrets, I am unable to share it. However, I can explain the components I used. Since the development needs to continue, I have reverted to the old version for now.
ABP Zero (with GitHub dev 2024/7/12) Core MVC & jQuery Project DevExpress 24.1.3 using Html.DevExtreme().DataGrid
Code
[DontWrapResult(WrapOnError = true, WrapOnSuccess = false, LogError = true)]
[HttpGet]
public async Task<JsonResult> GetAll(DataSourceLoadOptions loadOptions)
{
var dataQuery = _metricsProxyRepository.GetAll();
dataQuery = dataQuery.WhereIf(!await _commonDomainService.IsCurrentUserInRoleAsync(AbpRoles.Role_Admin), x => x.CreatorUserId == _session.GetUserId());
var result = await DataSourceLoader.LoadAsync(dataQuery, loadOptions); //HERE ABP v9.3.0 Error
if (loadOptions.Group == null)
{
result.data = ObjectMapper.Map<List<DevCarDto>>(result.data);
}
return new JsonResult(result, JsonSerializerOptionsCollection.DefaultOptions);
}
ABP v9.2.2 was working fine, but after upgrading to ABP v9.3.0, the same program started having errors(see //HERE ABP v9.3.0 Error).
Using Abp.ZeroCore.EntityFrameworkCore v9.3.0 ERROR Message:
Async operations for the LINQ provider 'Abp.EntityFrameworkCore.AbpEntityQueryProvider' are not supported.
You can implement a custom async adapter (DevExtreme.AspNet.Data.Async.IAsyncAdapter) and register it via 'DevExtreme.AspNet.Data.Async.CustomAsyncAdapters.RegisterAdapter'.
I estimate that users of DevExpress will be affected. It would be great if you could help. Regardless, thank you for response.
Hi @ismcagdas,
If modify the client code, the next time use power tools to generate it again, the client code will be overwritten.
Is there a way to not change the code generated by power tools, override the generated method?
It's worked, thanks.