Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to specify ApplicationName in NpgSql connection string

Is it possible to to specify ApplicationName in NpgSql connection string? The following resource usually helps, but it says nothing in this case: Npgsql connection strings

like image 342
A-K Avatar asked Jun 04 '14 20:06

A-K


2 Answers

ApplicationName works for me - "Server=localhost;Port=5432;User Id=***;Password=***;Database=***;ApplicationName=test".

like image 114
Milen A. Radev Avatar answered Oct 21 '22 15:10

Milen A. Radev


In case there are people who searched for answer to this question, here is the solution: application_name=MyApp will not work for npgsql version 2.2.4.3 (Latest Released 2015-02-05) Change application_name to ApplicationName=MyApp

like image 45
AER 4AF Avatar answered Oct 21 '22 16:10

AER 4AF