Added DateTime field to integration test entity, to enable testing on DateTime filtering

This commit is contained in:
Daniel Macko
2018-05-24 09:19:36 +10:00
parent afbd41e090
commit 56cdb2bf6e
4 changed files with 81 additions and 0 deletions

View File

@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Threading.Tasks;
using Sieve.Attributes;
@@ -21,5 +22,9 @@ namespace SieveTests.Entities
[Sieve(CanFilter = true, CanSort = true)]
public DateTimeOffset DateCreated { get; set; } = DateTimeOffset.UtcNow;
[Sieve(CanFilter = true, CanSort = true)]
[Column(TypeName = "datetime")]
public DateTime DateLastViewed { get; set; } = DateTime.UtcNow;
}
}