public class Database
{
private const string file = "database.db";
public static SQLiteConnection Connection { get; private set; }
static Database()
{
var path = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Personal), file);
Connection = new(path);
Log.Info(nameof(Database), "已连接数据库");
}
}