mirror of
https://github.com/Biarity/Sieve.git
synced 2024-11-23 05:52:45 +01:00
16 lines
366 B
C#
16 lines
366 B
C#
|
using Sieve.Services;
|
|||
|
|
|||
|
namespace Sieve.Sample.Entities
|
|||
|
{
|
|||
|
public class SieveConfigurationForPost : ISieveConfiguration
|
|||
|
{
|
|||
|
public void Configure(SievePropertyMapper mapper)
|
|||
|
{
|
|||
|
mapper.Property<Post>(p => p.Title)
|
|||
|
.CanSort()
|
|||
|
.CanFilter()
|
|||
|
.HasName("CustomTitleName");
|
|||
|
}
|
|||
|
}
|
|||
|
}
|