从 asp.net core 应用程序连接 postgresql 时出现以下错误。
System.ArgumentException: 'Keyword not supported: 'host'.'
连接字符串:
"DefaultConnection": "Host=localhost;Database=MyDB;Username=postgres;Password=pwd; Pooling=true"
最佳答案
创建一个小型控制台应用程序并使用 NpgSql 尝试使用相同的连接字符串进行连接。
添加 npgsql package from nuget并尝试这里的“入门”片段 npgsql getting started使用你的 conn 字符串
关于postgresql - 系统参数异常 : 'Keyword not supported: ' host'. ',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53296789/