internal MiningStructureColumnCollectionInternal(AdomdConnection connection, MiningStructureColumn parentColumn) : base(connection)
        {
            string name = parentColumn.ParentMiningStructure.Name;

            this.parentObject = parentColumn;
            this.InternalConstructor(connection, name);
        }
 protected override void PopulateCollection()
 {
     if (!this.isPopulated)
     {
         base.PopulateCollection();
         string b = "";
         if (this.parentObject is MiningStructure)
         {
             b = "";
         }
         else if (this.parentObject is MiningStructureColumn)
         {
             b = ((MiningStructureColumn)this.parentObject).Name;
         }
         int i = 0;
         while (i < this.Count)
         {
             MiningStructureColumn miningStructureColumn = this[i];
             if (miningStructureColumn.ContainingColumn != b)
             {
                 this.internalCollection.RemoveAt(i);
             }
             else
             {
                 i++;
             }
         }
     }
 }
 public MiningStructureColumn this[string index]
 {
     get
     {
         MiningStructureColumn miningStructureColumn = this.Find(index);
         if (null == miningStructureColumn)
         {
             throw new ArgumentException(SR.Indexer_ObjectNotFound(index), "index");
         }
         return(miningStructureColumn);
     }
 }
        internal static MiningStructureColumn GetMiningStructureColumnByRow(AdomdConnection connection, DataRow row, IAdomdBaseObject parentObject, string catalog, string sessionId)
        {
            MiningStructureColumn miningStructureColumn;

            if (row[0] is DBNull)
            {
                miningStructureColumn = new MiningStructureColumn(connection, row, parentObject, catalog, sessionId);
                row[0] = miningStructureColumn;
            }
            else
            {
                miningStructureColumn = (MiningStructureColumn)row[0];
            }
            return(miningStructureColumn);
        }
Example #5
0
 internal MiningStructureColumnCollection(AdomdConnection connection, MiningStructureColumn parentColumn)
 {
     this.miningStructureColumnCollectionInternal = new MiningStructureColumnCollectionInternal(connection, parentColumn);
 }