From e204904b44c93b9d56ca65a26f8497cf059b3090 Mon Sep 17 00:00:00 2001 From: Mehrdad Shirvani Date: Thu, 13 Mar 2025 19:14:09 +0330 Subject: [PATCH] vault backup: 2025-03-13 19:14:09 --- .../ProjectStructure.md} | 0 .../Session01/Session 01 Preparation.md | 22 +++++++++++++++++++ 2 files changed, 22 insertions(+) rename 02_ProjectOrientedSessions/{00_ProjectStructure.md => Session00/ProjectStructure.md} (100%) create mode 100644 02_ProjectOrientedSessions/Session01/Session 01 Preparation.md diff --git a/02_ProjectOrientedSessions/00_ProjectStructure.md b/02_ProjectOrientedSessions/Session00/ProjectStructure.md similarity index 100% rename from 02_ProjectOrientedSessions/00_ProjectStructure.md rename to 02_ProjectOrientedSessions/Session00/ProjectStructure.md diff --git a/02_ProjectOrientedSessions/Session01/Session 01 Preparation.md b/02_ProjectOrientedSessions/Session01/Session 01 Preparation.md new file mode 100644 index 0000000..8cf8f98 --- /dev/null +++ b/02_ProjectOrientedSessions/Session01/Session 01 Preparation.md @@ -0,0 +1,22 @@ + +# EF Core Code First +https://www.youtube.com/watch?v=pYpqymkByoc&ab_channel=TheAmazingCodeverse + +# Repository Pattern + +## Brief Introduction (without DB Context) +https://www.youtube.com/watch?v=Wiy54682d1w&ab_channel=PatrickGod +## More detailed Introduction: +https://youtu.be/rtXpYpZdOzM +## Purpose: +Meditates between the domain and data mapping layers, acting like an **in-memory collection** of domain objects +## Benefits +- Minimizes duplicate query logic +- Decouples your application from persistence frameworks +- Promotes testability +> Repository should not have methods like Update and Save +## A little note on Unit of Work +Keeps track of changes and coordinates the writings and savings +## Implementation: +https://youtu.be/rtXpYpZdOzM?t=703 +