entity of sub list.
It ignores it even when I include it, so How can I specify it in the mapping profile?
like if I have this:
public class Category {
public IEnumerable<Category>? Subs {get;set;}
public Author? Author {get;set;}
}
context.Categories
.Include(x=>x.Author)
.Include(x=>x.Subs).ThenInclude(x=>x.Author)
Only Authors in parent will appear, but not in Subs.
hi i never used automapper and all i know is that is very slow. you have 2 options. 1. use mapster or mapperly which is faster than automapper. 2. manual mapping which is fastest among all mapper.
I use it mainly for EF projection, so doesn't really matters
i think it's matter since ef is slow enough that we don't want double it.
yeah but it's also the orders of magnitude that matters
Обсуждают сегодня