Mastering EF Core Relationships: One-to-One, One-to-Many, and Many-to-Many in .NET

  Рет қаралды 2,045

Remigiusz Zalewski

Remigiusz Zalewski

Күн бұрын

Пікірлер: 7
@alejandroroa5072
@alejandroroa5072 9 ай бұрын
Excellent explanation with a very simple but useful example!
@remigiuszzalewski
@remigiuszzalewski 9 ай бұрын
Thank you Alejandro! 👋
@TuCominek
@TuCominek 4 ай бұрын
thanks for the explanation Remik, nice restaurant photo btw :D
@remigiuszzalewski
@remigiuszzalewski 4 ай бұрын
I’m happy that you’ve noticed that photo 😄
@fritzjimenez9109
@fritzjimenez9109 6 ай бұрын
Oh nice! It automatically mapped the relationships. I thought you were going to do it via Configuration in the DB context. 🤔 Is there any difference if you do it via the OnModelCreating method? 😅
@remigiuszzalewski
@remigiuszzalewski 6 ай бұрын
Actually it depends on your needs and preferences 😁 if you have a simple relationship without any conditions and you would like to keep everything in models then there’s a way to go. If you need more advanced configurations that data annotations cannot handle or you need to apply configurations conditionally or through conventions that apply across multiple entity types then it’s better to set this up in OnModelCreating 😀
SQLModel + FastAPI: Say Goodbye to Repetitive Database Code
19:50
黑天使只对C罗有感觉#short #angel #clown
00:39
Super Beauty team
Рет қаралды 36 МЛН
To Brawl AND BEYOND!
00:51
Brawl Stars
Рет қаралды 17 МЛН
.NET 8 Angular Authentication with Identity and Refresh Tokens
1:22:36
Remigiusz Zalewski
Рет қаралды 2,9 М.
Getting Started with Entity Framework Core in .NET
26:51
Nick Chapsas
Рет қаралды 33 М.
.NET 6 🚀 EF Core & SQLite with Code First Migrations
27:07
Patrick God
Рет қаралды 30 М.
EF Core Many to Many relationships
16:18
Codewrinkles
Рет қаралды 13 М.
Async Commands (and Async Relay Command) - EASY WPF (.NET CORE)
14:14
Enums in .NET 8 Are FAST, but Mine Are Faster!
9:03
Nick Chapsas
Рет қаралды 39 М.