Exemple #1
0
 void IEntityEvents.OnPreUnsafeUpdate(IUpdateable update)
 {
     if (PreUnsafeUpdate != null)
     {
         var query = update.EntityQuery <T>();
         foreach (var action in PreUnsafeUpdate.GetInvocationListTyped().Reverse())
         {
             action(update, query);
         }
     }
 }
        IDisposable IEntityEvents.OnPreUnsafeUpdate(IUpdateable update)
        {
            IDisposable result = null;

            if (PreUnsafeUpdate != null)
            {
                var query = update.EntityQuery <T>();
                foreach (var action in PreUnsafeUpdate.GetInvocationListTyped().Reverse())
                {
                    result = Disposable.Combine(result, action(update, query));
                }
            }

            return(result);
        }