Re-implements the LinqRepository for shorter DataContext life cycle.