Base solution for your next web application
Open Closed

InsertAndGetId was not rollback #2637


User avatar
0
hao created

i write a method like is:

public async Task<SomeResultOutput> Send(SomeInput input)
        {
           var id =await _someRepository.InsertAndGetIdAsync(new SomeEntity()
            {
                Code = "123456"
            });
            throw new UserFriendlyException();
    }

but the SomeEntity Has been written to the database.did not rollback. what have I done wrong i use abp 1.3.1 , and i had try 1.5.0


1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Can you share the code of class contains this method ?

    Thanks.