在连接字符串上配置参数 persist security info=true;
server=localhost;user=root;password=111111;database=test;persist security info=true;
如果不加,则.NETCore可能会自动把密码部分去除
本文介绍如何在.NETCore中正确配置数据库连接字符串,特别是如何使用persist security info参数确保密码不被移除,以实现安全稳定的数据库连接。
在连接字符串上配置参数 persist security info=true;
server=localhost;user=root;password=111111;database=test;persist security info=true;
如果不加,则.NETCore可能会自动把密码部分去除
1781

被折叠的 条评论
为什么被折叠?
