// // Internal methods and properties // internal void OnNotice(object O, NpgsqlNoticeEventArgs E) { if (Notice != null) { Notice(this, E); } }
// // Internal methods and properties // internal void OnNotice(object o, NpgsqlNoticeEventArgs e) { if (Notice != null) { Notice(this, e); } }
private void Connection_Notice(object sender, NpgsqlNoticeEventArgs e) { EventHandler<DbNotificationArgs> listen = this.Listen; if (listen != null) { DbNotificationArgs args = new DbNotificationArgs { Notice = e.Notice, Message = e.Notice.Message }; listen(this, args); } }
private void Connection_Notice(object sender, NpgsqlNoticeEventArgs e) { var listen = this.Listen; if (listen == null) return; var args = new DbNotificationArgs { Notice = e.Notice, ColumnName = e.Notice.ColumnName }; listen(this, args); }