I\'m trying to use Npgsql and/or Dapper to query a table and I keep running into Npgsql.PostgresException 42601: syntax error at or near \"$1\".
Npgsql.PostgresException 42601: syntax error at or near \"$1\".
Here is
i got this error using DapperExtensions
adding
DapperExtensions.DapperExtensions.SqlDialect = new PostgreSqlDialect(); DapperAsyncExtensions.SqlDialect = new PostgreSqlDialect();
before creating the connection fixed the issue