Sieve/Sieve/Attributes/SieveAttribute.cs
2018-05-15 00:34:37 +01:00

18 lines
422 B
C#

using Sieve.Models;
using System;
namespace Sieve.Attributes
{
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false)]
public class SieveAttribute : Attribute, ISievePropertyMetadata
{
/// <summary>
/// Override name used
/// </summary>
public string Name { get; set; }
public bool CanSort { get; set; }
public bool CanFilter { get; set; }
}
}