Hello,
I am currently working on a Blazor Server project and I am trying to map two IQueryable objects with Automapper. However, I am encountering an error and not sure how to solve it. Here is the error that I am getting:
2024-01-07 21:53:00.4525|0|ERROR|Microsoft.EntityFrameworkCore.Query|An exception occurred while iterating over the results of a query...
Here is the code that I am using:
IQueryable<Order> _order = ViewOrdersUseCase.Execute(user);
IQueryable<OrderDto> _ordersDto = Mapper.Map<IQueryable<Order>, IQueryable<OrderDto>>(_order);
Can someone assist me with resolving this error and achieving my goal of mapping two IQueryable objects with a large data to another IQueryable object? Thank you.