Know-how
  • Level UP ^
  • Xây dựng 1 ứng dụng Angular___BestPractice1
  • .Net framework
  • Build app with abp modulezero
  • Quản lý token trong aspnet web api
  • Xử lý ảnh với imageprocessor
  • Sms Provider For Two-factor authentication
  • Xử lý callback function khi server đéo bật CORS
  • Angular6.1 công bố chính thức tháng 7 năm 2018
  • Vài note trong entity framework core project
  • Những thứ đã upgrade trong netcore 2.1
  • Solution SQL Database Image Storage & Easy Thumbnails
  • Solution SQL Database Comments and Likes in database
  • Method guide (SQL DESIGN)
  • Paging Model Dto
  • Làm việc với Data table Grid
  • Jquery Extensions
  • A helper library for async/await.
  • oDATA TRONG DONET, RESTER framework
  • Validate dotnetcore use bootstrap 3 css
  • dynamically-loading-components-with-angular
  • Angular Sercurity
  • Add sercurity header for dotnetcore
  • Làm quen và cài đặt Golang (Iris framework)
  • Entity framework 6 - Entity maping to Stored Procedures
  • Angular Security - Authentication With JSON Web Tokens (JWT): The Complete Guide
  • Sql filestream
  • Một vài câu hỏi test Full-stack engineer (JavaScript)
Powered by GitBook
On this page

Paging Model Dto

    public interface IHasTotalCount
    {
        int TotalCount { get; set; }
    }
    public interface IPagedResultRequest : ILimitedResultRequest
    {
        //
        // Summary:
        //     Skip count (beginning of the page).
        int SkipCount { get; set; }
    }
    public interface ILimitedResultRequest
    {
        //
        // Summary:
        //     Max expected result count.
        int MaxResultCount { get; set; }
    }
public class PagingModelDto<TDto> : IHasTotalCount, IPagedResultRequest
    {       
        public PagingModelDto()
        {

        }
        /// <summary>
        /// PagingModelDto
        /// </summary>
        /// <param name="totalCount"></param>
        /// <param name="skipCount"></param>
        /// <param name="maxResultCount"></param>
        public PagingModelDto(int totalCount, int skipCount, int maxResultCount)
        {
            TotalCount = totalCount;
            SkipCount = skipCount;
            MaxResultCount = maxResultCount;
        }
        public ListResultDto<TDto> Items { get; set; }
        public int TotalCount { get; set; }
        public int SkipCount { get; set; }
        public int MaxResultCount { get; set; }
    }

PreviousMethod guide (SQL DESIGN)NextLàm việc với Data table Grid

Last updated 6 years ago