diff options
author | Aryadev Chavali <aryadevchavali1@gmail.com> | 2019-02-04 11:53:50 +0000 |
---|---|---|
committer | Aryadev Chavali <aryadevchavali1@gmail.com> | 2019-02-04 11:53:50 +0000 |
commit | 7260566b63680a6b18f51c27469c9156843d093a (patch) | |
tree | 54f6e60c3c90f05c87f8d7a1f95c5fee5e14e65e /Database | |
parent | ff609bceb2fe896ba81e7f2c80a62c627d54af8c (diff) | |
download | newsaggregator-7260566b63680a6b18f51c27469c9156843d093a.tar.gz newsaggregator-7260566b63680a6b18f51c27469c9156843d093a.tar.bz2 newsaggregator-7260566b63680a6b18f51c27469c9156843d093a.zip |
Implemented basic tables in entity framework
Diffstat (limited to 'Database')
-rw-r--r-- | Database/Database.cs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Database/Database.cs b/Database/Database.cs index f69028c..414162f 100644 --- a/Database/Database.cs +++ b/Database/Database.cs @@ -1,9 +1,11 @@ using System;
+using Classes;
using Microsoft.EntityFrameworkCore;
using MySql.Data.EntityFrameworkCore;
namespace Database {
- public class Database {
-
+ public class Database: DbContext {
+ public DbSet<Article> Articles;
+ public DbSet<Config> Configs;
}
}
|