TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Use Full Of Repository Pattern
Shirsendu Nandi
May 26, 2011
6.3
k
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
Here I will discuss the what is repository pattern and why it is useful.
In somany many applications, the business logic accesses data from data stores such as databases, SharePoint lists, or Web services.SO Directly accessing the data can result in the follodirect wing:
Duplicated code
A higher potential for programming errors
An inability to easily test the business logic
A repository separates the business logic from the direct interactions with the underlying data source or Web service.
The Benefits are
It provides a substitution point for the unit tests.
MAintainebility of codes
Interactions of the repository to Datasource
Use Full Of Repository Pattern
Next Recommended Reading
Return types for methods in Repository pattern