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.

Made with ❤️ on ABP v9.1.0-preview. Updated on December 05, 2024, 12:19