private static void CommitDeleted(SqlDatabaseContext sqlDatabaseContext, IObjectsByIdCache cache, HashSet <DatabaseTransactionContextAcquisition> acquisitions, TransactionContext transactionContext)
        {
            var acquisition = transactionContext.AcquirePersistenceTransactionContext(sqlDatabaseContext);

            acquisitions.Add(acquisition);

            acquisition.SqlDatabaseCommandsContext.Delete(cache.Type, cache.GetDeletedObjects());
        }
 private static void CommitDeleted(SqlTransactionalCommandsContext commandsContext, IObjectsByIdCache cache)
 {
     commandsContext.Delete(cache.Type, cache.GetDeletedObjects());
 }