Skip to main content
.NET Framework 4.5.2+

ModelViewsNodesGenerator Class

A Nodes Generator that generates the content of the IModelViews node.

Namespace: DevExpress.ExpressApp.Model.NodeGenerators

Assembly: DevExpress.ExpressApp.v24.1.dll

NuGet Package: DevExpress.ExpressApp

Declaration

[Browsable(false)]
public class ModelViewsNodesGenerator :
    ModelNodesGeneratorBase

Remarks

This class is a ModelNodesGeneratorBase descendant, that generates child nodes of the Views node. Adds an IModelDetailView and two IModelListView nodes for each class defined in the IModelBOModel node. One of the generated ListView nodes defines a general-purpose List View, and another - a Lookup List View.

To customize the content of the Views node, implement a Generator Updater for this Nodes Generator by inheriting the ModelNodesGeneratorUpdater<T> class in the following manner:

public class Updater : ModelNodesGeneratorUpdater<ModelViewsNodesGenerator> {
    public override void UpdateNode(ModelNode node) {
        // Cast the 'node' parameter to IModelViews
        // to access the Views node.
    }
}

The Generator Updater above should be registered within the overridden ModuleBase.AddGeneratorUpdaters method. The complete example of implementing Generator Updaters for this Nodes Generator is provided in the How to: Create Additional ListView Nodes in Code using a Generator Updater topic.

For a complete list of available Nodes Generators, refer to the Built-in Nodes Generators topic.

Inheritance

Object
ModelNodesGeneratorBase
ModelViewsNodesGenerator
See Also