2018-06-15 10:16:36 +02:00
|
|
|
|
using System;
|
|
|
|
|
using Sieve.Attributes;
|
2019-02-03 17:10:34 +01:00
|
|
|
|
using SieveUnitTests.ValueObjects;
|
2018-06-15 10:16:36 +02:00
|
|
|
|
|
|
|
|
|
namespace SieveUnitTests.Entities
|
2018-02-13 23:43:33 +01:00
|
|
|
|
{
|
2018-05-15 01:34:37 +02:00
|
|
|
|
public class Comment
|
2018-02-13 23:43:33 +01:00
|
|
|
|
{
|
|
|
|
|
public int Id { get; set; }
|
|
|
|
|
|
2019-02-03 17:10:34 +01:00
|
|
|
|
public Name AuthorFirstName { get; set; }
|
|
|
|
|
|
|
|
|
|
public Name AuthorLastName { get; set; }
|
|
|
|
|
|
2018-06-15 10:16:36 +02:00
|
|
|
|
[Sieve(CanFilter = true, CanSort = true)]
|
|
|
|
|
public DateTimeOffset DateCreated { get; set; } = DateTimeOffset.UtcNow;
|
|
|
|
|
|
2018-11-16 09:08:25 +01:00
|
|
|
|
[Sieve(CanFilter = true)]
|
2018-02-13 23:43:33 +01:00
|
|
|
|
public string Text { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|