|
|
@ -70,8 +70,8 @@ namespace Volo.Abp.Cli.ProjectModification |
|
|
protected virtual string FindDbContextName(string dbMigrationsFolder) |
|
|
protected virtual string FindDbContextName(string dbMigrationsFolder) |
|
|
{ |
|
|
{ |
|
|
var dbContext = Directory |
|
|
var dbContext = Directory |
|
|
.GetFiles(dbMigrationsFolder, "*MigrationsDbContext.cs", SearchOption.AllDirectories) |
|
|
.GetFiles(dbMigrationsFolder, "*DbContext.cs", SearchOption.AllDirectories) |
|
|
.FirstOrDefault(fp => !fp.EndsWith("TenantMigrationsDbContext.cs")); |
|
|
.FirstOrDefault(fp => !fp.EndsWith("TenantDbContext.cs")); |
|
|
|
|
|
|
|
|
if (dbContext == null) |
|
|
if (dbContext == null) |
|
|
{ |
|
|
{ |
|
|
@ -84,7 +84,7 @@ namespace Volo.Abp.Cli.ProjectModification |
|
|
protected virtual string FindTenantDbContextName(string dbMigrationsFolder) |
|
|
protected virtual string FindTenantDbContextName(string dbMigrationsFolder) |
|
|
{ |
|
|
{ |
|
|
var tenantDbContext = Directory |
|
|
var tenantDbContext = Directory |
|
|
.GetFiles(dbMigrationsFolder, "*TenantMigrationsDbContext.cs", SearchOption.AllDirectories) |
|
|
.GetFiles(dbMigrationsFolder, "*TenantDbContext.cs", SearchOption.AllDirectories) |
|
|
.FirstOrDefault(); |
|
|
.FirstOrDefault(); |
|
|
|
|
|
|
|
|
if (tenantDbContext == null) |
|
|
if (tenantDbContext == null) |
|
|
|