What is the best way to map relational table which has more than 150 columns. I don't want to use any 3rd party or entity framework. if i am using data-reader it is very hard to write all the columns and convert it to relevant type.
Is there any easy way to do it or is this the only way?
SqlDataReader _dr = _sqlCom.ExecuteReader() ;
Info inObj= new Info ();
while (_dr.Read())
{
inObj.a= (int)_dr["a"];
inObj.b= (int)_dr["b"];
inObj.c= (int)_dr["c"];
inObj.d= (int)_dr["d"];
inObj.e= (int)_dr["e"];
.....
......
}