private static void CommitUpdated(SqlDatabaseContext sqlDatabaseContext, IObjectsByIdCache cache, HashSet <DatabaseTransactionContextAcquisition> acquisitions, TransactionContext transactionContext) { var acquisition = transactionContext.AcquirePersistenceTransactionContext(sqlDatabaseContext); acquisitions.Add(acquisition); acquisition.SqlDatabaseCommandsContext.Update(cache.Type, cache.GetObjectsById()); acquisition.SqlDatabaseCommandsContext.Update(cache.Type, cache.GetObjectsByPredicate()); }
private static void CommitUpdated(SqlTransactionalCommandsContext commandsContext, IObjectsByIdCache cache) { commandsContext.Update(cache.Type, cache.GetObjectsById()); commandsContext.Update(cache.Type, cache.GetObjectsByPredicate()); }