Activities of "liangshiwei"

Hi,

You can send an email to license@abp.io

Hi,

You need to set the MenuItemName in your page. like:

@{
    PageLayout.Content.Title = L["Menu:FileManagement"].Value;
    PageLayout.Content.MenuItemName = FileManagementMenuNames.GroupName;
}

Hi

Try add

to your page.

Hi,

when calling the service from the web project I can successfully use Service.UpdateAsync but Service.ValidateAsync needs permissions. How do I configure a proper permission?

If ValidateAsync requires permissions, then you must configure this permission for the current user. I think this is correct. If you don't have permission but you can call the method, it will be a bug.

You don't have to completely override the CreateAsync method.

private IBookStoreRepository _bookStoreRepository;

.....

public async override Task CreateAsync(CreateBookDto createDto)
{
     // VALIDATE
     await CheckNameExists(createDto.Name);
     
     // Call base createAsync method
     await base.CreateAsync(createDto);
}

private async Task CheckNameExists(string bookName)
{
    var book = await  _bookStoreRepository.GetByName(bookName);
    if(book!=null) {
       throw new UserfriendException("the book already exists ")
    }
}

Sorry, I can't get useful information, Can you use CLI to make a sample project to reproduce? thanks.

Can you share some code? Your login mehtod and configuration code.

Can you provide steps to reproduce? thanks.

Hi,

No way. You can write a private method without permission. like :

private IBookStoreRepository _bookStoreRepository;

.....

public async Task Create(CreateBookDto createDto)
{
     await CheckNameExists(createDto.Name);
     
     .....
}

private async Task CheckNameExists(string bookName)
{
    var book = await  _bookStoreRepository.GetByName(bookName);
    if(book!=null) {
       throw new UserfriendException("the book already exists ")
    }
}
Answer

Can you provide steps to reproduce? thanks.

Answer

Can you provide some code?

Showing 6161 to 6170 of 6693 entries
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.1.0-preview. Updated on December 17, 2025, 07:08
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.