Esempio n. 1
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)
                                      );

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

        return(result);
    }
Esempio n. 2
0
 public EntityPackWithIssues(EntityPackTS entityPack, List <WorkflowIssue> issues)
 {
     this.entityPack = entityPack;
     this.issues     = issues;
 }