.NET Standard 2.0+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET 5.0+

ModelViewsNodesGenerator Class

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

Namespace: DevExpress.ExpressApp.Model.NodeGenerators

Assembly: DevExpress.ExpressApp.v21.2.dll


public class ModelViewsNodesGenerator :


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.


See Also