public AssociateComplainCollection(Guid AssociateComplainGuid) { using (SqlDataReader dr = AppDAL.AssociateComplainSelect(AssociateComplainGuid)) { LoadObjectsFromReader(dr); } }
protected override bool OpenRecord(Guid key) { bool r = false; using (SqlDataReader dr = AppDAL.AssociateComplainSelect(key)) r = dr != null && dr.Read() && this.Populate(dr); return(r); }