Revert change to overridden save method on key value repository.

This commit is contained in:
Andy Butland
2020-03-28 15:20:17 +01:00
parent 8958cf90b9
commit 5a29365063
2 changed files with 13 additions and 1 deletions

View File

@@ -18,6 +18,18 @@ namespace Umbraco.Core.Persistence.Repositories.Implement
: base(scopeAccessor, AppCaches.NoCache, logger)
{ }
#region Overrides of IReadWriteQueryRepository<string, IKeyValue>
public override void Save(IKeyValue entity)
{
if (Get(entity.Identifier) == null)
PersistNewItem(entity);
else
PersistUpdatedItem(entity);
}
#endregion
#region Overrides of NPocoRepositoryBase<string, IKeyValue>
protected override Guid NodeObjectTypeId => throw new NotSupportedException();