Base solution for your next web application

Activities of "uxabp"

If I purchase abp.io commercial, can I get the complete source code on github?

Can Microservice use abp cli to generate templates?

Hi @ismcagdas,

If modify the client code, the next time use power tools to generate it again, the client code will be overwritten.

Is there a way to not change the code generated by power tools, override the generated method?

Here power tools generate service code.

[AbpAuthorize(AppPermissions.Pages_CustomizeApiKeies)]
    public class CustomizeApiKeiesAppService : AbpZeroTemplateAppServiceBase, ICustomizeApiKeiesAppService
    {
		 private readonly IRepository<CustomizeApiKey> _customizeApiKeyRepository;
		 private readonly IRepository<User,long> _lookup_userRepository;
		 

		  public CustomizeApiKeiesAppService(IRepository<CustomizeApiKey> customizeApiKeyRepository , IRepository<User, long> lookup_userRepository) 
		  {
			_customizeApiKeyRepository = customizeApiKeyRepository;
			_lookup_userRepository = lookup_userRepository;		
		  }
          ........
         [AbpAuthorize(AppPermissions.Pages_CustomizeApiKeies_Create)]
		 protected virtual async Task Create(CreateOrEditCustomizeApiKeyDto input)
         {
            var customizeApiKey = ObjectMapper.Map<CustomizeApiKey>(input);
			if (AbpSession.TenantId != null)
			{
				customizeApiKey.TenantId = (int?) AbpSession.TenantId;
			}
            await _customizeApiKeyRepository.InsertAsync(customizeApiKey);
         }
         ...........
       }

I want to override Create method, but not working. still run CustomizeApiKeiesAppService. Here is my code.

 public class CustomizeApiKeiesAppServiceCustom : CustomizeApiKeiesAppService
	{
		private readonly IRepository<CustomizeApiKey> _customizeApiKeyRepository;
		private readonly IRepository<User, long> _lookup_userRepository;


		public CustomizeApiKeiesAppServiceCustom(IRepository<CustomizeApiKey> customizeApiKeyRepository, IRepository<User, long> lookup_userRepository)
			: base (customizeApiKeyRepository, lookup_userRepository)
		{
			_customizeApiKeyRepository = customizeApiKeyRepository;
			_lookup_userRepository = lookup_userRepository;
		}
        [AbpAuthorize(AppPermissions.Pages_CustomizeApiKeies_Create)]
		protected override async Task Create(CreateOrEditCustomizeApiKeyDto input)
		{
			var customizeApiKey = ObjectMapper.Map<CustomizeApiKey>(input);
            DoSomething();
			await _customizeApiKeyRepository.InsertAsync(customizeApiKey);
		}
        ..........
        }

and PreInitialize()

  public override void PreInitialize()
        {            
            Configuration.ReplaceService<ICustomizeApiKeiesAppService, CustomizeApiKeiesAppServiceCustom>();
            }

Not working.

Help me, please.

It's worked, thanks.

My project, .net Core + Angular 8. abp zero version 7.1.0

I am adding a new language (Traditional Chinese), the front end Angular can see, language manager also has value.

<br> <br> <br> But after I switched over, it broke down.

Please help me.

Can asp.net zero v7.1.0 (.net Core 2.2 + Angular8) be executed on ubuntu 16.0.4?

Is there any relevant documents for reference?

Showing 1 to 6 of 6 entries