aboutsummaryrefslogtreecommitdiff
path: root/Database/Database.cs
blob: f687efd2faa5ad7d7ad78804756232bbf8bbd81a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
using System;
using Classes;
using Microsoft.EntityFrameworkCore;
using MySql.Data.EntityFrameworkCore;

namespace Database {
    public class Database: DbContext {
        public DbSet<Article> Articles;
        public DbSet<Config> Configs;

        protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) {
            // optionsBuilder.UseMySQL("server=localhost;uid")
        }
    }
}