From 25b822aaed5ba8d77e12bd253b21b9722eacd5df Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Wed, 18 Jan 2023 20:00:25 +0100 Subject: [PATCH] Changed to IList<> --- .../DataModel/Database/Common/DataContext.cs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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); }