Add a new field

This commit is contained in:
Somebody
2024-08-08 15:18:29 +08:00
parent a36dc152a4
commit fe7c51c996

View File

@@ -10,6 +10,8 @@ public class ServerPrefsData : BaseDatabaseDataHelper
[SugarColumn(IsJson = true)]
public Dictionary<int, ServerPrefsInfo> ServerPrefsDict { get; set; } = [];
public double Version { get; set; } = 2.4;
public void SetData(int prefsId, string b64Data)
{
ServerPrefsDict[prefsId] = new ServerPrefsInfo()