aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAryadev Chavali <aryadevchavali1@gmail.com>2019-02-10 18:27:00 +0000
committerAryadev Chavali <aryadevchavali1@gmail.com>2019-02-10 18:27:00 +0000
commit79cc7ff3e5cfa0c34f75586fe6cfe1c09265ada5 (patch)
tree3853b4dfb66e366be031f57efb18d79dc4f2c2dc
parent0f9f11490cbf9ab741b7e0298985aa8b624e6f98 (diff)
downloadnewsaggregator-79cc7ff3e5cfa0c34f75586fe6cfe1c09265ada5.tar.gz
newsaggregator-79cc7ff3e5cfa0c34f75586fe6cfe1c09265ada5.tar.bz2
newsaggregator-79cc7ff3e5cfa0c34f75586fe6cfe1c09265ada5.zip
Removed reference from model
-rw-r--r--Database/Database.cs36
1 files changed, 0 insertions, 36 deletions
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<Article> Articles { get; set; }
- public virtual DbSet<Config> Configs { get; set; }
public async Task InsertArticles(IEnumerable<Article> articles) {
foreach (Article article in articles) {
@@ -83,41 +82,6 @@ namespace Database {
.HasMaxLength(255)
.IsUnicode(false);
});
-
- modelBuilder.Entity<Config>(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)");
- });
}
}
}