public static void InitializeSetting() { if (db.HasTable("setting")) { return; } var record = new Setting { RdpOption = new RdpOption(), }; var sql = SqliteAccessor.GetCreateTableSQL("setting", record); db.ExecuteNonQuery(sql); db.ToDictionary(record, out var dic); db.Upsert("setting", dic); }