Convert rows from a data reader into typed results
Do you really need a list, or would IEnumerable be good enough? I know you want it to be generic, but a much more common pattern is to have a static Factory method on the target object type that accepts a datarow (or IDataRecord). That would look something like this: public class Employee { public … Read more