private void Filter(IDbCommand dbCmd) { SqlFilter?.Invoke(dbCmd.CommandText); SqlCommandFilter?.Invoke(dbCmd); if (PrintSql) { Console.WriteLine(dbCmd.CommandText); } }