Microsoft Visual Studio

Microsoft .NET EntityFramework Core

データベースの定義を Visual Studio に取り込む

dotnet ef dbcontext scaffold "Server=test-sv01;Database=test_db;persist security info=True;user id=sa;password=P@ssword;MultipleActiveResultSets=True;TrustServerCertificate=true" Microsoft.EntityFrameworkCore.SqlServer -o Models -f

A connection was successfully established with the server, but then an error occurred during the login process. (provider: SSL Provider, error: 0 - 信頼されていない機関によって証明書チェーンが発行されました。)

dotnet ef dbcontext scaffold "Server=test-sv01;Database=test_db;persist security info=True;user id=sa;password=P@ssword;MultipleActiveResultSets=True;TrustServerCertificate=true" Microsoft.EntityFrameworkCore.SqlServer -o Models -f

 

-Microsoft Visual Studio