2020-11-03 10:42:41 +01:00
|
|
|
|
using Sieve.Attributes;
|
2023-02-22 23:11:34 +01:00
|
|
|
|
using SieveUnitTests.Abstractions.Strategy;
|
2020-11-03 10:42:41 +01:00
|
|
|
|
using SieveUnitTests.Entities;
|
|
|
|
|
|
|
|
|
|
namespace SieveUnitTests.Abstractions.Entity
|
|
|
|
|
{
|
2023-02-22 23:11:34 +01:00
|
|
|
|
public interface IPost: IBaseEntity, IAudit
|
2020-11-03 10:42:41 +01:00
|
|
|
|
{
|
|
|
|
|
[Sieve(CanFilter = true, CanSort = true)]
|
|
|
|
|
string Title { get; set; }
|
|
|
|
|
[Sieve(CanFilter = true, CanSort = true)]
|
|
|
|
|
int LikeCount { get; set; }
|
|
|
|
|
[Sieve(CanFilter = true, CanSort = true)]
|
|
|
|
|
int CommentCount { get; set; }
|
|
|
|
|
[Sieve(CanFilter = true, CanSort = true)]
|
|
|
|
|
int? CategoryId { get; set; }
|
|
|
|
|
[Sieve(CanFilter = true, CanSort = true)]
|
|
|
|
|
bool IsDraft { get; set; }
|
|
|
|
|
string ThisHasNoAttribute { get; set; }
|
|
|
|
|
string ThisHasNoAttributeButIsAccessible { get; set; }
|
|
|
|
|
int OnlySortableViaFluentApi { get; set; }
|
|
|
|
|
Comment TopComment { get; set; }
|
|
|
|
|
Comment FeaturedComment { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|