Похожие чаты

Hi. I was working around entity framework and LINQ I have

two tables in code first convention:
Doctor
Weekdays
That is one doctor can have Many weekdays but a weekday belongs to one doctor
So i put a ICollection of Weekdays in Doctor class and a foreign key in Weekday class.

When i want to access doctor name in dbcontext, i do this way:
Mydbcontext.Weekday.doctor.fullname
But i got an error and i can't navigate to doctor table
What is the possible mistake I've done?

1 ответов

8 просмотров

Hey, send the error message here but, you can check Lazy loading and be sure the Doctor information is loaded ( if it's not loaded, you would get Object reference error)

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

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

Типа вызывать GetParent и проверять на соответствие GetModuleHandle?
The Bird of Hermes
67
Do any of you guys have interesting projects one could join? I'm a Middle Full-Stack developer (JS/TS, React & Node)
Lev Shapiro
40
I read yesterday that in the near future most cryptos will be gone. It's like there is a lot of bullshit within the crypto sphere and this corruption some way is going to be c...
Kanah The Great
42
$res = json_decode($наша строка из респонса); $res1 = array_map(fn($o) => $o->name, $res->breadcrumbs[0]->entities); Как такое будет на Хаскеле?.. В начале весь джейсон, в ко...
Хаскель Моисеевич Гопник
27
Hello, I have a question. Can anyone help me? I want to make my cryptocurrencies, like Tron, untraceable by anyone, even government organizations. I was told that to do this,...
 ➛ Eᒪᕼᗩᗰ
14
I guess you did too?
OJohnny
13
В чем сила брат, в NASM или FASM?
Isaac Kleiner
18
Вопрос по диагностике ошибок (я знаю в чем, в данном конкретном примере, я знаю, как исправить, пример модельный, понятно, что в реальности бывает намного запутаннее). module...
ⰄⰎⰋⰐⰐⰑⰛⰤⰧⰧⰩⰄ ⰊⰑⰁⰓⰡⰛⰦⰕⰫ
11
А чем вам питонисты не угодили?😂
.
79
Хтось використовував Vapor на Windows?
Jaroshevskii
15
Карта сайта