33 lines
789 B
C#
33 lines
789 B
C#
using gehGassi.Dto.Common;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using gehGassi.Common.Extensions;
|
|
|
|
namespace gehGassi.Domain.Common
|
|
{
|
|
/// <summary>
|
|
/// Hilfsklasse für dynamische Sortierung
|
|
/// </summary>
|
|
public class DynamicSortOrder
|
|
{
|
|
/// <summary>
|
|
/// Name der Eigenschaft z.B. UpdateAd oder ID oder StartDate usw.
|
|
/// </summary>
|
|
public string Property { get; set; }
|
|
|
|
/// <summary>
|
|
/// Sortierrichtung
|
|
/// </summary>
|
|
public SortDirection SortDirection { get; set; }
|
|
|
|
public DynamicSortOrder()
|
|
{
|
|
Property = string.Empty;
|
|
SortDirection = SortDirection.Ascending;
|
|
}
|
|
}
|
|
}
|