repository pattern in asp net core

in this video, we will discuss
what is repository pattern
benefits of repository pattern
an example that uses repository pattern to store and retrieve data from sql server database using entity framework core

healthy diet is very important for both body and mind. we want to inspire you to cook and eat healthy. if you like aarvi kitchen recipes, please support by sharing, subscribing and liking.

text version of the video

slides core text articles & slides core tutorial

angular, javascript, jquery, dot net & sql playlists

what is repository pattern
repository pattern is an abstraction of the data access layer. it hides the details of how exactly the data is saved or retrieved from the underlying data source. the details of how the data is stored and retrieved is in the respective repository. for example, you may have a repository that stores and retrieves data from an in-memory collection. you may have another repository that stores and retrieves data from a database like sql server.

repository pattern example

we want to be able to perform all the crud operations (i.e create, read, update and delete) against the following employee type using the repository pattern.

repository pattern in asp net core