A connection was successfully established with the server, but then an error occurred during the log

报错:A connection was successfully established with the server, but then an error occurred during the login process. (provider: SSL Provider, error: 0 - 证书链是由不受信任的颁发机构颁发的。)

在数据库连接字符串加上:TrustServerCertificate=True

你可能感兴趣的:(bug,efcore,数据库,服务器)