Allow Filters on different sources to share the same name

Allows Posts and Comments to both use the IsNew filter with their own implementations.
This commit is contained in:
Matt Furden
2018-06-15 01:16:36 -07:00
parent abb7029c70
commit d792813cd5
5 changed files with 225 additions and 12 deletions

View File

@@ -1,9 +1,15 @@
namespace SieveUnitTests.Entities
using System;
using Sieve.Attributes;
namespace SieveUnitTests.Entities
{
public class Comment
{
public int Id { get; set; }
[Sieve(CanFilter = true, CanSort = true)]
public DateTimeOffset DateCreated { get; set; } = DateTimeOffset.UtcNow;
public string Text { get; set; }
}
}