Browse Source
Merge pull request #1105 from abpframework/maliming/patch1
Replace the correct project reference and namespace.
pull/1120/head
Halil İbrahim Kalkan
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
5 additions and
6 deletions
-
abp_io/src/Volo.Utils.SolutionTemplating/Volo/Utils/SolutionTemplating/Building/Steps/SwitchEntityFrameworkCoreToMongoDbStep.cs
-
framework/src/Volo.Abp.Cli.Core/Volo/Abp/ProjectBuilding/Building/Steps/SwitchEntityFrameworkCoreToMongoDbStep.cs
-
templates/mvc/src/MyCompanyName.MyProjectName.Web/MyProjectNameWebModule.cs
|
|
|
@ -21,9 +21,9 @@ namespace Volo.Utils.SolutionTemplating.Building.Steps |
|
|
|
var lines = file.GetLines(); |
|
|
|
for (var i = 0; i < lines.Length; i++) |
|
|
|
{ |
|
|
|
if (lines[i].Contains("ProjectReference") && lines[i].Contains("MyCompanyName.MyProjectName.EntityFrameworkCore")) |
|
|
|
if (lines[i].Contains("ProjectReference") && lines[i].Contains("MyCompanyName.MyProjectName.EntityFrameworkCore.DbMigrations")) |
|
|
|
{ |
|
|
|
lines[i] = lines[i].Replace("EntityFrameworkCore", "MongoDB"); |
|
|
|
lines[i] = lines[i].Replace("EntityFrameworkCore.DbMigrations", "MongoDB"); |
|
|
|
file.SetLines(lines); |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
@ -21,9 +21,9 @@ namespace Volo.Abp.ProjectBuilding.Building.Steps |
|
|
|
var lines = file.GetLines(); |
|
|
|
for (var i = 0; i < lines.Length; i++) |
|
|
|
{ |
|
|
|
if (lines[i].Contains("ProjectReference") && lines[i].Contains("MyCompanyName.MyProjectName.EntityFrameworkCore")) |
|
|
|
if (lines[i].Contains("ProjectReference") && lines[i].Contains("MyCompanyName.MyProjectName.EntityFrameworkCore.DbMigrations")) |
|
|
|
{ |
|
|
|
lines[i] = lines[i].Replace("EntityFrameworkCore", "MongoDB"); |
|
|
|
lines[i] = lines[i].Replace("EntityFrameworkCore.DbMigrations", "MongoDB"); |
|
|
|
file.SetLines(lines); |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
@ -32,10 +32,9 @@ using Volo.Abp.UI; |
|
|
|
using Volo.Abp.UI.Navigation; |
|
|
|
using Volo.Abp.VirtualFileSystem; |
|
|
|
using Volo.Abp.PermissionManagement; |
|
|
|
using Volo.Abp.TenantManagement.Web; |
|
|
|
//<TEMPLATE-REMOVE IF-NOT='EntityFrameworkCore'>
|
|
|
|
using Volo.Abp.EntityFrameworkCore; |
|
|
|
using Volo.Abp.TenantManagement.Web; |
|
|
|
|
|
|
|
//</TEMPLATE-REMOVE>
|
|
|
|
|
|
|
|
namespace MyCompanyName.MyProjectName |
|
|
|
|