mirror of
https://github.com/claunia/romrepomgr.git
synced 2025-12-16 11:14:45 +00:00
[Refactor] Use expression bodied lambda
This commit is contained in:
@@ -196,6 +196,6 @@ public sealed class Context(DbContextOptions options) : DbContext(options)
|
||||
entity.HasOne(e => e.Media).WithMany(e => e.Machines).OnDelete(DeleteBehavior.Cascade);
|
||||
});
|
||||
|
||||
modelBuilder.Entity<RomSetStat>(entity => { entity.HasOne(e => e.RomSet).WithOne(e => e.Statistics); });
|
||||
modelBuilder.Entity<RomSetStat>(entity => entity.HasOne(e => e.RomSet).WithOne(e => e.Statistics));
|
||||
}
|
||||
}
|
||||
@@ -127,7 +127,7 @@ public sealed class UpdateStatsViewModel : ViewModelBase
|
||||
|
||||
long romSetCount = ctx.RomSets.LongCount();
|
||||
|
||||
Dispatcher.UIThread.Post(() => { StatusMessage = Localization.RemovingOldStatistics; });
|
||||
Dispatcher.UIThread.Post(() => StatusMessage = Localization.RemovingOldStatistics);
|
||||
|
||||
ctx.Database.ExecuteSql($"DELETE FROM \"RomSetStats\"");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user