Closed Tantol closed 1 year ago
The error message gives you all the info you need, I believe :) Materialize the query before the call to ProjectToType, like this:
var someObjects = repository.query
.Where(x => x.Id == 12);
var result = someObjects.ToList().ProjectToType<SomeObjectDto>().First();
Hi. I stumbled upon strange issue. Whenever I try to use
GroupBy
I get error:Entities
Dtos:
Execute:
SomeObject map configuration:
In order to that, belove execution with
Adapt
andIncludes
works:Mapster version 7.3.0 Microsoft.EntityFrameworkCore version 6.0.10