Activities of "EngincanV"

Hi, I will create an internal issue for your request. We can create an article to show the related steps. In the meantime, you can use ABP Suite to generate the related entities from your database tables. Please refer to https://abp.io/docs/9.0/suite/generating-entities-from-an-existing-database-table, it can be helpful (also it might be what you are looking for) until we create the related article.

Best regards.

Hi, actually it's configurable, we updated our Account Module Pro documentation about this change. Please refer to https://abp.io/docs/9.1/modules/account-pro#social-account-security-setting.

Hi, @EngincanV thanks for the response.

I tested the change with the steps you mentioned and it did work, that is, the table created in the previous module is no longer created again in the migration for the new module.

However, I noticed that this only worked when I ran the command to remove the latest migration twice (as you instructed), and as expected that removes the last two migrations, even though the second to last migration it removes has no relation to the latest one or its tables. I don't understand why that is the case, could you please provide an explanation?

Thanks in advance.

Hi, sometimes when adding a new migration there might occur some sync problems between following migrations (due to old assemblies, even the command build the efcore project still some assemblies may old assemblies for example) and it seems this was the case in your example, because your configuration was right.

So by reverting the last two migration, you have sync the migrations and so the efcore could generate a new migration from the right point and sync itself.

Support, please support.

Hi, since the question was asked by @bmulinari and you have added the last response, questions become invisible from our dashboard. This is the reason why we could not prioritize to answer this question. Sorry for the late response.

@bmulinari can you please send the project again, because when I try to download the application, it gives a 502 bad gateway error? I have reviewed it before but I could not find it in my workspace for now.

I will prioritize it and will fix your problem when you send your email. So, please let me know.

Regards.

@EngincanV, I have sent the e-mail again with the code.

Hi, thanks for sharing your project. I have sent an email to you with a solution to your problem:

Please check your mail and let me know if you need further assistant. Regards.

Support, please support.

Hi, since the question was asked by @bmulinari and you have added the last response, questions become invisible from our dashboard. This is the reason why we could not prioritize to answer this question. Sorry for the late response.

@bmulinari can you please send the project again, because when I try to download the application, it gives a 502 bad gateway error? I have reviewed it before but I could not find it in my workspace for now.

I will prioritize it and will fix your problem when you send your email. So, please let me know.

Regards.

This ticket has been open over 2 weeks, we would appreciate some feedback

Hi, sorry for the late response. I will write you back soon.

Regards.

To help developers find answers more quickly, we have collected all frequently asked questions into a single, easy-to-use FAQ index thread. Instead of searching through pinned items on the homepage, you can now browse organized categories based on your development needs.

FAQs


See all FAQ labelled questions -> https://abp.io/support/questions?Sort=LastActivityDate-desc&TagNames=faq

BTW, the name of this thread should probably change now in 2025.

Thanks for reminding. I'm closing this thread and creating a fresh one, which you can follow at https://abp.io/support/questions/8803/ABP-Suite-feature-request--2025

We have created internal issues for ABP Suite related feature-requests and will consider them and try to implement them in our each version. Thank you all for your interest and if you still have new feature-request, please list them in the new thread.

Best Regards.

What feature would you like to see in ABP Suite in the new version?

Continuation thread of https://abp.io/support/questions/6529/ABP-Suite-feature-request--2024

Hi @EngincanV,

Hi, since in your entity configuration the UserProfile has a not nullable UserId field you can't set the user.Profile as null without deleting the userProfile.

Added a new DeleteProfile method in user repository:

public class EfCoreUserRepository : EfCoreRepository<AbpEFCorePlaygroundDbContext, User, Guid>, IUserRepository 
{ 
    public EfCoreUserRepository( 
        IDbContextProvider<AbpEFCorePlaygroundDbContext> dbContextProvider) 
        : base(dbContextProvider) 
    { 
    } 
 
    public async Task DeleteProfileAsync(User user) 
    { 
        if (user.Profile == null) 
        { 
            return; 
        } 
 
        AbpEFCorePlaygroundDbContext dbContext = await GetDbContextAsync(); 
        dbContext.Remove(user.Profile); 
 
        user.Profile = null; 
    } 
} 

Update in app service:

public async Task DeleteUserProfileAsync() 
{ 
    var user = await _userRepository.GetAsync(x => x.Id == Guid.Parse("c64b873e-c067-43e0-ae00-07992a880837")); 
 
    if (user.Profile == null) 
    { 
        return; 
    } 
 
    await _userRepository.DeleteProfileAsync(user); 
 
    await _userRepository.UpdateAsync(user); 
} 

The user updated event is correct: But when I continue after the breakpoint, the request still keeps executing, because of the infinite loop in the AbpDbContext: And the user profile is not deleted in the database.

Best regards, Steff Beckers

Hi, the problem in your code is that both the User and the UserProfile entities use the soft-delete, which means when you delete a user profile, it's not deleted in normally, only its IsDeleted field set to true and it becomes invisible in your SQL queries, if you apply dataFilters and ABP applies it by default (https://abp.io/docs/9.0/framework/infrastructure/data-filtering#isoftdelete). Therefore, you can't set the user.Profile as null, because the profile is soft-deleted, not hard-deleted. This is the difference between your EfCorePlayground and AbpEfCorePlayground applications.

If you want the UserProfile as hard deleted, then you can use the IDataFilter service. Example:

        private readonly IDataFilter _dataFilter;


        using (_dataFilter.Disable<ISoftDelete>())
        {
            //hard deletes from your db
            await _userProfileRepository.DeleteAsync(user.Profile!.Id, autoSave: true);
        }
Showing 491 to 500 of 1371 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 November 07, 2025, 08:20