Hi,
You can upload to google drive or onedrive and share the link with me.
Hi,
Oh, the single-layer template missing the GlobalFeatureConfigurator
class.
You can add the GlobalFeatureConfigurator
to your project manually.
For example:
public class MyGlobalFeatureConfigurator
{
private static readonly OneTimeRunner OneTimeRunner = new OneTimeRunner();
public static void Configure()
{
OneTimeRunner.Run(() =>
{
GlobalFeatureManager.Instance.Modules.CmsKit(cmsKit =>
{
cmsKit.EnableAll();
});
GlobalFeatureManager.Instance.Modules.CmsKitPro(cmsKitPro =>
{
cmsKitPro.EnableAll();
});
});
}
}
public class MyProjectNameModule ....
{
.....
public override void PreConfigureServices(ServiceConfigurationContext context)
{
MyGlobalFeatureConfigurator.Configure();
}
}
PS: You also need to add the database migration file.
Hi,
You may need to install the CMS kit module manually. The CLI doesn't support it yet.
Hi,
As I understand, you want to install the CMS Kit module to the single-layer project.
Of course, you can do it.
Hi,
You should check whether the data exists before inserting it, for example:
https://github.com/abpframework/abp/blob/d7fbcb95f23307c611ee77de2bbdd1d41ff673b7/modules/identity/src/Volo.Abp.Identity.Domain/Volo/Abp/Identity/IdentityDataSeeder.cs#L58-L66
Hi,
Sorry, I didn't get it.
Could you explain it in detail? thanks.
Hi, you need to upgrade your project and suite to version 7.4.0.
For performance, ABP will cache permission definitions and check CacheStamp
.
https://github.com/abpframework/abp/blob/1f16df3fd426d3a8ac4ad68c1c59d8f080c5f26a/modules/permission-management/src/Volo.Abp.PermissionManagement.Domain/Volo/Abp/PermissionManagement/DynamicPermissionDefinitionStore.cs#L91-L109
You should update the CacheStamp
value after inserting a permission.
https://github.com/abpframework/abp/blob/1f16df3fd426d3a8ac4ad68c1c59d8f080c5f26a/modules/permission-management/src/Volo.Abp.PermissionManagement.Domain/Volo/Abp/PermissionManagement/DynamicPermissionDefinitionStoreInMemoryCache.cs#L17
Hi,
You can give it a try