public ToolTipSchema(OracleSchemaModel dataModel) { InitializeComponent(); DataContext = dataModel; var objectType = String.Equals(dataModel.Schema.Name, OracleObjectIdentifier.SchemaPublic) ? "Schema" : "User/schema"; IsExtractDdlVisible = !dataModel.Schema.Name.In(OracleObjectIdentifier.SchemaPublic, OracleObjectIdentifier.SchemaSys, OracleObjectIdentifier.SchemaSystem); LabelTitle.Text = $"{dataModel.Schema.Name.ToSimpleIdentifier()} ({objectType})"; }
private void BuildSchemaTooltip(OracleDatabaseModelBase databaseModel) { if (!databaseModel.AllSchemas.TryGetValue(_terminal.Token.Value.ToQuotedIdentifier(), out OracleSchema schema)) { return; } var dataModel = new OracleSchemaModel { Schema = schema }; databaseModel.UpdateUserDetailsAsync(dataModel, CancellationToken.None); ToolTip = new ToolTipSchema(dataModel) { ScriptExtractor = databaseModel.ObjectScriptExtractor }; }