public void Delete() { // delete record SalaryHistoryData salaryhistoryData = new SalaryHistoryData(); salaryhistoryData.DeleteSalaryHistory(_salaryHistoryID); _salaryHistoryID = -1; }
public void LoadByReviewerID(int reviewerID) { SqlDataReader reader = new SalaryHistoryData().GetSalaryHistoryByReviewerID(reviewerID); while (reader.Read()) { this.Add(new SalaryHistory(reader)); } reader.Close(); }
public SalaryHistory(Guid personGuid) { SqlDataReader reader = new SalaryHistoryData().GetSalaryHistoryByPersonID(new Person(personGuid).PersonID); if (reader.Read()) { LoadSalaryHistory(reader); } reader.Close(); }
public SalaryHistory(int salaryHistoryID) { SqlDataReader reader = new SalaryHistoryData().GetSalaryHistoryByID(salaryHistoryID); if (reader.Read()) { LoadSalaryHistory(reader); } reader.Close(); }