Add database support

This commit is contained in:
jvyden 2021-10-06 12:33:59 -04:00
parent f7c4f09fc7
commit b3532fa57d
No known key found for this signature in database
GPG key ID: 18BCF2BE0262B278
7 changed files with 77 additions and 4 deletions

View file

@ -0,0 +1,12 @@
using System;
using Microsoft.EntityFrameworkCore;
using ProjectLighthouse.Types;
namespace ProjectLighthouse {
public class Database : DbContext {
protected override void OnConfiguring(DbContextOptionsBuilder options) => options.UseMySql(
ServerSettings.DbConnectionString,
MySqlServerVersion.LatestSupportedServerVersion
);
}
}