Generic DbDataReader to List<T> mapping
问题 I am having a slight issue (more like an annoyance) with my property binding data access classes. The problem is that the mapping fails when there exists no column in the reader for corresponding property in class. Code Here is the mapper class: // Map our datareader object to a strongly typed list private static IList<T> Map<T>(DbDataReader dr) where T : new() { try { // initialize our returnable list List<T> list = new List<T>(); // fire up the lamda mapping var converter = new Converter<T>