public List<vote> get_images() { csDAL objdal = new csDAL(); List<vote> objparlist = new List<vote>(); IDataReader dr = null; dr = objdal.executespreturndr("Get_All"); { while (dr.Read()) { vote objc = new vote(); populate_bal(dr, objc); objparlist.Add(objc); } } return objparlist; } private void populate_bal(System.Data.IDataReader dr, vote objc) { objc.id = dr.GetInt32(0); objc.candidateName = dr.GetString (1); objc.candidateSurname = dr.GetString(2); objc.candidatePic = (Byte[])dr.GetValue(3); objc.standingyear = dr.GetString(4); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)