public static void StartDatabase() { var databaseName = Parameter.AntdCfgDatabaseName; var databasePaths = new[] { ApplicationSetting.DatabasePath() }; foreach (var dbPath in databasePaths) { Terminal.Execute($"mkdir -p {dbPath}"); Terminal.Execute($"mkdir -p {dbPath}/{databaseName}"); Directory.CreateDirectory(dbPath); Directory.CreateDirectory($"{dbPath}/{databaseName}"); } DeNSo.Configuration.BasePath = databasePaths; DeNSo.Configuration.EnableJournaling = true; DeNSo.Configuration.EnableDataCompression = false; DeNSo.Configuration.ReindexCheck = new TimeSpan(0, 1, 0); DeNSo.Configuration.EnableOperationsLog = false; DeNSo.Session.DefaultDataBase = databaseName; DeNSo.Session.Start(); var y = databasePaths.Length > 1 ? "ies" : "y"; ConsoleLogger.Log($"database director{y}: {string.Join(", ", databasePaths)}"); ConsoleLogger.Log("database ready"); }