Interface ISorting<TModel>
- Namespace
- Magicalizer.Domain.Services.Abstractions
- Assembly
- Magicalizer.Domain.Services.Abstractions.dll
Sorting of a query by a property.
public interface ISorting<TModel> where TModel : class, IModel
Type Parameters
TModelModel type.
Properties
IsAscending
Whether the sorting is ascending (otherwise descending).
bool IsAscending { get; }
Property Value
PropertyPath
Property path to sort by (e.g. "Category.Name").
string PropertyPath { get; }