diff options
| author | Paweł Bernaciak <pawelbernaciak@zohomail.eu> | 2023-12-29 09:41:56 +0100 |
|---|---|---|
| committer | Paweł Bernaciak <pawelbernaciak@zohomail.eu> | 2023-12-29 09:41:56 +0100 |
| commit | 79f5eaf40b93d64be74d8b4f1ef80d19fadbfbe1 (patch) | |
| tree | ddf121e78bdd50673379b223abfdb448c4f81291 /CoreWiki/Models/ApplicationDbContext.cs | |
| parent | 1a96616699ab41bf6343bc1acc45a836c3e6caf3 (diff) | |
Diffstat (limited to 'CoreWiki/Models/ApplicationDbContext.cs')
| -rw-r--r-- | CoreWiki/Models/ApplicationDbContext.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CoreWiki/Models/ApplicationDbContext.cs b/CoreWiki/Models/ApplicationDbContext.cs index 38c3787..95eb460 100644 --- a/CoreWiki/Models/ApplicationDbContext.cs +++ b/CoreWiki/Models/ApplicationDbContext.cs @@ -15,7 +15,7 @@ public class ApplicationDbContext : DbContext { base.OnModelCreating(modelBuilder); modelBuilder.Entity<Article>().HasData( - new Article { Topic = "Home Page", Slug = "home-page", Content = "Welcome to your new CoreWiki installation" } + new Article { Id = 1, Topic = "Home Page", Slug = "home-page", ViewCount = 0, Content = "Welcome to your new CoreWiki installation" } ); } }
\ No newline at end of file |
