diff options
author | Aryadev Chavali <aryadevchavali1@gmail.com> | 2019-02-10 15:22:53 +0000 |
---|---|---|
committer | Aryadev Chavali <aryadevchavali1@gmail.com> | 2019-02-10 15:28:21 +0000 |
commit | ee0bed2f12c7a98802e1dba7c29cafdafa1bb2fd (patch) | |
tree | 8c315691b982ca70f0e90217df4880132f82df55 | |
parent | 10877db46cb4c5efa0448ae3218f948bae16303c (diff) | |
download | newsaggregator-ee0bed2f12c7a98802e1dba7c29cafdafa1bb2fd.tar.gz newsaggregator-ee0bed2f12c7a98802e1dba7c29cafdafa1bb2fd.tar.bz2 newsaggregator-ee0bed2f12c7a98802e1dba7c29cafdafa1bb2fd.zip |
Changed database mode to automatically increment id
-rw-r--r-- | Database/Database.cs | 2 |
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") |