Skip to content

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

Open
@jemayn

Description

@jemayn

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions