in SamplesV1/AzureAnalysisServicesProcessSample/ProcessAzureASActivity.cs [105:132]
internal virtual void ProcessTabularModel(Model tabularModel, IActivityLogger logger)
{
// We request a refresh for all tables
foreach (var table in tabularModel.Tables)
{
// For partition tables, we process each partition.
if (table.Partitions.Any())
{
logger.Write("Table {0} will be processed partition by partition", table.Name);
foreach (var partition in table.Partitions)
{
partition.RequestRefresh(RefreshType.Full);
}
}
else
{
logger.Write("Table {0} will be processed in full mode", table.Name);
table.RequestRefresh(RefreshType.Full);
}
}
logger.Write("Azure AS processing started");
tabularModel.SaveChanges();
logger.Write("Azure AS was successfully processed");
}