title: Implementing Repository pattern with PetaPoco
body: <p>Just started a 'real world' project using .NET MVC, Ninject, PetaPoco and plan to use the repository pattern. </p>
  
  <p>I used the PetaPoco T4 template w/ 'GenerateOperations', 'GeneratePocos', and 'GenerateCommon' all = true. Looking at the generated code, it seems to make sense to extract the 'Record' class into a generic repository interface and/or class, but I haven't been able to wrap my head around how to go about it.</p>
  
  <p>With my limited DI knowledge, it also seems to make sense to tie the 'GetInstance' piece into Ninject somehow on a 'per-request' basis - but how should I go about it?</p>
  
  <p>In case it isn't apparent already, I'm a newbie to DI, the repository pattern and PetaPoco. :)</p>