public List <EducationContract> GetEducations() { SqlDataReader dr; dr = dbOperation.SpGetData("cus.sel_educations", new SqlParameter[] { }); List <EducationContract> educations = new List <EducationContract>(); EducationContract education; while (dr.Read()) { education = new EducationContract(); education.Id = (int)dr[0]; education.Name = dr[1].ToString(); educations.Add(education); } return(educations); }
public CustomerDetailContract() { educationContract = new EducationContract(); jobContract = new JobContract(); }