From 79cc7ff3e5cfa0c34f75586fe6cfe1c09265ada5 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Sun, 10 Feb 2019 18:27:00 +0000 Subject: Removed reference from model --- Database/Database.cs | 36 ------------------------------------ 1 file changed, 36 deletions(-) (limited to 'Database/Database.cs') diff --git a/Database/Database.cs b/Database/Database.cs index e419aab..035fe84 100644 --- a/Database/Database.cs +++ b/Database/Database.cs @@ -21,7 +21,6 @@ namespace Database { } public virtual DbSet
Articles { get; set; } - public virtual DbSet Configs { get; set; } public async Task InsertArticles(IEnumerable
articles) { foreach (Article article in articles) { @@ -83,41 +82,6 @@ namespace Database { .HasMaxLength(255) .IsUnicode(false); }); - - modelBuilder.Entity(entity => { - entity.HasKey(e => e.ConfigID); - - entity.ToTable("configs", "news_aggregator"); - - entity.Property(e => e.ConfigID) - .HasColumnName("config_id") - .HasColumnType("int(11)") - .ValueGeneratedNever(); - - entity.Property(e => e.ArticleLink) - .HasColumnName("article_link") - .HasColumnType("int(11)"); - - entity.Property(e => e.Description) - .HasColumnName("description") - .HasColumnType("int(11)"); - - entity.Property(e => e.ImageLink) - .HasColumnName("image_link") - .HasColumnType("int(11)"); - - entity.Property(e => e.PublishDate) - .HasColumnName("publish_date") - .HasColumnType("int(11)"); - - entity.Property(e => e.Source) - .HasMaxLength(20) - .IsUnicode(false); - - entity.Property(e => e.Title) - .HasColumnName("title") - .HasColumnType("int(11)"); - }); } } } -- cgit v1.2.3-13-gbd6f