Changed to IList<>
This commit is contained in:
		
							parent
							
								
									f7186fd3cc
								
							
						
					
					
						commit
						25b822aaed
					
				@ -69,10 +69,10 @@ public sealed class DataContext : DbContext, IDataContext
 | 
			
		||||
    #region Export and import
 | 
			
		||||
 | 
			
		||||
    private readonly record struct JsonData(
 | 
			
		||||
        IEnumerable<JsonSetting> Settings,
 | 
			
		||||
        IEnumerable<JsonSection> Sections,
 | 
			
		||||
        IEnumerable<JsonTextElement> TextElements,
 | 
			
		||||
        IEnumerable<JsonTranslation> Translations
 | 
			
		||||
        IList<JsonSetting> Settings,
 | 
			
		||||
        IList<JsonSection> Sections,
 | 
			
		||||
        IList<JsonTextElement> TextElements,
 | 
			
		||||
        IList<JsonTranslation> Translations
 | 
			
		||||
    );
 | 
			
		||||
 | 
			
		||||
    /// <summary>
 | 
			
		||||
@ -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);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user