コード例 #1
0
        public IEnumerable <MSADLA.Models.USqlTableStatistics> ListTableStatistics(AdlClient.Models.AnalyticsAccountRef account, string dbname, string schema, string tablename)
        {
            var oDataQuery = new MSODATA.ODataQuery <MSADLA.Models.USqlTableType>();

            var page = this.RestClient.Catalog.ListTableStatistics(account.Name, dbname, schema, tablename);

            foreach (var stats in RestUtil.EnumItemsInPages(page, p => this.RestClient.Catalog.ListTableStatisticsNext(p.NextPageLink)))
            {
                yield return(stats);
            }
        }
コード例 #2
0
        public IEnumerable <MSADLA.Models.USqlSchema> ListSchemas(AdlClient.Models.AnalyticsAccountRef account, string dbname)
        {
            var    oDataQuery  = new MSODATA.ODataQuery <MSADLA.Models.USqlSchema>();
            string select_cols = null;
            bool?  count       = null;

            var page = this.RestClient.Catalog.ListSchemas(account.Name, dbname, oDataQuery, select_cols, count);

            foreach (var schema in RestUtil.EnumItemsInPages(page, p => this.RestClient.Catalog.ListSchemasNext(p.NextPageLink)))
            {
                yield return(schema);
            }
        }
コード例 #3
0
        public IEnumerable <ADL.Analytics.Models.USqlCredential> ListCredential(string dbname)
        {
            var    oDataQuery  = new MSODATA.ODataQuery <MSADLA.Models.USqlCredential>();
            string select_cols = null;
            bool?  count       = null;

            var pageiter = new Rest.PagedIterator <MSADLA.Models.USqlCredential>();

            pageiter.GetFirstPage = () => this.RestClients.CatalogClient.Catalog.ListCredentials(this.Account.Name, dbname, oDataQuery, select_cols, count);
            pageiter.GetNextPage  = p => this.RestClients.CatalogClient.Catalog.ListCredentialsNext(p.NextPageLink);

            int top   = 0;
            var items = pageiter.EnumerateItems(top);

            return(items);
        }