expressappframework-devexpress-dot-expressapp-dot-modulebase-dot-addgeneratorupdaters-x28-devexpress-dot-expressapp-dot-model-dot-core-dot-modelnodesgeneratorupdaters-x29.md
Registers the Generator Updaters. These are classes, used to customize the Application Model‘s zero layer after it has been generated.
Namespace : DevExpress.ExpressApp
Assembly : DevExpress.ExpressApp.v25.2.dll
NuGet Package : DevExpress.ExpressApp
public virtual void AddGeneratorUpdaters(
ModelNodesGeneratorUpdaters updaters
)
Public Overridable Sub AddGeneratorUpdaters(
updaters As ModelNodesGeneratorUpdaters
)
| Name | Type | Description |
|---|---|---|
| updaters | DevExpress.ExpressApp.Model.Core.ModelNodesGeneratorUpdaters |
A ModelNodesGeneratorUpdaters object providing access to the list of Generator Updaters.
|
Override this method and add one or more Generator Updaters (the ModelNodesGeneratorUpdater<T> descendants) in it. The updaters parameter exposes the Add method, allowing you to register an Updater.
public override void AddGeneratorUpdaters(ModelNodesGeneratorUpdaters updaters) {
base.AddGeneratorUpdaters(updaters);
updaters.Add(new MyGeneratorUpdater1());
updaters.Add(new MyGeneratorUpdater2());
// ...
}
To see a full example for implementing the Generator Updaters classes and registering them via this method, refer to the How to: Create Additional ListView Nodes in Code using a Generator Updater topic.
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the AddGeneratorUpdaters(ModelNodesGeneratorUpdaters) method.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
public override void AddGeneratorUpdaters(ModelNodesGeneratorUpdaters updaters) {
base.AddGeneratorUpdaters(updaters);
updaters.Add(new ViewsNodesGeneratorUpdater());
See Also
Read and Set Values for Built-in Application Model Nodes in Code