When generating models for IPublishedElement it adds a controller no matter what
Opened this issue · 0 comments
jemayn commented
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.