Changed to IList<>

This commit is contained in:
Thorsten Sommer 2023-01-18 20:00:25 +01:00
parent f7186fd3cc
commit 25b822aaed
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108

View File

@ -69,10 +69,10 @@ public sealed class DataContext : DbContext, IDataContext
#region Export and import #region Export and import
private readonly record struct JsonData( private readonly record struct JsonData(
IEnumerable<JsonSetting> Settings, IList<JsonSetting> Settings,
IEnumerable<JsonSection> Sections, IList<JsonSection> Sections,
IEnumerable<JsonTextElement> TextElements, IList<JsonTextElement> TextElements,
IEnumerable<JsonTranslation> Translations IList<JsonTranslation> Translations
); );
/// <summary> /// <summary>
@ -160,10 +160,10 @@ public sealed class DataContext : DbContext, IDataContext
await JsonSerializer.SerializeAsync(fileStream, await JsonSerializer.SerializeAsync(fileStream,
new JsonData new JsonData
{ {
Settings = this.Settings.Select(n => n.ToJsonSetting()), Settings = this.Settings.Select(n => n.ToJsonSetting()).ToList(),
Sections = this.Sections.Select(n => n.ToJsonSection()), Sections = this.Sections.Select(n => n.ToJsonSection()).ToList(),
TextElements = this.TextElements.Select(n => n.ToJsonTextElement()), TextElements = this.TextElements.Select(n => n.ToJsonTextElement()).ToList(),
Translations = this.Translations.Select(n => n.ToJsonTranslation()), Translations = this.Translations.Select(n => n.ToJsonTranslation()).ToList(),
}, jsonSettings); }, jsonSettings);
} }