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

Problems with repeated generation of constructors. #43

Closed gdlcf88 closed 4 years ago

gdlcf88 commented 4 years ago

image

wakuflair commented 4 years ago

This is because you changed the template.

gdlcf88 commented 4 years ago

I did not change the template.

If my entity class already has .ctor methods, it will ignore them and generate a new public .ctor method like the screenshot you see.

wakuflair commented 4 years ago

The commit https://github.com/EasyAbp/AbpHelper.CLI/commit/1809b4ff0170825af4b9736f00ab9e3e3f8ce3a6 deletes the space char before 'base', cause following generated text different.

gdlcf88 commented 4 years ago

I am using released cli version (0.2.0), it happens before this commit.

The problem is that format differences should be allowed, people could create .ctor manually, it just need to judge whether the .ctor methods exist or not, and don't care about the differences in formats

wakuflair commented 4 years ago

OK, will see what can I do with the format.