mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-06-01 13:42:28 +00:00
Add database support
This commit is contained in:
parent
f7c4f09fc7
commit
b3532fa57d
7 changed files with 77 additions and 4 deletions
12
ProjectLighthouse/Database.cs
Normal file
12
ProjectLighthouse/Database.cs
Normal 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
|
||||
);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue