Merge pull request #15162 from abpframework/cli-update-default-conn-string

Cli:  Update default connections string for SqlServer
pull/15166/head
malik masis 3 years ago committed by GitHub
commit 64e7b5a88e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -84,6 +84,7 @@ public abstract class ProjectCreationCommandBase
{
Logger.LogInformation("Preview: yes");
#if !DEBUG
var cliVersion = await CliService.GetCurrentCliVersionAsync(typeof(CliService).Assembly);
if (!cliVersion.IsPrerelease)
@ -92,6 +93,7 @@ public abstract class ProjectCreationCommandBase
"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);

@ -13,7 +13,7 @@ public class ConnectionStringProvider : ITransientDependency
{
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:

Loading…
Cancel
Save