Example #1
0
        /// <summary>
        /// Gets all the <see cref="RefDataNamespace.PowerSource"/> objects.
        /// </summary>
        /// <returns>A <see cref="RefDataNamespace.PowerSourceCollection"/>.</returns>
        public async Task <RefDataNamespace.PowerSourceCollection> PowerSourceGetAllAsync()
        {
            var __coll = new RefDataNamespace.PowerSourceCollection();
            await DataInvoker.Default.InvokeAsync(this, async() => { CosmosDb.Default.ValueQuery(PowerSourceMapper.CreateArgs("RefData")).SelectQuery(__coll); await Task.CompletedTask; }, BusinessInvokerArgs.RequiresNewAndTransactionSuppress);

            return(__coll);
        }
Example #2
0
        public async Task <RefDataNamespace.PowerSourceCollection> PowerSourceGetAllAsync()
        {
            var __coll = new RefDataNamespace.PowerSourceCollection();
            await DataInvoker.Current.InvokeAsync(this, async() => { _cosmos.ValueQuery <RefDataNamespace.PowerSource, Model.PowerSource>(CosmosDbArgs.Create(_mapper, "RefData")).SelectQuery(__coll); await Task.CompletedTask.ConfigureAwait(false); }).ConfigureAwait(false);

            return(__coll);
        }