Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When generating models for IPublishedElement it adds a controller no matter what #255

Open
jemayn opened this issue Apr 28, 2021 · 0 comments

Comments

@jemayn
Copy link

jemayn commented Apr 28, 2021

Hi there!

Recently had the need to extend a BlockList model to do something extra, adding a partial class and adding the ImplementPropertyType filter worked just as expected, however the auto generated model file kept adding the constructor on each model generation creating build errors unless you removed it specifically in the generated file.

Had a look in the source code for MB and found that it doesn't check for a constructor if the extending model class isn't of type IPublishedContent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant