示例#1
0
        /// <summary>
        /// gets all portfolios from the bucket
        /// </summary>
        /// <returns>Returns a list of portfolios as an object</returns>
        public object GetPortfolios()
        {
            string name  = CouchbaseConfigManager.Instance.PortfolioBucketName;
            string query = $"select PortfolioName, AccountCount, Name, TotalBalance, AsOfDate, Debug from {name}";

            return(DataClient.ExecuteQuery(name, query));
        }