public static Salary Parse(SqlDataReader dr) { Salary Salary = new Salary(); Salary.Id = Convert.ToInt32(dr["Id"]); Salary.CandidateId = Convert.ToInt32(dr["CandidateId"]); Salary.FullTime = Convert.ToBoolean(dr["FullTime"]); Salary.PartTime = Convert.ToBoolean(dr["PartTime"]); Salary.Student = Convert.ToBoolean(dr["Student"]); Salary.Temp = Convert.ToBoolean(dr["Temp"]); Salary.NightShifts = Convert.ToBoolean(dr["NightShifts"]); Salary.DayShifts = Convert.ToBoolean(dr["DayShifts"]); Salary.Other = Convert.ToBoolean(dr["Other"]); Salary.TempWage = Convert.ToInt32(dr["TempWage"]); Salary.TempRateId = Convert.ToInt32(dr["TempRateId"]); Salary.SetTempRate(Convert.ToString(dr["TempRate"])); Salary.PermWage = Convert.ToInt32(dr["PermWage"]); Salary.PermRateId = Convert.ToInt32(dr["PermRateId"]); Salary.SetPermRate(Convert.ToString(dr["PermRate"])); return Salary; }