예제 #1
0
 public LevelProperty this[string index]
 {
     get
     {
         LevelProperty levelProperty = this.Find(index);
         if (null == levelProperty)
         {
             throw new ArgumentException(SR.Indexer_ObjectNotFound(index), "index");
         }
         return(levelProperty);
     }
 }
예제 #2
0
        internal static LevelProperty GetLevelPropertyByRow(AdomdConnection connection, DataRow row, Level parentLevel, int propOrdinal)
        {
            LevelProperty levelProperty;

            if (row[0] is DBNull)
            {
                levelProperty = new LevelProperty(connection, row, parentLevel, propOrdinal);
                row[0]        = levelProperty;
            }
            else
            {
                levelProperty = (LevelProperty)row[0];
            }
            return(levelProperty);
        }