mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 00:09:55 +09:00
Remove PreUpdate, update hash in Save()
This commit is contained in:
@ -429,21 +429,10 @@ namespace osu.Game.Database
|
||||
using (ContextFactory.GetForWrite())
|
||||
{
|
||||
item.Hash = computeHash(item);
|
||||
|
||||
PreUpdate(item);
|
||||
|
||||
ModelStore.Update(item);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Perform any final actions before the update to database executes.
|
||||
/// </summary>
|
||||
/// <param name="item">The <typeparamref name="TModel"/> that is being updated.</param>
|
||||
protected virtual void PreUpdate(TModel item)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Delete an item from the manager.
|
||||
/// Is a no-op for already deleted items.
|
||||
|
Reference in New Issue
Block a user