mirror of
https://github.com/osukey/osukey.git
synced 2025-08-08 00:53:56 +09:00
Add PostImport
method matching PreImport
This commit is contained in:
@ -338,6 +338,8 @@ namespace osu.Game.Database
|
|||||||
transaction.Commit();
|
transaction.Commit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
PostImport(item, realm);
|
||||||
|
|
||||||
LogForModel(item, @"Import successfully completed!");
|
LogForModel(item, @"Import successfully completed!");
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
@ -473,6 +475,15 @@ namespace osu.Game.Database
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Perform any final actions after the import has been committed to the database.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="model">The model prepared for import.</param>
|
||||||
|
/// <param name="realm">The current realm context.</param>
|
||||||
|
protected virtual void PostImport(TModel model, Realm realm)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Check whether an existing model already exists for a new import item.
|
/// Check whether an existing model already exists for a new import item.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
Reference in New Issue
Block a user