Back to Devexpress

ModuleBase.ExtendModelInterfaces(ModelInterfaceExtenders) Method

expressappframework-devexpress-dot-expressapp-dot-modulebase-dot-extendmodelinterfaces-x28-devexpress-dot-expressapp-dot-model-dot-modelinterfaceextenders-x29.md

latest3.9 KB
Original Source

ModuleBase.ExtendModelInterfaces(ModelInterfaceExtenders) Method

Extends the Application Model.

Namespace : DevExpress.ExpressApp

Assembly : DevExpress.ExpressApp.v25.2.dll

NuGet Package : DevExpress.ExpressApp

Declaration

csharp
public virtual void ExtendModelInterfaces(
    ModelInterfaceExtenders extenders
)
vb
Public Overridable Sub ExtendModelInterfaces(
    extenders As ModelInterfaceExtenders
)

Parameters

NameTypeDescription
extendersDevExpress.ExpressApp.Model.ModelInterfaceExtenders

A ModelInterfaceExtenders object that is a collection of Application Model interface extenders.

|

Remarks

For details on how to extend the Application Model, refer to the Extend and Customize the Application Model in Code topic.

The following code snippets (auto-collected from DevExpress Examples) contain references to the ExtendModelInterfaces(ModelInterfaceExtenders) 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.

XAF_how-to-show-filter-dialog-before-listview/CS/EFCore/DialogBeforeListViewEF/DialogBeforeListViewEF.Module/Module.cs#L32

csharp
public override void ExtendModelInterfaces(ModelInterfaceExtenders extenders) {
    base.ExtendModelInterfaces(extenders);
    extenders.Add<IModelListView, IModelListViewAdditionalCriteria>();

xaf-how-to-extend-the-application-model/CS/EFCore/ExtendModelEF/ExtendModelEF.Module/Module.cs#L33

csharp
public override void ExtendModelInterfaces(ModelInterfaceExtenders extenders) {
    base.ExtendModelInterfaces(extenders);
    extenders.Add<IModelListView, IModelListViewExtender>();

xaf-how-to-implement-a-custom-attribute-to-customize-the-application-model/CS/CustomAttributeSolution/CustomAttributeSolution.Module/Module.cs#L37

csharp
public override void ExtendModelInterfaces(DevExpress.ExpressApp.Model.ModelInterfaceExtenders extenders) {
    base.ExtendModelInterfaces(extenders);
    extenders.Add<IModelMember, IRemovedFromViewModel>();

See Also

IModelExtender

ModuleBase Class

ModuleBase Members

DevExpress.ExpressApp Namespace