protected void OnQueryCommand() { SqlQueryView sql = new SqlQueryView (); sql.Connection = (DbProviderBase) CurrentNode.DataItem; Runtime.Gui.Workbench.ShowView (sql, true); CurrentNode.MoveToParent (); }
protected void OnQueryCommand() { SqlQueryView sql = new SqlQueryView (); TableSchema table = (TableSchema) CurrentNode.DataItem; sql.Connection = table.Provider; sql.Text = String.Format ("SELECT * FROM {0}", table.Name); Runtime.Gui.Workbench.ShowView (sql, true); }
protected void OnQueryCommand() { SqlQueryView sql = new SqlQueryView (); TablesNode node = (TablesNode) CurrentNode.DataItem; sql.Connection = node.Provider; Runtime.Gui.Workbench.ShowView (sql, true); }