protected void OnUpdateAlterProcedure(CommandInfo info) { BaseNode node = (BaseNode)CurrentNode.DataItem; //info.Enabled = node.ConnectionContext.DbFactory.IsActionSupported ("Procedure", SchemaActions.Alter); }
protected void OnUpdateCreateProcedure(CommandInfo info) { BaseNode node = (BaseNode)CurrentNode.DataItem; info.Enabled = node.ConnectionContext.SchemaProvider.IsSchemaActionSupported(SchemaType.Procedure, SchemaActions.Create); }
protected void OnUpdateRenameView(CommandInfo info) { BaseNode node = (BaseNode)CurrentNode.DataItem; info.Enabled = node.ConnectionContext.DbFactory.IsActionSupported("View", SchemaActions.Rename); }
protected void OnRefresh() { BaseNode node = CurrentNode.DataItem as BaseNode; node.Refresh(); }
protected void OnUpdateAlterView(CommandInfo info) { BaseNode node = (BaseNode)CurrentNode.DataItem; info.Enabled = node.ConnectionContext.SchemaProvider.IsSchemaActionSupported(SchemaType.View, SchemaActions.Alter); }
protected void OnUpdateRenameTable(CommandInfo info) { BaseNode node = (BaseNode)CurrentNode.DataItem; info.Enabled = node.ConnectionContext.SchemaProvider.IsSchemaActionSupported(SQL.SchemaType.Table, SchemaActions.Rename); }