/// <summary>
 /// Initializes a new instance of the <see cref="MDXQueryViewModel"/> class.
 /// </summary>
 public MDXQueryViewModel()
 {
     ConnectionString              = MDXQueryModel.Initialize(System.IO.Path.GetFullPath(@"Assets\Config\OLAPSample.config"));
     this.olapDataManager          = new OlapDataManager(ConnectionString);
     this.olapDataManager.MdxQuery = CurrentMDXQuery = SimpleDimensions();
     this.olapDataManager.AllowMdxToOlapReportParse = AllowMDXToOlapReportParse;
 }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MDXQueryViewModel"/> class.
 /// </summary>
 public MDXQueryViewModel()
 {
     if (AppDomain.CurrentDomain.BaseDirectory.Contains("Binaries_"))
     {
         ConnectionString = MDXQueryModel.Initialize(System.IO.Path.GetFullPath(@"..\..\common\Assets\Config\OLAPSample.config"));
     }
     else
     {
         ConnectionString = MDXQueryModel.Initialize(System.IO.Path.GetFullPath(@"..\..\..\common\Assets\Config\OLAPSample.config"));
     }
     this.olapDataManager          = new OlapDataManager(ConnectionString);
     this.olapDataManager.MdxQuery = CurrentMDXQuery = SimpleDimensions();
     this.olapDataManager.AllowMdxToOlapReportParse = AllowMDXToOlapReportParse;
 }