public override List <T> RetrieveAll <T>() { var lstLocations = new List <T>(); var lstResult = Dao.ExecuteQueryProcedure(Mapper.GetRetrieveAllStatement()); var dic = new Dictionary <string, object>(); if (lstResult.Count > 0) { var objs = Mapper.BuildObjects(lstResult); foreach (var c in objs) { lstLocations.Add((T)Convert.ChangeType(c, typeof(T))); } } return(lstLocations); }