aboutsummaryrefslogtreecommitdiff
path: root/Database
diff options
context:
space:
mode:
Diffstat (limited to 'Database')
-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)");
- });
}
}
}