如何NpgSql连接字符串中指定应用程序名称 [英] How to specify ApplicationName in NpgSql connection string
本文介绍了如何NpgSql连接字符串中指定应用程序名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否有可能在NpgSql连接字符串中指定应用程序名称?下面的资源通常会有所帮助,但它没有说什么在这种情况下: Npgsql连接字符串
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
推荐答案
应用程序名
对我的作品 - 服务器=本地主机,端口= 5432;用户ID = ***;密码= ***;数据库= ***;应用程序名称=测试
ApplicationName
works for me - "Server=localhost;Port=5432;User Id=***;Password=***;Database=***;ApplicationName=test"
.
这篇关于如何NpgSql连接字符串中指定应用程序名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文