From 79d8deb83726c5c2c70b6d9e83687bbe4f8e31d8 Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Mon, 2 Jan 2023 20:56:06 +0100 Subject: [PATCH] Added method for starting the import process. --- I18N Commander/DataModel/Database/Common/DataContext.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/I18N Commander/DataModel/Database/Common/DataContext.cs b/I18N Commander/DataModel/Database/Common/DataContext.cs index 8d9bac5..b332add 100644 --- a/I18N Commander/DataModel/Database/Common/DataContext.cs +++ b/I18N Commander/DataModel/Database/Common/DataContext.cs @@ -157,5 +157,12 @@ public sealed class DataContext : DbContext, IDataContext }, jsonSettings); } + public static async Task ImportAndLoadAsync(string path) + { + // We import that JSON data file into an new, empty database file + // at a temporary location. Next, we enable the auto export feature + // to keep the source file up-to-date. + } + #endregion } \ No newline at end of file