public void Delete() { // delete record AccessAreaData accessareaData = new AccessAreaData(); accessareaData.DeleteAccessArea(_personID); }
public AccessAreaCollection(int personID) { SqlDataReader reader = new AccessAreaData().GetAccessAreaByID(personID); while (reader.Read()) { this.Add(new AccessArea(reader)); } reader.Close(); }
public AccessArea(int personID) { SqlDataReader reader = new AccessAreaData().GetAccessAreaByID(personID); if (reader.Read()) { LoadAccessArea(reader); } reader.Close(); }