Похожие чаты

Hi, I'm using Automapper, and i have a problem mapping

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.

5 ответов

5 просмотров

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.

Adnan-Al_Beda Автор вопроса
Mr Thieves
hi i never used automapper and all i know is that ...

I use it mainly for EF projection, so doesn't really matters

Adnan Al_Beda
I use it mainly for EF projection, so doesn't real...

i think it's matter since ef is slow enough that we don't want double it.

Mr Thieves
i think it's matter since ef is slow enough that w...

yeah but it's also the orders of magnitude that matters

Похожие вопросы

Обсуждают сегодня

Всем привет, написал код ниже, но он выдает сегфолт, в чем причина? #include <stdio.h> #include <stdlib.h> #include <string.h> struct product { char *name; float price; };...
buzz базз
75
Hey, Oceaners 🌊 As we approach Phase 1 of the token merger, OCEAN and AGIX will migrate to FET starting July 1st! Here's a list of exchanges that have communicated their su...
KreigDK | Never DM first🌊
3
База данных не поможет. Шифрование не поможет. Какие там ещё варианты? Накидывайте.
КТ315
20
I love the passion, really do. I do think this is being blown way out of proportion. We are not deleting our Telegram or not allowing you to talk about anything you want, a...
Mike Herron
3
Did you guys see the latest tweet from TonGifts? 🚀
Mike
44
А как лучше конвертировать физический адрес в виртуальный при маппинге? В случае ядра у меня, например, direct mapping, первые 768МБ я как есть мапплю в higher half, а остальн...
Evg Resh
26
Hey guys, did you see the latest announcement about $FUN? 🔥
Brian
21
Did kadena deliver anything on time?
Femboi Uwu
23
Question: when will have qnt holders a tool to stake tokens in lcx? Answer, Verdian: yes soon.
David Ch
14
Всем привет, мне через 8 часов сдавать экзамен, нужно принести лабораторку (файл виртуальной машины vmware workstation с сервером 12и раб станцией 7), а у меня несколько пробл...
Валерий Орлов
3
Карта сайта