Esempio n. 1
0
        public static EntityPackTS GetEntityPack(Entity entity)
        {
            var canExecutes = OperationLogic.ServiceCanExecute(entity);

            var result = new EntityPackTS
            {
                entity     = entity,
                canExecute = canExecutes.ToDictionary(a => a.Key.Key, a => a.Value)
            };

            foreach (var action in EntityPackTS.AddExtension.GetInvocationListTyped())
            {
                action(result);
            }

            return(result);
        }
Esempio n. 2
0
        public static EntityPackTS GetEntityPack(Entity entity)
        {
            var canExecutes = OperationLogic.ServiceCanExecute(entity);

            var result = new EntityPackTS(entity,
                                          canExecutes.ToDictionary(a => a.Key.Key, a => a.Value)
                                          );

            foreach (var action in EntityPackTS.AddExtension.GetInvocationListTyped())
            {
                try
                {
                    action(result);
                }
                catch (Exception) when(StartParameters.IgnoredDatabaseMismatches != null)
                {
                }
            }

            return(result);
        }