Just started a 'real world' project using .NET MVC, Ninject, PetaPoco and plan to use the repository pattern.
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.
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?
In case it isn't apparent already, I'm a newbie to DI, the repository pattern and PetaPoco. :)