public AccessAreaCollection(int personID)
        {
            SqlDataReader reader = new  AccessAreaData().GetAccessAreaByID(personID);

            while (reader.Read())
            {
                this.Add(new AccessArea(reader));
            }
            reader.Close();
        }
Ejemplo n.º 2
0
        public AccessArea(int personID)
        {
            SqlDataReader reader = new AccessAreaData().GetAccessAreaByID(personID);

            if (reader.Read())
            {
                LoadAccessArea(reader);
            }
            reader.Close();
        }