Activities of "liangshiwei"

Can I check it remotely?(UTC+8) shiwei.liang@volosoft.com

Hi,

Have you tried my suggestion?

Hi,

As hikalkan said, your sql execution may not be in the transaction. Below is my test code and it works fine:

public class TestAppService : ApplicationService
{
    private readonly IMyRepository _myRepository;

    public TestAppService(IMyRepository myRepository)
    {
        _myRepository = myRepository;
    }

    public async Task UpdateManyAsync()
    {
        var roleIds = (await _myRepository.GetListAsync()).Select(x => x.Id).ToArray();

        await _myRepository.UpdateManyAsync(roleIds);

        await CurrentUnitOfWork.SaveChangesAsync();

        throw new UserFriendlyException("test exception");
    }
}

public class MyRepository : EfCoreRepository<IdentityDbContext, IdentityRole, Guid>, IMyRepository
{
    public MyRepository(IDbContextProvider<IdentityDbContext> dbContextProvider) : base(dbContextProvider)
    {
    }

    public async Task UpdateManyAsync(Guid[] ids)
    {
        var parameter =  string.Join(',',ids.Select(x => $"'{x}'").ToList());
        await DbContext.Database.ExecuteSqlRawAsync(
            $"update AbpRoles set IsPublic = 1 where id in ({parameter})");
    }
}

Hi,

I make an example and hope can help you: https://github.com/realLiangshiwei/Qa727

Hi,

How to reproduce this problem? can you provide steps? thanks.

Hi,

How to reproduce the problem?

I will check it out

The problem has been solve, if you have any question, please reopen.

Why, ABP create them automatically right?? if i follow the BookStore Tutorial then it is all automatic no need to create API Controller

Because the module template is different from the app template. It is microservice compatible

If i have to create a APIController in what project ?

In *.HttpApi project.

Hi,

When you log in on the angular client, the auth server will also log in to the current user. I think you can redirect directly without doing anything

Showing 6021 to 6030 of 6692 entries
Learn More, Pay Less
33% OFF
All Trainings!
Get Your Deal
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.0.0-preview. Updated on September 12, 2025, 10:20