Example #1
0
 public MiningContentNode this[int index]
 {
     get
     {
         if (index < 0 || index >= this.Count)
         {
             throw new ArgumentOutOfRangeException("index");
         }
         DataRow           row = this.internalCollection[index];
         MiningContentNode miningContentNodeByRow = MiningContentNodeCollectionInternal.GetMiningContentNodeByRow(this.nestedDataset, base.Connection, row, this.parentMiningModel, base.Catalog, base.SessionId);
         if (miningContentNodeByRow != null && this.operation == MiningNodeTreeOpType.TreeopChildren)
         {
             miningContentNodeByRow.SetParentNode(this.parentNode);
         }
         return(miningContentNodeByRow);
     }
 }
Example #2
0
        public MiningContentNode Find(string index)
        {
            if (index == null)
            {
                throw new ArgumentNullException("index");
            }
            DataRow dataRow = base.FindObjectByName(index, null, MiningContentNode.miningContentNodeNameColumn);

            if (dataRow == null)
            {
                return(null);
            }
            MiningContentNode miningContentNodeByRow = MiningContentNodeCollectionInternal.GetMiningContentNodeByRow(this.nestedDataset, base.Connection, dataRow, this.parentMiningModel, base.Catalog, base.SessionId);

            if (miningContentNodeByRow != null && this.operation == MiningNodeTreeOpType.TreeopChildren)
            {
                miningContentNodeByRow.SetParentNode(this.parentNode);
            }
            return(miningContentNodeByRow);
        }