title: SharePoint and Repositories
body: <p>This is a SharePoint + repository Design question. As far as my little knowledge goes SharePoint is not a very congenial atmosphere for a proper repository approach. But there is a Patterns guidance that has a repository implementation. That code base basically takes a SPWeb as an input parameter and does the querying / update etc. </p>
  
  <p>My query is there: The fact that it is a repository means that SPWeb must NOT be passed but rather taken from there - SPContext.Current.Web would have given that to be used within the repository. The fact SPWeb is taken as an input means that UI layer / Service layer have to pass SPWeb in to the method which somehow is not appealing for me as that looks like violating repository persistence ignorance principles.</p>
  
  <p>Some advice pls</p>
  
  <p>Cheers</p>