LINQ to SQL Covariance - is this the right way to do this?

Public class Processor { public void Process(IRepository repository) { // Do some stuff ... IEnumerable inputs = repository.GetInputs(); IEnumerable results = repository.GetResults(); // Do some stuff with inputs and outputs... } }.

I'm using LINQ to SQL to automatically generate the ElephantInputs, ElephantResults, GiraffeInputs, GiraffeResults, etc classes. I want to write a single class, Processor(), that can read input from any of these databases and process it. I have a Factory method that instantiates a Processor based on the user's choices.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions