aboutsummaryrefslogtreecommitdiff
path: root/Database
diff options
context:
space:
mode:
authorAryadev Chavali <aryadevchavali1@gmail.com>2019-02-10 15:22:53 +0000
committerAryadev Chavali <aryadevchavali1@gmail.com>2019-02-10 15:28:21 +0000
commitee0bed2f12c7a98802e1dba7c29cafdafa1bb2fd (patch)
tree8c315691b982ca70f0e90217df4880132f82df55 /Database
parent10877db46cb4c5efa0448ae3218f948bae16303c (diff)
downloadnewsaggregator-ee0bed2f12c7a98802e1dba7c29cafdafa1bb2fd.tar.gz
newsaggregator-ee0bed2f12c7a98802e1dba7c29cafdafa1bb2fd.tar.bz2
newsaggregator-ee0bed2f12c7a98802e1dba7c29cafdafa1bb2fd.zip
Changed database mode to automatically increment id
Diffstat (limited to 'Database')
-rw-r--r--Database/Database.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Database/Database.cs b/Database/Database.cs
index 14569aa..7ac722f 100644
--- a/Database/Database.cs
+++ b/Database/Database.cs
@@ -49,7 +49,7 @@ namespace Database {
entity.Property(e => e.ArticleID)
.HasColumnName("article_id")
.HasColumnType("int(11)")
- .ValueGeneratedNever();
+ .ValueGeneratedOnAdd();
entity.Property(e => e.ArticleLink)
.HasColumnName("article_link")