diff options
author | Aryadev Chavali <aryadevchavali1@gmail.com> | 2019-02-10 15:30:59 +0000 |
---|---|---|
committer | Aryadev Chavali <aryadevchavali1@gmail.com> | 2019-02-10 15:30:59 +0000 |
commit | 746bb8ec206dded54f525bda5faa429d456adcb6 (patch) | |
tree | 3f2588c766f2fd9be87d020076a6ac0b3e7981be | |
parent | ee0bed2f12c7a98802e1dba7c29cafdafa1bb2fd (diff) | |
download | newsaggregator-746bb8ec206dded54f525bda5faa429d456adcb6.tar.gz newsaggregator-746bb8ec206dded54f525bda5faa429d456adcb6.tar.bz2 newsaggregator-746bb8ec206dded54f525bda5faa429d456adcb6.zip |
Made publish date not incremented, but set by us
-rw-r--r-- | Database/Database.cs | 3 |
1 files changed, 2 insertions, 1 deletions
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") |