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); }
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); }