BuilderFactory<TModel> Class

Provides access to ASP.NET Core controls configured by MVC models.

Namespace: DevExpress.AspNetCore

Assembly: DevExpress.AspNetCore.Common.v18.2.dll

Declaration

public class BuilderFactory<TModel> :
    BuilderFactory
Public Class BuilderFactory(Of TModel)
    Inherits BuilderFactory

Type Parameters

Name Description
TModel

An MVC model type.

The DevExpress Bootstrap editors rely on the DRY ("Don't Repeat Yourself") ideology of ASP.NET Core MVC validation. This ideology implies that you declaratively specify the functionality and behavior of model class properties using Data Annotation attributes. Data validation is performed based on the specified attributes both on the client and server sides.

The code below demonstrates how to configure a TextBoxFor control using the DRY ideology.

@model FormRegistration

@using(Html.BeginRouteForm("components", new { DemoKey = "Editors-Validation" }, FormMethod.Post)) {
    <div class="form-group">
        @(Html.DevExpress()
            .BootstrapTextBoxFor(m => m.Name)
            .CssClasses(css => css.Control("ctrl-fixed-width-lg")))
    </div>

Inheritance

Object
BuilderFactory
BuilderFactory<TModel>

Extension Methods

See Also