diff --git a/I18N Commander/DataModel/Database/Common/DataContext.cs b/I18N Commander/DataModel/Database/Common/DataContext.cs index 56284ab..e63c80d 100644 --- a/I18N Commander/DataModel/Database/Common/DataContext.cs +++ b/I18N Commander/DataModel/Database/Common/DataContext.cs @@ -69,10 +69,10 @@ public sealed class DataContext : DbContext, IDataContext #region Export and import private readonly record struct JsonData( - IEnumerable Settings, - IEnumerable Sections, - IEnumerable TextElements, - IEnumerable Translations + IList Settings, + IList Sections, + IList TextElements, + IList Translations ); /// @@ -160,10 +160,10 @@ public sealed class DataContext : DbContext, IDataContext await JsonSerializer.SerializeAsync(fileStream, new JsonData { - Settings = this.Settings.Select(n => n.ToJsonSetting()), - Sections = this.Sections.Select(n => n.ToJsonSection()), - TextElements = this.TextElements.Select(n => n.ToJsonTextElement()), - Translations = this.Translations.Select(n => n.ToJsonTranslation()), + Settings = this.Settings.Select(n => n.ToJsonSetting()).ToList(), + Sections = this.Sections.Select(n => n.ToJsonSection()).ToList(), + TextElements = this.TextElements.Select(n => n.ToJsonTextElement()).ToList(), + Translations = this.Translations.Select(n => n.ToJsonTranslation()).ToList(), }, jsonSettings); }