Apply review suggestion and fix entity concurrency tokens.
This commit is contained in:
parent
edbb1482e8
commit
585fdbad39
|
@ -81,6 +81,7 @@ namespace Jellyfin.Server.Implementations
|
||||||
{
|
{
|
||||||
foreach (var saveEntity in ChangeTracker.Entries()
|
foreach (var saveEntity in ChangeTracker.Entries()
|
||||||
.Where(e => e.State == EntityState.Modified)
|
.Where(e => e.State == EntityState.Modified)
|
||||||
|
.Select(entry => entry.Entity)
|
||||||
.OfType<ISavingChanges>())
|
.OfType<ISavingChanges>())
|
||||||
{
|
{
|
||||||
saveEntity.OnSavingChanges();
|
saveEntity.OnSavingChanges();
|
||||||
|
|
|
@ -84,8 +84,11 @@ namespace Jellyfin.Server
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
protected override IEnumerable<Assembly> GetAssembliesWithPartsInternal()
|
protected override IEnumerable<Assembly> GetAssembliesWithPartsInternal()
|
||||||
{
|
{
|
||||||
|
// Jellyfin.Server
|
||||||
yield return typeof(CoreAppHost).Assembly;
|
yield return typeof(CoreAppHost).Assembly;
|
||||||
yield return Assembly.Load("Jellyfin.Server.Implementations");
|
|
||||||
|
// Jellyfin.Server.Implementations
|
||||||
|
yield return typeof(JellyfinDb).Assembly;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
|
|
Loading…
Reference in New Issue
Block a user