I have a data model which I've created using Entity Framework Code First POCO objects.
In one of my classes, I'd like to add a method 'GetUsefulInfo'.
In order to implement this method, I need to run queries against other entities in the data model.
The question is, how should I get hold of the data context from within this method? Do I need to pass it in as a parameter to the method? It feels like there should be a way to implement this without having to ask the consumers of this class do this?
Thanks, - Chris