1. <track id="rjhaa"><strike id="rjhaa"></strike></track>

        <p id="rjhaa"><strong id="rjhaa"><small id="rjhaa"></small></strong></p>

        <object id="rjhaa"></object>
        <acronym id="rjhaa"><strong id="rjhaa"><address id="rjhaa"></address></strong></acronym>
        <td id="rjhaa"></td>
        <table id="rjhaa"><ruby id="rjhaa"></ruby></table>

        <acronym id="rjhaa"></acronym><object id="rjhaa"></object>

        A connection was successfully established with the server

        but then an error occurred during the login process



        數據庫學習 【2023-08-07 15:54】


        Microsoft Visual Studio 2022

        Asp.net core mvc 

        DataBase first


        用Scaffold-DbContext生成model時出錯:


        Microsoft.Data.SqlClient.SqlException (0x80131904): A connection was successfully established with the server, but then an error occurred during the login process. (provider: SSL Provider, error: 0 - The certificate chain was issued by an authority that is not trusted.

        06JNT(TZ13P96LHU9DV(XTN.png

        改字符串連接:

        加(Encrypt=True;TrustServerCertificate=True;)即可:


        Scaffold-DbContext  "Data Source=DBServer;Initial Catalog=DB1;User ID=sa;Password=1234;Encrypt=True;TrustServerCertificate=True;" Microsoft.EntityFrameworkCore.SqlServer -OutputDir Models 



        友情鏈接:
        SQL數據庫修復專家
        • 關注微博
          聯系QQ
        • 二維碼
        • 掃一掃加關注

        ——信陽市速全網絡科技有限公司——

        版權所有:信陽市速全網絡科技有限公司

        豫ICP備19030104號-2

        人妻AⅤ在线精品_国产AV永久无码精品_精品人妻少妇嫩草AV无码专区_精品亚洲A∨在线播放不卡