I wanted to know if there is a way to map data returned by data row to user defined class. Some thing which pretty common in java spring or strut framework,

example Datarow { tableID, time, name , address, city } mapped to
Code:
class A
{
  public int tableID
  public string time;
  public  string name;
  public  string address;
  public  string city;
 //  getter and setter exposed by public property
}
so for multiple rows returned by SQL query could be mapped to a List of class A
List<A> mylist;