Commit cc5c5e07 authored by Andrei-Flavius Ivan's avatar Andrei-Flavius Ivan
Browse files

Trying to have a more stable build

parent ef49a851
......@@ -78,11 +78,12 @@ namespace Mindgaze.AspNetCore.Controllers
private async Task<IActionResult> EncapsulateToActionResult(IQueryable<TDto> projectedQuery, IQueryable<TDto> contractedQuery)
{
var projectedQueryCount = await projectedQuery.CountAsync();
var contractedQueryCount = await contractedQuery.CountAsync();
var items = await contractedQuery.ToArrayAsync();
var contractedQueryCount = items.Length;
var paginationDto = new PaginationDto<TDto>()
{
Items = await contractedQuery.ToArrayAsync(),
Items = items,
Pager = new PagerDto()
{
CurrentPageNumber = PagingContext.Page,
......
......@@ -2,7 +2,7 @@
<PropertyGroup>
<Description>Contains productivity tools for ASPNET Core. These include filtering &amp; paging contexts, base CRUD controller with Automapper support and Swagger context</Description>
<VersionPrefix>1.4.3</VersionPrefix>
<VersionPrefix>1.4.5</VersionPrefix>
<Authors>Andrei-Flavius Ivan</Authors>
<TargetFramework>netcoreapp3.0</TargetFramework>
<AssemblyName>Mindgaze.AspNetCore</AssemblyName>
......@@ -29,7 +29,6 @@
<ItemGroup>
<PackageReference Include="AutoMapper" Version="9.0.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="3.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Mvc" Version="2.2.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="3.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.FileExtensions" Version="3.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="3.0.0" />
......@@ -40,7 +39,6 @@
<PackageReference Include="Swashbuckle.AspNetCore" Version="5.0.0-rc4" />
<PackageReference Include="Microsoft.AspNetCore.TestHost" Version="3.0.0" />
<PackageReference Include="NUnit" Version="3.12.0" />
<PackageReference Include="Microsoft.Aspnetcore.Server.Kestrel" Version="2.2.0" />
<PackageReference Include="Swashbuckle.AspNetCore.Annotations" Version="5.0.0-rc4" />
</ItemGroup>
</Project>
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment