Skip to content

Commit

Permalink
Merge pull request #15162 from abpframework/cli-update-default-conn-s…
Browse files Browse the repository at this point in the history
…tring

Cli:  Update default connections string for SqlServer
  • Loading branch information
malikmasis committed Dec 20, 2022
2 parents 8a40edc + 5f85163 commit 64e7b5a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ protected async Task<ProjectBuildArgs> GetProjectBuildArgsAsync(CommandLineArgs
{
Logger.LogInformation("Preview: yes");

#if !DEBUG
var cliVersion = await CliService.GetCurrentCliVersionAsync(typeof(CliService).Assembly);

if (!cliVersion.IsPrerelease)
Expand All @@ -92,6 +93,7 @@ protected async Task<ProjectBuildArgs> GetProjectBuildArgsAsync(CommandLineArgs
"You can only create a new preview solution with preview CLI version." +
" Update your ABP CLI to the preview version.");
}
#endif
}

var pwa = commandLineArgs.Options.ContainsKey(Options.ProgressiveWebApp.Short);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public string GetByDbms(DatabaseManagementSystem databaseManagementSystem, strin
{
case DatabaseManagementSystem.NotSpecified:
case DatabaseManagementSystem.SQLServer:
return "Server=localhost;Database=MyProjectName;Trusted_Connection=True";
return "Server=localhost;Database=MyProjectName;Trusted_Connection=True;TrustServerCertificate=True";
case DatabaseManagementSystem.MySQL:
return "Server=localhost;Port=3306;Database=MyProjectName;Uid=root;Pwd=myPassword;";
case DatabaseManagementSystem.PostgreSQL:
Expand Down

0 comments on commit 64e7b5a

Please sign in to comment.