Browse Source
Merge pull request #11018 from abpframework/liangshiwei/patch-1
Add comment when outputFolder is null
pull/11026/head
Engincan VESKE
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
4 additions and
2 deletions
-
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/Services/ConnectionStringProvider.cs
|
|
|
@ -1,4 +1,5 @@ |
|
|
|
using System.IO; |
|
|
|
using System; |
|
|
|
using System.IO; |
|
|
|
using Volo.Abp.Cli.ProjectBuilding.Building; |
|
|
|
using Volo.Abp.DependencyInjection; |
|
|
|
|
|
|
|
@ -21,7 +22,8 @@ namespace Volo.Abp.Cli.Commands.Services |
|
|
|
case DatabaseManagementSystem.OracleDevart: |
|
|
|
return "Data Source=MyProjectName;Integrated Security=yes;"; |
|
|
|
case DatabaseManagementSystem.SQLite: |
|
|
|
return $"Data Source={Path.Combine(outputFolder, "MyProjectName.db")};".Replace("\\", "\\\\"); |
|
|
|
var comment = outputFolder.IsNullOrWhiteSpace() ? "//You need to change to an absolute filename" : string.Empty; |
|
|
|
return $"Data Source={Path.Combine(outputFolder, "MyProjectName.db")};".Replace("\\", "\\\\") + comment; |
|
|
|
default: |
|
|
|
return null; |
|
|
|
} |
|
|
|
|