I am trying to completely refactor some code using generics. All my classes use the same logic to populate from SQL: 1 List list = new List();
2 Database db = DatabaseFactory.CreateDatabase();
3 using (DbCommand command = db.GetStoredProcCommand("[HumanResources.GetEmployee]"))
4 {
5 db.AddInParameter(command, "@uid", DbType.Byte, Uid);
8 list.Load(db, command);
9 }
10 return list;
11
12 list.Load =
13
14 internal static void Load(this List list, Database db, DbCommand command)
15 {
16 Go to the complete details ...