Problem:
Interface definition is only generated when document type is used in the site.
Expected bahavior:
The interface definition should always be generated, along with the partial class itself, which is always being generated..
Details:
For a document type used as a composition, I am checking for the interface type in code. However, the interface is only generated when the document type is used as a composition by some other document type. When the composition document type is not used anywhere, the document type's class is still correctly auto-generated, but not the interface. This leads to compile-time errors depending on whether a document type is currently used by other document types, or not.
Problem:
Interface definition is only generated when document type is used in the site.
Expected bahavior:
The interface definition should always be generated, along with the partial class itself, which is always being generated..
Details:
For a document type used as a composition, I am checking for the interface type in code. However, the interface is only generated when the document type is used as a composition by some other document type. When the composition document type is not used anywhere, the document type's class is still correctly auto-generated, but not the interface. This leads to compile-time errors depending on whether a document type is currently used by other document types, or not.