C# connection string to PostgreSQL Using Dapper

I have a C# application and needs to connect it postgresql using Dapper

My Database name is Tournaments

My connection string is shown below

using (IDbConnection connection = new System.Data.OleDb.OleDbConnection(GlobalConfig.CnnString(db)))

During run I get the error

System.ArgumentException: 'An OLE DB Provider was not specified in the ConnectionString. An example would be, 'Provider=SQLOLEDB;'.'

Why is the provider name i specified not being recognised ?

edit delete
are you sure?
asked Kayode Oluwole

0 answers

Post an answer but please log in first

Post Answer
  1. Please log in to post answer

Similar Questions

Tagsfor this question

Forumall questions