Moved export code into region
This commit is contained in:
parent
cdffce9bbd
commit
7676bea101
@ -66,7 +66,7 @@ public sealed class DataContext : DbContext, IDataContext
|
||||
#endregion
|
||||
}
|
||||
|
||||
#region Export and import data structures
|
||||
#region Export and import
|
||||
|
||||
private readonly record struct JsonData(
|
||||
IEnumerable<JsonSetting> Settings,
|
||||
@ -137,8 +137,6 @@ public sealed class DataContext : DbContext, IDataContext
|
||||
bool TranslateManual,
|
||||
JsonUniqueId TextElementUniqueId
|
||||
);
|
||||
|
||||
#endregion
|
||||
|
||||
public async Task ExportAsync(string path)
|
||||
{
|
||||
@ -158,4 +156,6 @@ public sealed class DataContext : DbContext, IDataContext
|
||||
Translations = this.Translations.Select(n => n.ToJsonTranslation()),
|
||||
}, jsonSettings);
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
Loading…
Reference in New Issue
Block a user