From 746bb8ec206dded54f525bda5faa429d456adcb6 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Sun, 10 Feb 2019 15:30:59 +0000 Subject: Made publish date not incremented, but set by us --- Database/Database.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Database') diff --git a/Database/Database.cs b/Database/Database.cs index 7ac722f..9a78988 100644 --- a/Database/Database.cs +++ b/Database/Database.cs @@ -68,7 +68,8 @@ namespace Database { entity.Property(e => e.PublishDate) .HasColumnName("publish_date") - .HasColumnType("date"); + .HasColumnType("date") + .ValueGeneratedNever(); entity.Property(e => e.Source) .HasColumnName("source") -- cgit v1.2.3-13-gbd6f