The requested page is not available for the requested platform. You are viewing the content for Default platform.

ModelViewsNodesGenerator Class

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

Namespace: DevExpress.ExpressApp.Model.NodeGenerators

Assembly: DevExpress.ExpressApp.v19.1.dll

Declaration

[Browsable(false)]
public class ModelViewsNodesGenerator :
    ModelNodesGeneratorBase
<Browsable(False)>
Public Class ModelViewsNodesGenerator
    Inherits 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<> {
    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