QueryMaker.GetDataAsync is an extension package for QueryMaker which adds the functionality to get the resulting data asynchronously.
First, as this is an extension you will need to have QueryMaker already installed. Then, install QueryMaker.GetDataAsync from the package manager console:
PM> Install-Package QueryMaker.GetDataAsync
Or from the .NET CLI as:
dotnet add package QueryMaker.GetDataAsync
With the package already installed on your project, now you can call the GetDataAsync()
extension method from a QueryMakerResult
instance:
using QueryMakerLibrary;
using QueryMakerLibrary.GetDataAsync;
...
// first, we make the queries using QueryMaker...
QueryMakerResult<T> result = _dbContext.TableEntity.MakeQueryResult(queryMaker);
// ... then, we can use the GetDataAsync() extension method to get the data asynchronously
QueryMakerData<T> data = await result.GetDataAsync();
The resulting QueryMakerData
object contains two properties:
- T[] Items - array containing the resulting items.
- int TotalAmmount - count of the total ammount of items withouth pagination.
Distributed under the GNU General Public License v3.0 License. See LICENSE.md
for more information.
LinkedIn: Jose Toyos
Email: josemoises.toyosvargas@hotmail.com
Project Link: https://github.com/PRLL/QueryMaker.GetDataAsync
©Jose Toyos 2023