Exemplo n.º 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);
     }
 }
Exemplo n.º 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);
        }