Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 11th, 2012  |  syntax: None  |  size: 0.43 KB  |  hits: 10  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. How to retrieve data from SSAS Cube using EDMX?
  2. CellSet adomdCellSet;
  3.  
  4.     using (var adomdConnection = new AdomdConnection())
  5.     {
  6.         adomdConnection.ConnectionString = "YourConnectionString";
  7.         adomdConnection.Open();
  8.  
  9.         var adomdCommand = adomdConnection.CreateCommand();
  10.         adomdCommand.CommandText = "YourMDXQuery";
  11.  
  12.         adomdCellSet = adomdCommand.ExecuteCellSet();
  13.     }
  14.  
  15.     return adomdCellSet;