mirror of
https://github.com/Biarity/Sieve.git
synced 2025-07-27 12:43:13 +02:00
Added DateTime field to integration test entity, to enable testing on DateTime filtering
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user