Browse Source
Merge pull request #15162 from abpframework/cli-update-default-conn-string
Cli: Update default connections string for SqlServer
pull/15166/head
malik masis
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
3 additions and
1 deletions
-
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/ProjectCreationCommandBase.cs
-
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/Services/ConnectionStringProvider.cs
|
|
|
@ -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: |
|
|
|
|