示例#1
0
            public virtual object Execute(CommandContext commandContext)
            {
                var            dbEntityManager      = commandContext.PropertyManager;
                PropertyEntity historyLevelProperty = dbEntityManager.Get("historyLevel");

                if (historyLevelProperty != null)
                {
                    if (_processEngineConfiguration.HistoryLevel.Id != new int?(Convert.ToInt32(historyLevelProperty.Value)))
                    {
                        historyLevelProperty.Value = Convert.ToString(_processEngineConfiguration.HistoryLevel.Id);
                        dbEntityManager.Update(historyLevelProperty);
                    }
                }
                else
                {
                    SchemaOperationsProcessEngineBuild.DbCreateHistoryLevel(commandContext);
                }
                return(null);
            }
 public int?Execute(CommandContext commandContext)
 {
     return(SchemaOperationsProcessEngineBuild.DatabaseHistoryLevel(commandContext));
 }