From ee0bed2f12c7a98802e1dba7c29cafdafa1bb2fd Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Sun, 10 Feb 2019 15:22:53 +0000 Subject: Changed database mode to automatically increment id --- Database/Database.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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") -- cgit v1.2.3-13-gbd6f