public void LoadAllStaff(int organizationID) { SqlDataReader reader = new StaffData().GetStaffByOrganizationID(organizationID); while (reader.Read()) { this.Add(new Staff(reader)); } reader.Close(); }
public Staff(Guid guid) : base(guid) { SqlDataReader reader = new StaffData().GetStaffByID(new Person(guid).PersonID); if (reader.Read()) { LoadStaff(reader); } reader.Close(); }
public void LoadBySupervisorID(int supervisorID) { SqlDataReader reader = new StaffData().GetStaffBySupervisorID(supervisorID); while (reader.Read()) { this.Add(new Staff(reader)); } reader.Close(); }
public Staff(int personID) : base(personID) { SqlDataReader reader = new StaffData().GetStaffByID(personID); if (reader.Read()) { LoadStaff(reader); } reader.Close(); }