An example of how one might implement the repository pattern, in C#.