예제 #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();
        }
예제 #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();
 }