.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

ModelNodesGeneratorAttribute Class

Applied to Application Model node interfaces. Specifies a Nodes Generator for the current node.

Namespace: DevExpress.ExpressApp.Model

Assembly: DevExpress.ExpressApp.v20.1.dll

Declaration

[AttributeUsage(AttributeTargets.Interface)]
public sealed class ModelNodesGeneratorAttribute :
    Attribute
<AttributeUsage(AttributeTargets.Interface)>
Public NotInheritable Class ModelNodesGeneratorAttribute
    Inherits Attribute

Remarks

To define how the custom Application Model node is generated, implement a ModelNodesGeneratorBase descendant and override the GenerateNodesCore method. To apply the implemented Generator to the required node, decorate the model node interface with the ModelNodesGenerator attribute, and pass the Nodes Generator type as the parameter.

[ModelNodesGenerator(typeof(MyChildNodesGenerator))]
public interface IModelMyNodeWithChildNodes : IModelNode, IModelList<IModelMyChildNode> {
}

Inheritance

See Also