Design Patterns for developing SharePoint 2010
Design Patterns for developing SharePoint 2010 SharePoint Design Patterns: Here are the few design patterns that can be used when creating custom designs, Repository MVP Service Locator Repository Pattern: Context: In many applications in SharePoint, the business logic accesses data sources such as SqlServer, SharePoint List, and Web services. Directly accessing the data source can result the following: Duplicate Code A higher potential for programming errors Week Typing of business data Difficulty to centralizing data related policies Objective: Use the Repository pattern to achieve one or more of the following objectives: You want to maximize the amount of code that can be tested with automation and to isolate the data layer to support unit testing. You access the data source from many locations and want to apply centrally managed, consistent access rules and logic. You want to implement and centralize a caching ...