private void OnStatementAsserted(object sender, StatementEventArgs e) { EnsureStatisticsFor(e.Statement.Subject)[e.Statement.Subject]++; if (_statementsFilter(e.Statement)) { EnsureSetFor(e.Statement.Subject).Add(e.Statement); } var type = _ontologyProvider.GetDomainFor(e.Statement.Predicate); if (type != null) { Assert(e.Statement.Subject, new Statement(e.Statement.Subject, rdf.type, type), e); } if (e.Statement.Object != null) { if (e.Statement.Predicate.ToString().StartsWith(hydra.Namespace)) { _forbiddenHypermedia.Add(e.Statement.Object); } type = _ontologyProvider.GetRangeFor(e.Statement.Predicate); if (type != null) { Assert(e.Statement.Object, new Statement(e.Statement.Object, rdf.type, type), e); } } }
private void OnStatementExecuted(object sender, StatementEventArgs args) { ExceptionMessageBox emb = new ExceptionMessageBox(); emb.Text = args.SqlStatement; emb.Show(this); }
private void ServerStatementExecuted(object sender, StatementEventArgs e) { String sTmp = (e.ToString()).Replace("\n", Environment.NewLine); EventLogTextBox.AppendText(Properties.Resources.SqlStatementExecuted + sTmp + Environment.NewLine); }
private void Assert(Iri owner, Statement statement, StatementEventArgs e) { e.AdditionalStatementsToAssert.Add(statement); if (_statementsFilter(statement)) { EnsureSetFor(owner).Add(statement); } }
protected virtual void OnStatementMade(StatementEventArgs e) { var handler = this.StatementMade; if (handler != null) { handler(this, e); } }
private void OnStatementExecuted(object sender, StatementEventArgs args) { Log(args.SqlStatement); }
private void ServerConnection_StatementExecuted(object sender, StatementEventArgs e) { QueryCount++; }
private void ServerStatementExecuted(object sender, StatementEventArgs e) { String sTmp = (e.ToString()).Replace("\n", Environment.NewLine); EventLogTextBox.AppendText(Properties.Resources.SqlStatementExecuted + sTmp + Environment.NewLine); }
private void OnStatementExecuted(object sender, StatementEventArgs args) { ExceptionMessageBox emb = new ExceptionMessageBox(); emb.Text = args.SqlStatement; emb.Show(this); }
private void OnStatementExecuted(object sender, StatementEventArgs args) { MessageBox.Show(this, args.SqlStatement); }