< Summary - ZhEaIsNsAaBn.Libraries coverage (affected: 23 packages)

Information
Line coverage
100%
Covered lines: 2
Uncovered lines: 0
Coverable lines: 2
Total lines: 26
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.ctor()100%11100%
get_HasNextPage()100%11100%

File(s)

/home/runner/work/ZhEaIsNsAaBn.Libraries.V1/ZhEaIsNsAaBn.Libraries.V1/src/DataBasePackages/ZhEaIsNsAaBn.ViewModels/DTOs/EntityFrameworkCore/PagedResult.cs

#LineLine coverage
 1// ReSharper disable once CheckNamespace
 2namespace Microsoft.EntityFrameworkCore;
 3
 4/// <summary>One page of query results plus the paging totals.</summary>
 5/// <typeparam name="T">The item type.</typeparam>
 6public class PagedResult< T >
 7    where T : class
 8{
 9    /// <summary>The 1-based page number.</summary>
 10    public int PageNumber { get; set; }
 11
 12    /// <summary>The number of items per page.</summary>
 13    public int PageSize { get; set; }
 14
 15    /// <summary>The number of items across all pages.</summary>
 16    public int TotalCount { get; set; }
 17
 18    /// <summary>The number of pages.</summary>
 19    public int TotalPages { get; set; }
 20
 21    /// <summary>The items on this page. Default: empty.</summary>
 1222    public IList<T> Items { get; set; } = [];
 23
 24    /// <summary>Whether a page follows this one.</summary>
 825    public bool HasNextPage => PageNumber < TotalPages;
 26}

Methods/Properties

.ctor()
get_HasNextPage()