How to specify ApplicationName in NpgSql connection string

梦想与她 提交于 2020-01-03 17:15:14

问题


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


回答1:


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




回答2:


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



来源:https://stackoverflow.com/questions/24046578/how-to-specify-applicationname-in-npgsql-connection-string

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!