예제 #1
0
 public TabularItems.Table GetTable(string tableName)
 {
     if (tabular16.IsDatabaseCompatible)
     {
         return(tabular16.GetTable(tableName));
     }
     else
     {
         return(tabular14.GetTable(tableName));
     }
 }
예제 #2
0
        public void GetColumnDataType_SSAS2014()
        {
            var tabular = new DaxDrill.Tabular.TabularHelper_2014(serverName, "ApPayments");

            tabular.Connect();


            var table = tabular.GetTable("Account");

            foreach (SSAS12.CubeAttribute attr in table.BaseTable12.Attributes)
            {
                //if (attr.Attribute.Name == "Is Cash")
                Console.WriteLine("{0} | {1}", attr.Attribute.Name, attr.Attribute.KeyColumns[0].DataType.ToString());
            }
        }