-
Notifications
You must be signed in to change notification settings - Fork 251
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: 移除所有类名的Lion前缀,比如LionAbpProCliModule修改为AbpProCliModule
- Loading branch information
1 parent
fec8689
commit 0d1d9da
Showing
72 changed files
with
297 additions
and
392 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 10 additions & 10 deletions
20
...ProLionAbpProCapDbProviderInfoProvider.cs → .../AbpProAbpProCapDbProviderInfoProvider.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...meworkCore/LionAbpProCapDbProviderInfo.cs → ...yFrameworkCore/AbpProCapDbProviderInfo.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
...tyFrameworkCore/Lion/AbpPro/CAP/EntityFrameworkCore/AbpProCapEntityFrameworkCoreModule.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
namespace Lion.AbpPro.CAP.EntityFrameworkCore | ||
{ | ||
[DependsOn(typeof(AbpProCapModule))] | ||
public class AbpProCapEntityFrameworkCoreModule : AbpModule | ||
{ | ||
} | ||
} |
6 changes: 2 additions & 4 deletions
6
...orkCore/LionAbpProCapOptionsExtensions.cs → ...ameworkCore/AbpProCapOptionsExtensions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...re/LionAbpProEfCoreDbContextCapOptions.cs → ...rkCore/AbpProEfCoreDbContextCapOptions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
namespace Lion.AbpPro.CAP.EntityFrameworkCore; | ||
|
||
public class LionAbpProEfCoreDbContextCapOptions | ||
public class AbpProEfCoreDbContextCapOptions | ||
{ | ||
public string CapUsingDbConnectionString { get; set; } | ||
} |
4 changes: 2 additions & 2 deletions
4
...pProEfCoreDbContextCapOptionsExtension.cs → ...pProEfCoreDbContextCapOptionsExtension.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
...tityFrameworkCore/Lion/AbpPro/CAP/EntityFrameworkCore/IAbpProCapDbProviderInfoProvider.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
namespace Lion.AbpPro.CAP.EntityFrameworkCore; | ||
|
||
public interface IAbpProCapDbProviderInfoProvider | ||
{ | ||
AbpProCapDbProviderInfo GetOrNull(string dbProviderName); | ||
} |
6 changes: 0 additions & 6 deletions
6
...FrameworkCore/Lion/AbpPro/CAP/EntityFrameworkCore/ILionAbpProCapDbProviderInfoProvider.cs
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
...ameworkCore/Lion/AbpPro/CAP/EntityFrameworkCore/LionAbpProCapEntityFrameworkCoreModule.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,11 @@ | ||
// Global using directives | ||
|
||
global using Volo.Abp.Authorization.Permissions; | ||
global using System.Text; | ||
global using System.Text.Json; | ||
global using DotNetCore.CAP.Messages; | ||
global using DotNetCore.CAP.Serialization; | ||
global using Lion.AbpPro.Localization; | ||
global using Microsoft.Extensions.DependencyInjection.Extensions; | ||
global using Volo.Abp.Authorization.Permissions; | ||
global using Volo.Abp.Json; | ||
global using Volo.Abp.Localization; |
4 changes: 2 additions & 2 deletions
4
...P/LionAbpProCapConsumerServiceSelector.cs → ...o/CAP/AbpProCapConsumerServiceSelector.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
...e/frameworks/src/Lion.AbpPro.CAP/Lion/AbpPro/CAP/AbpProCapPermissionDefinitionProvider.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
namespace Lion.AbpPro.CAP; | ||
|
||
public class AbpProCapPermissionDefinitionProvider : PermissionDefinitionProvider | ||
{ | ||
public override void Define(IPermissionDefinitionContext context) | ||
{ | ||
var abpIdentityGroup = context.GetGroup(AbpProCapPermissions.CapManagement.Default); | ||
|
||
abpIdentityGroup.AddPermission(AbpProCapPermissions.CapManagement.Cap, L("Permission:Cap")); | ||
} | ||
|
||
private static LocalizableString L(string name) | ||
{ | ||
return LocalizableString.Create<AbpProLocalizationResource>(name); | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...on/AbpPro/CAP/LionAbpProCapPermissions.cs → ...P/Lion/AbpPro/CAP/AbpProCapPermissions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ro/CAP/LionAbpProCapPublisherExtension.cs → ...AbpPro/CAP/AbpProCapPublisherExtension.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
...re/frameworks/src/Lion.AbpPro.CAP/Lion/AbpPro/CAP/AbpProCapServiceCollectionExtensions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
namespace Lion.AbpPro.CAP; | ||
|
||
public static class AbpProCapServiceCollectionExtensions | ||
{ | ||
public static ServiceConfigurationContext AddAbpCap(this ServiceConfigurationContext context, Action<CapOptions> capAction) | ||
{ | ||
context.Services.Replace(ServiceDescriptor.Transient<IUnitOfWork, AbpProCapUnitOfWork>()); | ||
context.Services.Replace(ServiceDescriptor.Transient<UnitOfWork, AbpProCapUnitOfWork>()); | ||
context.Services.AddTransient<AbpProCapUnitOfWork>(); | ||
context.Services.AddCap(capAction); | ||
return context; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.