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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Bikesh SrivastavaPosted Oct 3, 2016, 11:24 PM
Hussain PatelPosted Oct 3, 2016, 9:50 PM
Midhun TpPosted Oct 3, 2016, 8:59 PM
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