Blazor Server connection string to PostgreSQL Using Dapper

Hello dear friends.

I have an issue trying to connect Blazor Server using Dapper to Postgresql.
So, I have the current connection string:

"Server=localhost; Port=5432; Database=Blazor_Users;User Id=postgres; Password=dom.1**;"
(have tried with "Server=127.0.0.1")

but have the next error message on Chrome:
Error: System.ArgumentException: Keyword not supported: 'port'.

So, I have tried with all of the connections asociated to Npgsql on here:
https://www.connectionstrings.com/postgresql/

Thank you in advance,
Carl

0 answers