Set up Nullable Test

This commit is contained in:
Matt Furden
2018-05-27 18:32:21 -07:00
parent 930f86da01
commit 26d9b09bf7
5 changed files with 35 additions and 8 deletions

View File

@@ -1,4 +1,4 @@
using System;
using System;
using System.ComponentModel.DataAnnotations.Schema;
using Sieve.Attributes;
@@ -14,6 +14,7 @@ namespace SieveTests.Entities
[Sieve(CanFilter = true, CanSort = true)]
public int LikeCount { get; set; } = new Random().Next(0, 1000);
[Sieve(CanFilter = true, CanSort = true)]
public int CommentCount { get; set; } = new Random().Next(0, 1000);
@@ -23,5 +24,8 @@ namespace SieveTests.Entities
[Sieve(CanFilter = true, CanSort = true)]
[Column(TypeName = "datetime")]
public DateTime DateLastViewed { get; set; } = DateTime.UtcNow;
[Sieve(CanFilter = true, CanSort = true)]
public int? CategoryId { get; set; } = new Random().Next(0, 4);
}
}