Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

passwd异常 #28

Open
s1g0day opened this issue Apr 19, 2024 · 0 comments
Open

passwd异常 #28

s1g0day opened this issue Apr 19, 2024 · 0 comments

Comments

@s1g0day
Copy link

s1g0day commented Apr 19, 2024

如果passwd 内存在双引号 " 就会连接失败

原因是Program.cs中使用字符串的方式传入数据库信息,特殊字符可能会干扰连接字符串的语法

可以用 SqlConnectionStringBuilder 类来构建连接字符串

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant