Repository pattern concept and implementation in asp.net MVC with C# and entity framework
source code: https://github.com/imtiajahammad/RepositoryPatternWithCSharpAndEntityFramework
#imtiajLearnings
#imtiajFables
5. Repository pattern in a nutshell
• Should act like a collection of memory
• Repository should not have save or update method
• Repository should not have semantics of your database
• Should only be a collection of objects and memory
6. Repository pattern in a nutshell
Then how are we going to save these objects to the database?
Solution: Unit of Work
Unit of Work: Maintains a list of objects affected by a business
transaction and coordinates the writing out of changes
21. Thank you for your time
Reference:
https://www.youtube.com/watch?v=rtXpYpZdOzM&t=1374s&ab_channel=Programming
withMosh
Assembled by: Imtiaj Ahammad
Find me: https://www.linkedin.com/in/imtiaj-ahammad-2175a3130/
Source Code:
https://github.com/imtiajahammad/RepositoryPatternWithCSharpAndEntityFramework