Open Closed

Abp suite generates incorrect code #7064


User avatar
0
samed.yuksel created
  • ABP Framework version: v7.1.1
  • UI Type: Angular
  • Database System: EF Core (PostgreSQL)
  • Tiered (for MVC) or Auth Server Separated (for Angular): no
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

When an entity is created from the suite and the save and generate button is pressed, the following code is generated. It appears that there may be a bug.

public async Task<MessageReadReceipt> CreateAsync(
%%method-create-parameters%%)
{
    %% validations - create %%

    var messageReadReceipt = new MessageReadReceipt(
     GuidGenerator.Create(),
     reservationId, userId, lastReadDate
     );

    return await _messageReadReceiptRepository.InsertAsync(messageReadReceipt);
}

4 Answer(s)
  • User Avatar
    0
    EngincanV created
    Support Team .NET Developer

    Hi, this is an old problem, which is already fixed with v7.2.0-rc.1. So, please update your CLI version, project and Suite and regenerate the entity.

  • User Avatar
    0
    samed.yuksel created

    We have previously created entities in this version without encountering such an issue. Will there be any improvements in version 7.1.1?

  • User Avatar
    0
    EngincanV created
    Support Team .NET Developer

    We have previously created entities in this version without encountering such an issue. Will there be any improvements in version 7.1.1?

    No, we are not considering to release a patch version for 7.1.1.

  • User Avatar
    0
    samed.yuksel created

    Okay. Thanks.

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
Do you need assistance from an ABP expert?
Schedule a Meeting
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v9.2.0-preview. Updated on March 20, 2025, 18:00