EF Core DbFirst 报错A connection was successfully established with the server, but then an error occurred during the login process. (provider: SSL Provider, error: 0 - 证书链是由不受信任的颁发机构颁发的。)
连接字符串里面加上:Encrypt=True;TrustServerCertificate=True
参考: "Password=225225;Persist Security Info=True;User ID=sa;Initial Catalog=MyProject;Data Source=.;Encrypt=True;TrustServerCertificate=True"
本文来自博客园,作者:大侠爱吃小龙虾,转载请注明原文链接:https://www.cnblogs.com/Warm-Braw/p/17408507.html