We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d56bf4a commit 4b7b94aCopy full SHA for 4b7b94a
MsSql.ClassGenerator/Ui/ViewModel/MainWindowViewModel.cs
@@ -412,9 +412,7 @@ private async Task SelectAsync()
412
await _tableManager.LoadTablesAsync();
413
414
// Set the tables
415
- _originTables = _tableManager.Tables
416
- .Select(s => new TableColumnDto(s))
417
- .OrderBy(o => o.Name).ToList();
+ _originTables = [.._tableManager.Tables.Select(s => new TableColumnDto(s)).OrderBy(o => o.Name)];
418
419
FilterTables();
420
@@ -488,7 +486,7 @@ private async Task EditConnectionAsync()
488
486
try
489
487
{
490
// Update the server list
491
- await SettingsManager.SaveServerListAsync(ServerList.ToList());
+ await SettingsManager.SaveServerListAsync([..ServerList]);
492
}
493
catch (Exception ex)
494
0 commit comments