Importance of repository pattern
hello, i ask about repository pattern. what is design pattern, repository pattern and how and where can i use in simple application winforms ?
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Midhun TpRank #388 · 6.5K reputationPosted Oct 3, 2016, 4:59 PM EDT
Repository Pattern separates the data access logic and maps it to the entities in the business logic. It works with the domain entities and performs data access logic.
It hides the details of data access from the business logic. In other words, business logic can access the data object without having knowledge of the data access architecture. For example, in the Repository pattern, business logic is not aware whether the application is using LINQ to SQL or ADO.NET Entity Model ORM.
Reference - http://blog.falafel.com/implement-step-step-generic-repository-pattern-c/
There are a lot of good articles explaining the advantages and implementation of repository patterns. Here are some of the links-
http://www.c-sharpcorner.com/UploadFile/b1df45/getting-started-with-repository-pattern-using-C-Sharp/
https://msdn.microsoft.com/en-us/library/ff649690.aspx
http://www.codeproject.com/Articles/526874/Repository-pattern-done-right
Hussain PatelRank #1,053 · 1.8K reputationPosted Oct 3, 2016, 5:50 PM EDT
Bikesh SrivastavaRank #108 · 20.3K reputationPosted Oct 3, 2016, 7:24 PM EDT