Example #1
0
        public void Execute(IExecutable executable)
        {
            bool lockQueryCache = session.Factory.Settings.IsQueryCacheEnabled;

            if (executable.HasAfterTransactionCompletion() || lockQueryCache)
            {
                executions.Add(executable);
            }
            if (lockQueryCache)
            {
                session.Factory.UpdateTimestampsCache.PreInvalidate(executable.PropertySpaces);
            }
            executable.Execute();
        }
Example #2
0
 public void Execute(IExecutable executable)
 {
     bool lockQueryCache = session.Factory.Settings.IsQueryCacheEnabled;
     if (executable.HasAfterTransactionCompletion() || lockQueryCache)
     {
         executions.Add(executable);
     }
     if (lockQueryCache)
     {
         session.Factory.UpdateTimestampsCache.PreInvalidate(executable.PropertySpaces);
     }
     executable.Execute();
 }