コード例 #1
0
        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);
        }