Documentation Coverage Report
Current view: top level - Cqrs/Repositories/Queries - SortParameter.cs Hit Total Coverage
Version: 2.2 Artefacts: 2 2 100.0 %
Date: 2018-08-07 15:04:50

          Line data    Source code
       1             : #region Copyright
       2             : // // -----------------------------------------------------------------------
       3             : // // <copyright company="Chinchilla Software Limited">
       4             : // //   Copyright Chinchilla Software Limited. All rights reserved.
       5             : // // </copyright>
       6             : // // -----------------------------------------------------------------------
       7             : #endregion
       8             : 
       9             : using System;
      10             : 
      11             : namespace Cqrs.Repositories.Queries
      12             : {
      13             :         /// <summary>
      14             :         /// Sorting information.
      15             :         /// </summary>
      16             :         /// <typeparam name="TSortBy">The <see cref="Type"/> to sort by</typeparam>.
      17             :         public class SortParameter<TSortBy>
      18           1 :         {
      19             :                 /// <summary>
      20             :                 /// Sort direction.
      21             :                 /// </summary>
      22             :                 public enum SortParameterDirectionType
      23           1 :                 {
      24             :                         /// <summary>
      25             :                         /// Sort Ascending.
      26             :                         /// </summary>
      27             :                         Ascending = 0,
      28             : 
      29             :                         /// <summary>
      30             :                         /// Sort Descending.
      31             :                         /// </summary>
      32             :                         Descending = 2
      33             :                 }
      34             : 
      35             :                 /// <summary>
      36             :                 /// What to sort by.
      37             :                 /// </summary>
      38             :                 public TSortBy SortBy { get; set; }
      39             : 
      40             :                 /// <summary>
      41             :                 /// The direction to sort.
      42             :                 /// </summary>
      43             :                 public SortParameterDirectionType Direction { get; set; }
      44             :         }
      45             : }

Generated by: LCOV version 1.12