EasyAbp / AbpHelper.CLI

Providing code generation and more features to help you develop applications and modules with the ABP framework.
MIT License
285 stars 95 forks source link

AbpHelper.CLI ,entity constructors , issue ,extra comma #70

Closed mrs01dev closed 4 years ago

mrs01dev commented 4 years ago

Dear all AbpHelper.CLI adds extra comma "," to the class constructors , as the fallowing

public myClass(Guid id, ) : base(id) { } Thanks , best regards

wakuflair commented 4 years ago

Hi @mrs01dev Could you provide your entity definition code?

mrs01dev commented 4 years ago

I am sorry for the delay. Please note the last constructor. The End constructor was added by AbpHelper.CLI

public class ItemData : FullAuditedAggregateRoot { public string ItemTag; public ulong ItemSerialNumber; public string ItemName;

    protected ItemData()
    {
    }

    public ItemData(

               [NotNull] ulong _ItemSerialNumber,
               string _ItemTag = null,
               string _ItemName = null

               )
    {

        ItemSerialNumber = _ItemSerialNumber;
        ItemTag = _ItemTag;
        ItemName = _ItemName;

    }

    public ItemData(Guid id) : base(id)
    {
    }

    public ItemData(Guid id, ) : base(id)
    {
    }
}
wakuflair commented 4 years ago

Hi It's fixed by the latest vesrion of the abphelper(0.4.1), would you try again?

wakuflair commented 4 years ago

I think it's ok now.

Closed because long time no response.