Skip to content

Latest commit

 

History

History
74 lines (38 loc) · 1.77 KB

File metadata and controls

74 lines (38 loc) · 1.77 KB

What is QueryMaker.GetDataAsync?

QueryMaker.GetDataAsync is an extension package for QueryMaker which adds the functionality to get the resulting data asynchronously.


Installation

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

How To Use

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.

License

Distributed under the GNU General Public License v3.0 License. See LICENSE.md for more information.


Contact

LinkedIn: Jose Toyos

Email: josemoises.toyosvargas@hotmail.com

Project Link: https://github.com/PRLL/QueryMaker.GetDataAsync


Copyright

©Jose Toyos 2023