There's no need for restoring partial interfaces: ...
# package-development
r
There's no need for restoring partial interfaces: you only have to create plain interfaces with the properties that you need in your custom logic (preferably inheriting from
IPublishedContent
). If a generated model class adds that interface, you can do a simple
if (Model is IPackageInterface packageModel) ...
or even change the view model to that interface... The only real downside is the requirement for users to extend the generated models, but that could be automated by generating that code.